/* Collie by HeySheep — site styles
   Art direction: "calm, trustworthy machine". Warm cream + ink, oak, one deep-sage accent, LED green as signal. */

@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --cream: #F4EEE4;
  --cream-2: #ECE3D5;
  --paper: #FBF8F3;
  --ink: #1F1B16;
  --ink-2: #4A4239;
  --muted: #7A6F62;
  --line: rgba(31, 27, 22, .12);
  --oak: #C99F6E;
  --sage: #2F4A3A;
  --sage-2: #3E6150;
  --led: #3BE06A;
  --night: #0B1424;
  --night-2: #121C2E;
  --warn: #B4542D;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 1px rgba(31,27,22,.04), 0 8px 24px -8px rgba(31,27,22,.18), 0 30px 60px -30px rgba(31,27,22,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--sage); color: var(--cream); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.display, .h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: .98; margin: 0; text-wrap: balance; }
.display { font-size: clamp(46px, 7.4vw, 112px); }
.h2 { font-size: clamp(38px, 5.2vw, 76px); max-width: 16ch; }
.display em, .h2 em { font-style: italic; color: var(--sage); }
.display-light, .h2-light { color: var(--cream); }
.display-light em { color: #9FE3B3; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow-light { color: rgba(244,238,228,.7); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 3px rgba(59,224,106,.18), 0 0 12px rgba(59,224,106,.6); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(59,224,106,.05), 0 0 18px rgba(59,224,106,.9); } }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 44ch; margin: 28px 0 0; }
.body { color: var(--ink-2); max-width: 52ch; margin: 0 0 18px; }
.body-strong { color: var(--ink); font-weight: 500; }
.body-light { color: rgba(244,238,228,.78); }
.fine { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: 0; }
.link { color: var(--sage); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--ink); }

