/* userivo.app — tokens from docs/DESIGN_SYSTEM_SPEC.md §2 (colour), §3 (type), §10 (ground). Dark only. */
@font-face { font-family: "Archivo"; src: url("/static/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --canvas: #070806; --screen: #0A0B0A; --card: #0C0D0A;
  --row: #15180F; --hairline: #161815; --hairline-strong: #23261F;
  --text: #FFFFFF; --bright: #9DA69B; --secondary: #7C857A; --tertiary: #6F776D; --quaternary: #4A5147;
  --volt: #DFFF1C; --volt-dim: #8FA315;
  --phone-w: min(78vw, 300px);
}
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--canvas); overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; color: var(--bright); background: var(--canvas);
  background-image: radial-gradient(660px 460px at 14% -10%, var(--row) 0%, var(--card) 46%, var(--canvas) 100%); background-repeat: no-repeat;
  font: 400 16px/1.5 "Archivo", system-ui, -apple-system, "Helvetica Neue", sans-serif; font-stretch: 100%; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline-strong); }
a:hover { text-decoration-color: var(--volt); }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; overflow-x: clip; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.lockup img { width: 32px; height: 32px; border-radius: 7px; }
.lockup span { font-weight: 800; font-stretch: 112%; letter-spacing: -0.04em; font-size: 22px; color: var(--text); }
header.top .badge img { height: 36px; width: auto; }
h1, h2, h3 { color: var(--text); font-weight: 800; font-stretch: 112%; letter-spacing: -0.04em; line-height: 0.92; margin: 0 0 16px; }
h1 { font-size: clamp(44px, 11vw, 88px); }
h2 { font-size: clamp(34px, 8vw, 56px); }
h3 { font-size: 20px; margin-top: 28px; }
h1 em, h2 em { font-style: normal; color: var(--volt); }
p, li { max-width: 60ch; }
.sell { font-weight: 500; font-size: clamp(17px, 4.6vw, 21px); color: var(--bright); margin: 20px 0 28px; }
.badge { display: inline-block; }
.badge img { height: 54px; width: auto; }
.eyebrow { font-weight: 600; font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--secondary); margin: 0 0 12px; }
.disclaimer { color: var(--tertiary); font-size: 12px; line-height: 1.35; }

