/* ── Anchor site — shared tokens ── */

:root {
  --navy:       #0B1526;
  --slate:      #162035;
  --sage:       #2C6B4A;
  --sage-mid:   #3D8A61;
  --sage-light: #E6F2EC;
  --sand:       #F2EBE0;
  --parchment:  #E8DFD2;
  --bark:       #8C7B6A;
  --ink:        #1A1D26;
  --quiet:      #6B7280;
  --rule:       #D8D0C6;

  --bg:         var(--sand);
  --bg-card:    #FFFFFF;
  --text:       var(--ink);
  --text-muted: var(--quiet);
  --accent:     var(--sage);
  --accent-mid: var(--sage-mid);
  --accent-bg:  var(--sage-light);
  --border:     var(--rule);

  --radius:  12px;
  --radius-sm: 7px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         var(--navy);
    --bg-card:    var(--slate);
    --text:       #F0EAE0;
    --text-muted: #8A9AAD;
    --accent:     #52B882;
    --accent-mid: #3D9668;
    --accent-bg:  #0D2218;
    --border:     #253040;
  }
}

:root[data-theme="light"] {
  --bg: var(--sand); --bg-card: #FFFFFF; --text: var(--ink);
  --text-muted: var(--quiet); --accent: var(--sage); --accent-mid: var(--sage-mid);
  --accent-bg: var(--sage-light); --border: var(--rule);
}

:root[data-theme="dark"] {
  --bg: var(--navy); --bg-card: var(--slate); --text: #F0EAE0;
  --text-muted: #8A9AAD; --accent: #52B882; --accent-mid: #3D9668;
  --accent-bg: #0D2218; --border: #253040;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; font-weight: normal; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.015em; font-weight: normal; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { max-width: 62ch; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 2rem; }

section { padding: 6rem 0; }
section + section { border-top: 1px solid var(--border); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 2rem;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: Georgia, serif; font-size: 1.1rem; font-weight: normal;
  color: var(--text); text-decoration: none;
}
.nav__logo-mark {
  width: 28px; height: 28px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.nav__logo-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent); color: #fff;
}
.btn--primary:hover { background: var(--accent-mid); text-decoration: none; }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn--large { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius); }

/* ── Hero ── */
.hero {
  padding: 7rem 0 6rem;
  border-top: none;
  position: relative; overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero__eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 1px; background: var(--accent);
}
.hero__title { margin-bottom: 1.5rem; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__sub {
  font-size: 1.125rem; color: var(--text-muted);
  margin-bottom: 2.5rem; max-width: 48ch;
}
.hero__ctas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__note { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }

/* Focus ring illustration */
.hero__ring-wrap {
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 340px;
}
.ring-scene {
  position: relative; width: 240px; height: 240px;
}
.ring-track {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid var(--border);
}
.ring-fill {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-bottom-color: var(--accent);
  animation: ringFill 3s cubic-bezier(.4,0,.2,1) infinite alternate;
}
@keyframes ringFill {
  0%   { clip-path: inset(0 100% 0 0); transform: rotate(-90deg); }
  100% { clip-path: inset(0 0% 0 0);   transform: rotate(180deg); }
}
.ring-inner {
  position: absolute; inset: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.ring-pct {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ring-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.ring-nudge {
  position: absolute; right: -40px; top: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  width: 180px; box-shadow: 0 4px 20px rgba(0,0,0,.08);
  animation: nudgeFloat 4s ease-in-out infinite;
}
@keyframes nudgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.ring-nudge__title { font-size: 0.75rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ring-nudge__btn {
  display: block; width: 100%;
  font-size: 0.72rem; padding: 5px 8px; margin-bottom: 4px;
  border-radius: 5px; border: 1px solid var(--border);
  background: var(--accent-bg); color: var(--accent);
  cursor: default; text-align: center;
}
.ring-nudge__btn:last-child { background: transparent; color: var(--text-muted); }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 4rem; }
.step { position: relative; }
.step__num {
  font-family: 'SF Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.step__num::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.step:last-child .step__num::after { display: none; }
.step h3 { margin-bottom: 0.6rem; }
.step p { font-size: 0.95rem; color: var(--text-muted); max-width: 32ch; }

/* ── Features ── */
.features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; background: var(--border); margin-top: 4rem; border-radius: var(--radius); overflow: hidden; }
.feature-card { background: var(--bg-card); padding: 2rem; }
.feature-card__icon {
  width: 36px; height: 36px; margin-bottom: 1rem;
  background: var(--accent-bg); border-radius: 8px;
  display: grid; place-items: center;
}
.feature-card__icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-family: system-ui, sans-serif; font-size: 1rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); max-width: 40ch; }

/* ── Platforms ── */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4rem; }
.platform-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.platform-card__badge {
  display: inline-block; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  background: var(--accent-bg); color: var(--accent);
  margin-bottom: 1rem;
}
.platform-card h3 { font-family: Georgia, serif; font-size: 1.4rem; margin-bottom: 0.6rem; font-weight: normal; }
.platform-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.platform-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.platform-card li {
  font-size: 0.875rem; color: var(--text-muted);
  display: flex; align-items: baseline; gap: 8px;
}
.platform-card li::before { content: '✓'; color: var(--accent); font-size: 0.8rem; flex-shrink: 0; }

/* ── Beta CTA ── */
.beta-section {
  background: var(--accent); color: #fff;
  padding: 6rem 0;
  border-top: none;
}
.beta-section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.beta-section p { color: rgba(255,255,255,.8); margin-bottom: 2.5rem; }
.beta-form { display: flex; gap: 12px; flex-wrap: wrap; }
.beta-form input {
  flex: 1; min-width: 240px;
  padding: 0.8rem 1.1rem; font-size: 1rem;
  border: none; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.15); color: #fff;
  outline: none;
}
.beta-form input::placeholder { color: rgba(255,255,255,.55); }
.beta-form input:focus { background: rgba(255,255,255,.22); }
.beta-form .btn--white {
  background: #fff; color: var(--sage); font-weight: 600;
  border-radius: var(--radius-sm);
}
.beta-form .btn--white:hover { background: rgba(255,255,255,.9); text-decoration: none; }

/* ── Footer ── */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer__copy { font-size: 0.85rem; color: var(--text-muted); }
.footer__links { display: flex; gap: 1.5rem; list-style: none; }
.footer__links a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); }

/* ── FAQ ── */
.faq-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
details {
  background: var(--bg-card);
}
summary {
  padding: 1.25rem 1.5rem; cursor: pointer;
  font-weight: 500; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 1.25rem; color: var(--accent);
  flex-shrink: 0; transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.5rem 1.25rem; color: var(--text-muted); font-size: 0.95rem; }
.faq-body p + p { margin-top: 0.75rem; }
.faq-body a { color: var(--accent); }

/* ── Beta page form ── */
.beta-page-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; max-width: 480px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text);
  font-size: 0.95rem; font-family: inherit; outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 80px; resize: vertical; }
.beta-page { max-width: 560px; margin: 0 auto; }
.beta-confirm { display: none; text-align: center; padding: 4rem 2rem; }
.beta-confirm h2 { margin-bottom: 1rem; }
.beta-confirm p { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__ring-wrap { display: none; }
  .steps { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
