/* ABOUTME: Styles for the public landing page at the site root
   ABOUTME: The header-video backdrop and floating objects, the beta signup form, the hero links, and the FAQ dialog */

/* ============ Supreme LL ============
   Same weight mapping the admin uses (admin.css): Book = 400, Jumbo = 900. Served from
   public/fonts rather than inlined as base64 so the files are cached across page loads. */
@font-face {
  font-family: 'Supreme LL';
  src: url(/fonts/SupremeLL-Book.otf) format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Supreme LL';
  src: url(/fonts/SupremeLL-Jumbo.otf) format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============ tokens ============ */
/* Typed so the liquid glass rim and sheen angles animate (homepage foot). */
@property --glass-angle-1{syntax:"<angle>";inherits:false;initial-value:-75deg}
@property --glass-angle-2{syntax:"<angle>";inherits:false;initial-value:-45deg}
:root{
  --ink:#1a1a1e;
  --ink-soft:rgba(26,26,30,.62);
  --ink-faint:rgba(26,26,30,.4);
  --brand:#B338C3;
  --brand-dark:#9C27AB;
  --glass-hi:rgba(255,255,255,.66);
  --glass-lo:rgba(255,255,255,.38);
  --glass-edge:rgba(255,255,255,.7);
  --shadow-soft:0 12px 32px rgba(30,30,36,.14);
  --ease-out:cubic-bezier(0.23,1,0.32,1);
  --ease-in-out:cubic-bezier(0.77,0,0.175,1);
  --glass-hover-time:400ms;
  --glass-hover-ease:cubic-bezier(0.25,1,0.5,1);
  --runway:0px; /* phones only — see the scroll runway note in landing.js */
  --bleed:0px;  /* phones only — in-document height below the hero, see body::after */
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:'Supreme LL',-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",system-ui,Roboto,sans-serif;
  font-weight:400;
  color:var(--ink);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;

  /* The floor: the app's ShinyBackgroundView gray (HSB .60/.03/.75), as the App Store header
     video paints it. It's the body color rather than part of .backdrop so it reaches the canvas
     — the only thing Safari paints behind the status bar at scrollY 0 (see the runway note in
     landing.js; the fixed objects ride the same compositing once the scroll is parked). */
  background-color:#babcbf;
}
/* ============ the backdrop ============
   The header video's diffuse spot over that floor, up and left of the wordmark: a screen blend
   of exp(-d^3.75) × .75 white, which is the same thing as white at that alpha, sampled every
   eighth of the radius. The radius is .38 of the basis landing.js sizes everything by (--basis,
   written on resize; the fallback here is its landscape value). Fixed, so it holds still under
   the runway's scroll park. */
.backdrop{
  position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:radial-gradient(circle calc(.38 * var(--basis, min(100vh, 50vw))) at 25% 20%,
    rgba(255,255,255,.75) 0%,
    rgba(255,255,255,.7497) 12.5%,
    rgba(255,255,255,.7459) 25%,
    rgba(255,255,255,.7313) 37.5%,
    rgba(255,255,255,.6963) 50%,
    rgba(255,255,255,.6317) 62.5%,
    rgba(255,255,255,.5338) 75%,
    rgba(255,255,255,.4091) 87.5%,
    rgba(255,255,255,.2759) 100%,
    rgba(255,255,255,.1583) 112.5%,
    rgba(255,255,255,.0745) 125%,
    rgba(255,255,255,.0276) 137.5%,
    rgba(255,255,255,.0077) 150%,
    rgba(255,255,255,.0016) 162.5%,
    rgba(255,255,255,0) 175%);
}

/* ============ the floating objects ============
   Created, sized, filtered and animated by landing.js (a port of the iOS header video). Each
   sits at the viewport origin and is placed entirely by its transform; `translate` is left
   free for the pointer parallax. No drop shadow: the video has none, and nine of these carry a
   live blur already. The surfacing pufferfish lifts above the wordmark (z-index 1) and stays
   under the form and links (z-index 2) so it rises behind them, over the title. */
.float-obj{
  position:fixed;left:0;top:0;z-index:-1;
  max-width:none;pointer-events:none;will-change:transform;
}
/* Transparent until landing.js marks the still decoded, then a slow fade up, so objects
   arrive softly rather than popping in. The loop swap later reuses the element and so doesn't
   fade again. */
.float-obj{opacity:0;transition:opacity 2000ms var(--ease-out)}
.float-obj.is-loaded{opacity:1}
/* The loops are <video>s sized to their crop exactly. iOS paints a play button over a video
   whose autoplay it refused (Low Power Mode); the poster should just stand in silently. */
video.float-obj{object-fit:fill}
video.float-obj::-webkit-media-controls-start-playback-button{display:none !important;-webkit-appearance:none}
video.float-obj::-webkit-media-controls{display:none !important}
.float-obj.is-surfacing{z-index:1}
.signup,.hero-foot,.store-badge{z-index:2}
.signup{position:relative}
/* The runway itself: an empty strip above the hero for landing.js to park the scroll past.
   Zero-height above the phone breakpoint. */
body::before{content:"";display:block;height:var(--runway)}
/* The runway's bottom twin, and the bottom toolbar's price of admission: Safari 26 composites
   page pixels through the toolbar's glass only while the scroll rests BELOW its maximum —
   parked at maxScroll the bar paints flat root color and hard-cuts the page at its top edge
   (verified empirically, 2026-08). This strip of real document below the hero keeps the park
   mid-range. The mandatory snap keeps it unreachable as a resting position, same as the runway
   above. */
body::after{content:"";display:block;height:var(--bleed)}
img{display:block;max-width:100%;-webkit-user-drag:none;user-select:none}
a{color:inherit}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:6px}

