:root {
  --blue: #2952ff;
  --blue-soft: rgba(41, 82, 255, 0.08);
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --line: rgba(15, 23, 42, 0.08);
  --yellow: #ffd45c;
  --radius: 28px;
  --max: 1080px;
  --surface: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --feature-dark: #0f172a;
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Dark theme: follows the system unless the visitor picked one with the toggle (data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #4d6bff;
    --blue-soft: rgba(77, 107, 255, 0.16);
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #6e6e73;
    --bg: #000000;
    --bg-2: #0d0d0f;
    --surface: #1c1c1e;
    --line: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --feature-dark: #2952ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #4d6bff;
  --blue-soft: rgba(77, 107, 255, 0.16);
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --bg: #000000;
  --bg-2: #0d0d0f;
  --surface: #1c1c1e;
  --line: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(0, 0, 0, 0.72);
  --feature-dark: #2952ff;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
/* Theme-swapped images: the dark icon on light pages, the light icon on dark pages. */
.on-dark { display: none !important; }
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none !important; }
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
}
.nav ul { display: flex; gap: 28px; list-style: none; font-size: 13px; }
.nav ul a { color: var(--ink-2); }
.nav ul a:hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 17px; font-weight: 500; border: 0; cursor: pointer;
  background: var(--blue); color: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; background: #1e40ff; }
.btn:active { transform: scale(0.97); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--ink-2);
}
.theme-toggle:hover { background: var(--blue-soft); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.btn.small { min-height: 32px; padding: 0 14px; font-size: 13px; }
.btn.ghost { background: var(--blue-soft); color: var(--blue); }
.btn.ghost:hover { background: rgba(41, 82, 255, 0.14); }

/* ---------- Type ---------- */
.eyebrow { color: var(--blue); font-weight: 600; font-size: 17px; margin-bottom: 8px; }
h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.05; letter-spacing: -0.015em; font-weight: 700; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 600; }
.lead { font-size: clamp(19px, 2.2vw, 24px); color: var(--ink-2); line-height: 1.4; }
.muted { color: var(--ink-2); }
.center { text-align: center; }

