/* ────────────────────────────────────────────────────────────
   Tuesday — marketing site
   The page is a single day. Tones (dawn → day → dusk → night)
   are tweened on :root by main.js as sections scroll into view.
   ──────────────────────────────────────────────────────────── */

:root {
  /* Tone-driven tokens (dawn defaults) */
  --bg: #F7F1E8;
  --surface: #FFFFFF;
  --ink: #242E3B;
  --muted: #626D72;
  --line: #DED9CF;
  --sky-a: #F6C3A3;
  --sky-b: #F4DDB8;
  --sky-c: #CFE4D9;
  --star: 0;

  /* Tuesday tints (light appearance, straight from the asset catalog) */
  --coral: #B94A36;
  --mint: #34775E;
  --blue: #376999;
  --gold: #805A19;
  --lilac: #66549B;
  --red: #E5483A;

  /* Fixed app-screen colors for device mockups */
  --app-bg: #F9F8F4;
  --app-surface: #FFFFFF;
  --app-ink: #242E3B;
  --app-muted: #626D72;
  --app-line: #D6D9D4;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --round: ui-rounded, "SF Pro Rounded", "Figtree", system-ui, sans-serif;

  --gutter: 20px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 108px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--coral) 30%, transparent); }
:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

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

/* ── Atmosphere ─────────────────────────────────────────────── */
.sky { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.orb-a { width: 62vmax; height: 62vmax; background: var(--sky-a); top: -26vmax; right: -18vmax; }
.orb-b { width: 48vmax; height: 48vmax; background: var(--sky-b); bottom: -22vmax; left: -16vmax; }
.orb-c { width: 34vmax; height: 34vmax; background: var(--sky-c); top: 38%; left: 42%; opacity: .4; }
.stars {
  position: absolute; inset: 0; opacity: var(--star);
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 41% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 56% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 68% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 79% 47%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 90% 74%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 62% 56%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 28%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 44%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { filter: brightness(.7); } to { filter: brightness(1.2); } }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Day rail (the page’s clock) ────────────────────────────── */
.dayrail { position: fixed; left: 30px; top: 16vh; bottom: 16vh; width: 52px; z-index: 40; display: none; }
@media (min-width: 1100px) { .dayrail { display: block; } }
.rail-track { position: absolute; inset: 0; }
.rail-track::before { content: ""; position: absolute; left: 34px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rail-tick { position: absolute; left: 28px; width: 7px; height: 1px; background: var(--line); }
.rail-tick.major { width: 12px; left: 23px; background: var(--muted); opacity: .6; }
.rail-tick span {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 600 10px/1 var(--round); color: var(--muted); letter-spacing: .02em; white-space: nowrap;
}
.rail-handle {
  position: absolute; left: -6px; top: 0; transform: translateY(-50%);
  display: flex; align-items: center; will-change: top;
}
.rail-handle span {
  background: var(--red); color: #fff; font: 700 11px/1 var(--round);
  font-variant-numeric: tabular-nums; padding: 6px 8px 6px 9px; border-radius: 7px;
  box-shadow: 0 6px 18px -6px rgba(229, 72, 58, .6); min-width: 44px; text-align: center;
}
.rail-handle::after { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px max(var(--gutter), 20px);
  transition: background .4s, box-shadow .4s, padding .4s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 70%, transparent);
  padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; font: 650 18px/1 var(--round); letter-spacing: -.01em; }
.brand img { border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(23, 29, 35, .4); }
.nav-links { display: none; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.nav-links a { opacity: .72; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-clock {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font: 700 12px/1 var(--round); font-variant-numeric: tabular-nums;
  padding: 7px 10px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.nav-clock i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
@media (min-width: 960px) { .nav-links { display: flex; } .nav-clock { margin-left: 0; } }
@media (min-width: 1100px) { .nav-clock { display: none; } }
@media (max-width: 480px) { .nav .btn-sm { display: none; } }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--spring), box-shadow .35s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ink { background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ink) 80%, transparent); }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 18%, transparent); background: color-mix(in srgb, var(--surface) 40%, transparent); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: #F9F8F4; color: #171D23; box-shadow: 0 16px 40px -14px rgba(255, 145, 125, .55); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ── Type ───────────────────────────────────────────────────── */
.display, .display-md, .display-sm, .big-words, .card h3, .detail h3, .pcard h3, figcaption b {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 400;
}
.display { font-size: clamp(3.3rem, 8.2vw, 7.8rem); line-height: .94; letter-spacing: -.04em; margin: 0; }
.display-md { font-size: clamp(2.6rem, 5.6vw, 5.2rem); line-height: .98; letter-spacing: -.035em; margin: 0; }
.display-sm { font-size: clamp(2rem, 3.5vw, 3.3rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 18px; }
em { font-style: italic; color: var(--coral); font-variation-settings: "SOFT" 100, "WONK" 1; }
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font: 800 11.5px/1 var(--round); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.kicker time {
  font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--red);
  padding: 5px 8px; border-radius: 6px; background: color-mix(in srgb, var(--red) 12%, transparent);
}
.kicker-center { justify-content: center; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 33em; margin: 28px 0 0; }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head-split { display: grid; gap: 28px; align-items: end; }
@media (min-width: 960px) { .section-head-split { grid-template-columns: 1.1fr .9fr; } }
.section-lede { color: var(--muted); font-size: 1.12rem; max-width: 34em; margin: 26px 0 0; }
.section-head-split .section-lede { margin: 0; }

section { position: relative; }

/* ── Timeline primitives (shared by every mock) ─────────────── */
.tl { position: relative; --gut: 46px; --label: 10.5px; }
.tl-hour { position: absolute; left: 0; right: 0; height: 0; }
.tl-hour::after { content: ""; position: absolute; left: var(--gut); right: 0; top: 0; border-top: 1px solid var(--tl-line, var(--app-line)); }
.tl-hour.half::after { border-top-style: dashed; opacity: .45; }
.tl-hour span {
  position: absolute; left: 0; width: calc(var(--gut) - 9px); top: 0; transform: translateY(-50%);
  text-align: right; font: 600 var(--label)/1 var(--round); color: var(--tl-muted, var(--app-muted)); white-space: nowrap;
}
.tl-lane { position: absolute; top: 0; bottom: 0; left: var(--gut); right: 2px; }
.tl-lane > * { position: absolute; left: 4px; right: 3px; }