/* ============ hero ============ */
.hero{
  /* Positioned for .hero-foot, which anchors to its floor. */
  position:relative;
  /* The body::before runway above this box gives the page a scroll range of exactly the offset
     landing.js parks it at, so Safari 26 keeps painting the corner object behind the status bar
     (see the note on body). dvh rather than svh so that range survives the chrome collapsing —
     with a static unit the taller viewport would swallow it and clamp the scroll back to 0. */
  min-height:100dvh;
  display:flex;align-items:center;justify-content:center;
  /* The layout asks for viewport-fit=cover so the background reaches the screen edges, which
     means the notch and the home indicator are ours to avoid. Held in variables so a breakpoint
     can restate the padding without having to restate the insets with it. */
  --pad-t:80px; --pad-x:24px; --pad-b:200px;
  padding:
    calc(var(--pad-t) + env(safe-area-inset-top))
    calc(var(--pad-x) + env(safe-area-inset-right))
    calc(var(--pad-b) + env(safe-area-inset-bottom))
    calc(var(--pad-x) + env(safe-area-inset-left));
}
/* No width cap here: at desktop sizes the wordmark outgrows any fixed cap, and centered
   inline content that overflows its block spills out the END edge only (right, in LTR) —
   which shoved the title off the form's axis. The children cap their own widths instead. */
.hero-copy{position:relative;text-align:center}
/* The two hero type roles are classes, not `.hero h1`, so the style guide can set them
   outside the hero. No text-shadow on the wordmark — the in-app title renders flat, and this
   matches it. */
.wordmark{
  font-size:clamp(64px, 12.5vw, 168px);
  font-weight:900;line-height:.96;letter-spacing:.01em;
  color:#fff;
  margin-bottom:14px;
}
.tagline{
  font-size:clamp(17px,2.4vw,21px);color:var(--ink-soft);
  margin:0 auto 36px;text-wrap:balance;
}

/* ============ store badge ============
   Apple's badge artwork as shipped (black on white, 575×192 @3x). Above the guidelines'
   44px minimum, scaling with the viewport to sit in proportion to the wordmark. */
.store-badge{position:relative;display:inline-block;margin-top:12px;border-radius:12px;transition:transform 150ms ease}
.store-badge img{height:clamp(52px, 5.5vw, 72px);width:auto}
.store-badge:hover{transform:scale(1.03)}
.store-badge:active{transform:scale(.97)}

/* ============ hero foot ============
   The form and the links, pinned to the hero's floor. --pad-b reserves the group's height so
   the centered wordmark can't collide with it on short screens. */
