/* Spokeninbox — marketing + legal site
   "Paper & ink" editorial system. Warm paper ground, high-contrast serif
   display (Fraunces), Newsreader body, mono utility labels, single blue accent. */

:root {
  --paper: #f6f3ec;
  --paper-deep: #efe9dd;
  --surface: #ffffff;
  --ink: #1c1b19;
  --ink-soft: #37332c;
  --muted: #8b857b;
  --faint: #b6afa4;
  --hairline: #e4ddd0;
  --hairline-strong: #d8cfbe;
  --accent: #208aef;
  --accent-ink: #1567bd;
  --accent-soft: rgba(32, 138, 239, 0.1);
  --danger: #c0392b;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 18px;

  --serif-display: "Fraunces", Georgia, "Times New Roman", serif;
  --serif-body: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 680px at 78% -8%, rgba(32, 138, 239, 0.08), transparent 60%),
    radial-gradient(900px 600px at 5% 8%, rgba(220, 205, 178, 0.4), transparent 55%);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.wrap { position: relative; z-index: 1; }

a { color: var(--accent-ink); text-decoration-color: rgba(21, 103, 189, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow .dot { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.3) blur(10px);
  background: rgba(246, 243, 236, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 3px 10px rgba(32, 138, 239, 0.32);
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--accent-ink); }
.nav .nav-links { display: flex; gap: 30px; }
@media (max-width: 720px) {
  .nav .nav-links { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(32, 138, 239, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(32, 138, 239, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn svg { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

.hero h1 {
  font-family: var(--serif-display);
  font-weight: 340;
  font-size: clamp(46px, 8.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  font-weight: 460;
  color: var(--accent-ink);
}
.hero .lede {
  font-size: clamp(19px, 2.4vw, 23px);
  color: var(--ink-soft);
  margin: 26px 0 0;
  max-width: 30ch;
  line-height: 1.5;
}
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}
.hero .cta-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* staggered reveal */
.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.27s; }
.reveal.d4 { animation-delay: 0.38s; }
.reveal.d5 { animation-delay: 0.49s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- now-playing card (hero visual) ---------- */
.player-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 30px 60px -28px rgba(42, 30, 16, 0.4), 0 2px 0 rgba(255,255,255,0.6) inset;
  max-width: 380px;
  margin-inline: auto;
}
.player-card .np-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-label .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(32,138,239,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(32,138,239,0.45); }
  70% { box-shadow: 0 0 0 9px rgba(32,138,239,0); }
  100% { box-shadow: 0 0 0 0 rgba(32,138,239,0); }
}
.np-cover {
  display: flex; align-items: center; gap: 14px; margin: 18px 0 6px;
}
.np-cover .tile {
  width: 52px; height: 52px; border-radius: 13px; flex: none;
  background: linear-gradient(150deg, #6aa9f2, #1567bd);
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif-display); font-weight: 600; font-size: 26px;
  box-shadow: 0 8px 18px -6px rgba(21,103,189,0.6);
}
.np-cover .meta .from { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.np-cover .meta .subj { font-family: var(--serif-display); font-weight: 500; font-size: 18px; line-height: 1.2; margin-top: 2px; color: var(--ink); }

.waveform {
  display: flex; align-items: flex-end; gap: 3px; height: 46px; margin: 20px 2px 14px;
}
.waveform span {
  flex: 1; background: var(--accent-soft); border-radius: 3px;
  min-height: 5px;
  animation: eq 1.5s ease-in-out infinite;
}
.waveform span:nth-child(-n+11) { background: var(--accent); }
.waveform span:nth-child(2n) { animation-delay: 0.15s; }
.waveform span:nth-child(3n) { animation-delay: 0.3s; }
.waveform span:nth-child(4n) { animation-delay: 0.45s; }
.waveform span:nth-child(5n) { animation-delay: 0.6s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .waveform span, .np-label .live { animation: none; } }
.np-controls {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.np-controls .play {
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.np-controls .play svg { width: 16px; height: 16px; }

.player-card .addr-chip {
  position: absolute; top: -16px; right: -12px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em;
  padding: 7px 13px; border-radius: 999px;
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.5);
  transform: rotate(2.5deg);
}
.addr-chip b { color: #7fbbf6; font-weight: 500; }
@media (max-width: 460px) { .player-card .addr-chip { right: 8px; } }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
  font-family: var(--serif-display);
  font-weight: 360;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
}
.section-head h2 em { font-style: italic; color: var(--accent-ink); font-weight: 460; }
.section-head p { color: var(--ink-soft); margin: 16px 0 0; font-size: 20px; }

.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }
.section.ink { background: var(--ink); color: var(--paper); }
.section.ink .eyebrow { color: var(--faint); }
.section.ink .section-head h2 { color: var(--paper); }
.section.ink .section-head h2 em { color: #7fbbf6; }
.section.ink .section-head p { color: #c9c3b8; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; padding-top: 26px; border-top: 2px solid var(--accent); }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.step .num::before { content: "0" counter(step) " / "; }
.step h3 { font-family: var(--serif-display); font-weight: 500; font-size: 25px; margin: 12px 0 8px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 17.5px; line-height: 1.55; }
.section.ink .step p { color: #b7b1a6; }
.section.ink .step .code { color: #7fbbf6; }
.step .code { font-family: var(--mono); font-size: 14px; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 7px; border-radius: 6px; }

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); padding: 30px 26px; transition: background 0.25s ease; }
.feature:hover { background: #fffdf8; }
.feature .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px;
}
.feature .ico svg { width: 21px; height: 21px; }
.feature h3 { font-family: var(--serif-display); font-weight: 500; font-size: 21px; margin: 0 0 6px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; }

/* ---------- languages strip ---------- */
.langs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; margin-top: 12px; }
.langs .lang { font-family: var(--serif-display); font-style: italic; font-size: clamp(30px, 5vw, 46px); font-weight: 380; color: var(--paper); }
.langs .sep { color: #6c665b; font-size: 30px; }

/* ---------- privacy pledge / callout ---------- */
.pledge {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 60px); align-items: center;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 24px 50px -34px rgba(42,30,16,0.35);
}
@media (max-width: 780px) { .pledge { grid-template-columns: 1fr; } }
.pledge h2 { font-family: var(--serif-display); font-weight: 360; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 12px 0 0; line-height: 1.08; }
.pledge p { color: var(--ink-soft); font-size: 18px; margin: 16px 0 0; }
.pledge ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pledge li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; line-height: 1.45; }
.pledge li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- final CTA ---------- */
.final-cta { text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.final-cta h2 { font-family: var(--serif-display); font-weight: 340; font-size: clamp(38px, 7vw, 78px); letter-spacing: -0.02em; line-height: 1; margin: 18px 0 0; }
.final-cta h2 em { font-style: italic; color: var(--accent-ink); font-weight: 460; }
.final-cta .cta-row { justify-content: center; margin-top: 30px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 48px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { font-size: 20px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.footer-cols { display: flex; gap: clamp(36px, 7vw, 80px); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 15.5px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.02em; }

/* ---------- legal / doc pages ---------- */
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 48px); }
.doc-head h1 { font-family: var(--serif-display); font-weight: 360; font-size: clamp(40px, 6.5vw, 66px); letter-spacing: -0.02em; line-height: 1.02; margin: 16px 0 0; }
.doc-head .updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; margin-top: 18px; }
.doc-body { max-width: 720px; }
.doc-body h2 { font-family: var(--serif-display); font-weight: 500; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.01em; margin: 48px 0 12px; }
.doc-body h3 { font-family: var(--serif-display); font-weight: 500; font-size: 21px; margin: 30px 0 8px; }
.doc-body p, .doc-body li { color: var(--ink-soft); font-size: 18.5px; line-height: 1.68; }
.doc-body ul { padding-left: 22px; margin: 12px 0; }
.doc-body li { margin-bottom: 10px; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a { font-weight: 500; }
.doc-body .callout {
  background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 20px 24px; margin: 24px 0; font-size: 17px;
}
.doc-body .callout p { margin: 0; font-size: 17px; }
.toc {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 22px 26px; margin: 28px 0 8px;
}
.toc h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { font-size: 15.5px; margin-bottom: 7px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* ---------- support faq ---------- */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em;
  padding: 20px 40px 20px 0; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 24px; color: var(--accent); font-weight: 400; transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); font-size: 18px; max-width: 64ch; }

.contact-card {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); margin-bottom: 44px;
}
@media (max-width: 560px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card .mark { width: 60px; height: 60px; border-radius: 15px; }
.contact-card h2 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(24px, 3.4vw, 32px); margin: 0; color: var(--paper); letter-spacing: -0.01em; }
.contact-card p { margin: 8px 0 0; color: #c9c3b8; font-size: 17px; }
.contact-card a.email { color: #7fbbf6; font-family: var(--mono); font-size: 16px; text-decoration: none; letter-spacing: 0.01em; }
.contact-card a.email:hover { text-decoration: underline; }