.blk {
  --c: var(--coral);
  display: flex; align-items: center; gap: 8px; padding: 0 9px 0 6px;
  background: color-mix(in srgb, var(--c) 15%, var(--blk-base, var(--app-surface)));
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  border-radius: 9px; color: var(--blk-ink, var(--app-ink)); overflow: hidden;
  font-family: var(--round);
  box-shadow: 0 8px 18px -14px color-mix(in srgb, var(--c) 90%, transparent);
}
.blk::before { content: ""; flex: none; width: 4px; align-self: stretch; margin: 5px 0; border-radius: 2px; background: var(--c); }
.blk-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.blk-txt b { font-size: 13px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk-txt span { font-size: 10px; font-weight: 500; color: var(--blk-muted, var(--app-muted)); white-space: nowrap; }
.blk .grip { margin-left: auto; flex: none; width: 13px; color: color-mix(in srgb, var(--c) 60%, transparent); }
.blk.is-short .blk-txt span, .blk.is-short .grip { display: none; }
.blk.is-short .blk-txt b { font-size: 11.5px; }
.blk.is-short::before { margin: 3px 0; }
.blk.is-tiny > :not(.blk-txt) { display: none; }
.blk.is-tiny .blk-txt { opacity: 0; }
.blk.is-tiny::before { margin: 2px 0; }
.blk.is-tiny { border-radius: 5px; }

.blk.res {
  --c: var(--lilac);
  color: var(--c);
  background:
    repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--c) 7%, transparent) 7px 8px),
    color-mix(in srgb, var(--c) 10%, var(--blk-base, var(--app-surface)));
  border-color: color-mix(in srgb, var(--c) 24%, transparent);
  box-shadow: none;
}
.blk.res .blk-txt span { color: color-mix(in srgb, var(--c) 75%, transparent); }
.blk.res .res-ico { flex: none; width: 12px; height: 12px; }
.blk.res .lock { margin-left: auto; flex: none; width: 10px; height: 10px; }

.blk.ghost {
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  border: 1.5px dashed var(--coral); color: var(--coral); box-shadow: none; justify-content: flex-start;
  font: 650 11.5px/1 var(--round);
}
.blk.ghost::before { display: none; }
.blk.ghost.taken { --coral: var(--red); }
.blk.flash { animation: flash .9s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

.tl-now { position: absolute; left: calc(var(--gut) - 2px); right: 0; height: 2px; background: var(--red); border-radius: 2px; z-index: 3; transform-origin: left; }
.tl-now span {
  position: absolute; right: calc(100% - 6px); top: 50%; transform: translateY(-50%);
  background: var(--red); color: #fff; font: 700 10px/1 var(--round); font-variant-numeric: tabular-nums;
  padding: 5px 7px 5px 6px; border-radius: 6px;
}
.tl-now span::after {
  content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--red); border-radius: 1px; z-index: -1;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 90px; }
.hero-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px;
  font: 700 12px/1 var(--round); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.hero-title .line { display: block; overflow: hidden; padding: 0 .04em .08em 0; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.cta-center { justify-content: center; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 40px 0 0; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.platforms li { display: flex; align-items: center; gap: 22px; }
.platforms li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin-left: -13px; margin-right: -9px; }

.hero-stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  position: relative; width: 330px; height: 676px; border-radius: 56px; padding: 11px;
  background: linear-gradient(145deg, #2a3440, #11161b 40%, #1d242c);
  box-shadow:
    0 0 0 1.5px #3b4652 inset,
    0 50px 90px -40px rgba(36, 46, 59, .55),
    0 30px 60px -30px rgba(185, 74, 54, .25);
  will-change: transform;
}
.phone-island { position: absolute; top: 22px; left: 50%; width: 104px; height: 30px; transform: translateX(-50%); border-radius: 20px; background: #0b0e11; z-index: 3; }
.phone-screen { height: 100%; border-radius: 46px; background: var(--app-bg); overflow: hidden; display: flex; flex-direction: column; padding: 16px 16px 18px 10px; }
.phone-status { display: flex; justify-content: space-between; padding: 2px 16px 0 22px; font: 650 14px/1 var(--round); color: var(--app-ink); height: 28px; align-items: center; }
.status-icons { display: flex; gap: 4px; align-items: center; }
.status-icons i { display: block; width: 16px; height: 10px; border-radius: 3px; background: var(--app-ink); opacity: .85; }
.status-icons i:first-child { width: 14px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 1px; }
.status-icons i:last-child { width: 22px; border-radius: 3.5px; opacity: .9; }
.phone-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 22px 6px 14px 14px; }
.phone-head small { display: block; font: 800 10.5px/1 var(--round); letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; }
.phone-head strong { font: 650 24px/1 var(--round); letter-spacing: -.02em; color: var(--app-ink); }
.phone-chip { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--lilac); background: color-mix(in srgb, var(--lilac) 12%, transparent); }
.tl-phone { flex: 1; --gut: 44px; margin-top: 8px; }

