/*
 * Human Pass: the page's own layer.
 *
 * The scene kit supplies scenes, the phone frame, reveals, buttons and the
 * chevron. house-style.css supplies the ground. This file adds the Human Pass
 * brand (Alison, 3 Oct 2026): the pink foil accent and Inter Tight display type
 * (the site's own self-hosted face, so no font request leaves the site); and
 * the official Human Pass logo (7 Oct 2026) with the kit's clear space of half
 * the card height on every side. Every other colour is a site token.
 *
 * LAYOUT. One scene per copy block, the Me V3 standard. Each scene's inner is
 * a fixed-height grid (--srhp-avail: the viewport below the header, less the
 * top padding and the chevron gutter) with three areas: head (lockup, eyebrow,
 * heading), body (lede, buttons) and visual. The visual is a size container,
 * so a phone, the pass card or a photograph is sized from the space that is
 * actually left rather than from a guess, and the scene never outgrows the
 * screen at 1440x900, 768x1024 or 390x844.
 *
 * FIX PASS 4 (8 Oct 2026). Every phone is the product kit's (srpk_phone() in
 * an .srpk-fit box inside an .srpk-root wrapper; product-kit.css draws the
 * frame and holds the floor: 240px or wider under 1000px, 150px or wider from
 * 1000px). From 1000px a phone scene is its copy beside ONE phone; under
 * 1000px it is two snap scenes (the second .srhp-mob-only), so the words over
 * each 240px phone stay under about 150px. Photographs are shown whole.
 *
 * FIX PASS 5 (8 Oct 2026). Under 1000px three of those pairs are one scene
 * again: their screens are cut to their content (*-short.webp) and drawn in a
 * page-sized phone box (.srhp-shortbox), so the whole lede fits over a 240px
 * phone. Scene 2 stays two scenes, the second a photograph.
 *
 * FIX PASS 6 (8 Oct 2026, Rohan's R1 to R3). No cut-down screen any more
 * (R2): every phone is a whole kit phone with a 760/1744 screen in a .srpk-fit
 * box, so under 1000px the nothing, revocation and sites blocks are two
 * scenes each (the .srhp-shortbox is gone). The Human Pass logo is the kit
 * lockup, the mark with the name beside it, sized by height (R3). The sites
 * block is two scenes at every width: the developers page in a browser frame
 * as large as the scene allows (.srhp-browserbox), then the verify page on a
 * phone.
 */

