/* Landing page. Premium comes from the materials, not the motion:
   tinted shadows with negative spread, 1px rings drawn as shadows, inner top highlights,
   translucent blurred surfaces, nested radii (outer = inner + padding) and generous section padding. */

/* Instrument Serif italic, self-hosted (latin subset, SIL Open Font License) */
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2");
}

:root {
  --l-bg: #f4f4f1;
  --l-ink: rgb(24 28 34);
  --l-ink-90: rgb(24 28 34 / .9);
  --l-ink-60: rgb(24 28 34 / .6);
  --l-ink-45: rgb(24 28 34 / .45);
  --l-ink-30: rgb(24 28 34 / .3);
  --l-rule: rgb(24 28 34 / .07);
  --l-shade: 20 30 45; /* shadows are tinted blue-grey, never pure black */

  --l-ring: 0 0 0 1px rgb(var(--l-shade) / .07);
  --l-lift: 0 30px 70px -38px rgb(var(--l-shade) / .38), 0 12px 30px -18px rgb(var(--l-shade) / .14);
  --l-highlight: inset 0 1px 0 rgb(255 255 255 / .7);

  --r-card: 24px;
  --r-panel: 22px;
  --r-inner: 14px;

  --serif: "Instrument Serif", Georgia, serif;
  --l-gutter: 16px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

body[data-page="landing"] { background: var(--l-bg); color: var(--l-ink); letter-spacing: -0.011em; }

/* ---------- Floating glass nav ---------- */
.l-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; padding: 0 var(--l-gutter); pointer-events: none; }
.l-bar {
  pointer-events: auto;
  width: 100%; max-width: 620px; height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 6px 0 16px; border-radius: 999px;
  background: rgb(246 246 243 / .72);
  -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .85), inset 0 -1px 0 rgb(255 255 255 / .2), 0 0 0 1px rgb(var(--l-shade) / .08), 0 16px 40px -20px rgb(var(--l-shade) / .4);
}
.l-bar .wordmark { font-size: 17px; color: var(--l-ink); }
.l-nav { display: flex; align-items: center; gap: 6px; }
.l-link { padding: 8px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--l-ink-60); text-decoration: none; transition: color .2s, background .2s; }
.l-link:hover { color: var(--l-ink); background: rgb(24 28 34 / .05); }

/* ---------- Buttons ---------- */
.l-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px;
  color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: var(--l-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 1px rgb(0 0 0 / .9), 0 12px 28px -14px rgb(20 28 40 / .7);
  transition: transform .15s var(--ease-out), box-shadow .2s;
}
.l-btn:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 1px rgb(0 0 0 / .9), 0 16px 32px -14px rgb(20 28 40 / .8); }
.l-btn:active { transform: scale(.98); }
.l-btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.l-btn-ghost {
  color: var(--l-ink); background: #fff;
  box-shadow: var(--l-highlight), 0 0 0 1px rgb(var(--l-shade) / .1), 0 8px 20px -12px rgb(var(--l-shade) / .35);
}
.l-btn-ghost:hover { box-shadow: var(--l-highlight), 0 0 0 1px rgb(var(--l-shade) / .14), 0 12px 24px -12px rgb(var(--l-shade) / .4); }
.l-btn:focus-visible, .l-link:focus-visible, .l-chapters button:focus-visible, .l-faq summary:focus-visible, .l-float:focus-visible, .wordmark:focus-visible {
  outline: 2px solid var(--link); outline-offset: 3px;
}
.l-nav .l-link { display: none; }

/* ---------- Display type: tight sans line, italic serif line ---------- */
.l-display {
  font-size: 42px; line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; color: var(--l-ink);
  display: flex; flex-direction: column; align-items: center; text-wrap: balance;
}
.l-display em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: 1.12em; line-height: .95; }
.l-line { display: block; overflow: hidden; padding: 0 .04em .08em; }
.l-line > * { display: block; }