/* split-line reveal */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: var(--cream); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s var(--ease);
  box-shadow: 0 10px 24px -12px rgba(31,27,22,.6);
}
.btn:hover { transform: translateY(-2px); background: var(--sage); border-color: var(--sage); box-shadow: 0 16px 30px -14px rgba(47,74,58,.8); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- nav + progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--sage); transform-origin: 0 50%; transform: scaleX(0); }
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px), 1120px); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(251,248,243,.72); border: 1px solid rgba(31,27,22,.08);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: transform .5s var(--ease), background .4s, border-color .4s, color .4s;
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav.is-dark { background: rgba(11,20,36,.6); border-color: rgba(244,238,228,.1); color: var(--cream); }
.nav.is-dark .btn-small { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-mark { width: 22px; height: 22px; align-self: center; fill: none; stroke: currentColor; stroke-width: 2; }
.brand-mark circle { fill: var(--led); stroke: none; }
.brand-name { font-family: var(--serif); font-size: 24px; line-height: 1; }
.brand-by { font-size: 12px; color: var(--muted); }
.nav.is-dark .brand-by { color: rgba(244,238,228,.6); }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { text-decoration: none; opacity: .75; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 340vh; background: var(--cream); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* The scene box keeps the plate's 1568:672 aspect so the device layer stays registered to the wall. */
.stage {
  --ar: 2.3333;
  --W: max(100vw, calc(100svh * var(--ar)));
  --H: calc(var(--W) / var(--ar));
  position: absolute; width: var(--W); height: var(--H);
  left: clamp(calc(100vw - var(--W)), calc(50vw - .755 * var(--W)), 0px);
  bottom: 0;
  transform-origin: 75.5% 64%;
  will-change: transform;
}
.layer { position: absolute; inset: 0; will-change: transform; }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.layer-device .device {
  position: absolute; height: auto;
  /* device-trim.webp includes 24px padding at 3136w scale; bbox left .690 top .488 */
  left: calc((2165 - 24) / 3136 * 100%); top: calc((656 - 24) / 1344 * 100%);
  width: calc(453 / 3136 * 100%);
  transform-origin: 50% 94%;
  filter: drop-shadow(0 18px 18px rgba(60, 40, 20, .18));
}
.led-glow {
  position: absolute; left: 75.2%; top: 54.2%; width: 2.2%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(59,224,106,.95) 0 14%, rgba(59,224,106,.35) 30%, transparent 70%);
  mix-blend-mode: screen; animation: glow 2.8s ease-in-out infinite; pointer-events: none;
}
.led-glow-night { width: 9%; background: radial-gradient(circle, rgba(59,224,106,.9) 0 3%, rgba(59,224,106,.22) 18%, rgba(59,224,106,.06) 40%, transparent 70%); }
@keyframes glow { 50% { opacity: .55; transform: translate(-50%, -50%) scale(.85); } }
.layer-night { opacity: 0; }

.hero-copy {
  position: absolute; z-index: 5; left: var(--pad); top: 50%; transform: translateY(-46%);
  width: min(640px, 52vw);
}
.hero-copy::before { /* soft scrim so copy always reads on the wall */
  content: ""; position: absolute; inset: -18% -30% -18% -40%; z-index: -1;
  background: radial-gradient(closest-side, rgba(244,238,228,.82), rgba(244,238,228,0)); pointer-events: none;
}
.hero-night-copy { position: absolute; z-index: 6; left: var(--pad); top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; }
.hero-night-copy .display { font-size: clamp(42px, 6.4vw, 96px); }

.float-cards { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.fcard {
  position: absolute; left: var(--fx); top: var(--fy); transform: translate(-50%, -50%);
  display: grid; gap: 2px; min-width: 170px; padding: 12px 14px 12px 32px; border-radius: 12px;
  background: rgba(251,248,243,.86); border: 1px solid rgba(31,27,22,.08); box-shadow: var(--shadow);
  font-size: 13px; color: var(--ink-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  will-change: transform;
}
.fcard::before { content: ""; position: absolute; left: 14px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px rgba(59,224,106,.8); }
.fcard b { color: var(--ink); font-weight: 600; font-size: 13px; }
.fcard .mono { color: var(--sage); font-size: 13px; }

.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%); font: 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.scroll-cue span { width: 1px; height: 42px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- PROBLEM ---------- */
.problem { position: relative; height: 260vh; background: var(--paper); }
.problem-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; padding: 0 var(--pad); max-width: 1440px; margin: 0 auto; }
.marquee { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: clamp(90px, 16vw, 240px); color: rgba(31,27,22,.045); pointer-events: none; user-select: none; }
.marquee > div { display: inline-block; will-change: transform; }
.problem-copy { position: relative; z-index: 2; }
.problem-copy .h2 { margin-bottom: 28px; }
.glue { position: relative; z-index: 1; aspect-ratio: 1; width: min(100%, 560px); justify-self: center; }
.glue-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.glue-lines path { fill: none; stroke: var(--ink); stroke-opacity: .28; stroke-width: 1.2; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.glue-lines path.to-core { stroke: var(--sage); stroke-opacity: .9; stroke-dasharray: none; stroke-width: 1.6; }
.chip { position: absolute; left: var(--cx); top: var(--cy); transform: translate(-50%, -50%); padding: 9px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; box-shadow: 0 6px 16px -10px rgba(31,27,22,.4); will-change: transform; }
.glue-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px; border-radius: 18px; background: var(--ink); color: var(--cream); font-family: var(--serif); font-size: 30px; box-shadow: 0 24px 50px -20px rgba(31,27,22,.7); }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--led); box-shadow: 0 0 12px var(--led); display: inline-block; }

/* ---------- DAY (horizontal) ---------- */
.day { position: relative; background: var(--cream); padding-top: 18vh; }
.day-head { padding: 0 var(--pad); max-width: var(--max); margin: 0 auto 6vh; }
.day-pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.day-track { display: flex; gap: 6vw; padding: 0 var(--pad); will-change: transform; }
.moment { position: relative; flex: 0 0 auto; width: min(980px, 86vw); display: grid; grid-template-columns: 1fr 1.05fr; gap: 4vw; align-items: center; min-height: 64vh; }
.moment-time { position: absolute; left: -1vw; top: -14vh; font-family: var(--serif); font-size: clamp(110px, 17vw, 260px); line-height: 1; color: rgba(47,74,58,.09); pointer-events: none; z-index: 0; will-change: transform; }
.moment-time small { font-size: .3em; margin-left: .1em; }
.moment-text { position: relative; z-index: 1; }
.moment-text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 46px); line-height: 1.04; margin: 0 0 16px; letter-spacing: -.01em; text-wrap: balance; }
.moment-text p { color: var(--ink-2); margin: 0; max-width: 40ch; }
.moment-end { width: min(760px, 80vw); grid-template-columns: 1fr; }
.moment-end .display { font-size: clamp(44px, 6vw, 92px); }