.srhp-root {
  max-width: none;
  padding: 0;

  /* Human Pass pink, and the foil it is drawn from. */
  --srhp-pink: #ff8fc0;
  --srhp-pink-deep: #ff5fa8;
  --srhp-ink-on-foil: #170a2b;
  --srhp-foil-text: linear-gradient(100deg, #ffc8e1 0%, #ff8fc0 35%, #ffb3d6 60%, #e2c0ff 100%);

  /* The kit's accent on this page is the pink. */
  --srk-accent-live: var(--srhp-pink);

  /* Scene geometry. */
  --srhp-top: clamp(36px, 5.5vh, 56px);
  --srhp-gutter: 104px;
  /* 73px is the header's measured height at every width; the fallback keeps
     the grid the same height before scene-flow.js publishes the real value,
     so the hero does not shift at boot. */
  --srhp-avail: calc(var(--vph, 100dvh) - var(--srk-header-h, 73px) - var(--srhp-top) - var(--srhp-gutter));

  /* Type: the Me V3 floors. Phone first. */
  --srhp-body: 17px;
  --srhp-lede: 18px;
  --srhp-card: 15px;
  --srhp-eyebrow: 17px;
  --srhp-h1: clamp(26px, 6.9vw, 32px);
  --srhp-h2: clamp(27px, 7.2vw, 32px);

  /* The height of another product's kit lockup in a scene head. */
  --srhp-m-head: 34px;
}

@media (min-width: 700px) {
  .srhp-root {
    --srhp-body: 18px;
    --srhp-lede: 20px;
    --srhp-card: 16px;
    --srhp-eyebrow: 19px;
    --srhp-h1: clamp(36px, 5vw, 46px);
    --srhp-h2: clamp(32px, 4.4vw, 44px);
    --srhp-m-head: 40px;
  }
}

@media (min-width: 1000px) {
  .srhp-root {
    --srhp-body: 20px;
    --srhp-lede: 22px;
    --srhp-card: 17px;
    --srhp-eyebrow: 20px;
    --srhp-h1: clamp(40px, 4.2vw, 60px);
    --srhp-h2: clamp(40px, 3.6vw, 54px);
    --srhp-m-head: 44px;
  }
}

/*
 * Under 1000px (fix pass 4): 35px above the words, so the first line sits
 * under the up chevron's box (the header plus 40px), and 60px below, so the
 * visual ends above the down chevron's box (44px, 13.5px off the bottom at
 * 390x844). At 390x844 that leaves a 676px column, which is what a whole
 * 240px kit phone (521px) and its words need.
 */
@media (max-width: 999px) {
  .srhp-root { --srhp-gutter: 60px; --srhp-top: 35px; }
}

/* ---------------------------------------------------------------- Scenes */

.srk-page.srhp-root.srk-flow .srk-scene {
  padding: var(--srhp-top) clamp(20px, 4vw, 64px) var(--srhp-gutter);
  /* The kit sizes a scene with a 0px header until scene-flow.js has measured
     it, so the centred hero dropped by half the header (36.5px) and then
     jumped back up: CLS 0.051 (final check, 5 Oct 2026). The header is 73px
     at every width, so the same fallback here keeps the first paint where
     the measured layout puts it. */
  min-height: calc(var(--vph, 100dvh) - var(--srk-header-h, 73px));
}

/*
 * The grid. From 1000px: the copy on the left, centred in the column; the
 * visual on the right, the full height of the scene (a phone scene's ONE kit
 * phone, the pass card, a photograph).
 */
.srhp-grid {
  display: grid;
  height: var(--srhp-avail);
  column-gap: clamp(24px, 4.5vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas:
    ".    visual"
    "head visual"
    "body visual"
    ".    visual";
}

.srhp-grid--photo {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.srhp-head { grid-area: head; min-width: 0; }
.srhp-body { grid-area: body; min-width: 0; }

.srhp-visual {
  grid-area: visual;
  min-width: 0;
  min-height: 0;
  position: relative;
}

/*
 * THE SECOND SCENES (fix pass 4). .srhp-mob-only is a snap scene drawn under
 * 1000px only; from 1000px its words are in the scene before it, beside that
 * scene's visual. It carries no data-bg or data-accent (scene-kit.js measures
 * a hidden scene at offsetTop 0, which would break the colour journey). The
 * kit's .srpk-desk-only is the other half: drawn from 1000px only.
 */
@media (min-width: 1000px) {
  .srk-page .srhp-mob-only { display: none !important; }
}

/*
 * Under 1000px: one column, the words over the visual, which takes the rest
 * of the scene. A kit phone needs a box 514px tall to be drawn 240px wide
 * (product-kit.css, "Phone floor"), so the words over a phone stay under
 * about 150px: the eyebrow and heading in the first scene, the lede in the
 * second (.srhp-grid--mob: body over visual).
 */
@media (max-width: 999px) {
  .srhp-grid {
    column-gap: 16px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: "head" "body" "visual";
  }

  .srhp-visual { margin-top: 10px; }

  .srhp-grid--mob {
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "body" "visual";
  }

  .srk-page.srhp-root .srhp-grid--mob .srhp-body > :first-child { margin-top: 0; }
  .srk-page.srhp-root .srhp-grid--mob .srk-actions { margin-top: 14px; }
}

/* ---------------------------------------------------------------- Type */

.srk-page.srhp-root .srk-scene h1,
.srk-page.srhp-root .srk-scene h2 {
  font-family: "Inter Tight", var(--font-sans, system-ui), sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  padding-bottom: 0.04em;
  margin: 0;
}

.srk-page.srhp-root .srk-scene h1 { font-size: var(--srhp-h1); font-weight: 700; }
.srk-page.srhp-root .srk-scene h2 { font-size: var(--srhp-h2); font-weight: 700; }

/* The eyebrows are whole sentences here, so they read as a line, not a label. */
.srk-page.srhp-root .srk-eyebrow {
  font-size: var(--srhp-eyebrow);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--srhp-pink);
  margin: 0 0 0.6em;
}

.srk-page.srhp-root .srk-scene p {
  font-size: var(--srhp-body);
  line-height: 1.5;
}

.srk-page.srhp-root .srk-scene .srk-lede {
  font-size: var(--srhp-lede);
  line-height: 1.45;
  color: var(--srh-ink-soft);
  margin: 0.8em 0 0;
  max-width: 34em;
}

/* The hero accent shifts colour the way the pass's foil does: the same five hues as the pass seal
 * (pink, gold, green, cyan, violet), lifted to light tints so the words stay readable on the dark
 * ground, sliding slowly across the letters. Held still for prefers-reduced-motion. */
.srhp-foil-text {
  color: var(--srhp-pink);
  background: linear-gradient(100deg, #ffb3d1 0%, #ffe39a 17%, #b4ffc8 34%, #a6e6ff 51%, #d6b3ff 68%, #ffb3d1 85%, #ffe39a 100%);
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: srhp-foil-shift 9s linear infinite;
}
@keyframes srhp-foil-shift {
  to { background-position: 150% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .srhp-foil-text { animation: none; background-position: 0% 50%; }
}

.srk-page.srhp-root .srk-actions {
  margin-top: clamp(18px, 3vh, 30px);
}

/* Buttons at the card floor: 17px at desktop, 15px on a phone. */
.srk-page.srhp-root .srk-btn {
  font-size: var(--srhp-card);
}

@media (max-width: 699px) {
  .srk-page.srhp-root .srk-btn { padding: 13px 22px; }
}

.srk-page.srhp-root .srk-scene h1,
.srk-page.srhp-root .srk-scene h2,
.srk-page.srhp-root .srk-eyebrow {
  text-wrap: balance;
}

/* ---------------------------------------------------------------- Lockups */

/*
 * THE HUMAN PASS LOGO (fix pass 6, R3): the kit lockup, the ticket mark with
 * "Human Pass" set beside it, printed by the kit (srpk_lockup( 'human-pass' ))
 * at the kit's own sizes (srpk-lockup--hero, --head, --closer, each times its
 * k of 0.938), so its logotype's cap height matches the ShareRing Me
 * lockup on this page. Only the placement is set here: the hero
 * row and the closer's alignment.
 *
 * The hero's first row: the logo and "Launching November", side by side from
 * 700px, under it on a phone. The kit's own space below its hero lockup is
 * the row's.
 */
.srhp-herohead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 2.4vw, 32px);
  margin-bottom: clamp(14px, 2.2vh, 24px);
}

.srk-page .srhp-herohead .srpk-lockup { margin: 0; }

/*
 * Under 1000px the hero's first row is the logo alone ("Launching November"
 * moves to #c-hero-2).
 */
@media (max-width: 999px) {
  .srhp-herohead {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*
 * The house backdrop's faint marks (srh_render_backdrop(): a fixed grid that
 * drifts with the scroll) stay off this page at every width, as on /prove/;
 * the tinted cells stay. Where a mark lands at a stop moves with the scroll
 * and the screen's size, and at 1440 one sat just above the logo in two scene
 * heads and one behind it in the closer: inside the kit's clear space.
 */
.srhp-page .srh-cell-mark { display: none; }

/* "Launching November": the one launch line on the page (SRHP_LAUNCH). */
.srhp-launch {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 143, 192, 0.55);
  background: rgba(255, 143, 192, 0.1);
  color: var(--srhp-pink);
  font-size: var(--srhp-card);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

/*
 * In the hero's second scene (under 1000px) the launch line leads the lede as
 * the scene's eyebrow (fix pass 5): .srk-eyebrow, the page's eyebrow style, so
 * this scene has an eyebrow like every other.
 */
.srk-page.srhp-root .srhp-launch-eyebrow { display: block; }

/* The other products' kit lockups (2026-09-01 horizontals, 100 units tall). */
.srk-page .srhp-kit {
  display: block;
  width: auto;
  max-width: 100%;
}

.srk-page .srhp-kit--head {
  height: var(--srhp-m-head);
  margin-bottom: calc(var(--srhp-m-head) * 0.36);
}

/* ---------------------------------------------------------------- Hero card */

/*
 * The pass card from the promo film (frame t19), cut out along the card's own
 * outline with an alpha edge, so no film ground and no box shows behind it.
 * The glow follows the card's shape (drop-shadow reads the alpha).
 */
.srhp-visual--fit {
  container-type: size;
  display: grid;
  place-items: center;
}

.srk-page .srhp-card {
  display: block;
  width: auto;
  height: auto;
  max-width: 100cqw;
  max-height: min(100cqh, 640px);
  filter: drop-shadow(0 30px 60px rgba(255, 95, 168, 0.2));
}

/* ---------------------------------------------------------------- Phones */

/*
 * Tim's official screens, each WHOLE in the KIT phone (fix pass 4): one
 * srpk_phone() per scene, fitted into its .srpk-fit box (.srhp-phonebox, also
 * the .srpk-root wrapper that brings the kit's phone frame and variables and
 * nothing else). The kit fits the phone to the box's width and height and
 * draws it at 240px or wider under 1000px and 150px or wider from 1000px, or
 * not at all; the box is the scene's whole visual area, so it is 514px tall
 * or more at 390x844 (measured in the notes). From 1000px the box is the
 * right-hand column, the full height of the scene.
 */
.srhp-phonebox {
  align-self: stretch;
  justify-self: stretch;
}

/*
 * R2 (fix pass 6): every phone on this page is the REFERENCE kit phone,
 * scene-kit's .srk-phone: 12px padding and a 1px rule around a 760/1744
 * screen, a 38px corner and the screen's 26px corner (concentric). The
 * product kit draws its phones with a slimmer bezel (7px, 4px under 700px),
 * which the fix pass 6 check (chev6.js, PHONE-RATIO) reads as 2 to 4 per cent
 * off the reference frame. The kit's own padding token is set, so the kit's
 * fit formula and floor use the same number; the frame keeps the kit's rule,
 * ground and shadow.
 */
.srhp-root .srpk-root { --srpk-ph-pad: 12px; }
/* Retired 20 Oct 2026: the kit phone's frame. Every phone here is the DigitalMe phone (product-kit.css, "The phone: DigitalMe's"). */

/* Under 1000px the phone sits right under the words. */
@media (max-width: 999px) {
  .srhp-phonebox { align-items: flex-start; }
}

/* ---------------------------------------------------------------- Browser */

/*
 * Scene 5 (fix pass 6): the developers page alone in a browser frame, as
 * large as its scene allows, so its text reads at 12px or more (Rohan: the
 * screens were too small). The box (srhp_browser()) is the scene's visual
 * area and a size container; the frame takes the largest size at which the
 * WHOLE capture fits it, by width and by height: width = min(box width,
 * (box height - the bar - its rule) x --srhp-r), --srhp-r being the
 * capture's width per unit tall. From 1000px the copy column is narrower
 * (1 : 2.12), so at 1440x900 the frame is about 850px wide and the capture
 * (a 960px window) draws at about 0.88 of its size: body text about 16px,
 * the menu and buttons 12 to 13px. Under 1000px the capture is a 400px
 * window, drawn at 0.875 or more on a 390px screen.
 */
.srhp-browserbox {
  --srhp-bar-h: 22px;
  container-type: size;
  min-width: 0;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
}

@media (min-width: 1000px) {
  .srhp-browserbox { --srhp-bar-h: 28px; }
  .srhp-grid--devices { grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); }

  /* This one scene may use more of a wide screen than the kit's 1180px
     measure: at 1440 the frame is then about 850px wide, which is what puts
     the capture's smallest page text (its 14px menu, eyebrow and buttons) at
     12px or more. */
  .srk-page.srhp-root .srhp-sites > .srk-scene-inner { max-width: 1320px; }
}

@media (max-width: 999px) {
  .srhp-browserbox { align-items: flex-start; }
}

.srhp-browser {
  flex: 0 0 auto;
  width: min(100cqw, calc((100cqh - var(--srhp-bar-h) - 3px) * var(--srhp-r, 1.333)));
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b14;
  border: 1px solid rgba(234, 240, 255, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

@media (max-width: 699px) {
  .srhp-browser { border-radius: 10px; }
}

.srhp-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--srhp-bar-h);
  padding: 0 10px;
  background: #1a1b2b;
  border-bottom: 1px solid rgba(234, 240, 255, 0.12);
}

.srhp-browser-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(234, 240, 255, 0.28);
}

/* The address bar, as a shape only: no text to fall under the type floor. */
.srhp-browser-bar span {
  flex: 0 1 46%;
  height: 52%;
  margin-left: 10px;
  border-radius: 999px;
  background: rgba(234, 240, 255, 0.1);
}

.srk-page .srhp-browser img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

/* ---------------------------------------------------------------- Photos */

/*
 * A photograph, WHOLE (fix pass 4). Each file is cut to the shape it is shown
 * at (4:5 for the crowd and the hero's person, 3:2 for the closer), and the
 * frame is a size container the image fits into by both width and height, so
 * nothing is cropped on the page and no head is cut. The rounded corners and
 * the shadow are on the image itself.
 */
.srhp-pic {
  container-type: size;
  display: grid;
  place-items: center;
}

.srk-page .srhp-pic-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100cqw;
  max-height: 100cqh;
  border-radius: clamp(16px, 2vw, 28px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* ---------------------------------------------------------------- Scene 4 */

/*
 * The back of the pass (fix pass 6: its QR the shared fake one, which decodes
 * to https://sharering.network/) in the kit phone, alone in the visual from
 * 1000px (Slack sweep B2: the lockup and the line beside it are gone; the
 * .srhp-cycle-link rules below are no longer drawn). The phone's box is as
 * tall as the visual area and as wide as a whole phone of that height (the
 * DigitalMe phone, 2.174 times as tall as it is wide, since 20 Oct 2026), so
 * the kit fits the phone by its height, the same size as the page's other
 * phones at 1440x900.
 * Under 1000px the same back of the pass is the scene's one phone.
 */
.srhp-cycle {
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.srhp-cycle > .srhp-cycle-phone {
  flex: 0 0 auto;
  height: 100%;
  width: min(49cqw, calc(100cqh * 0.45998));
}

.srhp-cycle-end { flex: 0 0 auto; display: grid; place-items: center; }

.srk-page .srhp-kit--cycle {
  height: clamp(28px, 7cqw, 56px);
}

.srhp-cycle-link {
  position: relative;
  flex: 0 0 auto;
  height: 2px;
  width: clamp(28px, 10cqw, 110px);
  margin: 0 clamp(10px, 2.4cqw, 20px);
  background: linear-gradient(90deg, var(--srhp-pink), rgba(234, 240, 255, 0.55));
  border-radius: 2px;
}

.srhp-cycle-link::before,
.srhp-cycle-link::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
}

.srhp-cycle-link::before { left: -5px; background: var(--srhp-pink); }
.srhp-cycle-link::after { right: -5px; }

.srhp-cycle-link > span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 25%, rgba(255, 143, 192, 0.7) 45%, rgba(255, 143, 192, 0) 70%);
  animation: srhp-pulse 3.2s ease-in-out infinite alternate;
}

