/* FitCraft — Frost theme for the website.
   Tokens follow the app: Carbon canvas, neutral glass cards, one soft blue accent,
   apricot for movement, sage for rewards, lavender for calm, sky for community.
   Type is Geist throughout (no monospace); short labels are small capitals. */

:root {
  --carbon: #0c0e12;
  --night: #070b12;
  --raise: #12161d;
  --ink: #eef3f9;
  --muted: #a9b6c6;
  --subtle: #7d8a9c;
  --rim: rgba(150, 190, 240, 0.16);
  --rim-strong: rgba(170, 205, 250, 0.32);
  --accent: #6aa6ff;
  --ice: #b4dcff;
  --peri: #9b9dff;
  --apricot: #f4a886;
  --sage: #9fd0b3;
  --lavender: #b9aaf6;
  --sky: #8fcbf6;
  --signal: #ff7a45;
  --red: #ff4d4f;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  --glass-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  --main-grad: linear-gradient(120deg, var(--ice), var(--accent) 55%, var(--peri));
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --r-card: 28px;
  --r-tile: 20px;
  --tone: var(--accent);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(18px, 4vw, 48px);
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The canvas: Carbon, with two faint cool glows so it stays in the Frost family. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(62rem 42rem at 88% -12%, rgba(52, 104, 168, 0.26), transparent 62%),
    radial-gradient(50rem 40rem at -12% 48%, rgba(40, 70, 130, 0.2), transparent 62%),
    radial-gradient(46rem 36rem at 70% 110%, rgba(110, 100, 200, 0.12), transparent 62%),
    var(--carbon);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.012em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(106, 166, 255, 0.35); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--carbon); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.dim { color: var(--muted); }
.soft { color: var(--subtle); }

/* Tones: colour carries meaning, never decoration. */
.t-move { --tone: var(--apricot); }
.t-earn { --tone: var(--sage); }
.t-calm { --tone: var(--lavender); }
.t-people { --tone: var(--sky); }
.t-act { --tone: var(--accent); }
.t-warn { --tone: var(--signal); }

/* ---------- Labels, chips, buttons ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tone);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}
.chip.is-tone { color: var(--tone); border-color: color-mix(in srgb, var(--tone) 38%, transparent); background: color-mix(in srgb, var(--tone) 9%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px;
  padding: 6px 24px;
  border-radius: 999px;
  border: 1px solid var(--rim-strong);
  background: var(--glass-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(190, 220, 255, 0.55); }
.btn .arr { transition: transform 0.25s ease; }
.btn:hover .arr { transform: translateX(3px); }
/* Main action: the app's "Hold to start" pill — white, with an ice-to-periwinkle disc. */
.btn-main {
  padding: 6px 26px 6px 6px;
  background: #f4f7fb;
  color: #0b0f16;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 14px 40px -12px rgba(120, 170, 255, 0.55), inset 0 -2px 0 rgba(10, 20, 40, 0.08);
}
.btn-main:hover { border-color: transparent; box-shadow: 0 18px 48px -10px rgba(120, 170, 255, 0.75), inset 0 -2px 0 rgba(10, 20, 40, 0.08); }
.btn-main .disc {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--main-grad);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 2px 8px rgba(80, 130, 230, 0.5);
  color: #0b0f16;
}
.btn-sm { min-height: 42px; padding: 4px 18px; font-size: 0.92rem; }
.btn-main.btn-sm { padding: 4px 18px 4px 4px; }
.btn-main.btn-sm .disc { width: 34px; height: 34px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: var(--ice); }
.prose a, .inline-link { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(106, 166, 255, 0.4); text-underline-offset: 3px; }
.prose a:hover, .inline-link:hover { color: var(--ice); }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  border-radius: var(--r-card);
  border: 1px solid var(--rim);
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
}
/* A soft glow in the card's tone, as on the app's Today card. */
.glow { overflow: hidden; }
.glow::before {
  content: ""; position: absolute; pointer-events: none;
  width: 70%; aspect-ratio: 1; right: -22%; top: -40%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 30%, transparent), transparent);
  opacity: 0.7;
}
.glow > * { position: relative; }