.hero-foot{
  position:absolute;left:var(--pad-x);right:var(--pad-x);
  bottom:calc(30px + env(safe-area-inset-bottom));
  text-align:center;
}
.hero-foot .signup{margin-bottom:10px}

/* ============ hero links ============ */
.hero-links{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}
.hero-link{
  text-decoration:none;font-size:12px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;
  color:var(--brand);
  padding:8px 12px;border-radius:999px;
  transition:color 150ms ease, background-color 150ms ease;
}
.hero-link:hover{color:var(--brand-dark);background:rgba(255,255,255,.55)}

/* The homepage foot sits over the floating objects, not bare chrome, so it takes a clearer
   liquid glass than .glass and white type: the objects read through the row instead of
   whiting out under it. /beta's form keeps the frosted .glass. */
.hero-foot .signup-row{
  --border-width:clamp(1px, .0625em, 4px);
  position:relative;
  background:linear-gradient(-75deg,rgba(255,255,255,.38),rgba(255,255,255,.58),rgba(255,255,255,.38));
  -webkit-backdrop-filter:blur(12px) saturate(140%);
  backdrop-filter:blur(12px) saturate(140%);
  border:0;
  box-shadow:
    inset 0 .125em .125em rgba(0,0,0,.05),
    inset 0 -.125em .125em rgba(255,255,255,.5),
    0 .25em .125em -.125em rgba(0,0,0,.08),
    0 0 .1em .25em inset rgba(255,255,255,.2);
  transition:box-shadow var(--glass-hover-time) var(--glass-hover-ease);
}
/* The rim: a conic band of shade around a half-white stroke, masked to a ring. Hovering or
   focusing the row turns the band, as light would slide around the edge. */
.hero-foot .signup-row::after{
  content:"";position:absolute;z-index:1;pointer-events:none;
  top:calc(var(--border-width) / -2);left:calc(var(--border-width) / -2);
  width:calc(100% + var(--border-width));height:calc(100% + var(--border-width));
  padding:var(--border-width);box-sizing:border-box;border-radius:999px;
  background:
    conic-gradient(from var(--glass-angle-1) at 50% 50%,
      rgba(0,0,0,.5), rgba(0,0,0,0) 5% 40%, rgba(0,0,0,.5) 50%, rgba(0,0,0,0) 60% 95%, rgba(0,0,0,.5)),
    linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.5));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite:exclude;
  box-shadow:inset 0 0 0 calc(var(--border-width) / 2) rgba(255,255,255,.5);
  transition:--glass-angle-1 500ms ease;
}
/* The sheen: a diagonal band of light screened over the pane, sliding on hover. */
.hero-foot .signup-row::before{
  content:"";position:absolute;z-index:3;pointer-events:none;
  inset:calc(var(--border-width) / 2);border-radius:999px;
  background:linear-gradient(var(--glass-angle-2),
    rgba(255,255,255,0) 0%, rgba(255,255,255,.125) 40% 50%, rgba(255,255,255,0) 55%);
  background-size:200% 200%;background-position:0% 50%;background-repeat:no-repeat;
  mix-blend-mode:screen;
  transition:
    background-position calc(var(--glass-hover-time) * 1.25) var(--glass-hover-ease),
    --glass-angle-2 calc(var(--glass-hover-time) * 1.25) var(--glass-hover-ease);
}
.hero-foot .signup-row > *{position:relative;z-index:2}
@media (hover:hover){
  .hero-foot .signup-row:hover::after{--glass-angle-1:-125deg}
  .hero-foot .signup-row:hover::before{background-position:25% 50%}
}
.hero-foot .signup-row:focus-within::after{--glass-angle-1:-125deg}
.hero-foot .signup-row:focus-within::before{background-position:25% 50%}
/* The drop shadow under the pane: a blurred ring, offset down, that tightens on hover. Only
   the homepage foot draws it; the shared form hides it everywhere else. */
