/* SupaSet — landing page.
   Tokens mirror Packages/DesignSystem (Surface, Ink, Line, Theme). */

:root {
  --canvas: #f4f3ef;
  --sunken: #e6e5e1;
  --surface: #ffffff;
  --raised: #fbfaf7;
  --ink: #17181a;
  --ink-2: #5a5c5e;
  --ink-3: #84868a;
  --ink-4: #aeb0b2;
  --line: #e0dfda;
  --line-strong: #c9c7c1;
  --fill: rgba(23, 24, 26, 0.055);
  --accent: #b4462a;
  --on-accent: #ffffff;
  --accent-ink: #87301a;
  --accent-soft: rgba(180, 70, 42, 0.1);
  --success: #0d6640;
  --sage: #4f7a5f;
  --record: #96742f;
  --record-edge: #c7a36a;
  --warning: #b4681c;
  /* the app's slate data ink: history shading and weekly bars */
  --slate-1: #c3ccd7;
  --slate: #7a8ca3;
  --slate-strong: #5a7393;
  --cell: #ecebe6;
  --frame: #c8c6c1;

  /* always-dark stage, as in the app's HeroStage */
  --stage: #151515;
  --stage-raised: #1e1e1e;
  --stage-ink: #f2f1ed;
  --stage-ink-2: #9c9c9c;
  --stage-line: rgba(255, 255, 255, 0.1);

  --shadow-phone: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 40px 80px -30px rgba(23, 24, 26, 0.35), 0 18px 36px -18px rgba(23, 24, 26, 0.25);
  --shadow-card: 0 1px 2px rgba(23, 24, 26, 0.06), 0 12px 32px -12px rgba(23, 24, 26, 0.18);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0d0e0f;
    --sunken: #08090a;
    --surface: #151719;
    --raised: #1b1d20;
    --ink: #f2f1ed;
    --ink-2: #a2a3a0;
    --ink-3: #7e807e;
    --ink-4: #5c5e5d;
    --line: #2c2f33;
    --line-strong: #3b3f45;
    --fill: rgba(255, 255, 255, 0.055);
    --accent: #f08a5d;
    --on-accent: #0a0a0a;
    --accent-ink: #f7a784;
    --accent-soft: rgba(240, 138, 93, 0.16);
    --success: #68d69a;
    --sage: #8fb79c;
    --record: #d9b26a;
    --record-edge: #f0d49a;
    --slate-1: #34404e;
    --slate: #56697f;
    --slate-strong: #7f97b5;
    --cell: #202326;
    --frame: #3a3c41;
    --stage: #1e1e1e;
    --stage-raised: #262626;
    --shadow-phone: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--canvas); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Type ─────────────────────────────────────── */

.overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-3);
}
.overline .num {
  font-variant-numeric: tabular-nums; color: var(--ink);
  padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 6px; letter-spacing: 0.04em;
}
.overline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

h1 {
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.96; letter-spacing: -0.045em; font-weight: 750;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--ink-3); }
h2 {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1; letter-spacing: -0.04em; font-weight: 740;
}
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 650; }

.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head > p:not(.overline) { color: var(--ink-2); max-width: 36em; font-size: 18px; }

/* ── Buttons ─────────────────────────────────── */

.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; fill: currentColor; margin-top: -2px; }
.btn--sm { --h: 38px; padding: 0 14px; font-size: 14px; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 17px; }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--accent); }
.btn--accent:hover { box-shadow: 0 14px 30px -12px var(--accent); }
.btn--ink { background: var(--ink); color: var(--canvas); }
.btn--ghost { color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--fill); }
.btn[aria-disabled="true"] { cursor: default; }

/* ── Nav ─────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 10px var(--gutter);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 0.5px var(--line-strong); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.nav__links a:hover { color: var(--ink); background: var(--fill); }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ── Hero ─────────────────────────────────────── */