/* ---------- Header ---------- */
.site-head { position: fixed; inset: 14px 0 auto 0; z-index: 50; pointer-events: none; }
.bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  height: 64px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--rim);
  background: linear-gradient(180deg, rgba(34, 42, 56, 0.72), rgba(16, 20, 28, 0.72));
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; margin-right: 6px; }
.brand .mark { height: 30px; width: auto; }
.brand .word { height: 17px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 14px;
  border: 0; background: none; border-radius: 999px;
  font-size: 0.93rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-item.open > .nav-link { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--ink); background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px var(--rim); }
.nav-link svg { opacity: 0.6; transition: transform 0.2s ease; }
.nav-item.open .nav-link svg { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: 320px; padding: 8px;
  border-radius: 24px;
  border: 1px solid var(--rim);
  background: linear-gradient(180deg, rgba(30, 37, 50, 0.96), rgba(14, 18, 25, 0.96));
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.drop::before { content: ""; position: absolute; inset: -16px 0 auto 0; height: 16px; }
.nav-item.open .drop, .nav-item:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) { .nav-item:hover .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
.drop a { display: block; padding: 11px 14px; border-radius: 16px; transition: background 0.2s ease; }
.drop a:hover, .drop a:focus-visible { background: rgba(255, 255, 255, 0.06); }
.drop b { display: block; font-weight: 500; font-size: 0.96rem; }
.drop span { display: block; font-size: 0.84rem; color: var(--subtle); line-height: 1.4; }
.bar-end { display: flex; align-items: center; gap: 8px; flex: none; }
.round {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--rim);
  background: var(--glass-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--ink);
}
.menu-btn { display: none; }
.sheet { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .bar-end { margin-left: auto; }
  .menu-btn { display: grid; }
  .sheet {
    display: block; pointer-events: auto;
    position: fixed; inset: 0; z-index: -1;
    padding: 100px var(--gutter) 40px;
    background: rgba(9, 11, 15, 0.92);
    -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
  }
  .menu-open .sheet { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .sheet-group { padding: 18px 0; border-top: 1px solid var(--rim); }
  .sheet-group:first-child { border-top: 0; }
  .sheet-group > span { display: block; margin-bottom: 8px; }
  .sheet a { display: block; padding: 9px 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
  .sheet .btn { display: inline-flex; margin-top: 20px; font-size: 1rem; }
}
@media (max-width: 520px) {
  .bar { height: 58px; padding-left: 14px; }
  .brand .word { height: 14px; }
  .bar-end .btn { display: none; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section.tight { padding-block: clamp(40px, 5vw, 72px); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.section-head.row { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.section-head.row > div { display: flex; flex-direction: column; gap: 16px; max-width: 46rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 40rem; line-height: 1.55; }
.section-head.center .lead { margin-inline: auto; }
h1 em, h2 em { font-style: normal; color: var(--subtle); }
.grad { background: var(--main-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--rim-strong), transparent); margin: 0; }
.stack { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.stack-lg { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 80px); }

/* ---------- Phone ---------- */
.phone {
  position: relative;
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 7px;
  border-radius: 40px;
  background: linear-gradient(160deg, #24344c, #0a101a 45%, #141d2c);
  border: 1px solid var(--rim-strong);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 33px; background: var(--carbon); }
.phone.sm { width: min(100%, 250px); border-radius: 34px; padding: 6px; }
.phone.sm img { border-radius: 28px; }
.phone-stage { position: relative; display: grid; place-items: center; padding-block: 12px; }
.phone-stage::before {
  content: ""; position: absolute; width: min(120%, 520px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 24%, transparent), transparent);
  filter: blur(10px);
}
.phone-stage > * { position: relative; }

.photo { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--rim); box-shadow: var(--shadow); background: var(--raise); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; filter: saturate(0.82) contrast(1.04); }
.photo.tall img { aspect-ratio: 4 / 5; }
.photo.wide img { aspect-ratio: 21 / 9; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 14, 18, 0) 40%, rgba(12, 14, 18, 0.55)); pointer-events: none; }
.photo figcaption { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; font-size: 1.1rem; font-weight: 500; }
figure { margin: 0; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip > .split-text { order: 2; }
.split-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.kicker { display: flex; align-items: center; gap: 14px; }
.num { font-size: 1.5rem; font-weight: 300; letter-spacing: -0.02em; color: var(--tone); font-variant-numeric: tabular-nums; }
.ticks { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
  background: color-mix(in srgb, var(--tone) 10%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23eef3f9' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.4'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ticks li b { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip > .split-text { order: 0; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 30px); min-width: 0; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card .quote { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rim); color: var(--ink); font-size: 1.02rem; }
.card .foot { margin-top: auto; padding-top: 10px; }
a.card { transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
a.card:hover { transform: translateY(-4px); border-color: var(--rim-strong); background: var(--glass-strong); }
a.card .go { margin-top: auto; padding-top: 8px; color: var(--tone); font-size: 0.92rem; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.card-media { margin: calc(clamp(22px, 2.4vw, 30px) * -1) calc(clamp(22px, 2.4vw, 30px) * -1) 8px; border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; position: relative; }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(0.8); transition: transform 0.6s ease; }
a.card:hover .card-media img { transform: scale(1.04); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14, 17, 22, 0.92)); }

/* Steps: a numbered line, like the app's checkpoints list. */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding-block: 22px; border-top: 1px solid var(--rim); }
.step:first-child { border-top: 0; }
.step .dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rim-strong); background: rgba(255, 255, 255, 0.04); font-size: 0.86rem; font-variant-numeric: tabular-nums; color: var(--tone); }
.step p { color: var(--muted); margin-top: 4px; }
.step .meta { display: inline-block; margin-top: 10px; }
.steps.glass { padding: 6px clamp(18px, 2.4vw, 28px); }

/* Stats: thin numerals, as on the Vault balance. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(18px, 3vw, 40px); }
.stat b { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.95rem; max-width: 18ch; }

.callout { display: grid; gap: 10px; padding: clamp(22px, 3vw, 34px); border-left: 0; }
.callout p { color: var(--muted); }
.callout .big { font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.3; color: var(--ink); letter-spacing: -0.015em; font-weight: 500; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 18px; border: 1px dashed var(--rim-strong); color: var(--muted); font-size: 0.92rem; }
.notice svg { flex: none; margin-top: 3px; color: var(--tone); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--rim); background: var(--glass); }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; min-width: 520px; }
caption { text-align: left; padding: 18px 22px 0; color: var(--subtle); font-size: 0.86rem; }
th, td { text-align: left; padding: 15px 22px; border-bottom: 1px solid var(--rim); vertical-align: top; }
th { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
td:first-child { color: var(--ink); font-weight: 500; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 22px; border: 1px solid var(--rim); background: var(--glass); transition: border-color 0.2s ease; }
.faq details[open] { border-color: var(--rim-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 500; font-size: 1.06rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rim); background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34' fill='none' stroke='%23eef3f9' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 17h10M17 12v10'/%3E%3C/svg%3E") center no-repeat; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); max-width: 62ch; display: grid; gap: 10px; }

/* Prose (legal pages) */
.prose { max-width: 46rem; display: grid; gap: 16px; color: var(--muted); }
.prose h2 { font-size: 1.5rem; color: var(--ink); margin-top: 28px; letter-spacing: -0.015em; }
.prose h3 { color: var(--ink); margin-top: 12px; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.prose ul li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 500; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 150px 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; z-index: -1; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; filter: saturate(0.6); }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 14, 18, 0.55), rgba(12, 14, 18, 0.72) 55%, var(--carbon)), radial-gradient(60rem 30rem at 80% 0%, rgba(60, 110, 190, 0.3), transparent 70%); }
.page-hero .inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 52rem; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--subtle); }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
/* Segmented control, as on Challenges: Marathons / Personalised. */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 28px; border: 1px solid var(--rim); background: rgba(8, 10, 14, 0.5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.seg a, .seg button { padding: 9px 18px; border: 0; background: none; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.2s ease, background 0.2s ease; }
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg [aria-current="page"], .seg [aria-selected="true"] { color: var(--ink); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--rim-strong), 0 6px 16px -8px rgba(0, 0, 0, 0.8); }
.toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 18px; border-block: 1px solid var(--rim); }
.toc > span { margin-right: 6px; }
.toc a:hover { color: var(--ink); border-color: var(--rim-strong); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager a { padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; }
.pager a.next { text-align: right; align-items: flex-end; grid-column: 2; }
.pager b { font-size: 1.15rem; font-weight: 500; }
.pager small { color: var(--subtle); font-size: 0.86rem; }
@media (max-width: 620px) { .pager { grid-template-columns: 1fr; } .pager a.next { grid-column: 1; } }

/* ---------- Chat (AI companion) ---------- */
.orb {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff, rgba(255, 255, 255, 0) 30%),
    conic-gradient(from 210deg, #8fd0ff, #6aa6ff, #a79bff, #cfe6ff, #6fb3ff, #8fd0ff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0 30px rgba(120, 170, 255, 0.55);
  animation: orb 9s linear infinite;
}
.orb.lg { width: 76px; height: 76px; }
@keyframes orb { to { filter: hue-rotate(40deg); transform: rotate(360deg); } }
.chat { padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.chat-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rim); }
.chat-head b { display: block; font-weight: 500; }
.chat-head small { color: var(--subtle); font-size: 0.84rem; }
.bubble { max-width: 88%; padding: 13px 18px; border-radius: 22px; font-size: 1rem; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: linear-gradient(120deg, rgba(120, 170, 255, 0.34), rgba(150, 150, 255, 0.3)); border: 1px solid rgba(150, 190, 255, 0.4); border-bottom-right-radius: 8px; }
.bubble.ai { align-self: flex-start; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--rim); border-bottom-left-radius: 8px; }
.bubble .used { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rim); font-size: 0.82rem; color: var(--subtle); }
.chat .btn-row { margin-top: 4px; }
.chat-note { font-size: 0.8rem; color: var(--subtle); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; padding: clamp(22px, 3vw, 36px); }
.field { display: grid; gap: 8px; }
.field > label, .field > legend { font-size: 0.92rem; font-weight: 500; padding: 0; }
.field > legend { margin-bottom: 8px; }
.field small { color: var(--subtle); font-size: 0.84rem; }
.input {
  width: 100%; padding: 14px 18px; border-radius: 16px;
  border: 1px solid var(--rim); background: rgba(6, 8, 12, 0.5);
  color: var(--ink); font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(106, 166, 255, 0.18); }