/* ---------- Hero ---------- */
.l-hero { padding: 120px var(--l-gutter) 8px; text-align: center; }
.l-hero-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.l-lede { max-width: 540px; font-size: 17px; line-height: 26px; color: var(--l-ink-60); text-wrap: pretty; }
.l-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 6px; }
.l-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.l-note { font-size: 13px; color: var(--l-ink-45); }

/* The one orchestrated moment: the hero opens like a slit, the lines rise into place */
.l-hero-inner { animation: slit 1.1s var(--ease-out) both; }
.l-hero .l-line > * { animation: rise .9s var(--ease-out) .25s both; }
.l-hero .l-line + .l-line > * { animation-delay: .35s; }
.l-lede { animation: lift .7s var(--ease-out) .55s both; }
.l-hero .l-cta { animation: lift .7s var(--ease-out) .65s both; }
.l-photo-hero { animation: lift .9s var(--ease-out) .8s both; }
@keyframes slit { from { clip-path: inset(46% 0 46% 0 round 24px); } to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes lift { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Story: pinned frame, chapters advance with the scroll ---------- */
.l-story { position: relative; height: calc(var(--count) * 85svh + 15svh); }
.l-pin {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center;
  padding: 76px var(--l-gutter) 92px; gap: 16px; /* bottom room for the floating button */
}
.l-stage { position: relative; width: 100%; min-height: 0; display: flex; justify-content: center; align-items: center; }

/* Soft pedestal behind the phone: a glass slab, so the device sits on a material, not on the page */
.l-slab {
  position: absolute; inset: 6% 4% 0; border-radius: 32px;
  background: linear-gradient(180deg, rgb(255 255 255 / .7), rgb(255 255 255 / .25));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 0 0 1px rgb(var(--l-shade) / .05);
  display: none;
}

/* Phone: the real funnel screens, at their own scale and radii */
.phone {
  --w: min(280px, calc((100svh - 310px) * 300 / 620));
  position: relative; width: var(--w); aspect-ratio: 300 / 620; flex: none;
  padding: 9px; border-radius: 50px;
  background: linear-gradient(180deg, #2c2c2e, #1c1c1e);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .1),
    inset 0 1px 0 rgb(255 255 255 / .18),
    0 0 0 1px rgb(var(--l-shade) / .18),
    0 38px 70px -24px rgb(20 26 38 / .55),
    0 10px 24px -12px rgb(20 26 38 / .35);
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 41px; background: #fff; /* 50 - 9 padding: concentric corners */
  padding: 46px 16px 16px;
  font-size: 11px; line-height: 15px; color: var(--text);
}
.phone-screen::before { /* dynamic island */
  content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 82px; height: 24px; border-radius: 12px; background: #0b0b0c;
}
.ps-legal { /* the funnel's grey disclaimer band, pinned to the bottom of the screen */
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 22px;
  background: var(--bg-subtle); font-size: 8px; line-height: 11px; color: var(--text-tertiary);
}
.ps-top { display: flex; justify-content: space-between; align-items: baseline; }
.ps-mark { font-size: 13px; font-weight: 700; letter-spacing: -0.03em; }
.ps-product { font-size: 9px; color: var(--text-tertiary); }
.ps-bar { display: flex; gap: 3px; margin: 10px 0 18px; }
.ps-bar i { flex: 1; height: 2px; border-radius: 1px; background: var(--track); transition: background .4s; }
.phone-screen[data-active="0"] .ps-bar i:nth-child(-n+1),
.phone-screen[data-active="1"] .ps-bar i:nth-child(-n+2),
.phone-screen[data-active="2"] .ps-bar i:nth-child(-n+3),
.phone-screen[data-active="3"] .ps-bar i { background: var(--ink); }

.ps-view {
  position: absolute; left: 16px; right: 16px; top: 90px;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s ease, transform .5s var(--ease-out);
}
.phone-screen[data-active="0"] [data-view="0"],
.phone-screen[data-active="1"] [data-view="1"],
.phone-screen[data-active="2"] [data-view="2"],
.phone-screen[data-active="3"] [data-view="3"] { opacity: 1; transform: none; }

.ps-title { font-size: 19px; line-height: 23px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.ps-field { display: flex; flex-direction: column; gap: 1px; padding: 6px 0 7px; border-bottom: 1px solid var(--hairline); }
.ps-field > span { font-size: 9px; line-height: 12px; color: var(--text-tertiary); }
.ps-field > b { font-size: 12px; line-height: 17px; font-weight: 400; }
.ps-placeholder { color: var(--text-tertiary); }
.ps-row { display: grid; grid-template-columns: 1fr auto; }
.ps-row > span { grid-column: 1 / -1; }
.ps-stepper { display: flex; padding: 1px; border-radius: 2px; background: var(--segment); align-self: center; }
.ps-stepper i { position: relative; width: 26px; height: 16px; }
.ps-stepper i::before, .ps-stepper i:last-child::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 1px; background: var(--text); transform: translate(-50%, -50%);
}
.ps-stepper i:last-child::after { transform: translate(-50%, -50%) rotate(90deg); }
.ps-button {
  margin-top: 18px; height: 34px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 600;
  background: linear-gradient(180deg, #2b2b2e 0%, #1a1a1c 100%);
}

.ps-scan { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; }
.ps-cover { overflow: hidden; }
.ps-beam {
  position: absolute; left: 0; right: 0; top: 0; height: 18px;
  background: linear-gradient(180deg, transparent, rgb(255 255 255 / .35) 60%, rgb(255 255 255 / .7));
  border-bottom: 1px solid rgb(255 255 255 / .9);
  transform: translateY(-20px);
}
.phone-screen[data-active="1"] .ps-beam { animation: beam 1.4s var(--ease-out) .3s both; }
@keyframes beam { to { transform: translateY(80px); } }
.ps-scan-text { display: flex; flex-direction: column; gap: 2px; }
.ps-scan-text b { font-size: 12px; font-weight: 600; }
.ps-scan-text span { font-size: 10px; color: var(--text-secondary); }
.ps-fill > b { color: var(--text-tertiary); transition: color .3s; }
.phone-screen[data-active="1"] .ps-fill > b { color: var(--success); }
.phone-screen[data-active="1"] .ps-fill:nth-of-type(2) > b { transition-delay: 1s; }
.phone-screen[data-active="1"] .ps-fill:nth-of-type(3) > b { transition-delay: 1.2s; }
.phone-screen[data-active="1"] .ps-fill:nth-of-type(4) > b { transition-delay: 1.4s; }

.ps-checks { list-style: none; }
.ps-checks li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 12px; }
.ps-checks em { font-style: normal; font-size: 10px; color: var(--success); opacity: 0; }
.phone-screen[data-active="2"] .ps-checks em { animation: show .25s ease both; }
.phone-screen[data-active="2"] .ps-checks li:nth-child(1) em { animation-delay: .3s; }
.phone-screen[data-active="2"] .ps-checks li:nth-child(2) em { animation-delay: .55s; }
.phone-screen[data-active="2"] .ps-checks li:nth-child(3) em { animation-delay: .8s; }
.phone-screen[data-active="2"] .ps-checks li:nth-child(4) em { animation-delay: 1.05s; }
.phone-screen[data-active="2"] .ps-checks li:nth-child(5) em { animation-delay: 1.3s; }
@keyframes show { to { opacity: 1; } }
.ps-foot { margin-top: 12px; font-size: 10px; color: var(--text-secondary); text-align: center; }

.ps-timeline { list-style: none; }
.ps-timeline li { position: relative; display: flex; justify-content: space-between; align-items: baseline; padding: 0 0 18px 18px; font-size: 12px; }
.ps-timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hairline); }
.ps-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 3.5px; top: 14px; bottom: 2px; width: 1px; background: var(--hairline); }
.ps-timeline li.done::before { background: var(--ink); box-shadow: none; }
.ps-timeline li.current::before { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ps-timeline em { font-style: normal; font-size: 10px; color: var(--text-tertiary); }
.ps-timeline li.done em { color: var(--success); }
.ps-timeline li.current em { color: var(--text); font-weight: 600; }

/* Chapters (mobile): one at a time under the phone */
.l-chapters { list-style: none; width: 100%; max-width: 420px; display: grid; }
.l-chapters li { grid-area: 1 / 1; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .5s var(--ease-out); pointer-events: none; }
.l-chapters li.on { opacity: 1; transform: none; pointer-events: auto; }
.l-chapters button {
  font: inherit; font-size: 22px; line-height: 27px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--l-ink); text-align: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.l-chapters p { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--l-ink-60); text-wrap: pretty; }
