/* Tumbler marketing page. Tokens are DESIGN-Tumbler.md v2.0 "Shear Line" (Shear.swift), lifted exactly.
   Amber appears only as the shear line and the 2pt seat. Buttons are a graphite slab. Mono is for change numbers. */

@font-face { font-family: "Atkinson Next"; src: url("assets/fonts/atkinson-next-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("assets/fonts/atkinson-next-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("assets/fonts/atkinson-next-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("assets/fonts/atkinson-next-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url("assets/fonts/atkinson-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #F2F2EF; --panel: #E6E9E8; --raised: #FAFAF8; --sunken: #E9EBE9;
  --ink: #1A1C1B; --ink2: #555B59; --ink3: #626866;
  --line: #D3D6D2; --line-strong: #B9BDB8;
  --amber: #C8871E; --amber-ink: #87580D;
  --slab: #1A1C1B; --slab-ink: #F2F2EF; --slab-hover: #3A3E3C;
  --good: #2E6B48; --problem: #A8321F;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 112px;
  --r-control: 7px; --r-card: 12px; --r-sheet: 16px;
  --font: "Atkinson Next", system-ui, sans-serif;
  --mono: "Atkinson Mono", ui-monospace, monospace;
  --ease-settle: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1B2124; --panel: #161B1E; --raised: #232B2F; --sunken: #13181B;
    --ink: #E6E8E6; --ink2: #9CA8AD; --ink3: #8A949A;
    --line: #2F3A3F; --line-strong: #46545A;
    --amber: #E0A14A; --amber-ink: #E8B163;
    --slab: #E6E8E6; --slab-ink: #1B2124; --slab-hover: #C9CECB;
    --good: #7CC59A; --problem: #F0896F;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.55 var(--font); text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--amber); color: #1A1C1B; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-control); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--s4)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 20; background: var(--slab); color: var(--slab-ink); padding: var(--s2) var(--s4); border-radius: var(--r-control); text-decoration: none; font-weight: 600; }
.skip:focus { top: var(--s3); }
.chg { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--amber-ink); }

/* ---- header ---------------------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(10px); }
.top__in { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }
.lockup img { border-radius: 7px; }
.top__nav { display: flex; gap: var(--s5); margin-left: auto; font-size: 16px; }
.top__nav a { text-decoration: none; color: var(--ink2); padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s ease; }
.top__nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---- buttons --------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-control); font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn--slab { background: var(--slab); color: var(--slab-ink); border: 1px solid var(--slab); }
.btn--slab:hover { background: var(--slab-hover); border-color: var(--slab-hover); }
.btn--slab:active { transform: translateY(1px); }
.btn__meta { font-family: var(--mono); font-weight: 500; font-size: 15px; opacity: .8; }
.btn--quiet { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--quiet:hover { border-color: var(--ink); }
.btn--quiet:active { background: var(--sunken); }
.top__film { min-height: 44px; padding: 0 var(--s4); font-size: 15px; }

/* ---- the shear line (the instrument) --------------------------------------------------------------------- */
.shear { width: min(560px, 100%); margin: var(--s6) auto 0; }
.shear__line { position: relative; height: 3px; display: flex; gap: 0; }
.shear__line i { display: block; flex: 1; height: 3px; background: var(--amber); transition: transform 1.1s var(--ease-settle); }
.shear__words { margin-top: var(--s3); font-size: 17px; color: var(--ink2); display: flex; justify-content: center; gap: .4em; flex-wrap: wrap; }
.shear__words b { color: var(--ink); font-weight: 700; }
.shear__wait { display: none; }
/* Motion path: the halves start apart with the waiting words, then seat once. */
.seat-anim .shear:not(.is-seated) .shear__l { transform: translateX(-18px); }
.seat-anim .shear:not(.is-seated) .shear__r { transform: translateX(18px); }
.seat-anim .shear:not(.is-seated) .shear__wait { display: flex; }
.seat-anim .shear:not(.is-seated) .shear__ok { display: none; }

/* ---- hero ------------------------------------------------------------------------------------------------ */
.hero { padding: var(--s8) 0 var(--s9); text-align: center; }
.hero__in { display: grid; justify-items: center; }
.hero__mark { width: 88px; height: 88px; border-radius: 20px; }
.hero__title { margin-top: var(--s6); font-weight: 800; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.03; letter-spacing: -0.03em; text-wrap: balance; }
.hero__lead { margin-top: var(--s5); max-width: 40rem; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink2); text-wrap: pretty; }
.hero__act { margin-top: var(--s6); display: grid; justify-items: center; gap: var(--s3); }
.hero__price { font-size: 16px; color: var(--ink2); }
.hero__price b { color: var(--ink); }
.proof { margin-top: var(--s7); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s5); font-size: 15px; color: var(--ink2); }
.proof li { display: inline-flex; align-items: center; gap: var(--s2); }
.proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); }