.float-tile, .drag-tile, .dtile {
  display: flex; align-items: center; gap: 12px;
  background: var(--app-surface); color: var(--app-ink);
  border: 1px solid color-mix(in srgb, var(--app-line) 70%, transparent); border-radius: 13px;
  font: 650 14px/1 var(--round);
}
.float-tile i, .drag-tile i, .dtile i {
  flex: none; width: 24px; height: var(--h); border-radius: 4px;
  background: color-mix(in srgb, var(--coral) 20%, transparent); box-shadow: inset 3px 0 0 var(--coral);
}
.float-tile { position: absolute; padding: 13px 18px 13px 15px; box-shadow: 0 22px 40px -22px rgba(36, 46, 59, .45); pointer-events: none; }
.ft-1 { top: 7%; left: -2%; }
.ft-2 { top: 44%; right: -6%; }
.ft-3 { bottom: 8%; left: -6%; }
.drag-tile {
  position: absolute; top: 66%; right: -4%; padding: 0 16px 0 15px; height: 57px; width: 178px; z-index: 5;
  box-shadow: 0 28px 50px -20px rgba(36, 46, 59, .5);
  opacity: 0; pointer-events: none;
}
.drag-tile b { margin-left: auto; color: var(--coral); font-size: 16px; }
.hero-cursor {
  position: absolute; z-index: 6; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(36, 46, 59, .14); border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 14px rgba(36, 46, 59, .3); opacity: 0; pointer-events: none;
}
@media (max-width: 960px) {
  .ft-1 { left: 2%; } .ft-2 { right: 0; } .ft-3 { left: 0; }
  .drag-tile { right: 0; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 700 11px/1 var(--round); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--muted), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--red); animation: drip 2.2s var(--ease-out) infinite; }
@keyframes drip { to { top: 110%; } }
@media (max-height: 760px), (max-width: 960px) { .scroll-cue { display: none; } }

/* ── Manifesto ──────────────────────────────────────────────── */
.manifesto { padding: clamp(110px, 18vh, 220px) 0; }
.big-words { font-size: clamp(2.05rem, 4.7vw, 4.4rem); line-height: 1.1; letter-spacing: -.025em; margin: 0; max-width: 21em; }
.big-words .w { display: inline-block; white-space: pre; }

/* ── Build a day ────────────────────────────────────────────── */
.build-pin { min-height: 100svh; display: flex; align-items: center; padding: 96px 0 40px; }
.build-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 960px) { .build-grid { grid-template-columns: .82fr 1.18fr; } }
.steps { position: relative; min-height: 290px; }
.step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(26px); transition: opacity .55s var(--ease-out), transform .7s var(--ease-out); pointer-events: none; }
.step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.step.is-past { transform: translateY(-26px); }
.step p { color: var(--muted); font-size: 1.1rem; max-width: 29em; margin: 0; }
.step-dots { display: flex; gap: 6px; margin-top: 30px; }
.step-dots i { height: 4px; width: 16px; border-radius: 4px; background: var(--line); transition: width .5s var(--ease-out), background .4s; }
.step-dots i.on { width: 36px; background: var(--coral); }

.build-board {
  background: color-mix(in srgb, var(--app-bg) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--app-line) 70%, transparent);
  border-radius: 30px; padding: 22px 22px 24px 14px;
  box-shadow: 0 50px 100px -50px rgba(36, 46, 59, .4), 0 1px 0 #fff inset;
  height: min(76svh, 720px); display: flex; flex-direction: column; color: var(--app-ink);
}
.board-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 6px 16px 14px; gap: 16px; }
.board-head small { display: block; font: 800 10.5px/1 var(--round); letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 7px; }
.board-head strong { font: 650 22px/1 var(--round); letter-spacing: -.02em; }
.board-meta { font: 600 12.5px/1 var(--round); color: var(--app-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-body { flex: 1; display: grid; grid-template-columns: 1fr; gap: 18px; min-height: 0; }
@media (min-width: 720px) { .board-body { grid-template-columns: 1fr 190px; } }
.tl-board { height: 100%; --gut: 50px; }

.dbc { background: var(--app-surface); border-radius: 13px; padding: 14px; align-self: start; color: var(--app-ink); }
.dbc-title { margin: 0 0 12px; font: 800 10px/1 var(--round); letter-spacing: .12em; text-transform: uppercase; color: var(--app-muted); }
.dbc-rows { display: grid; gap: 11px; }
.dbc-row { display: grid; gap: 5px; }
.dbc-row div { display: flex; justify-content: space-between; gap: 6px; font: 600 11px/1 var(--round); font-variant-numeric: tabular-nums; }
.dbc-row p { margin: 0; height: 7px; border-radius: 7px; background: color-mix(in srgb, var(--app-line) 50%, transparent); overflow: hidden; }
.dbc-row p i { display: block; height: 100%; width: var(--w, 0%); border-radius: 7px; background: var(--c); transition: width .8s var(--ease-out); }
#buildBreakdown .dbc-empty { margin: 0; font-size: 11px; line-height: 1.45; color: var(--app-muted); }
#buildBreakdown .dbc-rows { opacity: 0; }
@media (max-width: 719px) { #buildBreakdown { display: none; } }

/* ── Why ────────────────────────────────────────────────────── */
.why { padding: clamp(110px, 16vh, 200px) 0 clamp(70px, 10vh, 120px); }
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, 1fr); } .card { grid-column: span 3; } .card-wide { grid-column: span 6; } .card-decide, .card-protect, .card-rest { grid-column: span 2; } }
@media (min-width: 760px) and (max-width: 1099px) { .card-decide, .card-protect, .card-rest { grid-column: span 3; } .card-rest { grid-column: span 6; } }
.card {
  position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 30px; padding: clamp(26px, 3vw, 38px);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(36, 46, 59, .35); }
.card h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.08; letter-spacing: -.02em; margin: 12px 0 14px; }
.card > p, .card-copy p { margin: 0; color: var(--muted); font-size: 1rem; }
.card-num { font: 800 12px/1 var(--round); letter-spacing: .14em; color: var(--coral); }
.card-wide { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .card-wide { grid-template-columns: .8fr 1.2fr; } }
.card-copy p { max-width: 28em; }