.l-dots { display: flex; gap: 4px; width: 112px; }
.l-dots i { flex: 1; height: 2px; border-radius: 1px; background: rgb(24 28 34 / .12); transition: background .3s; }
.l-dots i.on { background: var(--l-ink); }

/* ---------- Sections ---------- */
.l-section { max-width: 1120px; margin: 0 auto; padding: 96px var(--l-gutter); }
.l-h2 { font-size: 32px; line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; color: var(--l-ink); text-wrap: balance; }
.l-h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; font-size: 1.1em; }
.l-h2 .soft { color: var(--l-ink-30); }
.l-text { font-size: 16px; line-height: 25px; color: var(--l-ink-60); text-wrap: pretty; }

/* Price: one white card, ring + lift + inner highlight */
.l-price { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.l-price-lede { max-width: 520px; margin-top: -12px; }
.l-card {
  width: 100%; max-width: 440px; padding: 8px; border-radius: var(--r-card);
  background: rgb(255 255 255 / .6);
  box-shadow: var(--l-highlight), var(--l-ring), var(--l-lift);
}
.l-card-inner { /* nested surface: radius = outer radius - padding */
  border-radius: calc(var(--r-card) - 8px); background: #fff; padding: 28px 24px 24px;
  box-shadow: 0 0 0 1px rgb(var(--l-shade) / .06), 0 1px 2px rgb(var(--l-shade) / .05);
  display: flex; flex-direction: column; gap: 18px; text-align: left;
}
.l-amount { display: flex; align-items: baseline; gap: 8px; }
.l-amount b { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.l-amount span { font-size: 15px; color: var(--l-ink-45); }
.l-includes { list-style: none; display: flex; flex-direction: column; }
.l-includes li { padding: 11px 0; font-size: 15px; line-height: 21px; color: var(--l-ink-90); border-top: 1px solid var(--l-rule); }
.l-card .l-btn { width: 100%; }
.l-card .l-note { text-align: center; }

/* FAQ: title left, a white panel of rows on the right */
.l-faq { display: grid; gap: 28px; }
.l-faq-head { display: flex; flex-direction: column; gap: 12px; }
.l-panel {
  border-radius: var(--r-panel); background: #fff; padding: 4px 22px;
  box-shadow: var(--l-ring), 0 24px 50px -30px rgb(var(--l-shade) / .35);
}
.l-faq details + details { border-top: 1px solid var(--l-rule); }
.l-faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 40px 20px 0; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--l-ink);
}
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary i { /* round toggle with ring, + turns into − */
  position: absolute; right: 0; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(24 28 34 / .14);
}
.l-faq summary i::before, .l-faq summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px;
  background: var(--l-ink-60); transition: transform .3s var(--ease-out);
}
.l-faq summary i::after { transform: rotate(90deg); }
.l-faq details[open] summary i::after { transform: rotate(0deg); }
.l-faq details p { padding: 0 40px 20px 0; font-size: 15px; line-height: 23px; color: var(--l-ink-60); }