/* product-style UI cards */
.ui { position: relative; z-index: 1; background: var(--paper); border: 1px solid rgba(31,27,22,.08); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; font-size: 14px; }
.ui-bar { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 13px; color: var(--ink); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.ui-av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--sage); color: var(--cream); font: 600 12px/1 var(--sans); }
.ui-live { margin-left: auto; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sage); padding: 5px 8px; border-radius: 999px; background: rgba(59,224,106,.14); }
.msg { margin: 0 0 10px; padding: 10px 13px; border-radius: 14px; max-width: 88%; line-height: 1.45; }
.msg-in { background: var(--cream-2); border-bottom-left-radius: 4px; }
.msg-out { background: var(--sage); color: var(--cream); margin-left: auto; border-bottom-right-radius: 4px; }
.ui-card { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.ui-label { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ui-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0; }
.ui-card dt { color: var(--muted); }
.ui-card dd { margin: 0; }
.ui-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ui-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; background: #fff; }
.ui-btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.ui-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ui-list li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid rgba(31,27,22,.06); }
.ui-list li b { font: 500 15px/1 var(--mono); color: var(--sage); min-width: 14px; }
.ui-list li span { margin-left: auto; color: var(--muted); font-size: 12px; }
.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ui-stats span { padding: 10px; border-radius: 10px; background: #fff; border: 1px solid rgba(31,27,22,.06); color: var(--muted); font-size: 12px; display: grid; gap: 2px; }
.ui-stats b { font: 500 22px/1 var(--mono); color: var(--ink); }
.ui-stats .warn b { color: var(--warn); }
.ui-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ui-table td { padding: 9px 6px; border-top: 1px solid var(--line); }
.ui-table td:first-child { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.ui-table td:last-child { text-align: right; color: var(--warn); }
.mask-row { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 10px; background: #fff; border: 1px solid rgba(31,27,22,.06); margin-bottom: 6px; }
.mask-row span:first-child { color: var(--muted); font-size: 12px; }
.mask-row .mono { font-size: 16px; color: var(--ink); }
.mask-row .mono.is-masked { color: var(--sage); }
.ui-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.routine-name { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.1; }

/* ---------- PRIVACY (night) ---------- */
.privacy { position: relative; background: var(--night); color: var(--cream); overflow: hidden; padding: 22vh 0; }
.privacy-bg { position: absolute; inset: -20% 0; z-index: 0; }
.privacy-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; opacity: .55; will-change: transform; }
.privacy-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0 30%, rgba(11,20,36,.55) 60%, rgba(11,20,36,.2)), linear-gradient(var(--night), transparent 20% 80%, var(--night)); }
.privacy-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.privacy-copy .h2 { margin-bottom: 28px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: rgba(244,238,228,.86); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--led); border-bottom: 2px solid var(--led); transform: rotate(-45deg); }
.rings { position: relative; aspect-ratio: 1; width: min(100%, 500px); justify-self: center; }
.rings svg { width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: rgba(244,238,228,.28); stroke-width: 1; vector-effect: non-scaling-stroke; transform-origin: 250px 250px; }
.ring-1 { stroke-dasharray: 3 7; }
.ring-3 { stroke: rgba(59,224,106,.6); fill: rgba(59,224,106,.06); }
.ring-label { position: absolute; left: 50%; transform: translateX(-50%); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(244,238,228,.62); white-space: nowrap; background: var(--night); padding: 4px 8px; border-radius: 999px; }
.rl-1 { top: calc(4% - 10px); } .rl-2 { top: calc(18% - 10px); } .rl-3 { top: calc(32% - 10px); color: #9FE3B3; }
.ring-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 56px; border-radius: 12px; background: #E8E2D8; display: grid; place-items: center; box-shadow: 0 0 60px rgba(59,224,106,.35); }
.cloud-x { position: absolute; right: -4%; top: 6%; padding: 8px 12px; border-radius: 999px; border: 1px dashed rgba(244,238,228,.35); font: 500 12px/1 var(--mono); color: rgba(244,238,228,.6); }
.cloud-x b { color: #FF8A6B; margin-left: 4px; }

/* ---------- APPROVE ---------- */
.approve { position: relative; height: 240vh; background: var(--cream); }
.approve-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6vw; padding: 0 var(--pad); max-width: var(--max); margin: 0 auto; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 4px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); transition: color .4s; max-width: 46ch; }
.steps li span { font: 500 12px/1.9 var(--mono); }
.steps li.is-on { color: var(--ink); }
.steps li.is-on span { color: var(--sage); }
.approve-card { position: relative; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid rgba(31,27,22,.08); padding: 24px; will-change: transform; }
.ac-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.ac-tag { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ac-status { font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 999px; background: #F7E7D2; color: #8A5A1E; transition: background .4s, color .4s; }
.ac-status.is-ok { background: rgba(59,224,106,.18); color: var(--sage); }
.ac-title { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin: 0 0 14px; }
.ac-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.ac-lines td { padding: 10px 4px; border-top: 1px solid var(--line); }
.ac-lines td:first-child { width: 36px; font: 500 12px var(--mono); color: var(--muted); }
.ac-lines td:last-child { text-align: right; }
.ac-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ac-total b { font-size: 20px; }
.ac-btns { display: flex; gap: 8px; }
.ac-btns .ui-btn { min-height: 40px; padding: 0 18px; }
[data-ac-approve].is-pressed { background: var(--sage); border-color: var(--sage); transform: scale(.96); }
.ac-done { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(59,224,106,.12); color: var(--sage); font-weight: 500; font-size: 14px; opacity: 0; transform: translateY(8px); }
.check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sage); color: var(--cream); font-size: 12px; margin-right: 6px; }