/* ---- bands ----------------------------------------------------------------------------------------------- */
.band { padding: var(--s9) 0; border-top: 1px solid var(--line); }
.head { max-width: 46rem; margin-bottom: var(--s7); }
.head h2, .fill__copy h2, .private h2, .price__copy h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.head p { margin-top: var(--s3); color: var(--ink2); font-size: 19px; }
h3 { font-weight: 700; font-size: 19px; line-height: 1.3; }

/* ---- film ------------------------------------------------------------------------------------------------ */
.film { background: var(--panel); }
.player { position: relative; border-radius: var(--r-sheet); overflow: hidden; background: #1A1C1B; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.player__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #1A1C1B; }
.player__play { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: var(--s3); min-height: 56px; padding: 0 26px 0 20px; border: 1px solid #1A1C1B; border-radius: var(--r-control); background: #1A1C1B; color: #F2F2EF; font: 600 18px/1 var(--font); cursor: pointer; transition: background-color .2s ease; }
.player__play:hover { background: #3A3E3C; }
.player__play:focus-visible { outline: 2px solid #F2F2EF; outline-offset: 3px; }
.player__tri { width: 0; height: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.player__len { font-family: var(--mono); font-weight: 500; font-size: 15px; opacity: .8; margin-left: 4px; }
.player__err { position: absolute; inset: 0; display: grid; place-content: center; gap: var(--s2); padding: var(--s5); text-align: center; background: #1A1C1B; color: #F2F2EF; font-size: 17px; }
.player__err[hidden] { display: none; }
.player__err a { color: #F2F2EF; font-weight: 600; }
.words { margin-top: var(--s5); }
.words summary { cursor: pointer; font-weight: 600; width: fit-content; padding: var(--s2) 0; }
.words summary:hover { text-decoration: underline; }
.words ol { margin-top: var(--s3); display: grid; gap: var(--s2); max-width: 46rem; color: var(--ink2); list-style: decimal; padding-left: 1.4em; }

/* ---- how ------------------------------------------------------------------------------------------------- */
.map { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--s5); align-items: center; }
.map__net { border: 2px solid var(--line-strong); border-radius: 28px; padding: var(--s6); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s5); align-items: center; }
.map__label { grid-column: 1 / -1; font-weight: 700; font-size: 19px; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); align-items: baseline; }
.map__label span { font-weight: 400; font-size: 16px; color: var(--ink2); }
.map__devs { display: grid; gap: var(--s3); }
.map__devs li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 14px var(--s4); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); }
.map__devs b { font-weight: 600; }
.map__home { background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-sheet); padding: var(--s5); display: grid; gap: var(--s2); }
.map__home-h { font-weight: 800; font-size: 22px; }
.map__home > p:not(.map__home-h) { color: var(--ink2); font-size: 16px; }
.log { margin-top: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s3); display: grid; gap: 6px; font-size: 15px; }
.log li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: var(--s3); align-items: baseline; }
.log__by { color: var(--ink2); }
.map__void { border: 2px dashed var(--line-strong); border-radius: var(--r-sheet); padding: var(--s6) var(--s4); text-align: center; color: var(--ink2); }
.map__void-h { font-weight: 700; color: var(--ink); }
.map__void-s { margin-top: var(--s1); font-size: 15px; }
.facts { margin-top: var(--s7); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
.facts li { border-top: 1px solid var(--line-strong); padding-top: var(--s4); }
.facts p { margin-top: var(--s2); color: var(--ink2); font-size: 16px; }

/* ---- product surfaces (drawn in the app's own tokens and words) ------------------------------------------- */
.sline { height: 2px; display: flex; gap: 0; }
.sline i { flex: 1; background: var(--amber); }
.sline[data-line="gap"] { gap: 22px; }
.sline[data-line="gap"]::after { content: ""; flex: 1; background: var(--amber); }
.sline[data-line="break"] i { flex: 0 0 40%; }
.sline[data-line="break"]::after { content: ""; flex: 1; margin-left: 14px; background: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 18px); }
.sheet, .surface { background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-sheet); overflow: hidden; }
.sheet__status, .surface__status { padding: var(--s3) var(--s5) 0; font-size: 15px; color: var(--ink2); }
.sheet__status b, .surface__status b { color: var(--ink); }
.sheet__head { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.sheet__app { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink2); }
.sheet__title { font-weight: 800; font-size: 24px; }
.sheet__sub { color: var(--ink2); font-size: 16px; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); position: relative; }
.row.is-sel { background: var(--ground); }
.row.is-sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--amber); }
.row__t { display: grid; min-width: 0; }
.row__t b { font-weight: 700; }
.row__t span { color: var(--ink2); font-size: 15px; overflow-wrap: anywhere; }
.mono-c { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; }
.chips { display: flex; gap: 6px; }
.chip { font-size: 14px; font-weight: 600; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 6px; }
.sheet__foot { display: flex; justify-content: flex-end; gap: var(--s3); padding: var(--s4) var(--s5); background: var(--sunken); }
.sbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--raised); font-weight: 600; font-size: 16px; }
.sbtn--slab { background: var(--slab); color: var(--slab-ink); border-color: var(--slab); }
.sbtn--sm { min-height: 34px; font-size: 15px; margin-top: var(--s3); width: fit-content; }