@keyframes srhp-pulse {
  from { left: 0; }
  to { left: 100%; }
}

/* ---------------------------------------------------------------- Get your pass */

/*
 * The button turns into the two official badges in its own place, so
 * nothing covers the page and nothing runs off the screen. The button and the
 * badges share one grid cell and only their visibility swaps, so the cell is
 * always the size of the larger of the two: the space is reserved from the
 * first paint and nothing around it moves when the badges appear.
 */
.srhp-get {
  display: inline-grid;
  max-width: 100%;
}

.srhp-get > .srhp-get-btn,
.srhp-get > .srhp-get-badges {
  grid-area: 1 / 1;
}

.srhp-get > .srhp-get-btn {
  justify-self: start;
  align-self: start;
}

/* "Get your pass" wears the pass foil too: the same light hues as the hero words, sliding slowly,
 * with dark ink for contrast and no outline. Held still for prefers-reduced-motion. */
.srk-page.srhp-root .srhp-get > .srk-btn.srhp-get-btn {
  color: var(--srhp-ink-on-foil);
  border: 0;
  background: linear-gradient(100deg, #ffb3d1 0%, #ffe39a 17%, #b4ffc8 34%, #a6e6ff 51%, #d6b3ff 68%, #ffb3d1 85%, #ffe39a 100%);
  background-size: 300% 100%;
  background-position: 0% 50%;
  box-shadow: 0 8px 26px rgba(255, 143, 192, 0.22);
  animation: srhp-foil-shift 9s linear infinite;
}
.srk-page.srhp-root .srhp-get > .srk-btn.srhp-get-btn:hover {
  box-shadow: 0 10px 32px rgba(214, 179, 255, 0.35);
}
.srk-page.srhp-root .srhp-get > .srk-btn.srhp-get-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .srk-page.srhp-root .srhp-get > .srk-btn.srhp-get-btn { animation: none; }
}

