/* Dossio waitlist page: "calm premium", dark-first. Brand tokens from docs/SPEC.md 3.1 to 3.4.
   No inline styles anywhere (the CSP allows only this stylesheet). */
@font-face { font-family: Outfit; src: url(/fonts/outfit-300.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Outfit; src: url(/fonts/outfit-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/geist-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/geist-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/fonts/geist-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --night: #0B0D10;
  --surface: #15181D;
  --paper: #F2F4F7;
  --ink: #0E1116;
  --blue: #8DA2F7;
  --text: #F2F4F7;
  --body: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.56);
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.07);
  --warn: #F2B66B;
  --danger: #FCA5A5;
  --display: Outfit, Geist, system-ui, sans-serif;
  --ui: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 3px; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Type */
h1, h2 { font-family: var(--display); font-weight: 300; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; }
h1 em, h2 em { font-style: normal; color: var(--blue); font-weight: 400; }
h3 { font: 500 19px/1.3 var(--ui); margin: 0 0 6px; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; text-decoration: none; }
.lede { color: var(--body); font-size: 17px; max-width: 32em; margin: 22px 0 30px; text-wrap: pretty; }
.mono-inline { font: 500 0.88em var(--mono); }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; position: relative; z-index: 2; }
.brand { display: inline-flex; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }
.brand .tm { color: var(--faint); font-size: 13px; margin-left: 2px; }
.top-cta { margin: 0; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.top-cta:hover { background: var(--glass); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 28px; padding-bottom: 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.foot a { color: var(--faint); }
.foot a:hover { color: var(--text); }

/* Glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Waitlist form */
.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.join input[type=email] {
  flex: 1 1 240px; min-width: 0; height: 54px; padding: 0 16px;
  font: 400 16px var(--ui); color: var(--text);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 10px;
}
.join input[type=email]::placeholder { color: var(--faint); }
.join input[type=email]:focus { outline: none; border-color: var(--blue); }
.join input[aria-invalid=true] { border-color: var(--danger); }
.btn {
  height: 54px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap;
  background: var(--paper); color: var(--ink);
  font: 500 13px var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform 120ms ease, opacity 150ms ease;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }
@media (max-width: 480px) { .join input[type=email], .btn { flex: 1 1 100%; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { flex: 1 1 100%; min-height: 22px; font-size: 15px; font-weight: 500; }
.status.ok { color: var(--text); }
.status.err { color: var(--danger); }
.join.done input, .join.done .btn { display: none; }
.join.done .status { background: rgba(141, 162, 247, 0.14); border: 1px solid rgba(141, 162, 247, 0.3); color: var(--text); border-radius: 10px; padding: 14px 16px; }
.fine { margin-top: 10px; font-size: 13px; color: var(--faint); }
.fine a { color: var(--faint); }

/* 1. Hero. Placeholder imagery: a soft Ink to Dossio Blue to Paper glow, until real photos. */
.hero { position: relative; padding: 24px 0 88px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 244, 247, 0.16), rgba(141, 162, 247, 0.16) 45%, rgba(11, 13, 16, 0) 75%);
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; padding-top: 40px; } }

/* Phone mockup with demo data (HTML, so the hero reads with images off). */
.stage { position: relative; display: grid; justify-items: center; }
.phone {
  margin: 0; width: 300px; max-width: 100%; padding: 12px; border-radius: 48px;
  background: linear-gradient(160deg, #2A2F38, #121418); border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}
.screen { border-radius: 38px; overflow: hidden; background: #F6F7F9; color: var(--ink); padding-bottom: 18px; min-height: 520px; }
.p-hero { background: #0F1424; color: var(--paper); padding: 22px 18px 20px; border-radius: 0 0 22px 22px; }
.p-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.p-row img { height: 17px; width: auto; }
.p-search { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.p-label { font: 500 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242, 244, 247, 0.55); margin-bottom: 6px; }
.p-next { font: 400 22px/1.15 var(--display); }
.p-sub { font-size: 12px; color: rgba(242, 244, 247, 0.6); margin-top: 4px; }
.p-pad { color: #5B6472; padding: 18px 18px 0; }
.p-list { list-style: none; margin: 0; padding: 4px 12px 0; display: grid; gap: 8px; }
.p-list li { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 8px; background: #FFF; border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(14, 17, 22, 0.05); }
.badge { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 500 12px var(--ui); color: #FFF; }
.b-pink { background: #BE185D; } .b-teal { background: #0F766E; } .b-amber { background: #B45309; }
.p-name { font: 500 14px/1.2 var(--ui); }
.p-name small { display: block; font-size: 11px; color: #5B6472; font-weight: 400; margin-top: 2px; }
.p-meter { height: 4px; border-radius: 2px; background: #E7EAEE; overflow: hidden; }
.p-meter i { display: block; height: 100%; background: #3B5BDB; border-radius: 2px; }
.m80 { width: 80%; } .m60 { width: 60%; } .m40 { width: 40%; }

/* 2. "We found..." cards. Without JS (or with reduced motion) they're a plain list. */
.found { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; width: 100%; max-width: 360px; }
.found li { padding: 14px 16px; font-size: 15px; line-height: 1.45; color: var(--text); }
.found .eyebrow { margin-bottom: 6px; color: var(--blue); font-size: 11px; }
.demo-note { margin-top: 12px; font: 500 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.cycling .found { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); margin: 0; width: min(340px, 92%); height: 96px; }
.cycling .found li { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; transform: translateY(8px); transition: opacity 600ms ease, transform 600ms ease; background: rgba(21, 24, 29, 0.55); }
.cycling .found li.on { opacity: 1; transform: none; }
@media (min-width: 960px) { .cycling .found { left: -6%; bottom: 96px; transform: none; width: 300px; } }

/* 3. Statement and trust */
.statement { padding: 96px 20px 88px; text-align: center; }
.statement h2 { max-width: 15em; margin: 0 auto; }
.trust { list-style: none; padding: 0; margin: 44px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; color: var(--body); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 10px; }
.trust svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 4. Features carousel */
.features { padding: 40px 0 96px; }
.features h2 { max-width: 14em; margin-bottom: 40px; }
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.slide { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.slide p { color: var(--body); font-size: 15px; }
.mini { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 20px; min-height: 150px; font-size: 13px; color: var(--text); }
.mini ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.mini li { display: flex; align-items: center; gap: 10px; }
.mini-big { font: 400 26px/1.1 var(--display); margin-top: 6px; }
.mini-big span { font: 400 13px var(--ui); color: var(--body); }
.mini-note { margin-top: 10px; color: var(--body); font-size: 12px; }
.mini .eyebrow { margin-bottom: 4px; }
.d { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.d-teal { background: #2DD4BF; } .d-amber { background: var(--warn); }
.mini li.warn { flex-wrap: wrap; }
.mini li.warn span { color: var(--warn); font-size: 11px; flex-basis: 100%; padding-left: 19px; margin-top: -6px; }
.mini-cal li { justify-content: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mini-cal li:last-child { border-bottom: 0; }
.mini-cal .mono-inline { color: var(--blue); min-width: 52px; }
.file-ic { width: 18px; height: 22px; border: 1.5px solid var(--body); border-radius: 3px; flex: none; }
.seg { display: flex; gap: 3px; margin-top: 10px; }
.seg i { flex: 1; height: 6px; border-radius: 2px; background: var(--blue); }
.seg i.off { background: rgba(255, 255, 255, 0.12); }
.js .track { overflow: hidden; scroll-snap-type: none; }
.js .track > .slide { transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.controls { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.ctl { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; display: inline-grid; place-items: center; }
.ctl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ctl .i-play { display: none; }
.ctl.paused .i-play { display: block; }
.ctl.paused .i-pause { display: none; }
.ctl:hover { background: var(--glass); }
.dots { display: inline-flex; gap: 6px; margin-left: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--paper); }

/* 5. How it works */
.steps { padding: 72px 20px 96px; border-top: 1px solid var(--line); }
.steps h2 { margin-bottom: 40px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 760px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li .eyebrow { color: var(--blue); margin-bottom: 12px; }
.steps li p { color: var(--body); font-size: 15px; }

/* 6. Emergency kit, over a soft glow placeholder */
.kit { position: relative; padding: 40px 0 104px; }
.kit::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 30% 50%, rgba(141, 162, 247, 0.16), rgba(11, 13, 16, 0) 70%), radial-gradient(40% 50% at 75% 40%, rgba(242, 244, 247, 0.07), rgba(11, 13, 16, 0) 70%);
}
.kit-inner { position: relative; padding: 40px 28px; width: calc(100% - 32px); max-width: 1080px; }
@media (min-width: 760px) { .kit-inner { padding: 64px; } }
.kit-inner h2 { max-width: 13em; margin-bottom: 20px; }
.kit-inner p:not(.eyebrow) { color: var(--body); max-width: 38em; }

/* 7. FAQ */
.faq { padding: 24px 20px 96px; max-width: 820px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 500 18px var(--ui); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px/1 var(--display); color: var(--faint); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--body); margin-top: 10px; max-width: 40em; }

/* 8. Final CTA */
.final { padding: 88px 0 104px; border-top: 1px solid var(--line); }
.final-inner { display: grid; justify-items: center; text-align: center; gap: 32px; }
.final .join { justify-content: center; width: 100%; }

/* Privacy and terms pages */
.doc-page .top { border-bottom: 1px solid var(--line); }
main.doc { max-width: 720px; padding-top: 40px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 16px; }
.doc h2 { font: 500 19px/1.35 var(--ui); letter-spacing: 0; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--body); margin: 0 0 12px; }
.doc strong { color: var(--text); font-weight: 500; }
.doc .label { font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
