/* deva.works — tokens, frame, components, sections. */
:root {
  /* Brand v1 (27/10/2026, deva.works/logos/kanones.html): rose = deva, slate = ink, peach = second colour. */
  --rose: #E0446E; --rose-on-dark: #FF6F94; --rouge: #FBE3EA; --peach: #F7A574; --peach-soft: #FDEBDF; --peach-ink: #9A4A1C; --link: #B0284F;
  --bg: #FBF8F6; --surface: #F4F1EE; --card: #ffffff; --ink: #33334F; --muted: #5F5E78; --on-dark-muted: #C9C7D6;
  --accent: #33334F; --accent-dark: #24243A; --accent-soft: #FBE3EA; --accent-ink: #ffffff; --paper: #FBF8F6; --warn: #d64545;
  --ok: var(--peach-ink); --ok-soft: var(--peach-soft); --ok-dark: var(--peach-ink); --border: #EDE6E2;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.2rem, 1.4rem + 3.4vw, 4.5rem);
  --step-poster: clamp(3rem, 1rem + 7.6vw, 8rem);
  --step-figure: clamp(3.2rem, 2rem + 4.6vw, 6rem);
  --margin: max(24px, 5vw, calc((100vw - 1360px) / 2));
  --col-gap: clamp(24px, 4vw, 64px);
  --gap-section: clamp(120px, 13vw, 200px);
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: var(--step-body); line-height: 1.45; letter-spacing: -0.005em; color: var(--ink); background: var(--bg); }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--rouge); color: var(--ink); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
h2 { font-size: var(--step-head); font-weight: 500; line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
h3 { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
section { position: relative; }
.small { font-size: var(--step-small); color: var(--muted); }

/* Navigation. */
header.top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 24px var(--margin); gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand b { font-weight: 600; font-size: clamp(1.75rem, 1.35rem + 1.1vw, 2.4rem); letter-spacing: -0.045em; line-height: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The deva dot: dot .18em, halo 1.618x (.2912em), .04em from the "a", sitting on the baseline. */
.dot { display: inline-block; position: relative; width: .2912em; height: .2912em; border-radius: 50%; background: var(--rouge); vertical-align: -.0556em; margin-left: .04em; }
.dot::after { content: ""; position: absolute; left: .0556em; top: .0556em; width: .18em; height: .18em; border-radius: 50%; background: var(--rose); }
nav.links { display: flex; gap: 28px; }
nav.links a { text-decoration: none; }
nav.links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 0; border-radius: 0; cursor: pointer; font-weight: 500; letter-spacing: -0.01em; transition: transform .18s var(--ease-out), background .18s; }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.985); }