/* ---- devices: CSS frames, no bezel PNG ---- */
.phone { position: relative; width: var(--phone-w); aspect-ratio: 720 / 1564; padding: 9px; border-radius: calc(var(--phone-w) * 0.165);
  background: #16181a; border: 1px solid #2b2e2c; box-shadow: inset 0 0 0 2px #000; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--phone-w) * 0.135); background: var(--screen); }
.phone::after { content: ""; position: absolute; left: 50%; top: calc(9px + var(--phone-w) * 0.035); width: calc(var(--phone-w) * 0.26); height: calc(var(--phone-w) * 0.075);
  transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone::before { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 12%; border-radius: 0 2px 2px 0; background: #2b2e2c; }
.watch { --w: min(62vw, 240px); position: relative; width: var(--w); aspect-ratio: 416 / 496; padding: calc(var(--w) * 0.055); border-radius: calc(var(--w) * 0.26);
  background: #16181a; border: 1px solid #2b2e2c; box-shadow: inset 0 0 0 2px #000; }
.watch img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * 0.2); background: #000; }
.watch::before, .watch::after { content: ""; position: absolute; right: calc(var(--w) * -0.045); width: calc(var(--w) * 0.045); background: #2b2e2c; border-radius: 0 3px 3px 0; }
.watch::before { top: 24%; height: 16%; } .watch::after { top: 48%; height: 12%; }

/* ---- hero ---- */
.hero { padding: 40px 0 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .sell { margin-left: auto; margin-right: auto; }
.hero-device { position: relative; margin-top: 44px; width: var(--phone-w); height: calc(var(--phone-w) * 1.6); overflow: hidden; }
.hero-device .phone { position: relative; z-index: 1; }
.bloom { position: absolute; left: 50%; top: 45%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(223,255,28,0.14) 0%, rgba(223,255,28,0) 60%); filter: blur(40px); pointer-events: none; }

/* ---- the story ---- */
.story { margin-top: 56px; }
.stage { display: none; }
.point { padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.point .device { display: flex; justify-content: center; }
.point .copy { max-width: 520px; }
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-weight: 700; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text);
  background: var(--hairline); border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 7px 12px; line-height: 1; white-space: nowrap;
  font-variant-numeric: tabular-nums; }

/* ---- before / after ---- */
.ba { padding: 56px 0 24px; border-top: 1px solid var(--hairline-strong); }
.ba h2 { max-width: 14ch; }
.ba-grid { display: grid; gap: 32px; margin-top: 32px; }
.stack-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 360px; }
.stack-list li { display: flex; justify-content: space-between; align-items: center; background: var(--hairline); border: 1px solid var(--hairline-strong); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--text); }
.stack-list li span:last-child { color: var(--secondary); font-weight: 400; font-size: 13px; }
.stack-list li.sheet { border-style: dashed; }
.sms { margin-top: 16px; max-width: 320px; background: var(--hairline); border: 1px solid var(--hairline-strong); border-radius: 18px 18px 18px 4px; padding: 12px 14px; }
.sms p { margin: 0; color: var(--text); font-size: 15px; }
.sms .eyebrow { margin-bottom: 4px; }
.ba-after .phone { --phone-w: min(70vw, 260px); }
.ba-line { margin-top: 28px; font-weight: 500; font-size: 18px; color: var(--bright); }

/* ---- cta + footer ---- */
.cta { padding: 56px 0 8px; text-align: center; display: flex; flex-direction: column; align-items: center; border-top: 1px solid var(--hairline-strong); }
.cta h2 { max-width: 12ch; }
.cta .badge { margin: 8px 0 28px; }
footer { border-top: 1px solid var(--hairline-strong); margin-top: 40px; padding: 24px 0 48px; color: var(--tertiary); font-size: 12.5px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
footer nav a { font-weight: 600; font-size: 13.5px; }

/* ---- legal pages, card page ---- */
main.doc-wrap, .doc, .card-page { max-width: 720px; margin: 0 auto; }
.card-page { text-align: center; padding: 40px 0; }
.card-page img.card { width: 100%; max-width: 420px; height: auto; border-radius: 24px; border: 1px solid var(--hairline-strong); display: block; margin: 0 auto 28px; }
.card-page .badge { margin-top: 8px; }
.doc h1 { font-size: clamp(36px, 8vw, 56px); }
.doc h2 { font-size: 28px; margin-top: 44px; }
.doc p, .doc li { color: var(--bright); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ol, .doc ul { padding-left: 22px; }
.doc .updated { color: var(--tertiary); font-size: 12.5px; margin-bottom: 32px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; color: var(--text); background: var(--hairline); border: 1px solid var(--hairline-strong); border-radius: 6px; padding: 1px 6px; }

/* ---- 768 ---- */
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .hero { padding-top: 64px; }
  .point { flex-direction: row; justify-content: center; gap: 56px; padding: 72px 0; }
  .point:nth-child(odd) { flex-direction: row-reverse; }
  .ba-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---- 1280: sticky phone in the centre, copy alternating either side ---- */
@media (min-width: 1100px) {
  :root { --phone-w: 320px; }
  .story { display: grid; grid-template-columns: 1fr var(--phone-w) 1fr; column-gap: 72px; align-items: start; }
  .stage { display: block; grid-column: 2; grid-row: 1 / 7; position: sticky; top: calc(50vh - var(--phone-w) * 1.1); align-self: start; }
  .stage .phone img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transition: opacity .45s ease; }
  .stage .phone img.on { opacity: 1; }
  .stage .phone::after { z-index: 1; }
  .point { display: flex; flex-direction: column; align-items: flex-start; min-height: 100vh; justify-content: center; padding: 0; }
  .point:nth-child(odd) { flex-direction: column; }
  .point .device { display: none; }
  #proves { grid-row: 1; grid-column: 1; } #plan { grid-row: 2; grid-column: 3; } #watch { grid-row: 3; }
  #autopsy { grid-row: 4; grid-column: 1; } #dial { grid-row: 5; grid-column: 3; } #claim { grid-row: 6; grid-column: 1; }
  .point.watch-point { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 72px; min-height: 0; padding: 96px 0; background: var(--canvas); position: relative; z-index: 2; }
  .point.watch-point .device { display: flex; }
  .point.watch-point .copy { max-width: 440px; }
  .ba-grid { grid-template-columns: 1fr 1fr; max-width: 900px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .phone img { transition: none; }
}