.srhp-get-badges {
  display: flex;
  visibility: hidden;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.srhp-get.is-open .srhp-get-btn { visibility: hidden; }
.srhp-get.is-open .srhp-get-badges { visibility: visible; }

.srhp-get-badges a {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
}

.srhp-get-badges a:focus-visible {
  outline: 2px solid var(--srhp-pink);
  outline-offset: 3px;
}

.srk-page .srhp-badge {
  display: block;
  height: 48px;
  width: auto;
}

@media (max-width: 699px) {
  .srk-page .srhp-badge { height: 44px; }
}

.srhp-get--closer .srhp-get-badges { justify-content: center; }
.srhp-get--closer > .srhp-get-btn { justify-self: center; }

.srhp-film-btn svg { margin-left: -2px; }

/* ---------------------------------------------------------------- Closer */

/*
 * The closing band (fix pass 4): its own photograph, WHOLE in a frame, never
 * behind the words. From 1000px the photo is on the left and the words on
 * the right; under 1000px the photo is over the words, which are centred.
 */
.srhp-grid--closer {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "visual head";
  align-items: center;
}

/* The photo's frame is a size container: it takes the whole row. */
.srhp-grid--closer > .srhp-visual { align-self: stretch; }

.srk-page.srhp-root .srhp-closer h2 {
  font-size: clamp(34px, 4.2vw, 60px);
}

/*
 * From 1000px the closer's words sit left beside the photo: so does its
 * lockup. Fix round (8 Oct 2026): the R3 lockup is 46px tall where the
 * retired card was 108px, which left the closer 136px of empty band above and
 * below its content at 1440x900. The block now fills the scene: a 1320px
 * measure (as the sites scene) and the photo's column 1.6 times the words',
 * so the photo is about 770x515 there (was 558x372) and the words are set
 * beside it, centred.
 */
@media (min-width: 1000px) {
  .srk-page.srhp-root .srhp-closer > .srk-scene-inner { max-width: 1320px; }
  .srhp-grid--closer { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

  .srk-page .srhp-closer .srpk-lockup--closer {
    margin: 0 0 clamp(16px, 2.6vh, 28px);
    object-position: left center;
  }
}

.srhp-closer-actions { justify-content: flex-start; }
.srhp-closer .srhp-get--closer .srhp-get-badges { justify-content: flex-start; }
.srhp-closer .srhp-get--closer > .srhp-get-btn { justify-self: start; }

@media (max-width: 999px) {
  .srhp-grid--closer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "visual" "head";
  }

  .srhp-grid--closer .srhp-visual { margin: 0 0 35px; }
  .srhp-closer-copy { text-align: center; }
  .srk-page .srhp-closer-copy p { margin-inline: auto; }
  .srhp-closer-actions { justify-content: center; }
  .srhp-closer .srhp-get--closer .srhp-get-badges { justify-content: center; }
  .srhp-closer .srhp-get--closer > .srhp-get-btn { justify-self: center; }
  .srk-page.srhp-root .srhp-closer .srk-actions { margin-top: 14px; }

  /*
   * THE CLOSER'S BUTTON NEVER WAITS ON THE REVEAL (auto chain, 8 Oct 2026).
   * Under 1000px "Get your pass" is the last line of the closer, 736 to 784px
   * down a 390x844 screen at its chevron stop. The kit's reveal observer
   * (scene-kit.js) leaves the bottom 12% of the screen out (742.7px there) and
   * a waiting reveal sits 18px lower again, so the button never reached it:
   * it stayed at opacity 0 and the page's last scene ended in an empty band.
   * Here it is simply drawn, at any screen height; the photo, logo, heading
   * and lede above it still fade in. From 1000px the words are centred beside
   * the photo, well clear of that band, and keep their reveal.
   */
  .js .srk-page.srhp-root .srhp-closer-actions.srk-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------- Film */

.srhp-film {
  width: min(1100px, 92vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #000;
  overflow: visible;
}

.srhp-film::backdrop { background: rgba(5, 6, 16, 0.86); }

.srhp-film video {
  display: block;
  width: 100%;
  max-height: 88vh;
  border-radius: 18px;
}

.srhp-page .srhp-film .srhp-film-close {
  position: absolute;
  padding: 0;
  box-shadow: none;
  top: -52px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ---------------------------------------------------------------- Motion */

@media (prefers-reduced-motion: reduce) {
  .srhp-cycle-link > span {
    animation: none;
  }
  .srhp-cycle-link > span { top: 50%; }
}

/* ---------------------------------------------------------------- Scene pairs */

/*
 * EVERY PHONE SCENE SELLS ITS PHONE (fix pass 4, check rows 1 to 4; fix pass
 * 5; fix pass 6). Under 1000px the phone and browser scenes (.srhp-pair:
 * c-one, c-nothing, c-nothing-2, c-revoke, c-revoke-2, c-sites, c-sites-2)
 * carry their words at 17px (.srhp-line, the phone body floor), each an
 * eyebrow or a heading, a line and ONE whole visual. Fix pass 6: the phones
 * are whole kit phones (12px bezel, a 760/1744 screen; 240px wide is 517px
 * tall), so each block whose words did not fit over one is two scenes. The
 * room at 390x844: these scenes start 31px under the header (the up
 * chevron's glyph ends 24px under it) and stop 52px off the bottom (the down
 * chevron's glyph starts about 13px below that), and the gaps are 6 to 8px.
 * Every phone stays 240px or wider (measured in the notes: 241 to 274px).
 */
@media (max-width: 999px) {
  .srk-page.srhp-root.srk-flow .srk-scene.srhp-pair {
    --srhp-top: 31px;
    --srhp-gutter: 52px;
    --srhp-avail: calc(var(--vph, 100dvh) - var(--srk-header-h, 73px) - var(--srhp-top) - var(--srhp-gutter));
  }

  .srk-page.srhp-root .srhp-pair .srk-eyebrow { margin-bottom: 6px; }

  .srk-page.srhp-root .srk-scene .srk-lede.srhp-line {
    font-size: 17px;
    line-height: 1.4;
    margin-top: 8px;
  }

  .srhp-pair .srhp-visual { margin-top: 8px; }

  /* "Talk to us" under the sites lede: the gap the second scenes used. */
  .srk-page.srhp-root .srhp-pair .srk-actions { margin-top: 14px; }
}

/*
 * FIX ROUND (8 Oct 2026): under 1000px the revocation block is ONE scene
 * again (its eyebrow, heading and whole lede over a whole kit phone), so the
 * phone scenes in a row are three, not four. On a phone that leaves the
 * phone's box 507.7px tall where a whole 240px kit phone needs 519.1px (the
 * kit hides it under 514px), so this scene alone gives back 14px: 28px under
 * the header (the up chevron's glyph ends 24px under it), 48px off the bottom
 * (the down chevron's glyph starts about 39px off it), and 1 to 3px off its
 * inner gaps and its heading's line height. Its phone is then 241px or wider.
 */
@media (max-width: 699px) {
  .srk-page.srhp-root.srk-flow .srk-scene.srhp-revoke {
    --srhp-top: 28px;
    --srhp-gutter: 48px;
  }

  .srk-page.srhp-root .srhp-revoke .srk-eyebrow { margin-bottom: 5px; }
  .srk-page.srhp-root .srhp-revoke h2 { line-height: 1.08; }
  .srk-page.srhp-root .srk-scene.srhp-revoke .srk-lede.srhp-line { margin-top: 6px; }
  .srhp-revoke .srhp-visual { margin-top: 5px; }
}

/*
 * THE LIVE PASS (fix pass 6 addendum, 8 Oct 2026): Rohan's animated example
 * Human Pass (human-pass-example.js) in the hero, where the card image was,
 * the same size: 5:8, as tall as the visual area allows up to 640px (400x640
 * at 1440x900, about 288x460 at 390x844). The page sets the host's box, so its
 * height is reserved before the script draws (no layout shift); the script's
 * own :host rules (320px wide, 24px margins) lose to these. The static card
 * image inside is the fallback (no script, reduced motion): the card itself
 * spans the host (the file carries 51px of transparent ground each side, so
 * it is drawn 644/542 of the host's width and centred). Slack sweep B2: the
 * fallback is now the example card itself, 542x868, the host's own 5:8, so
 * it sits at the top of the host (the film's card was 846 tall: 1.22% down).
 */
.srk-page .srhp-livepass {
  display: block;
  position: relative;
  width: min(100cqw, calc(min(100cqh, 640px) * 0.625));
  max-width: none;
  aspect-ratio: 5 / 8;
  margin: 0;
  border-radius: 6.5% / 4%;
}

.srk-page .srhp-livepass > .srhp-card {
  position: absolute;
  left: -9.41%;
  top: 0;
  width: 118.82%;
  max-width: none;
  max-height: none;
  height: auto;
}

.srk-page .srhp-livepass[role="button"] { cursor: pointer; }

.srk-page .srhp-livepass:focus { outline: none; }

.srk-page .srhp-livepass:focus-visible {
  outline: 3px solid var(--srhp-pink);
  outline-offset: 6px;
}

/* The film player: the vertical cut on a phone held upright. */
.srhp-film.is-tall { width: min(420px, 92vw); }

/*
 * "Watch the film" beside "Get your pass" (fix pass 6 addendum). The get
 * widget reserves the two badges' width from the first paint, which left the
 * film button about 155px from "Get your pass" at 1440. In the hero, with
 * script, the widget is the size of what it shows: the button, then (after
 * the press) the badges in its place, the film button moving along after
 * them (a shift after the visitor's own press, so not a layout shift). The
 * closer keeps its reserved space. Without script the template's noscript
 * rule shows the badges in the button's place, as before.
 */
.srhp-actions .srhp-get--hero:not(.is-open) > .srhp-get-badges { display: none; }
.srhp-actions .srhp-get--hero.is-open > .srhp-get-btn { display: none; }
.srk-page.srhp-root .srhp-actions { flex-wrap: wrap; gap: 12px 14px; }

/* Launched: the hero opens on the problem, set larger than the page's other eyebrows. */
.srk-page.srhp-root .srk-eyebrow.srhp-hero-kicker {
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.45em;
}

/*
 * ONE PHONE SIZE (Rohan, 16 Nov 2026: "Make all phones the same size, as large as normal on all our pages
 * for products"). The kit fits each phone to its scene box, so the size wandered scene to scene (240 to
 * 309px). Every phone here now takes one width, matched to ShareProtect's 319px on a desktop, capped by the
 * viewport height so a short laptop screen still shows it whole, and one width on a phone.
 */
.srhp-root { --srhp-phone-w: min(272px, 72vw); }
@media (min-width: 1000px) {
  .srhp-root { --srhp-phone-w: min(320px, calc((100svh - 150px) * 0.458)); }
}
.srk-page.srhp-root .srpk-fit > .srk-phone.srpk-phone.srpk-dm,
.srk-page.srhp-root .srpk-fit > .srk-phone.srpk-phone {
  width: var(--srhp-phone-w);
  min-width: 0;
}

/* Under 1000px the phone keeps its one size and its scene grows to hold it, rather than the phone
 * shrinking to whatever room the words leave. */
@media (max-width: 999px) {
  .srk-page.srhp-root .srhp-phonebox.srpk-fit { container-type: normal; height: auto; min-height: 0; flex: none; }
  .srk-page.srhp-root .srk-scene:has(.srhp-phonebox) { height: auto; min-height: var(--vph, 100dvh); }
  .srk-page.srhp-root .srk-scene:has(.srhp-phonebox) .srhp-grid { height: auto; min-height: var(--srhp-avail); }
}

/* Scene transitions (16 Nov 2026), matching the other product pages: ShareProtect's hero (the device slides in as the
 * words rise) and Prove's device sets (phones arrive from their side on --srk-spring). Additive only: the start states
 * sit under .js and motion-allowed, so with scripting off or reduced motion every scene is drawn finished. The words
 * keep the kit's own .srk-reveal rise, which already staggers by position. */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: the live pass slides in from the right on load, then settles; transform and opacity only. */
  .js .srk-page.srhp-root .srhp-hero .srhp-livepass {
    animation: srhp-pass-in 1200ms var(--srk-ease) 250ms both;
  }

  /* Phones and the browser: in from the right on desktop, up from below on a phone, on the kit spring. */
  .js .srk-page.srhp-root .srhp-phonebox > .srk-phone.srk-reveal,
  .js .srk-page.srhp-root .srhp-browser.srk-reveal {
    transform: translateX(110px);
    transition: transform 900ms var(--srk-spring), opacity 520ms var(--srk-ease);
    transition-delay: 160ms;
  }

  /* Photos open out from a smaller frame and settle, like a lens pulling focus. */
  .js .srk-page.srhp-root .srhp-pic.srk-reveal { transform: none; }
  .js .srk-page.srhp-root .srhp-pic.srk-reveal .srhp-pic-img {
    clip-path: inset(9% 9% 9% 9% round clamp(16px, 2vw, 28px));
    transform: scale(1.06);
    transition: clip-path 1300ms var(--srk-ease) 120ms, transform 1800ms var(--srk-ease) 120ms;
  }

  .js .srk-page.srhp-root .srhp-pic.srk-reveal.is-in .srhp-pic-img {
    clip-path: inset(0 0 0 0 round clamp(16px, 2vw, 28px));
    transform: none;
  }

  .js .srk-page.srhp-root .srhp-phonebox > .srk-phone.srk-reveal.is-in,
  .js .srk-page.srhp-root .srhp-browser.srk-reveal.is-in { transform: none; }

  @media (max-width: 999px) {
    .js .srk-page.srhp-root .srhp-phonebox > .srk-phone.srk-reveal,
    .js .srk-page.srhp-root .srhp-browser.srk-reveal { transform: translateY(70px); }
    .js .srk-page.srhp-root .srhp-hero .srhp-livepass { animation-name: srhp-pass-up; }
  }
}

@keyframes srhp-pass-in {
  from { opacity: 0; transform: translateX(80px) rotate(2.5deg); }
  to { opacity: 1; transform: none; }
}

@keyframes srhp-pass-up {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: none; }
}