.signup-shadow{display:none}
.hero-foot .signup-row > .signup-shadow{
  --cutoff-fix:2em;
  display:block;position:absolute;z-index:0;pointer-events:none;
  width:calc(100% + var(--cutoff-fix));height:calc(100% + var(--cutoff-fix));
  top:calc(var(--cutoff-fix) / -2);left:calc(var(--cutoff-fix) / -2);
  filter:blur(clamp(2px, .125em, 12px));
  transition:filter var(--glass-hover-time) var(--glass-hover-ease);
}
.hero-foot .signup-shadow::after{
  content:"";position:absolute;border-radius:999px;
  width:calc(100% - var(--cutoff-fix) - .25em);height:calc(100% - var(--cutoff-fix) - .25em);
  top:calc(var(--cutoff-fix) - .5em);left:calc(var(--cutoff-fix) - .875em);
  padding:.125em;box-sizing:border-box;
  background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.04));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite:exclude;
  transition:top var(--glass-hover-time) var(--glass-hover-ease);
}
@media (hover:hover){
  .hero-foot .signup-row:hover > .signup-shadow{filter:blur(clamp(2px, .0625em, 6px))}
  .hero-foot .signup-row:hover > .signup-shadow::after{top:calc(var(--cutoff-fix) - .875em)}
}
.hero-foot .signup-row:focus-within > .signup-shadow{filter:blur(clamp(2px, .0625em, 6px))}
.hero-foot .signup-row:focus-within > .signup-shadow::after{top:calc(var(--cutoff-fix) - .875em)}
/* Tighter than /beta's row: about three quarters of its height. */
.hero-foot .signup-row{padding:4px}
.hero-foot .signup input{padding-top:6px;padding-bottom:6px}
.hero-foot .signup input{color:#fff;font-size:17px;text-shadow:0 1px 2px rgba(0,0,0,.2)}
.hero-foot .signup input::placeholder{color:rgba(255,255,255,.85)}
.hero-foot .signup .go{
  padding:8px 24px;font-size:16px;
  --border-width:clamp(1px, .0625em, 4px);
  background:linear-gradient(180deg,#D652FF,#B41FF5);
  -webkit-backdrop-filter:blur(clamp(1px, .125em, 4px));
  backdrop-filter:blur(clamp(1px, .125em, 4px));
  text-shadow:0 .125em .05em rgba(0,0,0,.15);
  box-shadow:
    inset 0 .125em .125em rgba(0,0,0,.05),
    inset 0 -.125em .125em rgba(255,255,255,.4),
    0 .25em .125em -.125em rgba(0,0,0,.25),
    0 0 .1em .25em inset rgba(255,255,255,.15),
    0 0 14px rgba(190,60,255,.45);
  transition:
    transform var(--glass-hover-time) var(--glass-hover-ease),
    box-shadow var(--glass-hover-time) var(--glass-hover-ease);
}
/* Outranks the base .signup .go:hover flat fill, so hover deepens the glass instead. */
.hero-foot .signup .go:hover{
  background:linear-gradient(180deg,#C83CF5,#A010E0);
}
/* The button's own rim and sheen, the same treatment as the row's at button scale. */
.hero-foot .signup .go::after{
  content:"";position:absolute;pointer-events:none;
  top:calc(var(--border-width) / -2);left:calc(var(--border-width) / -2);
  width:calc(100% + var(--border-width));height:calc(100% + var(--border-width));
  padding:var(--border-width);box-sizing:border-box;border-radius:999px;
  background:
    conic-gradient(from var(--glass-angle-1) at 50% 50%,
      rgba(0,0,0,.5), rgba(0,0,0,0) 5% 40%, rgba(0,0,0,.5) 50%, rgba(0,0,0,0) 60% 95%, rgba(0,0,0,.5)),
    linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.5));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite:exclude;
  transition:--glass-angle-1 500ms ease;
}
.hero-foot .signup .go::before{
  content:"";position:absolute;pointer-events:none;
  inset:calc(var(--border-width) / 2);border-radius:999px;
  background:linear-gradient(var(--glass-angle-2),
    rgba(255,255,255,0) 0%, rgba(255,255,255,.125) 40% 50%, rgba(255,255,255,0) 55%);
  background-size:200% 200%;background-position:0% 50%;background-repeat:no-repeat;
  mix-blend-mode:screen;
  transition:
    background-position calc(var(--glass-hover-time) * 1.25) var(--glass-hover-ease),
    --glass-angle-2 calc(var(--glass-hover-time) * 1.25) var(--glass-hover-ease);
}
@media (hover:hover){
  .hero-foot .signup .go:hover{
    transform:scale(.975);
    box-shadow:
      inset 0 .125em .125em rgba(0,0,0,.05),
      inset 0 -.125em .125em rgba(255,255,255,.5),
      0 .15em .05em -.1em rgba(0,0,0,.25),
      0 0 .05em .1em inset rgba(255,255,255,.4),
      0 0 18px rgba(190,60,255,.55);
  }
  .hero-foot .signup .go:hover::after{--glass-angle-1:-90deg}
  .hero-foot .signup .go:hover::before{background-position:8% 50%}
}
.hero-foot .signup .go:active{transform:scale(.96)}
.hero-foot .signup .go:active::after{--glass-angle-1:-75deg}
.hero-foot .signup .go:active::before{background-position:50% 15%;--glass-angle-2:-15deg}
.hero-foot .signup .consent{color:#fff;font-size:16px;text-shadow:0 1px 3px rgba(0,0,0,.3)}
.hero-foot .hero-links{gap:16px}
.hero-foot .hero-link{color:rgba(255,255,255,.92);font-size:14px;text-shadow:0 1px 3px rgba(0,0,0,.25)}
.hero-foot .hero-link:hover{color:#fff;background:rgba(255,255,255,.18)}

/* ============ glass ============
   The one frosted material every floating surface shares — the homepage form row and its
   success pill, the /beta card, the style guide's panels. A white pane that's most opaque at
   the top where the rim catches the light and opens up toward the bottom, so the chrome and
   the floating objects register through it. A class rather than a selector list so a new
   surface opts in from its markup; each one sets its own shape (radius, padding) on top. It
   wants the bare chrome behind it — glass over glass just stacks two blurs. */
.glass{
  background:linear-gradient(180deg,var(--glass-hi),var(--glass-lo));
  -webkit-backdrop-filter:blur(18px) saturate(170%);
  backdrop-filter:blur(18px) saturate(170%);
  border:1px solid rgba(255,255,255,.55);border-top-color:var(--glass-edge);
  box-shadow:var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.75);
}

/* ============ signup ============ */
.signup{max-width:440px;margin:0 auto}
.signup-row{display:flex;gap:6px;padding:6px;border-radius:999px}
.signup-row.shake{animation:shake 260ms var(--ease-in-out)}
@keyframes shake{20%{transform:translateX(-5px)}45%{transform:translateX(4px)}70%{transform:translateX(-3px)}90%{transform:translateX(2px)}}
.signup input{
  flex:1;min-width:0;border:0;background:transparent;outline:none;
  font:inherit;font-size:16px;color:var(--ink);padding:10px 12px 10px 16px;
}
.signup input::placeholder{color:var(--ink-faint)}
.signup .go{
  background:var(--brand);color:#fff;font-size:14px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;
  padding:12px 20px;border-radius:999px;flex-shrink:0;
  transition:transform 120ms var(--ease-out), background-color 150ms ease;
}
.signup .go:hover{background:var(--brand-dark)}
.signup .go:active{transform:scale(.96)}
.signup .go[disabled]{cursor:progress}
.signup .error{font-size:13px;font-weight:900;color:#8c2f39;margin-top:10px;display:none}
.signup.is-error .error{display:block}
/* Marketing consent is captured by this line rather than a checkbox, so it has to stay
   legible — quiet, but never smaller than the error text it sits beside. Full width of the
   form row above it, no cap of its own. */
.signup .consent{font-size:13px;line-height:1.45;color:var(--ink-soft);margin:12px 0 0;text-wrap:balance}
.signup .success{
  display:none;align-items:center;justify-content:center;gap:10px;
  padding:15px 20px;border-radius:999px;
  font-weight:900;font-size:15px;
}
.signup .success .check{
  width:22px;height:22px;border-radius:50%;background:var(--brand);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;
}
.signup .success .check svg{width:11px;height:11px}
.signup.is-done .signup-row,.signup.is-done .error,.signup.is-done .consent{display:none}
.signup.is-done .success{display:flex;animation:pop 340ms var(--ease-out)}
@keyframes pop{0%{transform:scale(.9);opacity:0;filter:blur(3px)}60%{transform:scale(1.02)}100%{transform:scale(1);opacity:1;filter:blur(0)}}

/* ============ /beta ============
   The unlisted closed-beta page: one glass card floating over the floor and the floating
   objects, where the homepage has the wordmark and form. The material is .glass, set in the
   markup (landing/_beta_card); this is only the shape. Inside, the gaps step 16 / 24 / 32: the two paragraphs
   sit closest so they read as one block of copy, the icon stands a step off it, and the CTA
   gets the most room. */
.beta-card{
  max-width:520px;margin:0 auto;
  padding:32px;border-radius:26px;
}
/* The app icon stands in for the wordmark; 22.5% is the iOS icon corner ratio. */
.beta-icon{
  display:block;width:74px;height:74px;margin:0 auto 24px;
  border-radius:22.5%;
  box-shadow:0 6px 18px rgba(30,30,36,.18);
}
.beta-copy{font-size:clamp(17px,2.2vw,19px);line-height:1.35;color:var(--ink-soft);text-wrap:balance}
.beta-copy + .beta-copy{margin-top:.8em}
.beta-cta{
  display:inline-block;margin-top:32px;
  background:var(--brand);color:#fff;font-size:20px;font-weight:900;letter-spacing:.03em;text-transform:uppercase;
  padding:13px 48px;border-radius:999px;text-decoration:none;
  transition:transform 120ms var(--ease-out), background-color 150ms ease;
}
.beta-cta:hover{background:var(--brand-dark)}
.beta-cta:active{transform:scale(.96)}

/* ============ modal chrome ============
   The FAQ dialog on the homepage — and, reused as a whole page, the privacy policy
   (views/legal/privacy.html.erb renders this chrome always-open with the X as a link home),
   so both surfaces share one overlay, one sheet width, and one X.
   [hidden]'s UA display:none loses to the .modal rule on specificity, so it is restated. */
.modal{
  position:fixed;inset:0;z-index:80;
  display:flex;align-items:flex-start;justify-content:center;
  padding:
    calc(24px + env(safe-area-inset-top))
    calc(24px + env(safe-area-inset-right))
    calc(24px + env(safe-area-inset-bottom))
    calc(24px + env(safe-area-inset-left));
  overflow-y:auto;overscroll-behavior:contain;
  background:rgba(186,188,191,.8);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
  backdrop-filter:blur(22px) saturate(150%);
}
.modal[hidden]{display:none}
/* margin:0 auto, not auto: in this flex row an all-auto margin would center the sheet
   vertically whenever it's shorter than the viewport — both surfaces top-align instead. */
.modal-sheet{
  position:relative;width:100%;max-width:680px;margin:0 auto;
  padding:44px 40px 40px;
}
.modal:not([hidden]) .modal-sheet{animation:sheet-in 340ms var(--ease-out)}
@keyframes sheet-in{from{opacity:0;transform:translateY(18px);filter:blur(6px)}to{opacity:1;transform:none;filter:blur(0)}}
/* Pinned to the viewport, not the sheet: both surfaces scroll and the X has to stay
   reachable the whole way down. It lives as a sibling of .modal-sheet — inside it, the open
   animation's transform would re-anchor fixed positioning to the sheet while it plays.
   z-index lifts it over the sheet, which paints later in DOM order. */
.modal-close{
  position:fixed;
  top:calc(20px + env(safe-area-inset-top));
  right:calc(20px + env(safe-area-inset-right));
  z-index:1;
  width:40px;height:40px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.6);color:var(--ink);
  text-decoration:none;
  transition:background-color 150ms ease, transform 120ms var(--ease-out);
}
.modal-close:hover{background:#fff}
.modal-close:active{transform:scale(.94)}
.modal-close svg{width:14px;height:14px}
.modal-title{
  font-size:clamp(30px,5vw,48px);font-weight:900;letter-spacing:-.01em;line-height:1.02;
  text-transform:uppercase;color:var(--brand);
  margin-bottom:28px;text-wrap:balance;
}
.faq-list{list-style:none}
.faq-item{border-top:1px solid rgba(26,26,30,.16)}
.faq-item:last-child{border-bottom:1px solid rgba(26,26,30,.16)}
.faq-q{
  width:100%;display:flex;align-items:center;gap:16px;justify-content:space-between;
  padding:20px 2px;text-align:left;
  font-size:clamp(15px,2vw,18px);font-weight:900;letter-spacing:.02em;text-transform:uppercase;
  color:var(--brand);line-height:1.25;
  transition:color 150ms ease;
}
.faq-q:hover{color:var(--brand-dark)}
/* A plus that loses its upright stroke when the answer is open. */
.faq-mark{position:relative;width:14px;height:14px;flex-shrink:0}
.faq-mark::before,.faq-mark::after{
  content:"";position:absolute;left:50%;top:50%;background:currentColor;border-radius:2px;
  transition:transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
.faq-mark::before{width:14px;height:2px;transform:translate(-50%,-50%)}
.faq-mark::after{width:2px;height:14px;transform:translate(-50%,-50%)}
.faq-q[aria-expanded="true"] .faq-mark::after{transform:translate(-50%,-50%) rotate(90deg);opacity:0}
.faq-a{padding:0 2px 24px;max-width:56ch}
.faq-a p{font-size:15.5px;line-height:1.55;color:var(--ink)}
.faq-a:not([hidden]){animation:answer-in 260ms var(--ease-out)}
@keyframes answer-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
body.modal-open{overflow:hidden}

/* ============ dev speed dial ============
   Development only (layouts/landing.html.erb): scales the floating objects' playback rate. */
.speed-dial{
  position:fixed;z-index:90;
  left:calc(12px + env(safe-area-inset-left));bottom:calc(12px + env(safe-area-inset-bottom));
  display:flex;align-items:center;gap:10px;padding:8px 14px;border-radius:999px;
  font-size:12px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;
}
.speed-dial input{width:160px;accent-color:var(--brand)}
.speed-dial output{min-width:4ch;font-variant-numeric:tabular-nums}

/* ============ responsive ============ */
@media (max-width:640px){
  /* Where both bars' problems live: the runway parks the scroll past zero for the status bar,
     the bleed keeps the park below maxScroll for the toolbar's glass. */
  :root{--runway:62px;--bleed:120px}

  /* One page, no scrolling — but the scroll STATE has to stay parked on the runway, since a
     page resting at scrollY 0 is what resurrects the guillotine, so the range itself can't be
     removed. Instead touch-action turns the pan gesture off at the root: html sits in the
     consulted chain of every document pan, while the FAQ sheet scrolls itself and so is never
     consulted — it keeps scrolling. Pinch zoom is deliberately left on. The mandatory snap
     stays as the net for scrolls that aren't gestures — focus reveals, find-in-page — with the
     hero as the only snap area, no resting position above the runway line is valid. */
  html{scroll-snap-type:y mandatory;touch-action:pinch-zoom}
  .hero{scroll-snap-align:start}

  /* The foot keeps the base rule's pinning to the hero's floor — the viewport bottom, since
     the parked page fills it with the hero exactly. */
  .hero{--pad-t:56px;--pad-x:20px;--pad-b:190px}
  .beta-card{padding:24px}

  .modal{
    padding:
      calc(16px + env(safe-area-inset-top))
      calc(16px + env(safe-area-inset-right))
      calc(16px + env(safe-area-inset-bottom))
      calc(16px + env(safe-area-inset-left));
  }
  .modal-sheet{padding:40px 20px 32px}
  .modal-close{
    top:calc(12px + env(safe-area-inset-top));
    right:calc(12px + env(safe-area-inset-right));
  }
  .faq-q{padding:18px 2px}
}

/* ============ accessibility prefs ============ */
@media (prefers-reduced-motion:reduce){
  .float-obj{transition:none}
  .signup-row.shake{animation:none}
  .signup.is-done .success{animation:none}
  .modal:not([hidden]) .modal-sheet{animation:none}
  .faq-a:not([hidden]){animation:none}
  .faq-mark::before,.faq-mark::after{transition:none}
}
@media (prefers-reduced-transparency:reduce){
  .glass{background:#f5f5f7;-webkit-backdrop-filter:none;backdrop-filter:none}
  .modal{background:#babcbf;-webkit-backdrop-filter:none;backdrop-filter:none}
}