textarea.input { min-height: 140px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.option { position: relative; display: block; padding: 16px 18px 16px 50px; border-radius: 18px; border: 1px solid var(--rim); background: rgba(255, 255, 255, 0.03); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.option input { position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; accent-color: var(--accent); }
.option b { display: block; font-weight: 500; font-size: 0.98rem; }
.option span { display: block; color: var(--subtle); font-size: 0.86rem; line-height: 1.4; }
.option:has(input:checked) { border-color: var(--accent); background: rgba(106, 166, 255, 0.09); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 0.94rem; color: var(--muted); }
.form-status.ok { color: var(--sage); }
.form-status.err { color: var(--signal); }

/* ---------- Footer ---------- */
.closing { position: relative; margin-top: clamp(40px, 6vw, 80px); overflow: hidden; border-block: 1px solid var(--rim); }
.closing .bg { position: absolute; inset: 0; z-index: -1; }
.closing .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: saturate(0.5); }
.closing .bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50rem 26rem at 50% 100%, rgba(90, 140, 240, 0.34), transparent 70%), linear-gradient(180deg, var(--carbon), rgba(12, 14, 18, 0.55) 50%, rgba(12, 14, 18, 0.9)); }
.closing .inner { padding-block: clamp(80px, 12vw, 160px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.closing h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
.site-foot { padding-block: clamp(48px, 6vw, 80px) 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); gap: 32px 24px; }
.foot-brand { display: flex; flex-direction: column; gap: 18px; max-width: 24rem; }
.foot-brand img { width: 120px; }
.foot-brand p { color: var(--muted); font-size: 0.94rem; }
.foot-col h2 { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 14px; }
.foot-col li + li { margin-top: 9px; }
.foot-col a { color: var(--muted); font-size: 0.95rem; }
.foot-col a:hover { color: var(--ink); }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.84rem; color: var(--subtle); }
.foot-base a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Home ---------- */
.hero { position: relative; padding: clamp(130px, 15vw, 190px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero h1 { font-size: clamp(3.1rem, 8.4vw, 6.6rem); line-height: 0.96; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.hero-tag { display: inline-flex; gap: 10px; align-items: center; }
.hero-tag i { width: 4px; height: 4px; border-radius: 50%; background: var(--subtle); }
.hero-note { font-size: 0.88rem; color: var(--subtle); }
.hero-stage { position: relative; min-height: 600px; display: grid; place-items: center; }
.hero-stage::before { content: ""; position: absolute; inset: 4% -10% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(96, 150, 255, 0.34), rgba(150, 140, 255, 0.12) 55%, transparent); filter: blur(20px); }
.hero-stage .phone { position: relative; z-index: 2; width: min(66%, 300px); transform: rotate(2.5deg); }
.hero-stage .phone.back { position: absolute; z-index: 1; width: min(56%, 255px); left: 0; top: 9%; transform: rotate(-7deg); opacity: 0.82; }
.float { position: absolute; z-index: 3; padding: 16px 18px; border-radius: 22px; font-size: 0.9rem; animation: bob 7s ease-in-out infinite; }
.float.plan { right: -2%; top: 10%; width: 228px; }
.float.kudos { left: 0; bottom: 22%; animation-delay: -2.5s; display: flex; gap: 12px; align-items: center; }
.float.credit { right: 0; bottom: 9%; animation-delay: -4.5s; display: flex; gap: 12px; align-items: center; }
.float .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.float .row b { font-weight: 500; }
.float li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--muted); }
.float li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--rim-strong); }
.float li.done { color: var(--ink); }
.float li.done::before { border-color: transparent; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%230b0f16' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.4'/%3E%3C/svg%3E") center no-repeat; }
.float .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone); }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { min-height: 560px; max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
  .hero-stage { min-height: 500px; }
  .hero-stage .phone.back { left: 4%; }
  .btn-row .btn { flex: 1 1 auto; }
  .float.plan { width: 190px; right: -6px; top: 2%; font-size: 0.82rem; }
  .float.kudos { left: -6px; }
  .float.credit { right: -6px; bottom: 3%; }
}

