/* The website in the card's plate look: no boxes, hairlines and space; a serif for display, the system sans for text,
   mono caps for labels and index numbers; teal is the only accent. Tokens match src/widget/card.css. */
:root { color-scheme: light; --ground: #fbfaf7; --ink: #1b1f1d; --muted: #6b6762; --rule: rgb(27 31 29 / .12); --accent: #0f5149; --on-accent: #fff; --tint: rgb(15 81 73 / .1); --disc: rgb(27 31 29 / .05); --warn: #9a3a1c;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif; --sans: ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; --ground: #171717; --ink: #ece8e1; --muted: #a39e97; --rule: rgb(236 232 225 / .14); --accent: #8ccfc1; --on-accent: #0c2420; --tint: rgb(140 207 193 / .16); --disc: rgb(236 232 225 / .06); --warn: #f0b45a; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 5px; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--tint); }
[hidden] { display: none !important; }

.bar, main, footer { width: min(1080px, 100% - 40px); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.bar nav { display: flex; gap: 22px; font-size: 14px; }
.bar nav a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

.label { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.label b { color: var(--ink); font-weight: 500; }
h1 { font: 400 clamp(40px, 5.4vw, 68px)/1.04 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
h1 em, .first em { font-style: italic; color: var(--accent); }
.lede { font: 400 clamp(18px, 1.6vw, 21px)/1.5 var(--serif); color: var(--ink); max-width: 36ch; text-wrap: pretty; }
.fine { font-size: 13px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 500 16px/1 var(--sans); background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; padding: 0 24px; min-height: 48px; cursor: pointer; text-decoration: none; transition: opacity .15s; }
.btn:hover { opacity: .9; }
.link { display: inline-flex; align-items: center; font: 500 15px/1.2 var(--sans); min-height: 44px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; }
.link:hover { text-decoration-color: currentColor; }
.link.danger { color: var(--warn); }

/* landing */
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 88px); padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.intro { display: grid; gap: 22px; justify-items: start; }

/* the demo: the card's three moments, drawn on an illustration. The scan is the authored moment: the face turns, the
   side of the ring it faces is asked for, then covered. Between steps the lens opens into the plate and the words trade places. */
.demo { margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); --out: cubic-bezier(.16, 1, .3, 1); }
.stage { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: clamp(16px, 2.4vw, 28px); align-items: center; padding: 20px 0 14px; }
.portrait { position: relative; aspect-ratio: 4 / 5; container-type: inline-size; }
.face { position: absolute; inset: 0; overflow: hidden; background: var(--disc); clip-path: circle(90cqi at 50% 50%); transition: clip-path .6s var(--out); perspective: 700px; }
.stage[data-step="scan"] .face { clip-path: circle(38cqi at 50% 50%); }
.head { position: absolute; inset: 0; transform: translateX(var(--shift, 0)) rotateY(var(--yaw, 0deg)) rotateX(var(--pitch, 0deg)) scale(var(--zoom, 1)); transition: transform .7s var(--out); }
.stage[data-step="scan"] .head { --zoom: 1.12; }
.head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.head .layer { opacity: 0; transition: opacity .45s ease-out; }
.stage:not([data-step="scan"]) .head .layer.on { opacity: 1; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .3s ease-out, transform .6s var(--out); }
.stage:not([data-step="scan"]) .ring, .stage:not([data-step="scan"]) .pct { opacity: 0; }
.stage:not([data-step="scan"]) .ring { transform: scale(1.25); }
#front { fill: none; stroke: var(--rule); stroke-width: 1.5; transition: stroke .3s; }
.tick { stroke: var(--rule); stroke-width: 2.4; stroke-linecap: round; transform-box: view-box; transform-origin: 50% 50%; transition: stroke .3s, transform .5s var(--out); }
.tick.ask, #front.ask { stroke: color-mix(in srgb, var(--ink) 60%, transparent); }
.tick.ask { transform: scale(1.04); }
.tick.half { stroke: color-mix(in srgb, var(--accent) 50%, transparent); }
.tick.on, #front.on { stroke: var(--accent); }
.tick.pop { animation: pop .5s var(--out); }
@keyframes pop { 40% { transform: scale(1.09); } }
.pct { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; transition: opacity .3s ease-out; font-variant-numeric: tabular-nums; }

/* the three scenes share one cell, so the stage keeps its height while they trade places */
.scenes { display: grid; align-items: center; }
.scene { grid-area: 1 / 1; display: grid; gap: 12px; justify-items: start; opacity: 0; visibility: hidden; transform: translateX(calc(var(--dir, 1) * 14px)); transition: opacity .15s ease-in, transform .15s ease-in, visibility 0s .15s; }
.stage[data-step="scan"] [data-panel="scan"], .stage[data-step="map"] [data-panel="map"], .stage[data-step="routine"] [data-panel="routine"] { opacity: 1; visibility: visible; transform: none; transition: opacity .4s ease-out .12s, transform .5s var(--out) .12s; }
.scene h2 { font: 400 clamp(22px, 2.2vw, 28px)/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.scene p { font-size: 15px; color: var(--muted); max-width: 34ch; }
#say { min-height: 2.3em; transition: opacity .2s ease-out; }
#say.swap { opacity: 0; }
.layers { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.layers button, .tabs button { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 0; min-height: 36px; cursor: pointer; transition: color .2s; }
.layers button { border-bottom: 1.5px solid transparent; }
.layers button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button[aria-pressed="true"] { color: var(--ink); }
.findings { display: grid; }
.findings h2 { grid-area: 1 / 1; transition: opacity .35s ease-out; }
.findings h2[inert] { opacity: 0; }
.index { width: 100%; }
.index li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14px; opacity: 0; transform: translateY(6px); }
.stage[data-step="routine"] .index li { opacity: 1; transform: none; transition: opacity .4s ease-out, transform .5s var(--out); transition-delay: calc(.25s + var(--i, 0) * 80ms); }
.index li:nth-child(2) { --i: 1; } .index li:nth-child(3) { --i: 2; }
.index li > span:first-child, .how li > span { font: 500 11px/1.9 var(--mono); letter-spacing: .08em; color: var(--muted); }
.index small { display: block; color: var(--muted); font-size: 13px; }
.tabs { position: relative; display: flex; align-items: center; gap: 22px; padding: 4px 0; border-top: 1px solid var(--rule); }
.tabs .marker { position: absolute; top: -1px; left: 0; width: var(--w, 0); height: 1.5px; background: var(--accent); transform: translateX(var(--x, 0)); transition: transform .45s var(--out), width .45s var(--out); }
.tabs #play { margin-left: auto; width: 44px; min-height: 44px; display: grid; place-items: center; }
#play svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#play .go { fill: currentColor; stroke: none; }
#play[data-state="playing"] .go, #play:not([data-state="playing"]) .pause { display: none; }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--rule); }
.how li { display: grid; gap: 6px; align-content: start; }
.how h2, .notes h2 { font: 400 24px/1.2 var(--serif); letter-spacing: -.01em; }
.how p, .notes p { color: var(--muted); font-size: 15px; max-width: 46ch; }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 6vw, 88px); padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); border-top: 1px solid var(--rule); }
.notes > div { display: grid; gap: 10px; align-content: start; justify-items: start; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 20px 0 40px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* documents: privacy, terms, support */
.doc { max-width: 680px; padding: clamp(32px, 6vw, 64px) 0 72px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 16px; }
.doc .lede { max-width: none; margin-bottom: 8px; }
.doc h2 { font: 400 22px/1.25 var(--serif); margin: 36px 0 8px; padding-top: 20px; border-top: 1px solid var(--rule); }
.doc p, .doc li { color: var(--ink); }
.doc p + p, .doc ul, .doc ol { margin-top: 10px; }
.doc ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.doc .note { font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--accent); margin-top: 16px; }
.doc a { color: var(--accent); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .lede { max-width: 44ch; }
  .how, .notes { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bar nav { gap: 16px; }
  .stage { grid-template-columns: 1fr; gap: 20px; }
  .portrait { width: min(70%, 250px); margin-inline: auto; }
  #say { min-height: 0; }
  .tabs { gap: 16px; }
}
/* Less motion: nothing travels or turns. The fades stay, so a change of step is still seen. */
@media (prefers-reduced-motion: reduce) {
  .head, .face, .ring, .tick, .tabs .marker { transition: none; }
  .scene, .index li, .tick.ask { transform: none !important; }
  .tick.pop { animation: none; }
}
