/* Kymo's website: soot and paper, one vermilion point, the app's own light for color. Dark only, like the app. */
@font-face { font-family: Jost; font-weight: 400; font-display: swap; src: url(fonts/Jost_400Regular.ttf) format('truetype'); }
@font-face { font-family: Jost; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/Jost_400Regular_Italic.ttf) format('truetype'); }
@font-face { font-family: Jost; font-weight: 500; font-display: swap; src: url(fonts/Jost_500Medium.ttf) format('truetype'); }
@font-face { font-family: Geist; font-weight: 400; font-display: swap; src: url(fonts/Geist_400Regular.ttf) format('truetype'); }
@font-face { font-family: Geist; font-weight: 500; font-display: swap; src: url(fonts/Geist_500Medium.ttf) format('truetype'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-display: swap; src: url(fonts/GeistMono_400Regular.ttf) format('truetype'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-display: swap; src: url(fonts/GeistMono_500Medium.ttf) format('truetype'); }

:root {
  color-scheme: dark;
  --void: #000;
  --graphite: #0d0e0f;
  --glass: #141517;
  --paper: #f3f1ec;
  --mist: #c6cac8;
  --ash: #8a96a3;
  --hair: rgba(243, 241, 236, 0.12);
  --hair-strong: rgba(243, 241, 236, 0.22);
  --jewel: #ff5b3a;
  --ice: #9edcff;
  --display: Jost, 'Avenir Next', system-ui, sans-serif;
  --ui: Geist, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--void); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--void); color: var(--paper); font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(158, 220, 255, 0.28); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 12px; background: var(--paper); color: #000; padding: 10px 16px; border-radius: 99px; z-index: 50; }
.skip:focus { left: 12px; }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(198, 202, 200, 0.72); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--jewel); box-shadow: 0 0 14px rgba(255, 91, 58, 0.6); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.025em; color: var(--paper); text-wrap: balance; }
.display { font-size: clamp(48px, 8.4vw, 112px); line-height: 0.98; }
.title { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; }
h1 em, h2 em, .title em { font-style: italic; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: rgba(198, 202, 200, 0.9); max-width: 34em; }
.fine { font: 400 12px/1.5 var(--mono); letter-spacing: 0.03em; color: rgba(198, 202, 200, 0.5); }
.mono { font-family: var(--mono); }

/* layout */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.band { padding: clamp(88px, 13vw, 168px) 0; }
.rule { border: 0; height: 1px; background: var(--hair); }