.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px; }
.pillar { padding: 24px clamp(14px, 2vw, 26px); display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--rim); }
.pillar:first-child { border-left: 0; }
.pillar h2 { font-size: 1.3rem; letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; }
.pillar h2::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--tone); }
.pillar p { font-size: 0.93rem; color: var(--muted); }
@media (max-width: 940px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillar { border-left: 0; border-top: 1px solid var(--rim); } .pillar:first-child { border-top: 0; grid-column: 1 / -1; } }

/* Horizontal rail of app screens */
.rail { display: flex; gap: clamp(18px, 2.4vw, 30px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 34px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: none; width: min(78vw, 290px); scroll-snap-align: center; display: flex; flex-direction: column; gap: 18px; }
.rail .phone { width: 100%; transition: transform 0.4s ease; }
.rail > li:hover .phone { transform: translateY(-8px); }
.rail h3 { margin-top: 6px; }
.rail p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.rail-ctrl { display: flex; gap: 10px; }
.rail-ctrl .round { transition: border-color 0.2s ease, transform 0.2s ease; }
.rail-ctrl .round:hover { border-color: var(--rim-strong); transform: translateY(-2px); }

/* Daily loop */
.loop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.loop-list { display: flex; flex-direction: column; gap: 8px; }
.loop-tab { width: 100%; text-align: left; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; border-radius: 24px; border: 1px solid transparent; background: none; transition: background 0.3s ease, border-color 0.3s ease; }
.loop-tab .dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rim); font-size: 0.86rem; color: var(--subtle); transition: all 0.3s ease; }
.loop-tab b { display: block; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.015em; color: var(--muted); transition: color 0.3s ease; }
.loop-tab span.body { display: block; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease; }
.loop-tab:hover b { color: var(--ink); }
.loop-tab[aria-selected="true"] { background: var(--glass); border-color: var(--rim); box-shadow: var(--shadow); }
.loop-tab[aria-selected="true"] b { color: var(--ink); }
.loop-tab[aria-selected="true"] .dot { background: var(--main-grad); color: #0b0f16; border-color: transparent; font-weight: 600; box-shadow: 0 0 0 6px rgba(106, 166, 255, 0.16); }
.loop-tab[aria-selected="true"] span.body { max-height: 8em; opacity: 1; margin-top: 6px; }
.loop-screens { position: relative; }
.loop-screens .phone img { transition: opacity 0.35s ease; }
.loop-screens .phone img.swap { opacity: 0; }
@media (max-width: 860px) { .loop { grid-template-columns: minmax(0, 1fr); } .loop-screens { order: -1; } .loop-screens .phone { width: min(70%, 260px); } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.bento > * { grid-column: span 2; min-height: 300px; }
.bento > .w3 { grid-column: span 3; }
.bento > .w4 { grid-column: span 4; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 26px; transition: transform 0.3s ease, border-color 0.3s ease; }
.tile:hover { transform: translateY(-4px); border-color: var(--rim-strong); }
.tile > img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); transition: transform 0.7s ease; z-index: 0; }
.tile:hover > img.cover { transform: scale(1.05); }
.tile.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 14, 18, 0.1) 25%, rgba(12, 14, 18, 0.94)); z-index: 0; }
.tile > *:not(.cover) { position: relative; z-index: 1; }
.tile p { color: var(--muted); font-size: 0.96rem; max-width: 34ch; }
.tile h3 { font-size: 1.5rem; }
.tile .top { margin-bottom: auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mini-stats { display: flex; gap: 22px; margin-bottom: auto; padding-top: 6px; }
.mini-stats b { display: block; font-size: 2.2rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.mini-stats span { color: var(--subtle); font-size: 0.84rem; }
.ring { --p: 60; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--tone) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); }
.ring-wrap { position: relative; width: 96px; height: 96px; flex: none; }
.ring-wrap b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; font-weight: 300; }
.nudge { display: flex; gap: 12px; align-items: center; margin-bottom: auto; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--rim); background: rgba(255, 255, 255, 0.04); font-size: 0.94rem; }
@media (max-width: 940px) { .bento > *, .bento > .w3, .bento > .w4 { grid-column: span 3; } }
@media (max-width: 620px) { .bento > *, .bento > .w3, .bento > .w4 { grid-column: 1 / -1; min-height: 260px; } }