section { padding: 120px 0; }
section.tint { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head .lead { margin-top: 16px; }

/* ---------- Hero ---------- */
/* Fades into the tinted features section and leaves room under the phone so its glow isn't cut off. */
.hero {
  padding: 96px 0 80px; text-align: center; overflow-x: clip;
  background: linear-gradient(to bottom, var(--bg) 55%, var(--bg-2));
}
.hero .lead { max-width: 620px; margin: 20px auto 32px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.hero-stage { position: relative; margin-top: 72px; display: flex; justify-content: center; }
.hero-stage .glow-peek {
  position: absolute; width: 180px; right: calc(50% - 300px); bottom: 120px;
  transform: rotate(8deg);
}
.hero-stage::before {
  content: ""; position: absolute; inset: 20% 10% -10%;
  background: radial-gradient(closest-side, rgba(41, 82, 255, 0.18), transparent);
  z-index: -1;
}

/* ---------- Phone mockup (mirrors the app's home screen) ---------- */
.phone {
  width: 320px; aspect-ratio: 9 / 19.5; border-radius: 54px; padding: 12px;
  background: #0b0b0f;
  box-shadow: 0 0 0 2px #2a2a31, 0 40px 80px rgba(15, 23, 42, 0.25);
  position: relative; flex-shrink: 0;
}
.phone .screen {
  height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column; position: relative;
}
.phone .island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 3;
}
.prompter {
  height: 30%; padding: 52px 20px 12px; position: relative; overflow: hidden;
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.6;
  color: var(--ink-3);
}
.prompter .now { color: var(--ink); font-weight: 600; }
.prompter::after { /* speaking beam, edge-glow style */
  /* Fades out toward the camera so there's no glow or hard edge at the bottom. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
  box-shadow: inset 0 0 28px rgba(41, 82, 255, 0.45);
  animation: speak 1.6s ease-in-out infinite;
}
@keyframes speak { 50% { box-shadow: inset 0 0 12px rgba(41, 82, 255, 0.15); } }

.cam {
  flex: 1; margin: 0 10px; border-radius: 30px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #c9d3e6 0%, #8c9bb8 55%, #5c6a86 100%);
}
.cam .person::before, .cam .person::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
}
.cam .person::before { /* head */
  bottom: 118px; width: 84px; height: 96px; border-radius: 50%; background: #f1d4bf; z-index: 1;
}
.cam .person::after { /* shoulders */
  bottom: -40px; width: 200px; height: 170px; border-radius: 100px 100px 0 0; background: #2c3550;
}
.pill {
  position: absolute; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 600;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.pill.rec { top: 14px; left: 14px; color: #fff; background: rgba(255, 59, 48, 0.9); border-color: transparent; }
.pill.rec::before { content: "● "; }
.pill.q { top: 14px; right: 14px; }
.pill.wpm { bottom: 14px; left: 50%; transform: translateX(-50%); }
.dock { height: 92px; display: flex; align-items: center; justify-content: space-around; padding: 0 28px; }
.dock .side { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); }
.dock .shutter {
  width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--line);
  display: grid; place-items: center;
}
.dock .shutter::after { content: ""; width: 26px; height: 26px; border-radius: 7px; background: var(--blue); }

/* ---------- Features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 36px;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px;
  overflow: hidden; position: relative;
}
.tint .card { border-color: transparent; }
.card.span-3 { grid-column: span 3; }
.card.span-2 { grid-column: span 2; }
.card.span-4 { grid-column: span 4; }
.card.span-6 { grid-column: span 6; }
.card p { color: var(--ink-2); font-size: 17px; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft);
  display: grid; place-items: center; color: var(--blue); margin-bottom: 6px;
}
.card .icon svg { width: 22px; height: 22px; }
.card.feature-hero { flex-direction: row; align-items: center; gap: 32px; }
.card.feature-hero > div { flex: 1; }
.card.feature-hero img { width: 200px; }
.card.dark { background: var(--feature-dark); color: #fff; }
.card.dark p { color: rgba(255, 255, 255, 0.75); }
.card.dark .icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
.card .big-stat { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--blue); }
.card.dark .big-stat { color: #fff; }

/* waveform */
.wave { display: flex; gap: 4px; align-items: center; height: 48px; margin-top: auto; }
.wave i { width: 5px; border-radius: 3px; background: var(--blue); animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-delay: -0.4s; }
.wave i:nth-child(3n) { animation-delay: -0.8s; }
@keyframes wave { 0%, 100% { height: 10px; } 50% { height: 44px; } }

/* gesture list */
.gestures { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.gestures li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; color: var(--ink-2); }
.gestures b { color: var(--ink); font-weight: 600; min-width: 128px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { text-align: center; padding: 0 12px; }
.step img { width: 140px; margin: 0 auto 20px; }
.step h3::before { counter-increment: step; content: counter(step) ". "; color: var(--blue); }
.step p { color: var(--ink-2); margin-top: 8px; font-size: 17px; }

/* ---------- Glow ---------- */
.glow { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.glow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.glow-grid figure { background: var(--surface); border-radius: 22px; padding: 14px; text-align: center; }
.glow-grid figcaption { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.plan { border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); background: var(--surface); }
.plan.pro { border: 2px solid var(--blue); position: relative; }
.plan .tag {
  position: absolute; top: -13px; left: 40px; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.plan img { width: 88px; margin-bottom: 16px; }
.plan h3 { font-size: 28px; }
.plan .sub { color: var(--ink-2); margin: 4px 0 24px; }
.plan ul { list-style: none; display: grid; gap: 12px; }
.plan li { padding-left: 28px; position: relative; font-size: 17px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232952FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.coin-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.coin-table th, .coin-table td { text-align: left; padding: 10px 0; border-top: 1px solid var(--line); }
.coin-table th { font-weight: 500; color: var(--ink-2); }
.coin-table td:last-child, .coin-table th:last-child { text-align: right; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: 19px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 300; color: var(--blue); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); font-size: 17px; padding: 0 40px 24px 0; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta img { width: 160px; margin: 0 auto 24px; }
.cta .lead { margin: 16px auto 32px; max-width: 520px; }

/* ---------- Footer ---------- */
footer { background: var(--bg-2); padding: 40px 0; font-size: 13px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 80px 24px 120px; }
.legal h1 { font-size: clamp(36px, 5vw, 48px); }
.legal .updated { color: var(--ink-3); margin: 8px 0 40px; }
.legal h2 { font-size: 24px; margin: 48px 0 12px; letter-spacing: 0; }
.legal h3 { font-size: 19px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 17px; color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin-top: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .summary { background: var(--bg-2); border-radius: 22px; padding: 28px; }
.legal .summary h2 { margin-top: 0; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav ul { display: none; }
  section { padding: 88px 0; }
  .bento { grid-template-columns: 1fr; }
  .card.span-2, .card.span-3, .card.span-4, .card.span-6 { grid-column: auto; }
  .card.feature-hero { flex-direction: column; text-align: left; align-items: flex-start; }
  .card.feature-hero img { width: 140px; }
  .steps, .plans, .glow { grid-template-columns: 1fr; }
  .glow { gap: 40px; }
  .hero-stage .glow-peek { width: 110px; right: 4%; bottom: 80px; }
  .phone { width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Download page ---------- */
.dl { padding: 80px 0 120px; overflow-x: clip; background: linear-gradient(to bottom, var(--bg) 60%, var(--bg-2)); }
.dl-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.dl-icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 28px; box-shadow: 0 12px 32px rgba(41, 82, 255, 0.25); }
.dl h1 { font-size: clamp(40px, 6vw, 64px); }
.dl .lead { margin: 20px 0 36px; max-width: 480px; }
/* Store buttons in the site's own style: pills that follow the theme (ink on light pages, white on dark). */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px 0 20px;
  border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 17px; font-weight: 600; line-height: 1.15; text-align: left;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.store:hover { color: var(--bg); text-decoration: none; opacity: 0.85; }
.store:active { transform: scale(0.97); }
.store svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; }
.store.is-yours { order: -1; }
.trademarks { flex-basis: 100%; font-size: 11px; color: var(--ink-3); }
.perks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; font-size: 15px; color: var(--ink-2); }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232952FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.dl .hero-stage { margin-top: 0; }
.dl .hero-stage .glow-peek { right: -10px; bottom: 90px; width: 150px; }
@media (max-width: 860px) {
  .dl { padding-top: 56px; }
  .dl-grid { grid-template-columns: 1fr; text-align: center; }
  .dl-icon { margin: 0 auto 24px; }
  .dl .lead { margin-left: auto; margin-right: auto; }
  .stores, .perks { justify-content: center; }
  .dl .hero-stage .glow-peek { right: 4%; width: 110px; }
}

/* PRE-LAUNCH: hides every download button until the app is live. Delete this rule at launch. */
a[href="download.html"], .stores, .trademarks { display: none !important; }