/* ---------- AGENTS ---------- */
.agents { background: var(--paper); padding: 20vh var(--pad); }
.agents-head { max-width: var(--max); margin: 0 auto 7vh; }
.agents-head .h2 { max-width: 20ch; }
.agents-ui { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 5vw; align-items: start; }
.tabs { display: grid; gap: 2px; }
.tabs button { all: unset; cursor: pointer; padding: 16px 18px; border-radius: 12px; font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--muted); position: relative; transition: color .3s, background .3s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--cream); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--led); box-shadow: 0 0 10px var(--led); }
.tabs button:focus-visible { outline: 2px solid var(--sage); }
.panels { position: relative; min-height: 340px; }
.panel { padding: 36px; border-radius: 22px; background: var(--cream); border: 1px solid rgba(31,27,22,.06); }
.ask { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; margin: 0 0 32px; text-wrap: balance; }
.see { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.see h4 { margin: 0 0 8px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.see > div:last-child h4 { color: var(--warn); }
.see p { margin: 0; color: var(--ink-2); }

/* ---------- GRANT ---------- */
.grant { background: var(--sage); color: var(--cream); padding: 20vh var(--pad); position: relative; overflow: hidden; }
.grant .eyebrow { color: rgba(244,238,228,.7); }
.grant .h2 { color: var(--cream); max-width: 18ch; }
.grant-inner { max-width: var(--max); margin: 0 auto; }
.grant-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6vw; margin-top: 8vh; align-items: end; }
.grant-figure { margin: 0; display: grid; grid-template-columns: auto 1fr; align-items: end; line-height: .8; }
.gf-num { font-family: var(--serif); font-size: clamp(140px, 20vw, 300px); letter-spacing: -.04em; }
.gf-unit { font-family: var(--serif); font-size: clamp(60px, 8vw, 120px); padding-bottom: .12em; }
.gf-cap { grid-column: 1 / -1; font: 500 13px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(244,238,228,.75); margin-top: 16px; }
.grant .body { color: rgba(244,238,228,.85); }
.grant .link { color: #B9F2C9; }
.grant .link:hover { color: var(--cream); }

/* ---------- PILOT ---------- */
.pilot { background: var(--cream); padding: 20vh var(--pad) 16vh; }
.pilot-head { max-width: var(--max); margin: 0 auto 8vh; }
.pilot-path { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; padding-top: 50px; }
.pilot-line { position: absolute; left: 0; right: 0; top: 18px; width: 100%; height: 4px; overflow: visible; }
.pilot-line line { stroke: var(--sage); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pstep { position: relative; }
.pnum { position: absolute; top: -50px; left: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cream); border: 2px solid var(--sage); font: 500 14px/1 var(--mono); color: var(--sage); }
.pstep h3 { font-family: var(--serif); font-weight: 400; font-size: 38px; margin: 14px 0 10px; }
.pstep p { color: var(--ink-2); margin: 0; max-width: 34ch; }
.tiers { max-width: var(--max); margin: 12vh auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { padding: 28px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(31,27,22,.07); }
.tier h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.tier p { margin: 0; color: var(--ink-2); }
.tier-mid { background: var(--ink); color: var(--cream); }
.tier-mid p { color: rgba(244,238,228,.78); }

/* ---------- ENQUIRE ---------- */
.enquire { background: var(--paper); padding: 18vh var(--pad); }
.enquire-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: 6vw; align-items: start; }
.enquire-copy { position: sticky; top: 18vh; }
.enquire-copy .h2 { margin-bottom: 24px; }
.form { display: grid; gap: 16px; padding: 32px; border-radius: 22px; background: var(--cream); border: 1px solid rgba(31,27,22,.07); }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font: 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid rgba(31,27,22,.16); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(47,74,58,.14); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--warn); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; color: var(--ink-2); align-items: start; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sage); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 14px; }
.form-status.ok { color: var(--sage); font-weight: 500; }
.form-status.err { color: var(--warn); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 10vh var(--pad) 40px; overflow: hidden; }
.footer-big { font-family: var(--serif); font-size: clamp(120px, 27vw, 420px); line-height: .8; letter-spacing: -.04em; color: rgba(244,238,228,.08); white-space: nowrap; will-change: transform; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 6vh; padding-top: 24px; border-top: 1px solid rgba(244,238,228,.12); font-size: 14px; color: rgba(244,238,228,.7); }
.footer-row p { margin: 0; }
.footer-row a { text-decoration: none; border-bottom: 1px solid rgba(244,238,228,.3); }