/* ---- fill ------------------------------------------------------------------------------------------------ */
.fill__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s8); align-items: center; }
.ticks { margin-top: var(--s5); display: grid; gap: var(--s3); }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s3); align-items: baseline; }
.ticks li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: translateY(-3px) rotate(-45deg); }
.fill__shot { position: relative; padding-top: 52px; }
.offline { position: absolute; top: 0; right: 0; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-control); padding: 6px 12px; font-size: 15px; font-weight: 600; }

/* ---- failures (the ladder) ------------------------------------------------------------------------------- */
.ladder { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s7); align-items: start; }
.ladder__list { display: grid; border-top: 1px solid var(--line); }
.ladder__list button { appearance: none; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 18px var(--s4) 18px var(--s5); font: 600 19px/1.3 var(--font); color: var(--ink3); cursor: pointer; position: relative; transition: color .2s ease, background-color .2s ease; }
.ladder__list button:hover { color: var(--ink); }
.ladder__list button[aria-selected="true"] { color: var(--ink); background: var(--raised); }
.ladder__list button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--amber); }
.ladder__list button:focus-visible { outline-offset: -2px; }
.panel:focus-visible { outline-offset: 6px; }
.surface { padding-bottom: var(--s5); display: grid; gap: var(--s3); }
.surface > .banner, .surface > .recovery { margin: var(--s3) var(--s5) 0; }
.banner { background: var(--sunken); border-radius: var(--r-card); padding: var(--s4) var(--s5); display: grid; gap: var(--s1); font-size: 16px; color: var(--ink2); }
.banner b { color: var(--ink); font-size: 17px; }
.banner--good b { color: var(--good); }
.banner--problem b { color: var(--problem); }
.recovery { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); align-items: center; padding: var(--s4) 0; }
.avs { display: flex; }
.avs i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; background: var(--panel); border: 2px solid var(--raised); margin-left: -8px; }
.avs i:first-child { margin-left: 0; }
.panel__say { margin-top: var(--s5); font-size: 19px; max-width: 34rem; }
.panel[hidden] { display: none; }
/* Without scripts every rung shows in turn with its own heading; with them, the list becomes tabs. */
.ladder:not(.is-tabs) { grid-template-columns: minmax(0, 1fr); }
.ladder:not(.is-tabs) .ladder__list { display: none; }
.ladder:not(.is-tabs) .ladder__panels { display: grid; gap: var(--s7); }
.ladder.is-tabs .panel__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.panel__h { margin-bottom: var(--s4); font-size: 21px; }