.ask { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .ask { grid-template-columns: minmax(0, 1fr); } }

.vault { padding: clamp(26px, 4.5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 4vw, 64px); align-items: center; overflow: hidden; }
.vault .stack { align-items: flex-start; }
.vault .stats { width: 100%; padding-block: 8px; }
.rarity { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .vault { grid-template-columns: minmax(0, 1fr); } }

.rows { display: grid; }
.rows li { display: grid; grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 4px; border-top: 1px solid var(--rim); }
.rows li b { font-weight: 500; font-size: 1.08rem; }
.rows li span { color: var(--muted); }
@media (max-width: 620px) { .rows li { grid-template-columns: 1fr auto; } .rows li span { grid-column: 1 / -1; grid-row: 2; } }

.start a { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; }
.start small { color: var(--subtle); font-size: 0.86rem; }
.start b { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; }
.start span { color: var(--tone); font-size: 0.92rem; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; }

/* ---------- 3D canvas, smooth scroll ---------- */
#bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.three-on #bg3d { opacity: 1; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.bar { transition: height 0.4s ease, background 0.4s ease, box-shadow 0.4s ease; }
.scrolled .bar { height: 56px; background: linear-gradient(180deg, rgba(26, 32, 44, 0.86), rgba(12, 15, 21, 0.86)); }