.viz-overflow { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; font-family: var(--round); }
.vo-label { margin: 0 0 14px; font: 800 10.5px/1 var(--round); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.vo-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.vo-list li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.vo-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.vo-warn { color: var(--red); }
.vo-stack { position: relative; height: 210px; margin-bottom: 76px; display: flex; flex-direction: column; gap: 3px; }
.vo-stack i {
  font-style: normal; flex: none; height: var(--h); display: flex; align-items: center;
  padding: 0 10px; font-size: 11.5px; font-weight: 650; border-radius: 7px; overflow: hidden; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 15%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  box-shadow: inset 3px 0 0 var(--c);
}
.vo-stack i.over { border-style: dashed; border-color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--surface)); box-shadow: inset 3px 0 0 var(--red); }
.vo-line { position: absolute; left: -8px; right: -8px; top: 100%; border-top: 2px solid var(--ink); z-index: 2; }
.vo-line span { position: absolute; right: 0; top: -22px; font: 800 10px/1 var(--round); letter-spacing: .1em; background: var(--ink); color: var(--bg); padding: 4px 6px; border-radius: 5px; }

.viz-loops { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.viz-loops svg { width: 100%; max-width: 280px; overflow: visible; }
.viz-loops span { font: 650 13px/1 var(--round); color: var(--muted); }
.loop circle { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: 96; transform-origin: center; transform-box: fill-box; transform: rotate(-90deg); transition: stroke-dashoffset 1.1s var(--ease-out); }
.loop path { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .5s var(--ease-out); }
.card.in .loop circle { stroke-dashoffset: 0; }
.card.in .loop path { stroke-dashoffset: 0; }
.card.in .loop:nth-child(1) circle { transition-delay: .1s; } .card.in .loop:nth-child(1) path { transition-delay: .9s; }
.card.in .loop:nth-child(2) circle { transition-delay: .35s; } .card.in .loop:nth-child(2) path { transition-delay: 1.15s; }
.card.in .loop:nth-child(3) circle { transition-delay: .6s; } .card.in .loop:nth-child(3) path { transition-delay: 1.4s; }
.card.in .loop:nth-child(4) circle { transition-delay: .85s; } .card.in .loop:nth-child(4) path { transition-delay: 1.65s; }

.viz-fence { margin-top: 30px; display: grid; gap: 6px; --blk-base: var(--surface); --blk-ink: var(--ink); --blk-muted: var(--muted); }
.fence-edge { display: flex; align-items: center; gap: 10px; font: 700 10.5px/1 var(--round); color: var(--muted); font-variant-numeric: tabular-nums; }
.fence-edge::after { content: ""; flex: 1; border-top: 2px dashed color-mix(in srgb, var(--blue) 50%, transparent); }
.viz-fence .blk { height: 84px; transform-origin: top; transform: scaleY(.25); opacity: .3; transition: transform 1s var(--spring), opacity .6s; }
.card.in .viz-fence .blk { transform: none; opacity: 1; transition-delay: .2s; }

.viz-decide { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; font: 650 13px/1 var(--round); }
.viz-decide span { padding: 8px 11px; border-radius: 99px; border: 1px dashed var(--line); color: var(--muted); transition: opacity .6s, text-decoration-color .6s; text-decoration: line-through; text-decoration-color: transparent; }
.viz-decide strong { padding: 8px 12px; border-radius: 99px; background: var(--ink); color: var(--bg); transform: scale(.6); opacity: 0; transition: transform .6s var(--spring) .9s, opacity .3s .9s; }
.card.in .viz-decide span { opacity: .45; text-decoration-color: var(--muted); transition-delay: .4s; }
.card.in .viz-decide strong { transform: none; opacity: 1; }

.viz-protect { margin-top: 28px; --blk-base: var(--surface); --blk-ink: var(--ink); --blk-muted: var(--muted); }
.viz-protect .blk { height: 58px; }
.viz-protect .lock { margin-left: auto; width: 14px; height: 14px; color: var(--gold); }
.card.in .viz-protect .blk { animation: settle 1s var(--spring) .2s both; }
@keyframes settle { from { transform: translateY(-30px) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }

.viz-rest {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 99px; background: #171D23; color: #F2F4F5;
  font: 650 14px/1 var(--round); box-shadow: 0 16px 30px -18px rgba(23, 29, 35, .9);
}
.viz-rest svg { color: #E9C982; }

/* ── Why planning works (the research) ──────────────────────── */
.science { padding: clamp(90px, 14vh, 170px) 0 clamp(60px, 9vh, 110px); }
.section-lede strong { color: var(--ink); font-weight: 700; }
.findings { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .findings { grid-template-columns: repeat(6, 1fr); } }
.chapter {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: 18px;
  margin: 40px 0 8px; padding-top: 26px; border-top: 1px solid var(--line);
}
.chapter:first-child { margin-top: 0; }
.chapter span { font: 800 11.5px/1 var(--round); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); white-space: nowrap; }
.chapter h3 {
  margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem); letter-spacing: -.025em; line-height: 1.05;
}
.f-cite {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font: 700 11.5px/1.3 var(--round); letter-spacing: .02em; color: var(--muted);
  transition: color .3s;
}
.f-cite::before {
  content: ""; flex: none; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v17H6.5a1.5 1.5 0 0 0 0 3H20v-1.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 4.5v15' stroke='black' stroke-width='2.2' stroke-linecap='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 24 24'%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v17H6.5a1.5 1.5 0 0 0 0 3H20v-1.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 4.5v15' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.f-cite:hover { color: var(--ink); }

/* Big numbers */
.f-stat { display: flex; align-items: baseline; gap: 6px; font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; line-height: .82; color: var(--coral); }
.f-stat .f-num { font-size: clamp(5.6rem, 12vw, 10rem); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.f-stat small { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.03em; }
.f-stat-sm .f-num { font-size: clamp(3.4rem, 6vw, 4.8rem); }
.f-stat-sm small { font: 700 15px/1 var(--round); color: var(--muted); letter-spacing: 0; }
.f-stat-label { margin: 14px 0 28px; font: 650 14px/1.3 var(--round); color: var(--muted); }

/* 01 · exercise bars */
.f-bars { display: grid; gap: 10px; }
.f-bar {
  position: relative; height: 48px; padding: 0 16px; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: color-mix(in srgb, var(--line) 40%, transparent); font: 650 13.5px/1 var(--round);
}
.f-bar::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 12px;
  background: color-mix(in srgb, var(--c) 17%, var(--surface)); box-shadow: inset 4px 0 0 var(--c);
  transform-origin: left; transform: scaleX(0); transition: transform 1.5s var(--ease-out) .35s;
}
.f-bar + .f-bar::before { transition-delay: .6s; }
.card.in .f-bar::before { transform: none; }
.f-bar span, .f-bar b { position: relative; white-space: nowrap; }
.f-bar b { color: var(--c); font-variant-numeric: tabular-nums; }

/* 02 · the flu-shot form */
.viz-form { margin-top: 26px; display: grid; gap: 16px; }
.ff-card {
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 16px; padding: 16px 18px 8px; font-family: var(--round);
  box-shadow: 0 22px 40px -32px rgba(36, 46, 59, .55); transform: rotate(-1.2deg);
}
.ff-title { margin: 0 0 6px; font: 800 10.5px/1 var(--round); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ff-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 10px; margin: 0 -10px; border-top: 1px solid var(--line); font-size: 14px; border-radius: 10px; transition: background .6s 2.1s, border-color .6s 2.1s; }
.ff-row span { color: var(--muted); font-weight: 600; }
.ff-row b {
  font: italic 400 20px/1 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--blue);
  clip-path: inset(0 100% 0 0); transition: clip-path .8s steps(8) .4s;
}
.ff-time b { color: var(--coral); transition-delay: 1.3s; }
.card.in .ff-row b { clip-path: inset(0 -4px 0 0); }
.card.in .ff-time { background: color-mix(in srgb, var(--coral) 11%, transparent); border-top-color: transparent; }
.ff-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ff-result strong { font: 400 2.6rem/1 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.03em; color: var(--coral); font-variant-numeric: tabular-nums; }
.ff-result > span { font: 600 13.5px/1.3 var(--round); color: var(--muted); }

/* 03 · 94 studies */
.viz-dots { margin-top: 26px; }
.dots { display: grid; grid-template-columns: repeat(19, 1fr); gap: 5px; margin-top: 16px; max-width: 380px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--line); transform: scale(.55); transition: background .35s, transform .6s var(--spring); transition-delay: calc(var(--i) * 14ms + .25s); }
.card.in .dots i { background: var(--coral); transform: none; }