/* header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); background: rgba(0, 0, 0, 0.62); border-bottom: 1px solid transparent; transition: border-color 0.4s; }
.top.scrolled { border-bottom-color: var(--hair); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.top .home { display: block; line-height: 0; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 15px; }
.top nav a { text-decoration: none; color: rgba(243, 241, 236, 0.78); transition: color 0.2s; }
.top nav a:hover { color: var(--paper); }
.top nav .hide-sm { display: none; }
@media (min-width: 720px) { .top nav .hide-sm { display: inline; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 99px; font: 500 16.5px/1 var(--ui); text-decoration: none; white-space: nowrap; transition: transform 0.25s, box-shadow 0.25s, background 0.25s; }
.btn-primary { color: #0a0a0a; background: linear-gradient(180deg, #fffefb 0%, var(--paper) 62%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 18px 48px rgba(243, 241, 236, 0.12); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 22px 60px rgba(243, 241, 236, 0.2); }
.btn-primary[aria-disabled='true'] { cursor: default; transform: none; }
.btn-ghost { color: var(--paper); border: 1px solid var(--hair-strong); }
.btn-ghost:hover { border-color: rgba(243, 241, 236, 0.45); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn svg { flex: none; }

/* the phone */
.phone { --w: 340px; position: relative; width: var(--w); max-width: 82vw; aspect-ratio: 440 / 956; border-radius: 15.6%/7.2%; padding: 1.7%; background: #050505; container-type: inline-size;
  box-shadow: 0 0 0 1.5px #3a3a3e, 0 0 0 2px #707076, 0 0 0 3.5px #1a1a1d, 0 60px 120px rgba(0, 0, 0, 0.85), 0 0 160px rgba(120, 140, 160, 0.08); }
.phone .screen { position: relative; height: 100%; border-radius: 14%/6.5%; overflow: hidden; background: #000; display: flex; flex-direction: column; }
.phone .status { flex: none; height: 12.3cqw; display: flex; align-items: center; justify-content: space-between; padding: 1.4cqw 9.4cqw 0 11.4cqw; font: 600 4.2cqw/1 var(--ui); color: var(--paper); position: relative; }
.phone .island { position: absolute; left: 50%; top: 2.8cqw; width: 27.4cqw; height: 8cqw; margin-left: -13.7cqw; border-radius: 4cqw; background: #000; box-shadow: 0 0 0 1px #111; }
.phone .icons { display: flex; gap: 1.4cqw; align-items: center; }
.phone .icons svg { display: block; height: auto; fill: var(--paper); }
.phone .shot { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; }
.phone .homebar { flex: none; height: 7.8cqw; display: flex; align-items: center; justify-content: center; }
.phone .homebar b { width: 30.6cqw; height: 1.1cqw; border-radius: 1cqw; background: rgba(243, 241, 236, 0.9); }

/* hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 0; overflow: hidden; }
.hero .copy { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; position: relative; z-index: 3; }
.hero .copy .lede { text-align: center; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero .stage { position: relative; display: flex; justify-content: center; margin-top: clamp(56px, 8vw, 96px); height: clamp(560px, 92vw, 760px); }
.hero .stage .phone { --w: 360px; position: absolute; top: 0; z-index: 2; }
/* the bloom's light, spilling past the phone: centered on the bloom in the screen, round, and breathing */
.hero .glow { position: absolute; z-index: 1; top: calc(min(360px, 82vw) * 956 / 440 * 0.555); left: 50%; width: calc(min(360px, 82vw) * 2.3); aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  border-radius: 50%; background: url(img/glow-coral.webp) center / cover no-repeat; -webkit-mask: radial-gradient(closest-side, #000 45%, transparent); mask: radial-gradient(closest-side, #000 45%, transparent);
  filter: blur(22px) saturate(1.3) brightness(1.5); mix-blend-mode: screen;
  opacity: calc(0.18 + 0.5 * var(--b, 0.6)); scale: calc(0.78 + 0.26 * var(--b, 0.6)); }
.hero .stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 88%); z-index: 3; pointer-events: none; }
.cue { position: relative; z-index: 4; margin-top: -24px; text-align: center; font: 500 12.5px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(243, 241, 236, 0.8); }
.cue span { color: var(--ice); }
.cue small { display: block; margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; color: rgba(198, 202, 200, 0.45); text-transform: none; }

/* the hairlines that breathe behind a band */
.kymo-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.55; }
.kymo-lines path { fill: none; stroke: rgba(243, 241, 236, 0.13); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

/* split sections: copy beside a phone */
.split { display: grid; gap: clamp(48px, 7vw, 96px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } .split.flip > :first-child { order: 2; } }
.split .media { display: flex; justify-content: center; position: relative; }
.split .copy { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }

/* the Moments list */
.moments { list-style: none; border-top: 1px solid var(--hair); margin-top: 10px; }
.moments li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.moments b { font: 400 clamp(24px, 2.5vw, 30px)/1.1 var(--display); letter-spacing: -0.015em; }
.moments span { font: 400 13px/1.3 var(--mono); color: rgba(198, 202, 200, 0.72); text-align: right; letter-spacing: 0.02em; }
@media (max-width: 600px) { .moments li { flex-direction: column; gap: 6px; padding: 18px 0; } .moments span { text-align: left; } }
.note { font-size: 15.5px; color: rgba(198, 202, 200, 0.75); }

/* the trace card */
.card { width: min(420px, 86vw); border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px rgba(243, 241, 236, 0.1), 0 60px 140px rgba(0, 0, 0, 0.95), 0 0 200px rgba(158, 220, 255, 0.07); }
.points { list-style: none; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: rgba(243, 241, 236, 0.86); }
.points li::before { content: ''; width: 9px; height: 1px; background: var(--paper); margin-top: 0.8em; }
.link { display: inline-flex; gap: 8px; align-items: center; color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--hair-strong); padding-bottom: 3px; width: fit-content; transition: border-color 0.2s; }
.link:hover { border-color: var(--paper); }

/* the visuals wall */
.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px); margin-top: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .wall { grid-template-columns: repeat(3, 1fr); } }
.orb { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.orb .disc { width: 100%; max-width: 330px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative; background: #000; box-shadow: 0 0 0 1px rgba(243, 241, 236, 0.12), 0 40px 100px rgba(0, 0, 0, 0.8); }
.orb .disc img { width: 100%; height: 100%; object-fit: cover; scale: calc(0.86 + 0.18 * var(--b, 0.6)); filter: brightness(calc(0.75 + 0.4 * var(--b, 0.6))); }
.orb p { font: 500 12px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243, 241, 236, 0.86); }
.orb p span { color: rgba(198, 202, 200, 0.5); margin-left: 10px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.center .lede { text-align: center; }

/* three features */
.trio { display: grid; gap: 22px; margin-top: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.feature { position: relative; border-radius: 28px; padding: 34px 30px 0; background: linear-gradient(180deg, var(--glass), var(--graphite)); box-shadow: 0 0 0 1px var(--hair) inset; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 560px; }
.feature h3 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.08; }
.feature p { color: rgba(198, 202, 200, 0.82); font-size: 16px; }
.feature .phone { --w: 290px; margin: 22px auto -46%; }

/* the statement */
.statement { text-align: center; }
.statement .title { max-width: 14em; margin: 0 auto; }
.statement .lede { margin: 28px auto 0; text-align: center; }

/* plans */
.plans { display: grid; gap: 22px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border-radius: 28px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 0 0 1px var(--hair) inset; background: var(--graphite); display: flex; flex-direction: column; gap: 22px; }
.plan.premium { background: radial-gradient(120% 80% at 50% 0%, rgba(158, 220, 255, 0.07), rgba(0, 0, 0, 0) 60%), var(--graphite); box-shadow: 0 0 0 1px var(--hair-strong) inset; }
.plan h3 { font-size: 32px; }
.plan ul { list-style: none; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: rgba(243, 241, 236, 0.88); font-size: 16px; }
.plan li::before { content: ''; width: 9px; height: 1px; background: currentColor; margin-top: 0.8em; opacity: 0.7; }
.plan .fine { margin-top: auto; }

/* closing */
.closing { text-align: center; overflow: hidden; }
.closing .mark { width: min(640px, 84vw); margin: 0 auto; }
.closing .title { margin-top: 48px; }
.closing .ctas { margin-top: 36px; display: flex; justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--hair); padding: 56px 0 64px; }
footer .wrap { display: grid; gap: 34px; }
@media (min-width: 900px) { footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
footer nav { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 15px; }
footer nav a { text-decoration: none; color: rgba(243, 241, 236, 0.78); }
footer nav a:hover { color: var(--paper); }
footer .legal { grid-column: 1 / -1; display: grid; gap: 10px; color: rgba(198, 202, 200, 0.55); font-size: 13.5px; line-height: 1.6; max-width: 62em; }

/* document pages: privacy, terms, support, how heart readings work */
.doc { padding: clamp(56px, 8vw, 104px) 0 clamp(80px, 10vw, 140px); }
.doc .wrap { display: grid; gap: 56px; }
@media (min-width: 1040px) { .doc .wrap { grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: 80px; } }
.doc header { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 22px; max-width: 900px; margin: 0 auto; width: 100%; }
@media (min-width: 1040px) { .doc header { padding-left: 300px; max-width: none; } }
.doc h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; }
.toc { display: none; }
@media (min-width: 1040px) { .toc { display: block; position: sticky; top: 104px; align-self: start; } }
.toc p { margin-bottom: 14px; }
.toc ol { list-style: none; display: grid; gap: 9px; font-size: 14px; }
.toc a { text-decoration: none; color: rgba(198, 202, 200, 0.7); }
.toc a:hover { color: var(--paper); }
.prose { max-width: 720px; width: 100%; margin: 0 auto; color: rgba(243, 241, 236, 0.88); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--hair); scroll-margin-top: 96px; }
.prose h3 { font-size: 22px; margin-top: 36px; }
.prose h2 + *, .prose h3 + * { margin-top: 16px; }
.prose strong { color: var(--paper); font-weight: 500; }
.prose a { color: var(--paper); text-decoration-color: rgba(243, 241, 236, 0.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: var(--paper); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 10px; }
.prose li::marker { color: rgba(198, 202, 200, 0.5); }
.prose code { font: 400 0.88em var(--mono); background: var(--glass); padding: 2px 6px; border-radius: 6px; }
.prose .table { overflow-x: auto; margin-top: 22px; border-radius: 18px; box-shadow: 0 0 0 1px var(--hair) inset; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th { text-align: left; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(198, 202, 200, 0.7); padding: 16px 18px; border-bottom: 1px solid var(--hair); }
.prose td { padding: 16px 18px; vertical-align: top; border-bottom: 1px solid var(--hair); }
.prose tr:last-child td { border-bottom: 0; }
.prose .meta { font: 400 14px/1.7 var(--mono); color: rgba(198, 202, 200, 0.75); letter-spacing: 0.01em; }
mark.todo { background: rgba(255, 91, 58, 0.14); color: #ffb3a3; border: 1px dashed rgba(255, 91, 58, 0.55); border-radius: 6px; padding: 0 6px; font: 500 0.82em var(--mono); letter-spacing: 0.02em; white-space: nowrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