.hero { position: relative; padding: clamp(32px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero::before {
  /* ruled logbook paper, fading out */
  content: ""; position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 44px;
  -webkit-mask-image: radial-gradient(120% 70% at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(120% 70% at 70% 30%, #000 10%, transparent 70%);
  opacity: 0.55;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 28px; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 14px; height: 14px; background: var(--sage); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4 5.8 10 11 4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4 5.8 10 11 4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

.hero__stage { position: relative; display: grid; place-items: center; min-height: 640px; }

/* ── Phone frame: iPhone 17 Pro ──────────────── */

/* Screens are 1206 × 2622 captures (the Dynamic Island is in the image); the
   frame is a thin black bezel inside an aluminium band, with the side buttons. */
.phone {
  --w: 300px;
  position: relative; width: var(--w);
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.175);
  background: #050505;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 calc(var(--w) * 0.011) var(--frame),
    0 0 0 calc(var(--w) * 0.014) rgba(0, 0, 0, 0.28),
    var(--shadow-phone);
}
.phone::before, .phone::after {
  /* left: action button, volume up, volume down; right: side button, camera control */
  content: ""; position: absolute; width: calc(var(--w) * 0.012 + 2px); border-radius: 2px; pointer-events: none;
}
.phone::before {
  left: calc(var(--w) * -0.011 - 2px); top: 17%; height: 24%;
  background: linear-gradient(var(--frame) 0 16%, transparent 16% 30%, var(--frame) 30% 62%, transparent 62% 70%, var(--frame) 70%);
}
.phone::after {
  right: calc(var(--w) * -0.011 - 2px); top: 25%; height: 39%;
  background: linear-gradient(var(--frame) 0 34%, transparent 34% 66%, var(--frame) 66% 88%, transparent 88%);
}
.phone picture > img, .phone > img, .phone__screens {
  display: block; width: 100%; height: auto; aspect-ratio: 640 / 1392;
  border-radius: calc(var(--w) * 0.143); background: var(--canvas);
}
.phone--hero { --w: clamp(260px, 25vw, 310px); transform: translateX(8%); }

/* ── Hero set card (replica of the logger's card) ── */

.setcard {
  position: absolute; left: -6%; bottom: 14%; width: min(350px, 82%);
  padding: 16px 12px 10px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  font-variant-numeric: tabular-nums;
  animation: rise 0.9s var(--ease) 0.15s both;
}
.setcard__head { display: flex; gap: 10px; align-items: center; margin: 0 4px 12px; }
.setcard__head strong { font-size: 16px; font-weight: 650; letter-spacing: -0.015em; }
.setcard__thumb { width: 36px; height: 36px; border-radius: 10px; flex: none; background: #e6e5e1 url("/assets/bench.webp") center/cover; }
.setcard__cols, .setrow {
  display: grid; grid-template-columns: 26px 1fr 54px 46px 34px 32px; align-items: center; gap: 4px;
}
.setcard__cols { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 0 6px 6px; }
.setcard__cols span:nth-child(n+3) { text-align: center; }
.setrow {
  height: 40px; padding: 0 4px 0 6px; margin-bottom: 4px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: background-color 0.4s var(--ease);
}
.setrow > span:nth-child(3), .setrow > span:nth-child(4) { text-align: center; }
.setrow__n { color: var(--ink-2); text-align: center; }
.setrow__prev { color: var(--ink-3); font-weight: 500; font-size: 13.5px; }
.rir { justify-self: center; font-size: 9.5px; font-weight: 750; letter-spacing: 0.04em; color: var(--ink-2); background: var(--fill); padding: 5px 5px; border-radius: 7px; }
.setrow.is-done { background: color-mix(in srgb, var(--sage) 12%, transparent); }
.setrow.is-next { background: var(--fill); }
.check {
  justify-self: center; width: 30px; height: 30px; border-radius: 50%; position: relative;
  border: 1.5px solid var(--line-strong); background: transparent;
  transition: background-color 0.3s, border-color 0.3s, transform 0.45s var(--spring);
}
.check::after {
  content: ""; position: absolute; left: 10px; top: 6px; width: 6px; height: 11px;
  border: solid var(--ink-3); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.is-next .check { background: var(--ink); border-color: var(--ink); }
.is-next .check::after { border-color: var(--canvas); }
.is-done .check { background: var(--sage); border-color: var(--sage); }
.is-done .check::after { border-color: #fff; border-width: 0 2.4px 2.4px 0; }
.field {
  justify-self: center; min-width: 50px; height: 30px; padding: 0 8px; border-radius: 999px;
  display: grid; grid-auto-flow: column; place-items: center; place-content: center;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink); font-weight: 650;
}
.field:empty::before { content: attr(data-placeholder); color: var(--ink-4); font-weight: 500; }
.field.is-typing { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); }
.field.is-typing::after { content: ""; width: 1.5px; height: 16px; margin-left: 1px; background: var(--accent); animation: caret 0.9s steps(1) infinite; }
.is-done .field { background: transparent; border-color: transparent; }
.setrow.is-record .check { background: var(--record); border-color: var(--record); animation: pop 0.7s var(--spring); }
.setrow.is-record .check::after {
  border: 0; left: 6px; top: 6px; width: 16px; height: 16px; transform: none;
  background: #fff; -webkit-mask: var(--trophy) center/contain no-repeat; mask: var(--trophy) center/contain no-repeat;
}
:root { --trophy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10v3a5 5 0 0 1-10 0V4Zm-3 1h3v2a3 3 0 0 1-3-2Zm16 0h-3v2a3 3 0 0 0 3-2ZM10 14h4l.5 3H9.5l.5-3Zm-2 4h8v2H8v-2Z'/%3E%3C/svg%3E"); }

/* glass toast and rest bar, as in the app */
.toast, .restbar {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--raised) 90%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid color-mix(in srgb, var(--line-strong) 55%, transparent);
  box-shadow: var(--shadow-card);
  font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateY(-14px) scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--spring);
}
.toast.is-on, .restbar.is-on { opacity: 1; transform: none; }
.toast { top: 26%; right: -8%; width: min(320px, 78%); padding: 12px 18px 12px 12px; border-radius: 26px; }
.toast small { display: block; font-size: 11px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; color: var(--record); }
.toast b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.toast i { display: block; font-style: normal; font-size: 13.5px; color: var(--ink-2); }
.trophy { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--record-edge), var(--record) 70%); }
.trophy svg { width: 22px; height: 22px; fill: #fff; }
.toast.is-on .trophy { animation: pop 0.7s var(--spring); }

.restbar { right: -4%; bottom: 3%; padding: 8px 10px 8px 8px; border-radius: 999px; transform: translateY(14px) scale(0.97); }
.restbar__ring { width: 40px; height: 40px; }
.restbar__ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.restbar__ring circle { fill: none; stroke: var(--line); stroke-width: 3.5; }
.restbar__ring .arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--off, 0); transition: stroke-dashoffset 1s linear; }
.restbar__time small { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.1; }
.restbar__time b { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.restbar__btns { display: flex; gap: 6px; margin-left: 6px; }
.restbar__btns i { font-style: normal; font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: var(--fill); color: var(--ink); }
.restbar__btns i.plain { background: none; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes pop { 0% { transform: scale(0.4) rotate(-12deg); } 100% { transform: none; } }

/* ── Ledger strip ─────────────────────────────── */

.ledger { border-block: 1px solid var(--line); }
.ledger dl { display: grid; grid-template-columns: repeat(4, 1fr); }
.ledger dl > div { padding: 26px 0 24px 22px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.ledger dl > div:first-child { border-left: 0; padding-left: 0; }
.ledger dt { order: 2; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.ledger dd { order: 1; font-size: clamp(34px, 4vw, 48px); font-weight: 750; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ── Logger tour ─────────────────────────────── */

.tour { padding: clamp(88px, 12vw, 160px) 0 clamp(40px, 6vw, 80px); }
.tour__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.tour__phone {
  position: sticky; top: calc(50vh - 300px); height: 600px;
  display: flex; align-items: center; justify-content: center; gap: 22px;
}
.tour__phone .phone { --w: 276px; }
.phone__screens { position: relative; overflow: hidden; }
.phone__screens img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  opacity: 0; transform: scale(1.03); transition: opacity 0.55s var(--ease), transform 0.8s var(--ease);
}
.phone__screens img.is-on { opacity: 1; transform: none; }
.tour__dots { display: grid; gap: 10px; }
.tour__dots li { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: height 0.4s var(--ease), background-color 0.3s; }
.tour__dots li.is-on { height: 26px; background: var(--ink); }

.tour__steps { display: grid; }
.step {
  min-height: 82vh; display: flex; flex-direction: column; justify-content: center; gap: 16px;
  opacity: 0.32; transition: opacity 0.5s var(--ease);
}
.step.is-on { opacity: 1; }
.step__n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; border: 1px solid var(--line-strong); color: var(--ink-2);
}
.step h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; }
.step p { color: var(--ink-2); max-width: 30em; }

.mini {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; margin-top: 8px;
  padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.mini--prev span { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-4); font-weight: 700; }
.mini--prev b { font-size: 18px; color: var(--ink-3); }
.mini--prev b.hi { color: var(--ink); }
.mini--prev .arrow { font-size: 16px; color: var(--ink-4); letter-spacing: 0; }

/* the Dynamic Island: compact, then expanded once step B is in view */
.island {
  --iw: min(360px, 86vw);
  position: relative; overflow: hidden; margin-top: 10px; align-self: flex-start;
  width: calc(var(--iw) * 0.58); height: calc(var(--iw) * 0.58 * 68 / 420);
  border-radius: 999px; background: #000;
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.7);
  transition: width 0.75s var(--spring), height 0.75s var(--spring), border-radius 0.6s var(--ease);
}
.island img { position: absolute; top: 0; left: 50%; translate: -50% 0; height: auto; max-width: none; transition: opacity 0.35s var(--ease); }
.island__compact { width: calc(var(--iw) * 0.58); }
.island__expanded { width: var(--iw); opacity: 0; }
.step.is-on .island { width: var(--iw); height: calc(var(--iw) * 307 / 720); border-radius: calc(var(--iw) * 0.1); transition-delay: 0.45s; }
.step.is-on .island__compact { opacity: 0; transition-delay: 0.45s; }
.step.is-on .island__expanded { opacity: 1; transition-delay: 0.65s; }
.mini--ramp { align-items: flex-end; height: 76px; gap: 8px; padding: 14px 16px; }
.mini--ramp i { width: 22px; height: calc(var(--h) * 100%); border-radius: 6px; background: color-mix(in srgb, var(--ink) calc(var(--h) * 55%), transparent); }
.mini--ramp i:nth-child(1) { --h: .58; }
.mini--ramp i:nth-child(2) { --h: .79; }
.mini--ramp i:nth-child(3) { --h: 1; }
.mini--ramp i.top { background: var(--ink); }
.mini--tip { font-size: 15px; border-color: color-mix(in srgb, var(--success) 35%, var(--line)); }
.mini--tip::before { content: "↑"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); font-weight: 800; }

/* ── Plate calculator (always-dark stage) ────── */

.plates { padding: clamp(64px, 10vw, 140px) 0; }
.plates__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(32px, 5vw, 72px); border-radius: 36px;
  background: radial-gradient(90% 120% at 80% 20%, #2a2a2a 0%, var(--stage) 55%);
  color: var(--stage-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.plates .overline { color: var(--stage-ink-2); }
.plates .overline .num { color: var(--stage-ink); border-color: rgba(255, 255, 255, 0.22); }
.plates__copy { display: grid; gap: 22px; }
.plates__copy p { color: var(--stage-ink-2); }
.plates__copy .fine { font-size: 14px; color: #7a7a7a; }

/* the calculator itself is the app's light sheet, set on the dark stage */
.loader {
  padding: 22px 22px 24px; border-radius: 30px; background: #f4f3ef; color: #17181a;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.loader__top { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; }
.loader__total { display: flex; align-items: baseline; justify-content: center; gap: 4px; font-variant-numeric: tabular-nums; }
.loader__total output { font-size: clamp(56px, 6vw, 76px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.loader__total span { font-size: 20px; font-weight: 650; color: #84868a; text-transform: uppercase; }
.step-btn {
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1px solid #e0dfda; background: #fbfaf7; color: #17181a; font-size: 26px; font-weight: 400; line-height: 1;
  transition: background-color 0.2s, transform 0.2s var(--spring);
}
.step-btn:hover { background: #fff; }
.step-btn:active { transform: scale(0.9); }
.loader__bar { width: 100%; height: auto; margin: 14px 0 4px; overflow: visible; }
.loader__bar .plate { cursor: pointer; }
.loader__bar .plate.is-new { transform-box: fill-box; transform-origin: left center; animation: slide-on 0.45s var(--spring) both; }
.loader__bar .plate:hover rect:first-child { filter: brightness(1.08); }
.loader__bar text { font: 700 15px var(--font); font-variant-numeric: tabular-nums; pointer-events: none; }
@keyframes slide-on { from { transform: translateX(70px); opacity: 0; } }
.loader__side { text-align: center; font-weight: 500; font-size: 19px; font-variant-numeric: tabular-nums; min-height: 1.4em; }
.loader__hint { text-align: center; font-size: 14px; color: #84868a; margin-top: 2px; }
.loader__foot { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.loader__label { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #84868a; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #e6e5e1; }
.seg button {
  border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 650;
  color: #5a5c5e; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.seg button[aria-checked="true"] { background: #fff; color: #17181a; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-plate {
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  font: 700 14px var(--font); font-variant-numeric: tabular-nums;
  background: var(--fill-c); color: var(--ink-c); border: 2px solid var(--edge-c);
  box-shadow: inset 0 0 0 4px var(--fill-c), inset 0 0 0 5px color-mix(in srgb, var(--edge-c) 55%, transparent);
  transition: transform 0.25s var(--spring), opacity 0.2s;
}
.chip-plate:hover { transform: translateY(-2px); }
.chip-plate:active { transform: scale(0.92); }
.chip-plate:disabled { opacity: 0.35; cursor: default; transform: none; }

/* ── Progression ladder ──────────────────────── */

.progression { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 12vw, 160px); }
.ladder { display: grid; grid-template-columns: 1fr 64px 1fr 64px 1fr; align-items: stretch; }
.rung {
  padding: 26px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 14px; align-content: start;
  opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}
.ladder.is-in .rung { opacity: 1; transform: none; }
.ladder.is-in .rung:nth-of-type(2) { transition-delay: 0.18s; }
.ladder.is-in .rung:nth-of-type(3) { transition-delay: 0.36s; }
.rung__when { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.rung__load { font-size: 52px; font-weight: 780; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.rung__load small { font-size: 18px; font-weight: 650; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.reps { display: flex; gap: 8px; }
.reps li {
  width: 44px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 700; font-variant-numeric: tabular-nums; background: var(--fill); color: var(--ink-2);
}
.reps li.hit { background: color-mix(in srgb, var(--sage) 18%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sage) 40%, transparent); }
.reps li.miss { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.rung__note { font-size: 14px; color: var(--ink-3); }
.rung--next { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.rung--next .rung__when, .rung--next .rung__note, .rung--next .rung__load small { color: color-mix(in srgb, var(--canvas) 62%, transparent); }
.rung--next .reps li { background: color-mix(in srgb, var(--canvas) 12%, transparent); color: var(--canvas); }
.ladder__link { align-self: center; height: 2px; margin: 0 8px; background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%); background-size: 8px 2px; position: relative; }
.ladder__link::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--line-strong); }
.ladder__rule { margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.ladder__rule b { color: var(--ink-2); font-weight: 600; }

/* ── Progress bento ──────────────────────────── */

.progress { padding: clamp(80px, 12vw, 150px) 0; background: var(--sunken); }
.bento { display: grid; grid-template-columns: 1.05fr 1fr 1fr; grid-template-rows: minmax(340px, auto) minmax(340px, auto); gap: 18px; }
.tile {
  margin: 0; position: relative; overflow: hidden; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.tile figcaption { padding: 26px 26px 22px; display: grid; gap: 8px; }
.tile figcaption p { font-size: 15px; color: var(--ink-2); }
.tile--tall { grid-row: span 2; }
.tile--records .records { margin-top: auto; }

/* a phone rising out of the tile's bottom edge, at its own proportions */
.tile__peek { position: relative; flex: 1; min-height: 420px; container-type: inline-size; }
.phone--peek {
  --w: min(300px, 76cqw);
  position: absolute; top: 6px; left: 50%; translate: -50% 0;
  transition: transform 0.8s var(--ease);
}
.tile:hover .phone--peek { transform: translateY(-10px); }

/* Every week counted: the Progress page's weekly bars */
.weeks { margin-top: auto; padding: 4px 26px 26px; display: grid; gap: 10px; }
.weeks__plot { position: relative; height: 150px; padding-top: 34px; }
.weeks__usual {
  position: absolute; right: 0; top: 4px; z-index: 1;
  font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 2px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.weeks__bars {
  height: 100%; display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; align-items: end;
  background: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%) top / 6px 1.5px repeat-x;
}
.weeks__bar {
  display: block; height: calc(var(--v) * 100%); border-radius: 4px; background: var(--slate);
  transform-origin: bottom; transition: transform 0.7s var(--spring) calc(var(--i) * 45ms);
}
.weeks__bar.is-best { background: var(--record); }
.weeks__bar.is-now { height: 100%; background: linear-gradient(to top, var(--slate-strong) 25%, transparent 25%); box-shadow: inset 0 0 0 1.5px var(--slate-strong); }
.reveal:not(.is-in) .weeks__bar { transform: scaleY(0); }
.weeks__months { display: grid; grid-template-columns: repeat(13, 1fr); font-size: 12px; color: var(--ink-3); }
.weeks__months span:nth-child(2) { grid-column: 5; }
.weeks__months span:nth-child(3) { grid-column: 9; }
.weeks__streak {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-top: 10px;
  border-top: 2px solid var(--record); font-size: 14px; color: var(--ink-2);
}
.weeks__streak b { display: inline-flex; align-items: center; gap: 6px; color: var(--record); font-weight: 650; }
.weeks__streak b::before {
  content: ""; width: 13px; height: 16px; background: currentColor;
  -webkit-mask: var(--flame) center/contain no-repeat; mask: var(--flame) center/contain no-repeat;
}
:root { --flame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 16'%3E%3Cpath d='M6.6 0C7 3 3 4.6 1.4 7.8A5.6 5.6 0 0 0 6.5 16a5.5 5.5 0 0 0 5.4-6.6c-.3-1.6-1.2-2.7-2-3.5.1 1.5-.4 2.6-1.3 3C8.9 6 8.5 2.4 6.6 0Zm-.1 9.3c.5 1.3 2 1.8 2 3.4a2 2 0 0 1-4 0c0-1.4 1.4-2 2-3.4Z'/%3E%3C/svg%3E"); }

/* History at a glance: the History month, shaded by sets */
.tile--wide { grid-column: span 2; flex-direction: row; align-items: center; }
.tile--wide figcaption { flex: 0 0 38%; padding-right: 0; }
.month { flex: 1; padding: 24px 26px 22px; display: grid; gap: 12px; font-variant-numeric: tabular-nums; }
.month__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.month__name { font-size: 26px; font-weight: 750; letter-spacing: -0.03em; }
.month__sum { font-size: 14px; color: var(--ink-2); }
.month__sum b { color: var(--ink); font-weight: 650; }
.month__week, .month__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.month__week { font-size: 11px; font-weight: 600; color: var(--ink-3); text-align: center; }
.month__days > li { transition: opacity 0.5s var(--ease), transform 0.6s var(--spring); transition-delay: calc(var(--i, 0) * 14ms); }
.reveal:not(.is-in) .month__days > li { opacity: 0; transform: scale(0.7); }
.month__day {
  width: 100%; height: 34px; border: 0; border-radius: 9px; padding: 0;
  display: grid; place-items: center; font: 600 13px/1 var(--font); font-variant-numeric: tabular-nums;
  background: var(--cell); color: var(--ink-3);
}
button.month__day { cursor: pointer; transition: transform 0.25s var(--spring), box-shadow 0.2s; }
button.month__day:hover { transform: scale(1.08); }
.month__day.is-out { background: transparent; color: var(--ink-4); }
.month__day.is-l1 { background: var(--slate-1); color: var(--ink); }
.month__day.is-l2 { background: var(--slate); color: #fff; }
.month__day.is-l3 { background: var(--slate-strong); color: #fff; }
.month__day.is-today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.month__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); min-height: 1.5em; }
.month__legend { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.month__legend i { width: 14px; height: 8px; border-radius: 3px; background: var(--slate-1); }
.month__legend i:nth-child(2) { background: var(--slate); }
.month__legend i:nth-child(3) { background: var(--slate-strong); margin-right: 2px; }
.month__legend i:first-child { margin-left: 2px; }

.tile--records { background: var(--stage); color: var(--stage-ink); border-color: transparent; }
.tile--records figcaption p { color: var(--stage-ink-2); }
.records { padding: 22px 26px 26px; display: grid; gap: 10px; margin-top: auto; }
.records li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline;
  padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.06);
  font-variant-numeric: tabular-nums;
}
.records li:first-child { background: linear-gradient(90deg, rgba(217, 178, 106, 0.22), rgba(217, 178, 106, 0.06)); box-shadow: inset 0 0 0 1px rgba(217, 178, 106, 0.45); }
.records span { font-size: 13px; color: var(--stage-ink-2); font-weight: 600; }
.records b { font-size: 18px; font-weight: 700; }
.records em { font-style: normal; font-size: 13px; font-weight: 700; color: #d9b26a; }

/* ── Programs ─────────────────────────────────── */

.programs { padding: clamp(80px, 12vw, 160px) 0; overflow: hidden; }
.programs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.programs__shot { display: grid; place-items: center; position: relative; min-height: 680px; }
.programs__shot > .phone { grid-area: 1 / 1; }
.programs__shot::before {
  content: ""; position: absolute; width: 120%; aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -50%; z-index: -1;
  background: repeating-radial-gradient(circle, transparent 0 46px, var(--line) 46px 47px);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%); mask-image: radial-gradient(circle, #000 20%, transparent 65%);
}
.programs__shot .phone--back { --w: 250px; transform: translate(-36%, -7%) rotate(-5deg); opacity: 0.96; }
.programs__shot .phone--front { --w: 280px; transform: translate(24%, 6%); z-index: 1; }
.programs__copy { display: grid; gap: 22px; }
.programs__copy > p:not(.overline) { color: var(--ink-2); font-size: 18px; }
.levels { display: flex; flex-wrap: wrap; gap: 10px; }
.levels li { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 15px; color: var(--ink-2); font-weight: 500; }
.levels b { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }

/* ── Your data ───────────────────────────────── */

.yours { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 12vw, 150px); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pillars article { padding: 28px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.pillars article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.pillars svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.pillars svg circle[r="1"] { fill: var(--ink); stroke: none; }
.pillars p { font-size: 15px; color: var(--ink-2); }

/* ── FAQ ─────────────────────────────────────── */

.faq { padding: 0 0 clamp(80px, 12vw, 150px); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq .section-head { position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border: solid var(--ink-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-2); }
.faq details[open] p { animation: fade-down 0.4s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* ── Closer ──────────────────────────────────── */

.closer { padding: clamp(80px, 12vw, 140px) 0; background: var(--stage); color: var(--stage-ink); position: relative; overflow: hidden; }
.closer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--stage-line) 1px, transparent 1px);
  background-size: 100% 44px; opacity: 0.5;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent 75%);
}
.closer__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; }
.closer__icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.closer h2 { font-size: clamp(40px, 6vw, 76px); }
.closer p { color: var(--stage-ink-2); font-size: 18px; }
.closer .btn--accent { --accent: #f08a5d; background: #f08a5d; color: #0a0a0a; }

.foot { background: var(--stage); color: var(--stage-ink-2); border-top: 1px solid var(--stage-line); font-size: 14px; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.brand--quiet { font-size: 15px; color: var(--stage-ink); gap: 8px; }
.brand--quiet img { border-radius: 5px; box-shadow: none; }
.foot__link { color: var(--stage-ink); text-decoration: none; }
.foot__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--fill); }
.btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; transform: none; }

/* ── Contact ─────────────────────────────────── */

.contact { padding: clamp(40px, 7vw, 96px) 0 clamp(80px, 10vw, 140px); display: grid; gap: clamp(36px, 5vw, 64px); }
.contact__head { display: grid; gap: 22px; justify-items: start; }
.contact h1 { font-size: clamp(44px, 6.4vw, 84px); }
.contact__grid { display: grid; grid-template-columns: 1.45fr 0.85fr; gap: 20px; align-items: start; }
.note {
  padding: clamp(22px, 3vw, 34px); border-radius: 28px; display: grid; gap: 24px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.note legend, .note__field > span, .card-address__label {
  padding: 0; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3);
}
.note__field > span { margin-bottom: 0; }
.note__field small { font-size: inherit; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-4); text-transform: none; margin-left: 4px; }
.note__topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.note__topics legend { float: left; width: 100%; }
.note__topics input { position: absolute; opacity: 0; pointer-events: none; }
.note__topics span {
  display: inline-flex; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.note__topics span:hover { color: var(--ink); background: var(--fill); }
.note__topics input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.note__topics input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.note__field { display: grid; gap: 10px; }
.note__field textarea, .note__field input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--line-strong); border-radius: 18px; padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.note__field textarea {
  /* logbook ruling */
  line-height: 32px; padding-block: 8px 16px; resize: vertical; min-height: 200px;
  background-image: linear-gradient(transparent 31px, color-mix(in srgb, var(--line) 75%, transparent) 31px 32px);
  background-size: 100% 32px; background-position: 0 8px; background-attachment: local;
}
.note__field textarea::placeholder, .note__field input::placeholder { color: var(--ink-4); }
.note__field textarea:focus, .note__field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.note__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.note__fine { font-size: 14px; color: var(--ink-3); max-width: 28em; }
.note__error { color: var(--warning); font-size: 14px; font-weight: 600; margin-top: -10px; }
.contact__side { display: grid; gap: 16px; }
.card-address, .card-quick { padding: 24px; border-radius: 24px; }
.card-address { background: var(--stage); color: var(--stage-ink); }
.card-address .card-address__label { color: var(--stage-ink-2); }
.card-address__email { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin: -2px 0 16px; overflow-wrap: anywhere; }
.card-address__email a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.card-address .btn--ghost { color: var(--stage-ink); border-color: rgba(255, 255, 255, 0.22); }
.card-address .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.card-quick { background: var(--surface); border: 1px solid var(--line); }
.card-quick .card-address__label { margin-bottom: 4px; }
.card-quick a { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.card-quick li:last-child a { border-bottom: 0; padding-bottom: 2px; }
.card-quick a::after { content: "→"; color: var(--ink-3); transition: transform 0.2s var(--ease); }
.card-quick a:hover::after { transform: translateX(3px); }

/* ── Reveal on scroll ────────────────────────── */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────── */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { min-height: 600px; margin-top: 12px; }
  .phone--hero { transform: translateX(10%); }
  .setcard { left: 2%; }
  .tour__body { grid-template-columns: 1fr; }
  .tour__phone { position: sticky; top: 64px; height: auto; z-index: 2; padding: 12px 0; justify-content: center;
    background: linear-gradient(var(--canvas) 85%, transparent); }
  .tour__phone .phone { --w: 150px; }
  .tour__dots { display: none; }
  .step { min-height: 60vh; justify-content: flex-start; padding-top: 24px; }
  .plates__grid { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; gap: 0; }
  .ladder__link { width: 2px; height: 28px; margin: 0 0 0 40px; background-image: linear-gradient(var(--line-strong) 50%, transparent 50%); background-size: 2px 8px; }
  .ladder__link::after { right: -4px; top: auto; bottom: -8px; border-left-color: transparent; border-top-color: var(--line-strong); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--tall { grid-row: auto; grid-column: span 2; }
  .tile--tall .tile__peek { min-height: 460px; }
  .tile--wide { grid-column: span 2; }
  .programs__grid { grid-template-columns: 1fr; }
  .programs__shot { order: 2; }
  .contact__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars article:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillars article:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
  .faq { grid-template-columns: 1fr; }
  .faq .section-head { position: static; margin-bottom: 8px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero__stage { min-height: 520px; }
  .phone--hero { --w: 236px; transform: translateX(16%); }
  .setcard { right: auto; left: 0; bottom: 10%; width: 92%; }
  .setcard__cols, .setrow { grid-template-columns: 22px 1fr 50px 40px 30px 30px; }
  .toast { right: 0; top: 2%; width: 82%; }
  .restbar { right: 0; bottom: -2%; }
  .restbar__btns i:not(.plain) { display: none; }
  .ledger dl { grid-template-columns: 1fr 1fr; }
  .ledger dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ledger dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plates__grid { border-radius: 28px; padding: 28px 18px; width: 100%; border-radius: 0; }
  .loader { padding: 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile--tall, .tile--wide { grid-column: auto; }
  .tile--wide { flex-direction: column; align-items: stretch; }
  .tile--wide figcaption { flex: none; padding-right: 26px; }
  .month { padding-top: 0; }
  .month__days, .month__week { gap: 5px; }
  .month__day { height: 32px; }
  .programs__shot { min-height: 480px; }
  .programs__shot .phone--back { --w: 180px; }
  .programs__shot .phone--front { --w: 205px; }
  .chips { gap: 6px; }
  .chip-plate { width: 38px; height: 38px; font-size: 11.5px; box-shadow: inset 0 0 0 3px var(--fill-c), inset 0 0 0 4px color-mix(in srgb, var(--edge-c) 55%, transparent); }
  .pillars { grid-template-columns: 1fr; }
  .pillars article, .pillars article + article { padding-left: 0; border-left: 0; }
  .pillars article + article { border-top: 1px solid var(--line); margin-top: 20px; }
  .foot__inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .rung { opacity: 1; transform: none; }
  .step .island { width: var(--iw); height: calc(var(--iw) * 307 / 720); border-radius: calc(var(--iw) * 0.1); }
  .island__compact { opacity: 0; }
  .island__expanded { opacity: 1; }
}

/* ── 404 ─────────────────────────────────────── */

.missing { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 28px; }