/* 04 · open loops → blocks */
.viz-mind { font-family: var(--round); --blk-base: var(--surface); --blk-ink: var(--ink); --blk-muted: var(--muted); }
.vm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font: 800 10.5px/1 var(--round); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vm-head b { min-width: 34px; text-align: center; padding: 7px 10px; border-radius: 99px; background: var(--red); color: #fff; font-size: 13px; letter-spacing: 0; font-variant-numeric: tabular-nums; transition: background .4s; }
.vm-head b.is-zero { background: var(--mint); }
.vm-stage { position: relative; display: grid; gap: 4px; padding-left: 42%; }
.vm-item { position: relative; height: 50px; }
.vm-b { position: absolute; inset: 0; }
.vm-b.blk { --c: inherit; }
.vm-q {
  position: absolute; left: 0; top: 50%; translate: 0 -50%; z-index: 1;
  padding: 10px 15px; border-radius: 99px; white-space: nowrap; opacity: 0;
  font: italic 500 14px/1 var(--sans); color: var(--ink);
  background: var(--surface); border: 1.5px dashed color-mix(in srgb, var(--c) 55%, var(--line));
  box-shadow: 0 14px 28px -20px rgba(36, 46, 59, .55);
  animation: bob 2.8s ease-in-out infinite alternate;
}
.vm-item:nth-child(2) .vm-q { animation-delay: -.7s; } .vm-item:nth-child(3) .vm-q { animation-delay: -1.4s; }
.vm-item:nth-child(4) .vm-q { animation-delay: -2.1s; } .vm-item:nth-child(5) .vm-q { animation-delay: -1s; }
@keyframes bob { from { transform: translateY(-4px) rotate(-1deg); } to { transform: translateY(4px) rotate(1deg); } }

/* 05 · sleep */
.f-sleep { background: linear-gradient(165deg, #222C37, #151B21 70%); border-color: transparent; color: #F2F4F5; }
.f-sleep::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background:
    radial-gradient(1.5px 1.5px at 82% 14%, #fff, transparent), radial-gradient(1px 1px at 70% 26%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 92% 34%, #fff, transparent), radial-gradient(1px 1px at 60% 9%, #fff, transparent),
    radial-gradient(1px 1px at 88% 52%, #fff, transparent);
}
.f-sleep > p { color: #AEB9C2; }
.f-sleep .card-num { color: #E9C982; }
.f-sleep h3 em { color: #FF917D; }
.f-sleep .f-cite { color: #8D99A3; }
.f-sleep .f-cite:hover { color: #fff; }
.viz-sleep { margin-top: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.viz-sleep svg { color: #E9C982; flex: none; }
.viz-sleep .f-stat { color: #E9C982; }
.viz-sleep .f-stat small { color: #AEB9C2; }
.viz-sleep > span { font: 600 13.5px/1.3 var(--round); color: #AEB9C2; max-width: 11em; }

/* 06 · anatomy of a block */
.f-bridge { display: flex; flex-direction: column; align-items: flex-start; }
.viz-anatomy { width: 100%; margin: 26px 0 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; --blk-base: var(--surface); --blk-ink: var(--ink); --blk-muted: var(--muted); }
.viz-anatomy .blk { height: 64px; }
.viz-anatomy .blk-txt b { font-size: 15px; }
.viz-anatomy .blk-txt span { font-size: 12px; }
.va-labels { display: grid; gap: 10px; font: 700 12.5px/1 var(--round); color: var(--coral); white-space: nowrap; }
.f-link { margin-top: auto; }

/* Sources */
.sources-head { margin: clamp(48px, 7vw, 80px) 0 0; padding-top: 26px; border-top: 1px solid var(--line); font: 800 10.5px/1 var(--round); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sources {
  margin: 18px 0 0; padding: 0 0 0 1.4em;
  columns: 2 340px; column-gap: 48px; font-size: 12.5px; line-height: 1.5; color: var(--muted);
}
.sources li { break-inside: avoid; margin-bottom: 10px; padding-left: 4px; scroll-margin-top: 120px; }
.sources li:target { color: var(--ink); }
.sources a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 40%, transparent); text-underline-offset: 2px; overflow-wrap: anywhere; }

/* ── Try it (playground) ────────────────────────────────────── */
.try { padding: clamp(90px, 13vh, 170px) 0; }
.playground { display: grid; gap: 18px; }
@media (min-width: 960px) { .playground { grid-template-columns: 1fr 330px; } }
.pg-board {
  background: var(--app-bg); color: var(--app-ink);
  border: 1px solid color-mix(in srgb, var(--app-line) 70%, transparent);
  border-radius: 30px; padding: 22px 22px 18px 14px;
  box-shadow: 0 50px 100px -50px rgba(36, 46, 59, .4);
}
.pg-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 0 16px 14px; }
.pg-head small { display: block; font: 800 10.5px/1 var(--round); letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 7px; }
.pg-head strong { font: 650 22px/1 var(--round); letter-spacing: -.02em; }
.pg-reset { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--app-line); background: var(--app-surface); color: var(--app-ink); border-radius: 99px; padding: 8px 13px; font: 650 12.5px/1 var(--round); cursor: pointer; transition: transform .3s var(--spring); }
.pg-reset:hover { transform: rotate(-4deg); }
.tl-pg { height: 560px; --gut: 54px; touch-action: pan-y; }
.tl-pg.drop-hover .tl-lane { background: color-mix(in srgb, var(--coral) 4%, transparent); border-radius: 10px; }
.pg-toast { min-height: 1.4em; margin: 12px 0 0 14px; font: 600 13px/1.4 var(--round); color: var(--app-muted); }

.pg-palette {
  background: color-mix(in srgb, var(--app-surface) 72%, transparent); color: var(--app-ink);
  border: 1px solid color-mix(in srgb, var(--app-line) 70%, transparent);
  border-radius: 30px; padding: 26px; align-self: start;
}
.pal-eyebrow { margin: 0 0 7px; font: 800 11px/1 var(--round); letter-spacing: .18em; text-transform: uppercase; color: var(--coral); }
.pal-title { margin: 0; font: 600 25px/1.1 var(--round); letter-spacing: -.01em; }
.pal-help { margin: 8px 0 20px; font-size: 13px; color: var(--app-muted); line-height: 1.45; }
.pal-tiles { display: grid; gap: 9px; }
@media (min-width: 560px) and (max-width: 959px) { .pal-tiles { grid-template-columns: 1fr 1fr; } }
.dtile {
  height: 57px; padding: 0 15px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .35s var(--spring), box-shadow .35s;
}
.dtile:hover { transform: translateX(-3px); box-shadow: 0 12px 26px -16px rgba(36, 46, 59, .4); }
.dtile:active { cursor: grabbing; }
.dtile b { margin-left: auto; color: var(--coral); font-size: 16px; }
.dtile.is-lifted { opacity: .35; }
.dbc-mini { margin-top: 22px; }
.dbc-empty { margin: 0; font-size: 11px; color: var(--app-muted); }
.dbc-mini.has-data .dbc-empty { display: none; }
.drag-ghost {
  position: fixed; z-index: 80; pointer-events: none; width: 210px; height: 57px; padding: 0 15px;
  transform: translate(-50%, -50%) rotate(-2deg) scale(1.04);
  box-shadow: 0 30px 50px -20px rgba(36, 46, 59, .55);
}

/* ── Details ────────────────────────────────────────────────── */
.details { padding: clamp(70px, 10vh, 130px) 0 clamp(110px, 16vh, 200px); }
.detail-grid { display: grid; gap: 34px 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .detail-grid { grid-template-columns: repeat(4, 1fr); } }
.detail h3 { font-size: 1.55rem; letter-spacing: -.02em; margin: 22px 0 8px; line-height: 1.1; }
.detail p { margin: 0; color: var(--muted); font-size: .98rem; }
.detail-viz {
  height: 210px; border-radius: 26px; display: grid; place-items: center; overflow: hidden; position: relative;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.notif {
  width: 88%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); color: var(--app-ink);
  box-shadow: 0 20px 40px -20px rgba(36, 46, 59, .4); font-family: var(--round);
}
.notif img { border-radius: 8px; flex: none; }
.notif div { display: grid; gap: 3px; min-width: 0; }
.notif b { font-size: 13.5px; }
.notif span { font-size: 12px; color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif small { align-self: flex-start; margin-left: auto; font-size: 11px; color: var(--app-muted); }
.dv-remind .notif { animation: notif 5s var(--ease-out) infinite; }
@keyframes notif { 0%, 8% { transform: translateY(-140%) scale(.96); opacity: 0; } 18%, 82% { transform: none; opacity: 1; } 92%, 100% { transform: translateY(-140%) scale(.96); opacity: 0; } }
.widget { width: 168px; height: 168px; border-radius: 26px; background: var(--app-surface); padding: 13px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 24px 40px -22px rgba(36, 46, 59, .5); font-family: var(--round); color: var(--app-ink); }
.w-label { margin: 0; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--app-muted); }
.w-blk { height: var(--h); border-radius: 7px; padding: 5px 8px; display: flex; flex-direction: column; justify-content: center; background: color-mix(in srgb, var(--c) 16%, #fff); box-shadow: inset 3px 0 0 var(--c); font-size: 11px; }
.w-blk span { font-size: 9.5px; color: var(--app-muted); }
.dv-snap { place-items: center; }
.snap-ruler { position: absolute; left: 14%; right: 14%; top: 50%; height: 0; display: flex; justify-content: space-between; }
.snap-ruler i { width: 2px; height: 16px; margin-top: -8px; background: var(--line); border-radius: 2px; }
.snap-ruler i:nth-child(1), .snap-ruler i:nth-child(5) { height: 26px; margin-top: -13px; background: var(--muted); }
.snap-blk {
  position: absolute; left: 14%; top: 50%; width: 36%; height: 60px; margin-top: -30px; border-radius: 10px;
  border: 1.5px dashed var(--coral); background: color-mix(in srgb, var(--coral) 14%, transparent);
  color: var(--coral); display: grid; place-items: center; font: 650 12px/1 var(--round);
  animation: snap 4.8s infinite;
}
@keyframes snap {
  0%, 18% { transform: translateX(0); }
  25%, 43% { transform: translateX(39%); }
  50%, 68% { transform: translateX(78%); }
  75%, 93% { transform: translateX(39%); }
  100% { transform: translateX(0); }
}
.snap-blk { animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.dv-colors { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 22px; }
.dv-colors span {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 8px 9px; border-radius: 99px;
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); font: 650 12.5px/1 var(--round);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
}
.dv-colors span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.dv-colors .custom { border-style: dashed; }

/* ── Everywhere ─────────────────────────────────────────────── */
.ew-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 88px 0 40px; overflow: hidden; }
@media (min-width: 1100px) { .ew-pin { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 150px); mask-image: linear-gradient(90deg, transparent 0, #000 150px); } }
.ew-head { margin-bottom: 34px; }
.ew-head .section-lede { margin-top: 18px; }
.ew-track { display: flex; gap: clamp(28px, 4vw, 64px); padding-inline: max(var(--gutter), calc((100vw - 1220px) / 2)); width: max-content; align-items: flex-end; will-change: transform; }
.device-card { margin: 0; display: flex; flex-direction: column; gap: 26px; width: min(540px, 82vw); flex: none; }
.dev-stage, .vision-stage { height: 390px; display: flex; align-items: flex-end; justify-content: center; }
figcaption { display: grid; gap: 8px; max-width: 30em; }
figcaption b { font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; }
figcaption span { color: var(--muted); font-size: 1rem; }

.dev { position: relative; background: linear-gradient(145deg, #2a3440, #11161b 45%, #1d242c); box-shadow: 0 0 0 1.5px #3b4652 inset, 0 40px 80px -40px rgba(36, 46, 59, .6); }
.dev-screen { height: 100%; background: var(--app-bg); overflow: hidden; padding: 14px 12px 12px 4px; }
.dev-iphone { width: 190px; height: 384px; border-radius: 40px; padding: 8px; }
.dev-iphone .dev-screen { border-radius: 32px; padding-top: 38px; }
.dev-ipad { width: min(480px, 80vw); height: 350px; border-radius: 30px; padding: 13px; }
.dev-ipad .dev-screen { border-radius: 18px; }
.dev-mac { width: min(500px, 80vw); height: 335px; border-radius: 14px; padding: 0; background: var(--app-bg); box-shadow: 0 0 0 1px rgba(36, 46, 59, .15), 0 40px 80px -40px rgba(36, 46, 59, .6); overflow: hidden; display: flex; flex-direction: column; }
.dev-mac .dev-screen { flex: 1; }
.mac-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #EFEDE7; border-bottom: 1px solid var(--app-line); }
.mac-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.mac-bar i:nth-child(2) { background: #FEBC2E; } .mac-bar i:nth-child(3) { background: #28C840; }
.mac-bar span { margin-left: 10px; font: 650 12px/1 var(--round); color: var(--app-muted); }
.dev-split { display: grid; grid-template-columns: 1fr 34%; gap: 10px; }
.mini-pal { background: color-mix(in srgb, var(--app-surface) 70%, transparent); border-left: 1px solid var(--app-line); margin: -14px -12px -12px 0; padding: 16px 12px; display: flex; flex-direction: column; gap: 7px; font-family: var(--round); }
.mini-pal small { font-size: 7.5px; font-weight: 800; letter-spacing: .16em; color: var(--coral); }
.mini-pal b { font-size: 14px; font-weight: 600; color: var(--app-ink); margin-bottom: 6px; }
.mini-pal i { height: 30px; border-radius: 8px; background: var(--app-surface); border: 1px solid var(--app-line); position: relative; }
.mini-pal i::before { content: ""; position: absolute; left: 9px; top: 50%; width: 14px; height: 9px; transform: translateY(-50%); border-radius: 3px; background: color-mix(in srgb, var(--coral) 20%, transparent); box-shadow: inset 2px 0 0 var(--coral); }
.mini-pal i:nth-of-type(3)::before { height: 13px; } .mini-pal i:nth-of-type(4)::before { height: 18px; }
.dev-watch { width: 190px; height: 228px; border-radius: 54px; padding: 12px; margin-bottom: 80px; }
.dev-watch .dev-screen { border-radius: 42px; background: #000; padding: 26px 10px 10px 2px; }
.watch-now { margin: 0 0 6px; text-align: right; padding-right: 16px; font: 700 14px/1 var(--round); color: #fff; position: absolute; top: 24px; right: 10px; }
.watch-crown { position: absolute; right: -7px; top: 58px; width: 9px; height: 36px; border-radius: 4px; background: linear-gradient(90deg, #3b4652, #1d242c); }
.tl-mini { height: 100%; --gut: 30px; --label: 8px; }
.tl-mini .blk { border-radius: 6px; padding: 0 5px 0 4px; gap: 5px; }
.tl-mini .blk::before { width: 3px; margin: 3px 0; }
.tl-mini .blk-txt b { font-size: 9.5px; }
.tl-mini .blk-txt span { font-size: 7.5px; }
.tl-mini .tl-now span { font-size: 7.5px; padding: 3px 4px; }
.dev-watch .tl-mini { --tl-line: #333; --tl-muted: #8a8f94; --blk-base: #000; --blk-ink: #F2F4F5; --blk-muted: #AAB6BE; --gut: 24px; }

.device-vision { width: min(600px, 86vw); }
.vision-stage { perspective: 1100px; position: relative; --rx: 52deg; --ry: -10deg; }
.vision-tray {
  width: min(420px, 76vw); height: 290px; border-radius: 30px; position: relative;
  transform: rotateX(var(--rx)) rotateZ(var(--ry)); transform-style: preserve-3d; transition: transform .6s var(--ease-out);
  background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .2));
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 10px 30px rgba(36, 46, 59, .25), 0 60px 80px -30px rgba(36, 46, 59, .45);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  margin-bottom: 10px;
}
.vt-hours { position: absolute; left: 0; top: 18px; bottom: 18px; width: 52px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding-right: 12px; font: 700 13px/1 var(--round); color: color-mix(in srgb, var(--ink) 55%, transparent); }
.vt-lane { position: absolute; left: 62px; right: 18px; top: 18px; bottom: 18px; border-radius: 16px; background: rgba(36, 46, 59, .07); box-shadow: inset 0 4px 14px rgba(36, 46, 59, .18); transform-style: preserve-3d; }
.vblock {
  position: absolute; left: 10px; right: 10px; top: var(--top); height: var(--h);
  border-radius: 12px; display: flex; align-items: center; padding: 0 14px;
  font: 700 13px/1 var(--round); color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c));
  transform: translateZ(16px);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--c) 70%, #000), 0 2px 0 color-mix(in srgb, var(--c) 70%, #000),
    0 3px 0 color-mix(in srgb, var(--c) 68%, #000), 0 4px 0 color-mix(in srgb, var(--c) 66%, #000),
    0 5px 0 color-mix(in srgb, var(--c) 64%, #000), 0 6px 0 color-mix(in srgb, var(--c) 62%, #000),
    0 16px 20px -8px rgba(0, 0, 0, .35);
}
.vblock-held {
  position: absolute; left: auto; right: -2%; top: 4%; width: 150px; height: 58px; z-index: 3;
  transform: rotateX(18deg) rotateZ(-8deg); animation: hover 4s ease-in-out infinite;
}
@keyframes hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ── Privacy ────────────────────────────────────────────────── */
.privacy { padding: clamp(120px, 18vh, 220px) 0 clamp(60px, 10vh, 120px); }
.privacy-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); } }
.pcard {
  border-radius: 28px; padding: 34px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.pcard svg { width: 38px; height: 38px; color: var(--coral); }
.pcard h3 { font-size: 1.7rem; letter-spacing: -.02em; margin: 26px 0 10px; line-height: 1.1; }
.pcard p { margin: 0; color: var(--muted); }

/* ── Finale ─────────────────────────────────────────────────── */
.finale { min-height: 100svh; display: grid; place-items: center; padding: 140px 0; text-align: center; overflow: hidden; }
.finale-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.finale-icon { border-radius: 30px; margin-bottom: 40px; box-shadow: 0 30px 80px -20px rgba(255, 145, 125, .45), 0 0 0 1px rgba(255, 255, 255, .08); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.finale-title { font-size: clamp(3.2rem, 9vw, 8.4rem); }
.finale-lede { margin-inline: auto; text-align: center; }
.finale-fine { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.finale-blocks { position: absolute; inset: 0; pointer-events: none; }
.finale-blocks i {
  position: absolute; left: calc(50% + var(--x)); top: var(--y); width: var(--w); height: var(--h);
  translate: -50% 0;
  rotate: var(--r);
  display: flex; align-items: center; padding: 0 14px 0 18px; border-radius: 12px;
  font: normal 650 13px/1 var(--round); color: var(--ink); white-space: nowrap;
  background: color-mix(in srgb, var(--c) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  box-shadow: inset 4px 0 0 var(--c), 0 30px 50px -30px #000;
  opacity: .5;
}
@media (max-width: 1180px) { .finale-blocks { display: none; } }

.footer { padding: 34px 0 44px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }
.footer nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.footer nav a:hover { color: var(--ink); }

/* ── Responsive tweaks ──────────────────────────────────────── */
@media (max-width: 959px) {
  .hero { padding-top: 110px; }
  .hero-stage { transform-origin: top center; }
  .build-pin { padding-top: 84px; }
  .build-grid { gap: 22px; }
  .steps { min-height: 210px; }
  .step p { font-size: 1rem; }
  .step-dots { margin-top: 10px; }
  .build-board { height: 56svh; padding: 16px 14px 16px 8px; border-radius: 24px; }
  .board-head { padding-bottom: 10px; }
  .board-head strong { font-size: 18px; }
  .tl-board { --gut: 44px; }
  .tl-pg { height: 520px; }
}
@media (max-width: 600px) {
  .phone { width: 290px; height: 600px; border-radius: 50px; }
  .phone-screen { border-radius: 40px; }
  .float-tile { font-size: 12.5px; padding: 10px 13px 10px 11px; }
  .drag-tile { width: 150px; height: 50px; font-size: 13px; }
  .viz-overflow { grid-template-columns: 1fr; }
  .vo-stack { margin-bottom: 86px; }
  .step .display-sm { font-size: 1.85rem; }
  .steps { min-height: 190px; }
  .build-board { height: 52svh; }
  .dev-stage, .vision-stage { height: 380px; }
  .pg-palette { order: -1; padding: 20px; border-radius: 24px; }
  .pal-title { font-size: 21px; }
  .pal-help { margin-bottom: 14px; }
  .pal-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dtile { height: 50px; padding: 0 12px; gap: 9px; font-size: 13px; }
  .dbc-mini { display: none; }
  .tl-pg { height: 440px; --gut: 46px; }
  .pg-board { padding: 16px 14px 12px 6px; border-radius: 24px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
.reduce .steps { min-height: 0; }
.reduce .step { position: static; opacity: 1; transform: none; margin-bottom: 36px; }
.reduce .step-dots, .reduce .drag-tile, .reduce .hero-cursor { display: none; }
.reduce .ew-track { overflow-x: auto; width: auto; padding-bottom: 20px; }
