/* Spoken Note — shared styles */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elev: #ffffff;
  --text: #1c1c1e;
  --text-soft: #3a3a3c;
  --text-muted: #6e6e73;
  --border: #e5e5ea;
  --border-strong: #d1d1d6;
  --accent: #1c1c1e;
  --accent-soft: rgba(28, 28, 30, 0.06);
  --accent-hover: #000000;
  --on-accent: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.12), 0 8px 16px -8px rgba(0, 0, 0, 0.08);
  --max-w: 1100px;
  --gutter: clamp(20px, 4vw, 32px);
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0e0e10;
    --bg-elev: #161618;
    --text: #f5f5f7;
    --text-soft: #d1d1d6;
    --text-muted: #8e8e93;
    --border: #262628;
    --border-strong: #3a3a3c;
    --accent: #f5f5f7;
    --accent-soft: rgba(245, 245, 247, 0.08);
    --accent-hover: #ffffff;
    --on-accent: #000000;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 8px 16px -8px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-system);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--text);
}

.brand,
.nav-links a,
.btn,
.footer-col a,
.skip-link,
.legal-toc a {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus { left: 0; color: var(--bg); }

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(0, 0, 0, 0.72); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.brand:hover { color: var(--text); }

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 14px 0; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 980px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--text);
  border-color: var(--text-muted);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
  overflow: hidden;
  text-align: center;
}

.hero-blob {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120%);
  height: 700px;
  background:
    radial-gradient(circle at 30% 40%, rgba(120, 120, 128, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(60, 60, 67, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(142, 142, 147, 0.10) 0%, transparent 55%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

@media (prefers-color-scheme: dark) {
  .hero-blob {
    background:
      radial-gradient(circle at 30% 40%, rgba(245, 245, 247, 0.09) 0%, transparent 50%),
      radial-gradient(circle at 70% 60%, rgba(200, 200, 210, 0.06) 0%, transparent 50%),
      radial-gradient(circle at 50% 80%, rgba(150, 150, 160, 0.05) 0%, transparent 55%);
    opacity: 0.85;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border-radius: 980px;
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lede {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  letter-spacing: -0.01em;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section.block { padding: clamp(72px, 10vw, 120px) 0; }
section.block-soft { background: var(--bg-soft); }

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-header h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 16px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  letter-spacing: -0.005em;
}

/* Features (3 cols) */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 10px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Trust strip */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.trust-item h3 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.trust-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* DEMO callout */
.demo-callout {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  padding: 28px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.demo-callout .demo-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.demo-callout h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.demo-callout p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.demo-callout ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.demo-callout li {
  font-size: 13px;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.demo-callout li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}

@media (max-width: 600px) {
  .demo-callout { flex-direction: column; gap: 16px; padding: 24px; }
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.plan.featured {
  border-color: var(--text);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 980px;
  text-transform: uppercase;
}

.plan h3 {
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 4px;
}

.plan-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.plan-price .currency { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.plan-price .amount { font-size: 44px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.plan-price .period { font-size: 15px; color: var(--text-muted); }

.plan-yearly {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.plan-yearly strong {
  color: var(--text-soft);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-soft);
}

.plan-features svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--text);
}

.plan-features li.muted { color: var(--text-muted); }
.plan-features li.muted svg { color: var(--text-muted); }

.plan .btn { width: 100%; }

.pricing-footnote {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq details:first-child { border-top: 1px solid var(--border); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 4px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  color: var(--text);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
  margin: 0 4px 22px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 12px 0 0;
  max-width: 340px;
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--text-soft);
  font-size: 14px;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Legal pages */
.legal { padding: clamp(56px, 8vw, 88px) 0 clamp(64px, 10vw, 96px); }

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 12px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.legal h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
  scroll-margin-top: 80px;
}

.legal h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
}

.legal ul,
.legal ol { padding-left: 22px; }

.legal li { margin-bottom: 8px; }

.legal strong { color: var(--text); }

.legal-toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  font-size: 14px;
  break-inside: avoid;
  margin-bottom: 6px;
}

.legal-toc a {
  color: var(--text-soft);
}

.legal-toc a:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan.featured { order: -1; }
}

@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .trust { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}

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