/* ---------- Liquid glass ----------
   A lit top edge, a soft caustic underneath and a sheen that follows the pointer.
   On press, rings spread from the touch point and the surface wobbles (fx.js). */
.liquid { position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.btn.liquid, .round.liquid {
  background:
    radial-gradient(120% 90% at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 45%, rgba(140, 180, 255, 0.09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(255, 255, 255, 0.06), inset 0 -10px 18px -10px rgba(130, 175, 255, 0.35), 0 12px 30px -14px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
}
.btn-main.liquid {
  background:
    radial-gradient(120% 100% at var(--mx, 30%) var(--my, 0%), #fff, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #fbfdff, #dfe9f7 60%, #cfe0fb);
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 14px -8px rgba(90, 140, 240, 0.5), 0 14px 40px -12px rgba(120, 170, 255, 0.6);
}
.btn.liquid::before, .round.liquid::before {
  content: ""; position: absolute; inset: 1px 1px 52% 1px; border-radius: inherit; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  opacity: 0.7;
}
.liquid .wave {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  translate: -50% -50%; scale: 0; opacity: 0;
  border: 1.5px solid rgba(190, 225, 255, 0.85);
  /* several crests inside one drop, so bands keep crossing the button as it spreads */
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0) 8%, rgba(180, 220, 255, 0.26) 20%, rgba(255, 255, 255, 0) 30%, rgba(180, 220, 255, 0.3) 46%, rgba(255, 255, 255, 0) 56%, rgba(180, 220, 255, 0.34) 74%, rgba(255, 255, 255, 0.6) 95%, rgba(255, 255, 255, 0) 100%);
  animation: wave 1.35s cubic-bezier(0.16, 0.7, 0.3, 1) forwards;
}
.btn-main .wave { border-color: rgba(70, 130, 255, 0.7); background: radial-gradient(closest-side, rgba(90, 150, 255, 0) 8%, rgba(90, 150, 255, 0.3) 20%, rgba(90, 150, 255, 0) 30%, rgba(100, 140, 255, 0.34) 46%, rgba(90, 150, 255, 0) 56%, rgba(100, 140, 255, 0.4) 74%, rgba(120, 130, 255, 0.6) 95%, rgba(255, 255, 255, 0) 100%); }
@keyframes wave { 0% { scale: 0; opacity: 0.95; } 60% { opacity: 0.5; } 100% { scale: 1; opacity: 0; } }
.is-wobbling { filter: url(#liquid); }
.liquid:active { transition-duration: 0.08s; }

/* The row of phones, when the scroll drives it (fx.js adds .is-pinned). */
.rail.is-pinned { overflow: visible; scroll-snap-type: none; will-change: transform; }
.rail.is-pinned > li { width: min(290px, calc((100vh - 390px) / 2.165)); }
:has(> .rail.is-pinned) .rail-ctrl, section:has(.rail.is-pinned) .rail-ctrl { display: none; }
.hero h1 span { padding-bottom: 0.06em; }

@media (min-width: 861px) { .loop-screens .phone { width: min(300px, calc((100vh - 320px) / 2.165)); } }
.has-cover .chip { background: rgba(10, 13, 18, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- Deck on a clock face ("Inside the app") ----------
   Without GSAP this is the plain row of phones; fx.js adds .is-deck. */
.clock, .deck-meter { display: none; }
.deck-foot { margin-bottom: 28px; }
.is-deck { --ph: min(620px, calc(100vh - 230px)); min-height: 100vh; padding-block: 96px 24px; display: grid; align-items: center; }
.is-deck .deck { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.is-deck .section-head { margin-bottom: 28px; }
.is-deck .rail-ctrl { display: none; }
.is-deck .deck-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 26px 0 0; }
.is-deck .deck-meter { display: flex; align-items: baseline; gap: 8px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.deck-meter b { display: inline-block; font-size: 3.2rem; font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.deck-caps { display: none; }
.is-deck .deck-caps { display: grid; padding: 22px 0 0; border-top: 1px solid var(--rim); }
.deck-cap { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; }
.deck-cap.on { opacity: 1; transform: none; pointer-events: auto; }
.deck-cap h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-top: 14px; letter-spacing: -0.02em; }
.deck-cap p { color: var(--muted); margin-top: 8px; max-width: 30rem; }
.is-deck .deck-stage { position: relative; display: grid; place-items: center; min-height: calc(var(--ph) * 1.12); }
.is-deck .clock { display: block; position: absolute; left: 50%; top: 50%; width: min(calc(var(--ph) * 1.12), 100vw - 20px); aspect-ratio: 1; translate: -50% -50%; overflow: visible; }
.clock .face { fill: rgba(120, 165, 255, 0.045); }
.clock .track { fill: none; stroke: var(--rim); stroke-width: 1.5; }
.clock .arc { fill: none; stroke: url(#clock-g); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; filter: drop-shadow(0 0 8px rgba(106, 166, 255, 0.8)); }
.clock .ticks line { stroke: rgba(170, 200, 245, 0.3); stroke-width: 1.5; stroke-linecap: round; }
.clock .ticks .major { stroke: rgba(200, 225, 255, 0.7); stroke-width: 2; }
.clock .spin { fill: none; stroke: rgba(150, 190, 240, 0.28); stroke-width: 1; stroke-dasharray: 2 10; transform-origin: 300px 300px; animation: clock-spin 60s linear infinite; }
@keyframes clock-spin { to { transform: rotate(360deg); } }
.clock .mark { fill: var(--subtle); font: 500 15px var(--sans); text-anchor: middle; dominant-baseline: central; transition: fill 0.3s ease, font-size 0.3s ease; }
.clock .mark.past { fill: var(--muted); }
.clock .mark.on { fill: var(--ice); font-size: 21px; }
.clock .hand line { stroke: url(#clock-g); stroke-width: 2; stroke-linecap: round; opacity: 0.7; }
.clock .hand circle { fill: #fff; filter: drop-shadow(0 0 10px rgba(140, 190, 255, 1)); }
.clock .hub { fill: var(--ice); }
.is-deck .rail { position: relative; display: block; width: calc(var(--ph) / 2.14); height: var(--ph); margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
.is-deck .rail > li { position: absolute; inset: 0; width: auto; display: block; transform-origin: 50% 110%; will-change: transform, opacity; }
.is-deck .rail > li:hover .phone { transform: none; }
.is-deck .rail .phone { width: 100%; }
@media (max-width: 860px) {
  .is-deck { --ph: min(440px, 45vh); padding-block: 84px 12px; }
  .is-deck .deck { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .is-deck .deck-side { display: contents; }
  .is-deck .section-head { order: 0; margin-bottom: 0; gap: 8px; }
  .is-deck .section-head .lead { display: none; }
  .is-deck .section-head h2 { font-size: 1.6rem; }
  .is-deck .deck-stage { order: 1; }
  .is-deck .deck-caps { order: 2; padding-top: 12px; }
  .is-deck .deck-foot { order: 3; margin-top: 8px; }
  .is-deck .deck-foot .btn { display: none; }
  .deck-meter b { font-size: 2rem; }
  .deck-cap h3 { margin-top: 8px; font-size: 1.25rem; }
  .deck-cap p { font-size: 0.92rem; margin-top: 4px; }
}

/* ---------- Motion ---------- */
.gsap-on .reveal { transition: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Range sliders (BurnCredit calculator) */
input[type="range"] { accent-color: var(--tone); width: 100%; height: 28px; }
@media (max-width: 620px) {
  .section-head.row { align-items: flex-start; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  th, td { padding: 13px 16px; }
  .page-hero { padding-top: 120px; }
}