/* Photos: same material as the cards (ring, lift, inner highlight). Until an <img> is added,
   the frame shows its brief; the image then covers it. */
.l-photo {
  position: relative; overflow: hidden; margin: 0;
  border-radius: var(--r-card); aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #ebebe6, #e2e2dc);
  box-shadow: var(--l-ring), var(--l-lift);
  display: flex; align-items: center; justify-content: center;
}
.l-photo::before {
  content: attr(data-brief);
  max-width: 300px; padding: 20px; text-align: center;
  font-size: 13px; line-height: 19px; color: var(--l-ink-45);
}
.l-photo::after { /* inner highlight drawn on top of the image */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18), inset 0 1px 0 rgb(255 255 255 / .35);
}
.l-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.l-photo-hero { width: 100%; max-width: 1180px; margin: 48px auto 0; aspect-ratio: 4 / 5; border-radius: 28px; }
.l-photo-wide img { object-position: 62% 50%; } /* keep the cliffs and lighthouse when cropped to 4:3 on phones */
.l-photo-wide { width: 100%; max-width: 1180px; aspect-ratio: 4 / 3; border-radius: 28px; margin-top: 24px; }

/* Card rail: values measured on clonk.ai (300x500 cards on phones, 364x560 from 640px) */
.l-rail-section { position: relative; padding: 80px 0 96px; }
.l-rail-head {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.l-rail-title {
  max-width: 920px; color: var(--l-ink);
  font-size: 36px; line-height: 1.04; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance;
}
.l-rail-nav { display: none; gap: 8px; padding-bottom: 8px; flex: none; }
.l-rail-nav button {
  width: 44px; height: 44px; border-radius: 9999px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgb(24 28 34 / .07); color: var(--l-ink);
  transition: opacity .2s, background .2s;
}
.l-rail-nav button:hover { background: rgb(24 28 34 / .11); }
.l-rail-nav button:disabled { opacity: .35; cursor: default; background: rgb(24 28 34 / .07); }
.l-rail-nav button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.l-rail-nav svg { width: 20px; height: 20px; }

.l-rail {
  position: relative; list-style: none;
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  margin: 48px 0 -56px; padding: 0 20px 64px 20px; scroll-padding-left: 20px;
}
.l-rail > li { width: 300px; flex-shrink: 0; }

.l-rcard {
  position: relative; isolation: isolate; overflow: hidden;
  height: 500px; border-radius: 24px;
  background: rgb(27 34 48);
  box-shadow: 0 28px 56px -30px rgb(20 30 45 / .55), 0 0 0 1px rgb(20 30 45 / .06);
  color: #fff;
}
.l-rcard::after { /* inner hairline on top of everything */
  content: ""; position: absolute; inset: 0; z-index: 5; border-radius: 24px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
}
.l-card-media { /* wider than the card so the image can drift with the scroll */
  position: absolute; inset: 0 -34px; background: var(--tone);
}
.l-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.l-card-veil { position: absolute; inset: 200px 0 0; z-index: 2; pointer-events: none; }
.l-card-veil i { position: absolute; inset: 0; }
.l-card-veil i:first-child {
  -webkit-backdrop-filter: blur(20px) saturate(1.25); backdrop-filter: blur(20px) saturate(1.25);
  -webkit-mask-image: linear-gradient(transparent, #000 50%); mask-image: linear-gradient(transparent, #000 50%);
}
.l-card-veil i:last-child { background: linear-gradient(to bottom, transparent, var(--deep) 62%); }
.l-card-copy { position: absolute; left: 0; right: 0; top: 318px; z-index: 4; padding: 0 24px; } /* top-anchored: titles line up across cards */
.l-card-copy h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.4px;
}
.l-card-ico { width: 24px; height: 24px; flex: none; display: flex; color: #fff; }
.l-card-ico svg { width: 24px; height: 24px; overflow: visible; filter: drop-shadow(0 1px 6px rgb(0 0 0 / .18)); }
.l-card-copy p { margin-top: 12px; font-size: 15px; line-height: 21.75px; color: rgb(255 255 255 / .62); text-wrap: pretty; }
.l-card-copy p.strong { margin-top: 4px; color: rgb(255 255 255 / .94); }

@media (min-width: 640px) {
  .l-rail > li { width: 364px; }
  .l-rcard { height: 560px; }
  .l-card-veil { top: 230px; }
  .l-card-copy { top: 404px; }
}
@media (min-width: 768px) {
  .l-rail-section { padding: 96px 0 128px; }
  .l-rail-title { font-size: 56px; }
  .l-rail-nav { display: flex; }
  .l-rail { margin-top: 56px; padding-left: max(20px, calc((100vw - 1240px) / 2 + 20px)); scroll-padding-left: max(20px, calc((100vw - 1240px) / 2 + 20px)); }
}

/* Final call to action */
.l-final { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; padding-bottom: 128px; }
.l-display-sm { font-size: 36px; }

/* Floating button */
.l-float {
  position: fixed; z-index: 40; left: var(--l-gutter); right: var(--l-gutter);
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  height: 52px; border-radius: 999px;
  color: #fff; font-size: 16px; font-weight: 600; text-decoration: none;
  background: var(--l-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 1px rgb(0 0 0 / .9), 0 18px 40px -14px rgb(20 28 40 / .75);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .3s, transform .45s var(--ease-out);
}
.l-float.on { opacity: 1; transform: none; pointer-events: auto; }

.l-footer { background: var(--l-bg); color: var(--l-ink-45); border-top: 1px solid var(--l-rule); padding-bottom: 96px; }


/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  :root { --l-gutter: 32px; }
  .l-nav .l-link { display: inline-block; }
  .l-display { font-size: 64px; }
  .l-display-sm { font-size: 52px; }
  .l-lede { font-size: 19px; line-height: 29px; }
  .l-hero { padding-top: 168px; }
  .l-h2 { font-size: 44px; }
  .l-float { left: auto; right: 24px; bottom: 24px; padding: 0 24px; }
  .l-section { padding: 112px var(--l-gutter); }
  .l-photo-hero { aspect-ratio: 16 / 9; margin-top: 72px; }
  .l-photo-wide { aspect-ratio: 21 / 9; margin-top: 40px; }
}

/* ---------- Desktop: phone on the left, chapter list on the right ---------- */
@media (min-width: 1024px) {
  .l-display { font-size: 84px; }
  .l-display-sm { font-size: 64px; }
  .l-hero { padding: 200px 32px 24px; }

  .l-pin {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
    align-items: center; max-width: 1180px; margin: 0 auto; padding: 96px 32px 40px; gap: 72px;
  }
  .l-stage { height: 100%; }
  .l-slab { display: block; }
  .phone { --w: min(310px, calc((100svh - 190px) * 300 / 620)); }
  .l-dots { display: none; }

  .l-chapters { max-width: 460px; gap: 22px; display: flex; flex-direction: column; justify-self: start; }
  .l-chapters li {
    grid-area: auto; text-align: left; opacity: 1; transform: none; pointer-events: auto;
    position: relative; padding-left: 22px;
  }
  .l-chapters li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 1px; background: transparent; transition: background .3s; }
  .l-chapters li.on::before { background: var(--l-ink); }
  .l-chapters button { font-size: 20px; line-height: 25px; font-weight: 500; color: var(--l-ink-30); transition: color .3s; }
  .l-chapters li.on button { color: var(--l-ink); font-size: 30px; line-height: 34px; font-weight: 600; letter-spacing: -0.035em; }
  .l-chapters button:hover { color: var(--l-ink-60); }
  .l-chapters li.on button:hover { color: var(--l-ink); }
  .l-chapters p { display: none; font-size: 16px; line-height: 24px; }
  .l-chapters li.on p { display: block; margin-top: 10px; animation: show .4s ease both; }

  .l-faq { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
  .l-faq-head { position: sticky; top: 120px; }
  .l-final { padding-bottom: 176px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ps-checks em { opacity: 1; }
}
