/* Tokens mirror design/README.md §Design Tokens — keep them in sync with the app. */
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #0c0d0f;
  --surface: #111214;
  --card: #1c1f23;
  --raised: #17233a;
  --accent: #3d8bff;
  --accent-light: #6ea8ff;
  --accent-border: #24406b;
  --text: #eceff1;
  --text-2: #aab2b9;
  --muted: #8a929a;
  --faint: #5b6368;
  --border: #2c3033;
  --hairline: #26292e;
  --green: #7bd88f;
  --green-bg: #152a1c;
  --amber: #e5a04d;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-light); }
img, svg { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 13, 15, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { border-radius: 9px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff !important;
  border: 0; border-radius: 14px;
  padding: 14px 22px;
  font-family: var(--body); font-weight: 800; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #5599ff; transform: translateY(-1px); }
.btn.sm { padding: 9px 16px; font-size: 13px; border-radius: 11px; }
.btn.ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text) !important; }
.btn.ghost:hover { border-color: var(--accent); background: transparent; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-light);
}
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: 0.98; margin: 0; }
h1 { font-size: clamp(52px, 8vw, 92px); font-weight: 700; letter-spacing: -0.005em; }
h2 { font-size: clamp(38px, 5vw, 58px); font-weight: 700; }
h3 { font-size: 26px; font-weight: 600; line-height: 1.05; }
.lede { font-size: 20px; color: var(--text-2); max-width: 34ch; }
.accent { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(61,139,255,.22), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { margin: 18px 0 22px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
}

/* ---------- Phone mock (built from the app's own components) ---------- */
.phone {
  width: 340px; max-width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 44px;
  padding: 18px 14px 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 8px #08090a;
}
.phone-head { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px; border-bottom: 1px solid var(--hairline); }
.phone-head .name { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; flex: 1; }
.chip { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px; }
.chip.flame { background: #2a1d15; color: var(--amber); }
.chip.pro { background: var(--raised); color: var(--accent-light); border: 1px solid var(--accent-border); }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 14px 4px 4px; }
.bubble { border-radius: 16px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; max-width: 88%; }
.bubble.coach { background: var(--card); align-self: flex-start; border-top-left-radius: 6px; }
.bubble.me { background: var(--accent); color: #fff; align-self: flex-end; border-top-right-radius: 6px; }
.play { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--hairline); color: var(--muted); font-size: 11px; font-weight: 700; }
.play i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.wave { display: flex; align-items: center; gap: 2px; flex: 1; height: 18px; }
.wave b { width: 3px; border-radius: 2px; background: var(--accent-light); animation: wave 1.1s ease-in-out infinite; transform-origin: center; }
@keyframes wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .wave b { animation: none; } }
.session {
  background: var(--raised); border: 1.5px solid var(--accent-border);
  border-radius: 16px; padding: 12px; align-self: stretch;
}
.session .label { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--accent-light); }
.session .title { font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; margin: 4px 0 2px; }
.session .meta { font-size: 12px; color: var(--text-2); }
.session .actions { display: flex; gap: 6px; margin-top: 10px; }
.session .actions span { flex: 1; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 7px 0; border-radius: 10px; border: 1.5px solid var(--border); color: var(--text-2); }
.session .actions span:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.quick { align-self: flex-end; border: 1.5px solid var(--border); color: var(--text-2); border-radius: 14px; padding: 6px 11px; font-size: 12px; font-weight: 700; }
.composer { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.composer .input { flex: 1; background: var(--card); border-radius: 999px; padding: 10px 14px; font-size: 12.5px; color: var(--faint); }
.composer .mic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { color: var(--text-2); margin: 0; font-size: 18px; }
.alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } section { padding: 72px 0; } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--raised); border: 1px solid var(--accent-border); margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--accent-light); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Tones */
.tones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .tones { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tones { grid-template-columns: 1fr; } }
.tone { background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 20px; }
.tone.on { background: var(--raised); border-color: var(--accent); }
.tone .tname { font-family: var(--display); font-size: 24px; font-weight: 700; text-transform: uppercase; }
.tone.on .tname { color: var(--accent); }
.tone q { display: block; margin-top: 10px; color: var(--text-2); font-size: 14.5px; quotes: "“" "”"; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--accent); padding-top: 18px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-weight: 700; font-size: 54px; color: var(--accent); line-height: 1; }
.step h3 { margin: 10px 0 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Privacy band */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr; } }
.promise ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promise li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; color: var(--text-2); font-size: 15.5px; }
.promise li svg { flex: none; margin-top: 3px; width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.promise li strong { color: var(--text); }

/* Final CTA */
.final { text-align: center; }
.final h2 { font-size: clamp(44px, 7vw, 80px); margin: 14px 0 18px; }
.final p { color: var(--text-2); margin: 0 auto 30px; max-width: 46ch; font-size: 18px; }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--text-2); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--text); }

/* ---------- Legal / doc pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(44px, 7vw, 68px); margin: 12px 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 30px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--text-2); }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.doc .callout { background: var(--raised); border: 1px solid var(--accent-border); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.doc .callout p { margin: 0; color: var(--text); }