/* ---------- JS-only initial states (content stays visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .problem-sticky, .approve-sticky, .privacy-inner, .enquire-inner, .grant-grid { grid-template-columns: 1fr; }
  .problem-sticky { align-content: center; gap: 4vh; }
  .glue { width: min(84vw, 380px); }
  .approve-sticky { align-content: center; gap: 4vh; }
  .agents-ui { grid-template-columns: 1fr; }
  .tabs { grid-auto-flow: column; overflow-x: auto; gap: 4px; padding-bottom: 6px; scrollbar-width: none; }
  .tabs button { font-size: 22px; white-space: nowrap; }
  .tabs button[aria-selected="true"]::after { display: none; }
  .enquire-copy { position: static; }
  .pilot-path, .tiers { grid-template-columns: 1fr; gap: 56px; }
  .tiers { gap: 12px; }
  .pilot-line { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-copy { top: 15svh; transform: none; width: auto; right: var(--pad); }
  .hero-copy::before { inset: -10% -20% -30% -20%; }
  .hero-night-copy { top: 16svh; transform: none; right: var(--pad); }
  .fcard { min-width: 0; padding: 9px 11px 9px 26px; font-size: 11px; }
  .fcard::before { left: 11px; top: 14px; }
  .fcard:nth-child(1) { --fx: 30% !important; --fy: 64% !important; }
  .fcard:nth-child(2) { --fx: 74% !important; --fy: 58% !important; }
  .fcard:nth-child(3) { --fx: 70% !important; --fy: 90% !important; }
  .fcard:nth-child(4) { --fx: 28% !important; --fy: 86% !important; }
  .scroll-cue { display: none; }
  .moment { grid-template-columns: 1fr; width: 84vw; gap: 22px; min-height: 0; }
  .moment-time { top: -9vh; }
  .problem-copy .body { font-size: 15px; }
  .see { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .ring-label { font-size: 9px; }
}

/* ---------- v1.1 QA fixes (2026-10-01) ---------- */
html { scroll-padding-top: 96px; }
.hero { height: 240vh; }
.hero-sticky { background: var(--cream); }
.hero .display { font-size: clamp(44px, 6.1vw, 92px); }
.hero-copy { top: 46%; }
.fine { color: var(--ink-2); }
.eyebrow-light { color: rgba(244,238,228,.86); }
.marquee { top: 86%; color: rgba(31,27,22,.035); }
.problem { background: linear-gradient(var(--night) 0, #1F1B16 9vh, #6E6457 17vh, var(--paper) 30vh); }
.glue-you { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 16px; border-radius: 14px; background: var(--paper); border: 1px dashed rgba(31,27,22,.4); font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.day-track { width: max-content; flex-shrink: 0; }
.moment-end { margin-right: calc((100vw - min(760px, 80vw)) / 2 - var(--pad) * 2); }
.day-pin { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--pad), #000 calc(100% - var(--pad)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--pad), #000 calc(100% - var(--pad)), transparent 100%); }
.moment-time { color: rgba(47,74,58,.12); }
.ring-label { color: rgba(244,238,228,.9); font-size: 12px; }
.ring { stroke: rgba(244,238,228,.45); }
.ring-3 { stroke: rgba(59,224,106,.7); }
.pilot-line { transform-origin: 0 50%; }
.cloud-x { color: rgba(244,238,228,.88); border-color: rgba(244,238,228,.55); }
.ac-btns { transition: opacity .4s, visibility .4s; }
.approve-card.is-done .ac-btns { opacity: 0; visibility: hidden; }
.field label { font-size: 14px; color: var(--ink); }
.field input, .field textarea { border-color: rgba(31,27,22,.3); }
.consent { grid-template-columns: 24px 1fr; font-size: 14px; }
.consent input { width: 22px; height: 22px; }
.fcard span { white-space: nowrap; }
.day { background: linear-gradient(var(--paper), var(--cream) 30vh); }

@media (max-width: 760px) {
  .hero { height: 180vh; }
  .stage { --W: calc(120svh * var(--ar)); bottom: -20svh; }
  .hero .display { font-size: 38px; }
  .hero-copy { top: 9svh; }
  .hero-copy .btn-ghost, .hero-copy .fine { display: none; }
  .float-cards { display: none; }
  .problem, .approve { height: auto; }
  .problem { background: linear-gradient(var(--night) 0, #1F1B16 5vh, #6E6457 10vh, var(--paper) 18vh); }
  .problem-sticky, .approve-sticky { position: relative; height: auto; padding-top: 14vh; padding-bottom: 12vh; overflow: visible; }
  .marquee { display: none; }
  .glue { width: min(84vw, 330px); }
  .chip { font-size: 12px; padding: 7px 10px; }
  .glue-you { font-size: 13px; padding: 9px 12px; }
  .glue-core { font-size: 24px; padding: 12px 18px; }
  .day-pin { display: block; height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .day-track { flex-direction: column; width: auto; max-width: 100%; flex-shrink: 1; gap: 10vh; padding-bottom: 10vh; }
  .moment { width: 100%; max-width: 100%; min-width: 0; }
  .moment > * { min-width: 0; }
  .msg { overflow-wrap: anywhere; }
  .day { overflow-x: clip; }
  .moment-time { position: relative; display: inline-block; top: auto; left: auto; font-size: 64px; margin: 0 0 -6px; }
  .moment-end { margin-right: 0; }
  .rings { width: min(100%, 320px); }
  .cloud-x { right: 12px; top: 0; }
  .ring-label { font-size: 10px; }
  .approve-card { transform: none !important; }
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }
  .panels { min-height: 0; }
}

/* ---------- reduced motion: no pinning, no scrub, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero, .problem, .approve { height: auto; }
  .hero-sticky { position: relative; }
  .problem-sticky, .approve-sticky { position: relative; height: auto; padding-top: 16vh; padding-bottom: 16vh; }
  .day-pin { height: auto; overflow: visible; }
  .day-track { flex-direction: column; gap: 12vh; padding-bottom: 12vh; }
  .moment { width: auto; max-width: 980px; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .glue-core { opacity: 1; transform: translate(-50%, -50%); }
  .ac-done { opacity: 1; transform: none; }
  .marquee { display: none; }
  .glue-you { display: none; }
  .approve-card.is-done .ac-btns { display: none; }
}