/* ---- private ----------------------------------------------------------------------------------------------- */
.private__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s8); }
.private__lead { font-size: 22px; line-height: 1.45; padding-bottom: var(--s5); border-bottom: 1px solid var(--line-strong); text-wrap: pretty; }
.plain { margin-top: var(--s5); display: grid; gap: var(--s4); }
.plain b { font-weight: 700; }
.fine { margin-top: var(--s5); font-size: 15px; color: var(--ink2); max-width: 42rem; }

/* ---- move ------------------------------------------------------------------------------------------------ */
.formats { border-top: 1px solid var(--line-strong); }
.formats li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s5); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.formats__k { font-weight: 700; }
.formats li > span:last-child { color: var(--ink2); }
.move__note { margin-top: var(--s5); font-size: 19px; }

/* ---- price ----------------------------------------------------------------------------------------------- */
.price { background: var(--panel); }
.price__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.price__copy p { margin-top: var(--s4); color: var(--ink2); font-size: 19px; max-width: 30rem; }
.price__card { background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-sheet); padding: var(--s6); }
.price__amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s3); }
.price__num { font-weight: 800; font-size: clamp(52px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; }
.price__once { color: var(--ink2); font-size: 18px; }
.price__act { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s5); border-top: 1px solid var(--line); }
.price__status { display: inline-flex; align-items: center; gap: var(--s3); font-weight: 700; }
.seat { width: 2px; height: 22px; background: var(--amber); }

/* ---- footer ---------------------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s8); font-size: 15px; color: var(--ink2); }
.foot__in { display: grid; gap: var(--s2); }
.lockup--sm { font-size: 17px; color: var(--ink); margin-bottom: var(--s2); }
.lockup--sm img { border-radius: 6px; }

/* ---- motion: entrances settle as a band enters; removed entirely under reduced motion -------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rv { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes settle { from { opacity: .35; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  }
  .hero__title, .hero__lead, .hero__act { animation: rise .7s var(--ease-settle) both; }
  .hero__lead { animation-delay: .06s; }
  .hero__act { animation-delay: .12s; }
  @keyframes rise { from { opacity: .3; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .panel:not([hidden]) { animation: swap .25s ease both; }
  @keyframes swap { from { opacity: .4; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- narrow screens -------------------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fill__in, .private__in, .price__in, .ladder { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .map { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .top__nav { display: none; }
  .top__film { margin-left: auto; }
  .hero { padding: var(--s7) 0 var(--s8); }
  .hero__mark { width: 72px; height: 72px; border-radius: 16px; }
  .band { padding: var(--s8) 0; }
  .map__net { grid-template-columns: minmax(0, 1fr); padding: var(--s5) var(--s4); border-radius: 20px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .formats li { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .ladder__list { display: flex; overflow-x: auto; border-top: 0; gap: var(--s2); padding-bottom: var(--s2); scroll-snap-type: x proximity; }
  .ladder__list button { flex: 0 0 auto; max-width: 74vw; border: 1px solid var(--line-strong); border-radius: var(--r-control); padding: 12px var(--s4); font-size: 16px; scroll-snap-align: start; }
  .ladder__list button[aria-selected="true"]::before { display: none; }
  .ladder__list button[aria-selected="true"] { border-color: var(--ink); }
  .row { grid-template-columns: 36px minmax(0, 1fr); padding: var(--s3) var(--s4); }
  .row .chips { grid-column: 2; }
  .mono-c { width: 36px; height: 36px; }
  .sheet__head, .sheet__status, .surface__status { padding-inline: var(--s4); }
  .surface > .banner, .surface > .recovery { margin-inline: var(--s4); }
  .price__card { padding: var(--s5); }
  .player__play { min-height: 48px; font-size: 16px; padding: 0 18px 0 16px; }
}