/* ---- Cards: deva's work, drawn. ---- */
.card { background: var(--card); border: 1px solid rgba(15,23,40,.08); /* taste-skill-ignore: interface fragment */ border-radius: 14px; padding: 16px 18px 18px; width: 340px; max-width: 100%; display: grid; gap: 12px; font-size: 0.95rem; line-height: 1.35; box-shadow: 0 1px 2px rgba(16,30,54,.05); /* taste-skill-ignore: interface fragment */ }
.card .head { display: flex; align-items: center; gap: 10px; font-size: var(--step-small); color: var(--muted); }
.card .head time { margin-left: auto; font-variant-numeric: tabular-nums; }
/* deva's mark in the cards: the brand dot with its halo (1.618). Listening, the halo breathes 1.318 to 1.918. */
.avatar { --d: 12px; width: calc(var(--d) * 1.918); height: calc(var(--d) * 1.918); position: relative; flex: none; display: grid; place-items: center; }
.avatar::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--d) * 1.618); height: calc(var(--d) * 1.618); margin: calc(var(--d) * -0.809) 0 0 calc(var(--d) * -0.809); border-radius: 50%; background: var(--rouge); }
.avatar::after { content: ""; position: relative; width: var(--d); height: var(--d); border-radius: 50%; background: var(--rose); }
.card.night .avatar::before { background: rgba(255,111,148,.28); } .card.night .avatar::after { background: var(--rose-on-dark); }
.card.listening .avatar::before { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.8146); } 50% { transform: scale(1.1854); } } /* 1.318/1.618 to 1.918/1.618 */
.card .wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.card .wave i { display: block; width: 3px; height: 4px; border-radius: 2px; background: var(--ink); opacity: .35; transition: height .3s; }
.card.listening .wave i { animation: wave 1.1s ease-in-out infinite; opacity: .8; }
.card .wave i:nth-child(2n) { animation-delay: .15s; } .card .wave i:nth-child(3n) { animation-delay: .3s; } .card .wave i:nth-child(5n) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 22px; } }
.card .lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card .lines li { max-width: 88%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--surface); opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.card .lines li.them { justify-self: end; background: var(--ink); color: var(--paper); border-radius: 12px 12px 4px 12px; }
.card .lines li.on { opacity: 1; transform: none; }
.card .chip { display: inline-block; justify-self: start; padding: 6px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-dark); font-weight: 500; font-size: var(--step-small); opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.card .chip.on { opacity: 1; transform: none; }
.card .said { font-weight: 500; font-size: 1.05rem; }
.card .bubble { max-width: 90%; padding: 9px 12px; border-radius: 12px 12px 12px 4px; background: var(--surface); }
.card .bubble.them { justify-self: end; background: var(--ink); color: var(--paper); border-radius: 12px 12px 4px 12px; }
.card .mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.card .mini li { aspect-ratio: 1; display: grid; place-items: center; font-size: 0.62rem; background: var(--surface); color: var(--muted); border-radius: 3px; font-variant-numeric: tabular-nums; }
.card .mini li.hit { background: var(--rose); color: #fff; animation: pop .6s var(--ease-out) both; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.card .perio-mini { display: flex; align-items: flex-end; gap: 6px; height: 54px; }
.card .perio-mini i { width: 16px; height: calc(var(--d) * 10px); background: var(--ink); border-radius: 3px 3px 0 0; position: relative; }
.card .perio-mini i.bop::after { content: ""; position: absolute; top: -9px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--warn); }
.card .stars { display: flex; gap: 6px; }
.card .stars i { width: 20px; height: 20px; background: var(--surface); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.card.lit .stars i, .card.float .stars i { background: var(--peach); }
.card .week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.card .week i { height: 16px; border-radius: 3px; background: var(--surface); }
.card .week i.on { background: var(--rouge); }
.card .week i.new { background: var(--rose); }
.card .visits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card .visits li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--surface); border-radius: 8px; }
.card .visits b { font-weight: 500; font-variant-numeric: tabular-nums; }
.card.night { background: var(--ink); color: var(--paper); border-color: rgba(255,255,255,.08); }
.card.night .head { color: var(--on-dark-muted); } .card.night .lines li { background: #444462; } .card.night .lines li.them { background: var(--paper); color: var(--ink); } .card.night .wave i { background: var(--paper); }
.card.float { position: absolute; box-shadow: 0 12px 40px rgba(16,30,54,.14); /* taste-skill-ignore: interface fragment */ }

/* ---- Hero. ---- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 6fr 6fr; column-gap: var(--col-gap); align-items: center; padding: 120px var(--margin) 64px; }
.hero .words { display: grid; gap: 32px; max-width: 40ch; }
.hero h1 { font-size: var(--step-poster); font-weight: 500; line-height: 0.92; letter-spacing: -0.05em; }
.hero .lead { font-size: var(--step-lead); line-height: 1.3; }
.hero .lead .role { font-weight: 500; }
.hero .actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero .scroll { text-decoration: none; font-weight: 500; }
.hero .scroll::after { content: " \2193"; display: inline-block; transition: transform .3s var(--ease-out); }
.hero .scroll:hover::after { transform: translateY(4px); }
.hero .proof { color: var(--muted); }
.hero .cards { position: relative; height: 680px; }
.hero .cards .card { position: absolute; transition: transform .8s var(--ease-out), box-shadow .8s, opacity .8s; opacity: .92; animation: floaty 7s ease-in-out infinite; }
.hero .cards .card.call { left: 0; top: 0; width: 360px; animation-duration: 8s; }
.hero .cards .card.chart { right: 0; top: 120px; width: 320px; animation-duration: 9s; animation-delay: -2s; }
.hero .cards .card.sms { left: 40px; bottom: 16px; width: 340px; animation-duration: 10s; animation-delay: -4s; }
.hero .cards .card.review { right: 24px; bottom: 0; width: 280px; animation-duration: 8.5s; animation-delay: -1s; }
.hero .cards .card.front { opacity: 1; transform: scale(1.04); z-index: 2; box-shadow: 0 18px 50px rgba(16,30,54,.14); /* taste-skill-ignore: interface fragment */ }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---- Ticker. ---- */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); padding: 16px 0; }
.ticker .track { display: flex; gap: 48px; width: max-content; animation: ticker 42s linear infinite; font-weight: 500; white-space: nowrap; }
.ticker .track span::before { content: "\25CF"; color: var(--rose-on-dark); margin-right: 18px; font-size: .6em; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- Sound familiar: pinned centre, satellites appear. ---- */
.familiar { height: 190svh; background: var(--ink); color: var(--paper); }
.familiar .pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding: 0 var(--margin); }
.familiar h2 { font-size: var(--step-poster); text-align: center; }
.familiar .sat { color: #E9E6EE; }
.familiar .sat { position: absolute; max-width: 26ch; font-size: var(--step-lead); line-height: 1.3; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.familiar .sat.on { opacity: 1; transform: none; }
.familiar .sat.a { left: 8%; top: 22%; } .familiar .sat.b { right: 8%; top: 26%; text-align: right; } .familiar .sat.c { left: 10%; bottom: 22%; } .familiar .sat.d { right: 9%; bottom: 20%; text-align: right; }

/* ---- A day with me: pinned. ---- */
.day { height: 300svh; }
.day .pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 6fr 6fr; column-gap: var(--col-gap); align-items: center; padding: 96px var(--margin) 48px; background: var(--surface); }
.day .clockside { display: grid; gap: 22px; align-content: center; }
.day .clock { font-size: var(--step-poster); font-weight: 500; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.day .bar { height: 8px; background: var(--bg); overflow: hidden; }
.day .bar i { display: block; height: 100%; background: var(--rose); transform-origin: left; transform: scaleX(0); }
.day .chapters { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; max-width: 40ch; }
.day .chapters li { display: grid; grid-template-columns: 3.6em 1fr; gap: 10px; color: var(--muted); transition: color .3s; }
.day .chapters li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.day .chapters li[data-active="true"] { color: var(--ink); }
.day .chapters li p { font-size: var(--step-body); line-height: 1.35; }
.day .cardside { position: relative; height: 70svh; }
.day .cardside .card { position: absolute; left: 50%; top: 50%; width: 400px; transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); box-shadow: 0 18px 50px rgba(16,30,54,.12); /* taste-skill-ignore: interface fragment */ }
.day .cardside .card.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }

