/* Rubydose site: tokens from the app (LAUNCH.md Phase 2), dark first + light. */
@font-face { font-family: "Sora"; src: url("/fonts/Sora-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/fonts/Sora-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ground: #120A0C;
  --surface: #1E1215;
  --surface2: #2A191D;
  --line: #3A2529;
  --ink: #F6ECE8;
  --muted: #B9A3A0;
  --ruby: #FF3B4E;
  --on-ruby: #1B0A0D;
  --link: #FF6B78;
  --amber: #FFB15C;
  --device: #0A0506;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #FBF6F3;
    --surface: #FFFFFF;
    --surface2: #F3E9E5;
    --line: #EADCD7;
    --ink: #1E1215;
    --muted: #6E5A57;
    --ruby: #C8102E;
    --on-ruby: #FFFFFF;
    --link: #B0102A;
    --amber: #9A4F0A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 18px/1.55 "Instrument Sans", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: "Sora", system-ui, sans-serif; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 24px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ruby); outline-offset: 3px; }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b { font-family: "Sora", sans-serif; font-size: 22px; letter-spacing: -0.02em; }
.bar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.bar nav a:hover { color: var(--link); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 28px;
  background: var(--ruby); color: var(--on-ruby); text-decoration: none;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 17px;
}
.btn:hover { color: var(--on-ruby); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 24px 0 64px; }
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lead { font-size: 20px; color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.proof { font-size: 16px; color: var(--muted); }

/* Hero calculator: the app's dotted dose ring plus the same arithmetic */
.calc { flex: 1 1 340px; max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.calc h2 { font-size: 22px; font-weight: 600; }
.ring { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.ring svg { position: absolute; inset: 0; overflow: visible; }
.ring .dot { fill: var(--line); }
.ring .dot.on { fill: var(--ruby); filter: drop-shadow(0 0 4px var(--ruby)); }
.ring .mid { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.ring output { font-family: "Sora", sans-serif; font-weight: 600; font-size: 34px; line-height: 1.1; }
.ring small { color: var(--muted); font-size: 14px; }
.calc label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 16px; }
.calc label span { white-space: nowrap; color: var(--muted); }
.calc input[type=range] { width: 100%; accent-color: var(--ruby); min-height: 32px; }
.calc .sum { font-size: 15px; color: var(--muted); }
.calc .note { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section > .wrap > h2 { max-width: 780px; }
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 32px; }
.pains blockquote { margin: 0; background: var(--surface); border-radius: 20px; padding: 22px; font-size: 18px; }
.pains strong { color: var(--link); }

.rows { display: flex; flex-direction: column; gap: 64px; margin-top: 40px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.row:nth-child(even) { flex-direction: row-reverse; }
.row .text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.row .text p { color: var(--muted); max-width: 32rem; }
.row .detail { font-weight: 600; color: var(--ink); }
.shot { flex: 1 1 240px; max-width: 280px; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 8px solid var(--device); background: var(--device); box-shadow: 0 0 60px rgba(255, 59, 78, 0.14); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: 20px; padding: 22px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface2); color: var(--ruby); font-family: "Sora", sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.steps b { display: block; font-size: 19px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 16px; }

/* Video: click to load, no YouTube request before that */
.video { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.video .text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.player { flex: 1 1 260px; max-width: 320px; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 24px; overflow: hidden; background: var(--device); position: relative; }
.player button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.player button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player button span { position: relative; width: 84px; height: 84px; border-radius: 50%; background: #FF3B4E; display: grid; place-items: center; }
.player button span svg { width: 36px; height: 36px; fill: #1B0A0D; margin-left: 4px; }
.player button:focus-visible span { outline: 3px solid #F6ECE8; outline-offset: 4px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; font-size: 19px; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

.band { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 48px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.band p { color: var(--muted); }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.disclaimer { font-size: 14px; color: var(--muted); max-width: 46rem; }

/* Privacy page */
.doc { max-width: 760px; padding: 16px 0 48px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.doc h2 { font-size: 26px; margin: 36px 0 10px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .bar nav a { transition: filter .15s, color .15s; }
  .ring .dot { transition: fill .2s; }
}