/* ---- What you get: rows with a photograph and a card on it. ---- */
.why { padding: var(--gap-section) var(--margin) 0; }
.why h2 { max-width: 12ch; margin-bottom: clamp(48px, 5vw, 80px); }
.why .rows { display: grid; gap: clamp(72px, 8vw, 128px); }
.why .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: center; }
.why .row figure { grid-column: span 7; position: relative; aspect-ratio: 16 / 10; overflow: visible; }
.why .row figure img { width: 100%; height: 100%; object-fit: cover; }
.why .row .text { grid-column: span 5; display: grid; gap: 14px; }
.why .row .text p { max-width: 40ch; }
.why .row:nth-child(2n) figure { order: 2; } .why .row:nth-child(2n) .text { order: 1; }
.why .row .card.float { width: 300px; bottom: -28px; right: -24px; transform: translateY(24px); opacity: 0; transition: transform .8s var(--ease-out) .3s, opacity .8s var(--ease-out) .3s; }
.why .row:nth-child(2n) .card.float { right: auto; left: -24px; }
.why .row.in .card.float { transform: none; opacity: 1; }

/* ---- Watch a Tuesday: the simulation panel. ---- */
.sim { padding: var(--gap-section) var(--margin); background: var(--surface); }
.sim .words { grid-column: 1 / 7; display: grid; gap: 24px; align-content: center; }
.sim .words > p { max-width: 42ch; font-size: var(--step-lead); line-height: 1.3; }
.sim .words .small { font-size: var(--step-small); }
.sim .panel { grid-column: 7 / 13; background: var(--card); border: 1px solid rgba(15,23,40,.08); /* taste-skill-ignore: interface fragment */ border-radius: 18px; padding: 22px 24px 24px; display: grid; gap: 18px; }
.sim .panel .head { display: flex; align-items: center; gap: 10px; font-size: var(--step-small); color: var(--muted); }
.sim .panel .head time { margin-left: auto; font-variant-numeric: tabular-nums; }
.sim .counters { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sim .counters li { background: var(--surface); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.sim .counters b { font-weight: 500; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.sim .counters li:last-child b { color: var(--ok); }
.sim .counters span { font-size: var(--step-small); color: var(--muted); }
.sim .feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; min-height: 196px; align-content: start; font-size: 0.95rem; }
.sim .feed li { display: grid; grid-template-columns: 3.4em 1fr; gap: 10px; padding: 6px 0; animation: feedin .4s var(--ease-out) both; }
.sim .feed li time { color: var(--muted); font-variant-numeric: tabular-nums; }
.sim .feed li.ok { color: var(--ok-dark); font-weight: 500; }
@keyframes feedin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sim .again { justify-self: start; background: transparent; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: .22em; font-weight: 500; }

/* ---- Facts. ---- */
.facts { background: var(--ink); color: var(--paper); padding: 96px var(--margin); }
.facts h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.facts ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.facts li { display: grid; gap: 10px; }
.facts li b { font-weight: 500; font-size: var(--step-figure); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.facts li span { color: var(--on-dark-muted); max-width: 22ch; }

/* ---- Say it. ---- */
.say { padding: var(--gap-section) var(--margin); background: var(--bg); }
.say .words { grid-column: 1 / 7; display: grid; gap: 24px; align-content: start; }
.say .words > p { max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
.say .chips { display: grid; gap: 10px; }
.say .chips button { background: var(--bg); border: 0; border-radius: 0; padding: 12px 16px; cursor: pointer; text-align: left; transition: background .18s, color .18s, transform .18s var(--ease-out); }
.say .chips button:hover { background: var(--accent-soft); }
.say .chips button:active { transform: scale(.985); }
.say .chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.say .heard { font-weight: 500; max-width: 40ch; }
.say .record { grid-column: 7 / 13; background: var(--card); border: 1px solid rgba(15,23,40,.08); /* taste-skill-ignore: interface fragment */ border-radius: 18px; padding: clamp(20px, 2.6vw, 36px); display: grid; gap: 14px; align-content: start; }
.record .tag { font-size: var(--step-small); color: var(--muted); margin-top: 8px; }
.record .teeth { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; }
.record .teeth li { aspect-ratio: 1; display: grid; place-items: center; font-size: var(--step-small); font-variant-numeric: tabular-nums; background: var(--surface); border: 2px solid var(--surface); /* taste-skill-ignore: interface fragment */ border-radius: 4px; color: var(--muted); transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease-out); }
.record .teeth li[data-mark="caries"].in { background: var(--rose); color: #fff; border-color: var(--rose); transform: scale(1.08); }
.record .teeth li[data-mark="crown"].in { border-color: var(--ink); color: var(--ink); background: var(--card); transform: scale(1.08); }
.record .teeth li[data-mark="missing"].in { background: transparent; border-style: dashed; border-color: var(--muted); transform: scale(1.08); }
.record .teeth li[data-mark="perio"].in { background: var(--warn); color: #fff; border-color: var(--warn); transform: scale(1.08); }
.record .perio .tooth { display: grid; grid-template-columns: auto repeat(3, 28px); gap: 6px; align-items: end; height: 72px; }
.record .perio .tooth b { font-weight: 500; font-size: var(--step-small); margin-right: 8px; }
.record .perio .tooth i { display: block; height: calc(var(--d) * 10px); min-height: 3px; background: var(--ink); border-radius: 3px 3px 0 0; position: relative; transition: height .6s var(--ease-out); }
.record .perio .tooth i.bop::after { content: ""; position: absolute; left: 50%; top: -10px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--warn); }
.record .plan { list-style: none; padding: 0; margin: 0; }
.record .plan li { padding: 10px 12px; background: var(--accent-soft); border-radius: 8px; animation: feedin .4s var(--ease-out) both; }
.record .plan li.empty { background: transparent; color: var(--muted); padding-left: 0; animation: none; }
.record .key { font-size: var(--step-small); color: var(--muted); }

/* ---- Calculator. ---- */
.calc { padding: var(--gap-section) var(--margin) calc(var(--gap-section) * 0.7); }
.calc .words { grid-column: 1 / 7; display: grid; gap: 24px; align-content: start; }
.calc .words > p { max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
.calc .sums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px; }
.calc .sums label { display: grid; gap: 6px; font-size: var(--step-small); color: var(--muted); }
.calc .sums input { width: 100%; background: var(--surface); border: 0; border-radius: 0; padding: 12px 14px; font-size: var(--step-lead); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc .sums input:focus { outline: 3px solid var(--rose); outline-offset: 0; }
.calc .result { grid-column: 7 / 13; background: var(--ink); color: var(--paper); padding: clamp(24px, 3vw, 40px); display: grid; gap: 6px; align-content: start; }
.calc .result .big { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.calc .result .big:first-child { margin-top: 0; }
.calc .result .big b { font-weight: 500; font-size: var(--step-figure); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc .result .big span { color: var(--on-dark-muted); font-size: var(--step-body); max-width: 16ch; line-height: 1.25; }
.calc .result .big.accent b { color: var(--rose-on-dark); }
.calc .result .small { color: var(--on-dark-muted); margin-top: 18px; }

/* ---- Live in a day. ---- */
.start { padding: calc(var(--gap-section) * 0.7) var(--margin) var(--gap-section); background: var(--surface); }
.start h2 { margin-bottom: clamp(40px, 5vw, 72px); }
.start .steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.start .steps li { display: grid; gap: 12px; align-content: start; }
.start .steps li::before { content: ""; display: block; height: 10px; background: var(--rose); margin-bottom: 8px; }
.start .steps li:nth-child(2)::before { background: var(--peach); } .start .steps li:nth-child(3)::before { background: var(--ink); }
.start .steps b { font-weight: 500; color: var(--muted); }
.start .steps p { max-width: 32ch; }

/* ---- Trust. ---- */
.trust { padding: var(--gap-section) var(--margin); }
.trust .picture { grid-column: 1 / 7; aspect-ratio: 4 / 5; overflow: hidden; }
.trust .picture img { width: 100%; height: 100%; object-fit: cover; }
.trust .words { grid-column: 7 / 13; display: grid; gap: 24px; align-content: center; }
.trust .words p { max-width: 44ch; }

/* ---- Doctors. ---- */
.voices { background: var(--accent-soft); padding: clamp(120px, 16vh, 200px) var(--margin); }
.voices h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.voices .quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 56px; }
.voices .q { margin: 0; display: grid; gap: 20px; align-content: start; }
.voices .q blockquote { margin: 0; font-size: clamp(1.5rem, 0.9rem + 1.5vw, 2.2rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; }
.voices .q blockquote p { margin: 0; max-width: 22ch; }
.voices .q .wd { color: rgba(51, 51, 79, 0.2); transition: color 160ms linear; }
.voices .q .wd.lit { color: var(--ink); }
.voices .q figcaption { color: var(--muted); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.voices .q.in figcaption { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .voices .q .wd { color: var(--ink); transition: none; } .voices .q figcaption { opacity: 1; transform: none; } }

/* ---- FAQ. ---- */
.faq { padding: var(--gap-section) var(--margin); }
.faq h2 { grid-column: 1 / 7; max-width: 12ch; }
.faq .qs { grid-column: 6 / 13; display: grid; gap: 8px; }
.faq details { background: var(--surface); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.6em; line-height: 1; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 54ch; animation: feedin .4s var(--ease-out) both; }

/* ---- Close, footer, consent. ---- */
.close { background: var(--ink); color: var(--paper); padding: 120px var(--margin) 56px; }
.close .grid { row-gap: 64px; }
.close h2 { grid-column: 1 / 13; font-size: var(--step-poster); line-height: 0.9; letter-spacing: -0.05em; }
.close .note { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.3; align-self: end; max-width: 30ch; }
.close form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-self: end; }
.close form label { display: grid; gap: 6px; font-size: var(--step-small); color: var(--on-dark-muted); }
.close form label.full { grid-column: 1 / 3; }
.close form input, .close form textarea { width: 100%; background: #444462; border: 0; border-radius: 0; padding: 14px 16px; color: var(--paper); transition: background .18s; }
.close form input:focus, .close form textarea:focus { background: #4E4E70; outline: 3px solid var(--rose-on-dark); outline-offset: 0; }
.close .btn { background: var(--paper); color: var(--ink); } .close .btn:hover { background: var(--rouge); }
.close form textarea { min-height: 96px; resize: vertical; }
.close form .row { grid-column: 1 / 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.close form .status { font-size: var(--step-small); color: var(--on-dark-muted); min-height: 1.4em; }
.close form .status.ok { color: #7fd7a6; } .close form .status.err { color: #f0a59d; }
.close .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
footer { background: var(--rouge); color: var(--ink); padding: 40px var(--margin); display: grid; row-gap: 120px; }
footer .topline { display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); flex-wrap: wrap; }
footer .topline .notes { display: grid; gap: 4px; }
footer .topline a { text-decoration: none; } footer .topline a:hover { text-decoration: underline; text-underline-offset: .2em; }
footer .mail { display: block; width: max-content; max-width: 100%; text-decoration: none; font-size: var(--step-poster); font-weight: 500; line-height: 0.95; letter-spacing: -0.045em; word-break: break-word; transition: letter-spacing .4s var(--ease-out); }
footer .mail:hover { letter-spacing: -0.03em; }
footer .meta { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 16px; font-size: var(--step-small); margin-top: 24px; }
footer .meta span:nth-child(2) { text-align: center; } footer .meta span:last-child { text-align: right; }
footer .meta a { text-decoration: none; margin-right: 14px; } footer .meta a:hover { text-decoration: underline; text-underline-offset: .2em; }
.consent { position: fixed; left: var(--margin); right: var(--margin); bottom: 20px; z-index: 5; background: var(--ink); color: var(--paper); padding: 18px 20px; display: none; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 760px; margin-inline: auto; }
.consent.show { display: flex; }
.consent p { font-size: var(--step-small); max-width: 52ch; } .consent p a { color: inherit; }
.consent .acts { display: flex; gap: 10px; }
.consent button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 0; cursor: pointer; background: var(--paper); color: var(--ink); font-weight: 500; }
.consent button.no { background: transparent; color: var(--paper); text-decoration: underline; text-underline-offset: .2em; }

/* ---- Entrances. ---- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.rise.in { opacity: 1; transform: none; }
.rise.d1 { transition-delay: .08s; } .rise.d2 { transition-delay: .16s; } .rise.d3 { transition-delay: .24s; } .rise.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .rise, .why .row .card.float, .familiar .sat, .day .cardside .card { opacity: 1; transform: none; transition: none; }
  .hero .cards .card, .ticker .track, .card.listening .wave i, .card.listening .avatar::before { animation: none; }
  .card .lines li, .card .chip { opacity: 1; transform: none; }
}
html.no-js .rise, html.no-js .why .row .card.float, html.no-js .familiar .sat, html.no-js .day .cardside .card { opacity: 1; transform: none; }
html.no-js .card .lines li, html.no-js .card .chip { opacity: 1; transform: none; }
html.no-js .day { height: auto; } html.no-js .day .pin { position: static; height: auto; } html.no-js .day .cardside { height: auto; display: grid; gap: 24px; } html.no-js .day .cardside .card { position: static; transform: none; }
html.no-js .familiar { height: auto; } html.no-js .familiar .pin { position: static; height: auto; display: grid; gap: 24px; padding: 120px var(--margin); } html.no-js .familiar .sat { position: static; }

/* ---- Simple pages. ---- */
.doc { max-width: 68ch; padding: 140px var(--margin) 120px; margin-inline: auto; display: grid; gap: 20px; }
.doc h1 { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: 20px; }
.doc h2 { font-size: var(--step-lead); font-weight: 500; margin-top: 24px; letter-spacing: -0.02em; }
.doc ul { padding-left: 1.2em; }

/* ---- Tablet. ---- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; row-gap: 56px; min-height: auto; padding-bottom: 48px; }
  .hero .words { max-width: none; }
  .hero .cards { height: 560px; }
  .familiar .sat { max-width: 22ch; font-size: var(--step-body); }
  .day .pin { grid-template-columns: 1fr; align-content: start; row-gap: 24px; padding-top: 80px; }
  .day .clock { font-size: clamp(2.6rem, 9vw, 5rem); }
  .day .chapters li p { font-size: 0.95rem; }
  .day .cardside { height: 44svh; }
  .day .cardside .card { width: min(400px, 92vw); }
  .why .row figure, .why .row .text { grid-column: 1 / 13; }
  .why .row figure { overflow: hidden; }
  .why .row .card.float { bottom: 16px; right: 16px; }
  .why .row:nth-child(2n) .card.float { left: 16px; }
  .why .row:nth-child(2n) figure { order: 1; } .why .row:nth-child(2n) .text { order: 2; }
  .sim .words, .sim .panel, .say .words, .say .record, .calc .words, .calc .result, .trust .picture, .trust .words { grid-column: 1 / 13; }
  .sim .panel, .say .record, .calc .result, .trust .words { margin-top: 40px; }
  .facts ul { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .faq h2, .faq .qs { grid-column: 1 / 13; }
  .faq .qs { margin-top: 40px; }
  .close .note, .close form { grid-column: 1 / 13; }
}

/* ---- Phone. ---- */
@media (max-width: 720px) {
  :root { --margin: 20px; }
  header.top { padding: 18px var(--margin); }
  nav.links { display: none; }
  .hero { padding: 110px 20px 40px; row-gap: 40px; }
  .hero .words { padding-right: 6px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .hero .lead { font-size: 1.0625rem; }
  .hero .actions .btn { width: 100%; }
  .hero .cards { height: auto; display: grid; gap: 14px; }
  .hero .cards .card { position: static; width: 100%; animation: none; opacity: 1; }
  .hero .cards .card.front { transform: none; }
  .familiar { height: 220svh; }
  .familiar h2 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .familiar .sat { max-width: 18ch; font-size: 0.95rem; }
  .familiar .sat.a { left: 20px; top: 14%; } .familiar .sat.b { right: 20px; top: 24%; } .familiar .sat.c { left: 20px; bottom: 24%; } .familiar .sat.d { right: 20px; bottom: 12%; }
  .day { height: 380svh; }
  .day .pin { padding: 72px var(--margin) 24px; }
  .day .chapters li p { font-size: 0.9rem; }
  .day .cardside { height: 40svh; }
  .sim .counters { grid-template-columns: repeat(2, 1fr); }
  .facts { padding-block: 72px; }
  .facts ul { grid-template-columns: 1fr; row-gap: 32px; }
  .facts li b { font-size: 15vw; }
  .record .teeth { gap: 2px; } .record .teeth li { font-size: 0.68rem; border-width: 1px; }
  .calc .sums { grid-template-columns: 1fr; }
  .start .steps { grid-template-columns: 1fr; gap: 40px; }
  .voices { padding-block: 110px; }
  .voices .quotes { grid-template-columns: 1fr; row-gap: 44px; }
  .close { padding-top: 96px; }
  .close form { grid-template-columns: 1fr; }
  .close form label.full, .close form .row { grid-column: auto; }
  .close form .row .btn { width: 100%; }
  footer { row-gap: 72px; }
  footer .meta { grid-template-columns: 1fr; }
  footer .meta span:nth-child(2), footer .meta span:last-child { text-align: left; }
  .consent { left: 12px; right: 12px; bottom: 12px; }
}

@media (max-width: 1000px) { .voices .quotes { grid-template-columns: 1fr; row-gap: 48px; } .voices .q blockquote p { max-width: 30ch; } }

/* ---- v2 (04/11/2026): the StoryBrand page. Overrides below win over the rules above. ---- */

/* ---- Hero: the dentist is the hero, deva the guide. ---- */
.hero .words { gap: 26px; max-width: 44ch; }
.hero h1 { font-size: clamp(2.6rem, 1rem + 3.7vw, 3.9rem); line-height: 0.98; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--muted); }
.hero .hello { font-size: clamp(1.8rem, 1rem + 2.3vw, 3rem); font-weight: 500; line-height: 1; letter-spacing: -0.035em; white-space: nowrap; }
.hero .hello .dot { margin-right: .22em; }
.hero .lead { font-size: var(--step-lead); line-height: 1.3; max-width: 38ch; }
.hero .proof { max-width: 40ch; }

/* ---- Sound familiar: six pains in four places; the first two make room for the last two. ---- */
.familiar { height: 240svh; }
.familiar .sat.off { opacity: 0; transform: translateY(-16px); visibility: hidden; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s .5s; }

/* ---- The villain. ---- */
.villain { padding: var(--gap-section) var(--margin); background: var(--surface); }
.villain .grid { row-gap: 40px; }
.villain h2 { grid-column: 1 / 10; max-width: 16ch; }
.villain .intro { grid-column: 1 / 7; font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.villain .them, .villain .me { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; align-content: start; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em; }
.villain .them { grid-column: 1 / 7; color: var(--muted); }
.villain .me { grid-column: 7 / 13; font-weight: 500; }
.villain .them li, .villain .me li { display: grid; grid-template-columns: 1.1em 1fr; gap: 12px; max-width: 30ch; }
.villain .them li::before { content: ""; width: .7em; height: 2px; background: var(--muted); margin-top: .62em; opacity: .7; }
.villain .me li::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--rose); margin-top: .42em; }

/* ---- The guide: trust moved up, with a credentials strip. ---- */
.trust { background: var(--bg); }
.trust .cred { list-style: none; padding: 0; margin: clamp(56px, 7vw, 96px) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px clamp(20px, 2.5vw, 40px); }
.trust .cred li { display: grid; gap: 4px; padding-top: 16px; }
.trust .cred li::before { content: ""; display: block; height: 3px; width: 32px; background: var(--rose); margin-bottom: 10px; }
.trust .cred li:nth-child(2)::before, .trust .cred li:nth-child(5)::before { background: var(--peach); }
.trust .cred li:nth-child(3)::before { background: var(--ink); }
.trust .cred b { font-weight: 500; }
.trust .cred span { color: var(--muted); font-size: var(--step-small); }

/* ---- The plan and the promise. ---- */
.start h2 { max-width: 18ch; }
.start .steps b { text-transform: none; }
.start { padding: var(--gap-section) var(--margin) calc(var(--gap-section) * 0.7); }
.calc { padding: calc(var(--gap-section) * 0.7) var(--margin) calc(var(--gap-section) * 0.6); }

/* ---- Calculator: a currency, and a way out. ---- */
.calc .sums .money { display: grid; grid-template-columns: 4.6em 1fr; }
.calc .sums .money select { background: var(--ink); color: var(--paper); border: 0; border-radius: 0; padding: 0 12px; font-size: var(--step-lead); font-weight: 500; cursor: pointer; appearance: none; -webkit-appearance: none; text-align: center; }
.calc .sums .money select:focus { outline: 3px solid var(--rose); outline-offset: 0; }
.calc .result .btn { justify-self: start; margin-top: 28px; background: var(--paper); color: var(--ink); }
.calc .result .btn:hover { background: var(--rouge); }

/* ---- Quotes: three columns stay. ---- */
.voices { background: var(--rouge); }

/* ---- Tablet and phone. ---- */
@media (max-width: 1024px) {
  .villain h2, .villain .intro, .villain .them, .villain .me { grid-column: 1 / 13; }
  .villain .me { margin-top: 8px; }
  .trust .cred { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--col-gap); }
}
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .hero .hello { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero .lead { font-size: 1.0625rem; }
  .familiar { height: 260svh; }
  .trust .cred { grid-template-columns: 1fr; gap: 24px; }
    .villain .them, .villain .me { font-size: var(--step-body); }
}

.familiar .sat.late:not(.on) { visibility: hidden; }

.say { padding-top: calc(var(--gap-section) * 0.6); }
