/*
Theme Name: AI Voice Reader
Theme URI: https://simple-ai-capture.com
Description: Landing page for the AI Voice Reader Chrome extension.
Version: 1.0.0
Author: Duncan Rawlinson
Author URI: https://duncan.co
*/

:root {
  --bg: oklch(98% 0 0);
  --surface: oklch(94% 0 0);
  --bg-card: oklch(95% 0 0);
  --bg-elevated: oklch(92% 0 0);
  --border: oklch(87% 0 0);
  --text: oklch(20% 0 0);
  --text-muted: oklch(45% 0 0);
  --text-dim: oklch(60% 0 0);
  --heading: oklch(8% 0 0);
  --accent: oklch(48% 0.16 185);
  --accent-glow: oklch(48% 0.16 185 / 0.08);
  --green: oklch(48% 0.14 165);
  --pro: oklch(62% 0.14 75);
  --pro-dark: oklch(52% 0.14 75);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(20% 0 0);
    --surface: oklch(24% 0 0);
    --bg-card: oklch(24% 0 0);
    --bg-elevated: oklch(28% 0 0);
    --border: oklch(27% 0 0);
    --text: oklch(86% 0 0);
    --text-muted: oklch(58% 0 0);
    --text-dim: oklch(42% 0 0);
    --heading: oklch(96% 0 0);
    --accent: oklch(65% 0.16 185);
    --accent-glow: oklch(65% 0.16 185 / 0.12);
    --green: oklch(68% 0.14 165);
    --pro: oklch(75% 0.14 75);
    --pro-dark: oklch(62% 0.14 75);
  }
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* Layout */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* Hero */
.hero { padding: 56px 0 40px; text-align: center; position: relative; }
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 0.95;
  margin-bottom: 16px;
  color: var(--heading);
  position: relative;
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 32px;
  position: relative;
}
.hero h1 span { color: var(--accent); }

.hero .tagline { min-height: 60px;
  font-size: 20px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: oklch(100% 0 0);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px oklch(48% 0.16 185 / 0.25);
  text-decoration: none;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px oklch(48% 0.16 185 / 0.25); opacity: 1; }
.cta-btn svg { width: 20px; height: 20px; }

.cta-sub {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Waveform animation (hero) */
.hero-waveform {
  width: 100vw;
  height: 80px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 0 24px;
  display: block;
  background: transparent;
  cursor: crosshair;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Section headings */
.section-heading {
  text-align: center;
  margin-bottom: 28px;}
.section-heading h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-heading p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--accent);
  color: oklch(100% 0 0);
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 16px;
}
.steps h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.steps p { font-size: 14px; color: var(--text-muted); }
.steps code {
  background: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--text);
  border: 1px solid var(--border);
}
.steps strong { color: var(--text); }

/* Privacy banner */
.privacy-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}
.privacy-banner h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.privacy-banner p { color: var(--text-muted); font-size: 15px; max-width: 520px; margin: 0 auto 8px; }
.privacy-checks {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.privacy-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-links a { color: var(--text-muted); font-size: 13px; }

/* Site nav (inner pages) */
.site-nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
}
.site-nav-logo:hover { opacity: 0.8; }
.site-nav-links {
  display: flex;
  gap: 24px;
}
.site-nav-links a {
  color: var(--text-muted);
  font-size: 14px;
}

/* Inner page content */
.inner-content {
  max-width: 680px;
  margin: 60px auto;
  padding: 0 24px;
}
.inner-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.inner-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}
.inner-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
}
.inner-content p {
  color: var(--text-muted);
  margin-bottom: 12px;
}
.inner-content ul, .inner-content ol {
  color: var(--text-muted);
  margin-left: 20px;
  margin-bottom: 12px;
}
.inner-content li { margin-bottom: 6px; }
.inner-content code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.inner-content strong { color: var(--text); }

/* Pro nav link */
.site-nav-links a.pro-link,
.footer-links a.pro-link {
  color: var(--pro);
  font-weight: 600;
}

/* Pro comparison page */
.pro-hero {
  text-align: center;
  padding: 80px 0 60px;
}
.pro-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.pro-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 64px;
}
@media (max-width: 880px) {
  .plan-cards { grid-template-columns: 1fr; max-width: 460px; }
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
}
.plan-card.pro {
  border-color: var(--pro);
  position: relative;
}
.plan-card.pro::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pro);
  color: oklch(100% 0 0);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.plan-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.plan-card .price {
  font-size: 36px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 4px;
}
.plan-card .price-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.plan-card ul {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.plan-card li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-card li::before {
  content: '';
  width: 18px; height: 18px;
  background: oklch(48% 0.14 165 / 0.15);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='%2322c55e' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.plan-card li.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
}
.plan-card li.disabled::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='%23999' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-color: oklch(60% 0 0 / 0.15);
}

.pro-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pro);
  color: oklch(100% 0 0);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px oklch(62% 0.14 75 / 0.3);
  text-decoration: none;
  width: 100%;
  justify-content: center;
}
.pro-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px oklch(62% 0.14 75 / 0.3);
  opacity: 1;
}

.pro-cta-btn-bundle {
  background: transparent;
  color: var(--heading);
  border: 1.5px solid var(--border);
  box-shadow: none;
}
.pro-cta-btn-bundle:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
  box-shadow: 0 4px 24px oklch(0% 0 0 / 0.15);
}

.plan-card .current-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: default;
}

/* Pro FAQ */
.pro-faq {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 80px;
}
.pro-faq h2 {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
}
.faq-item {
  margin-bottom: 24px;
}
.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 48px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .privacy-checks { flex-direction: column; align-items: center; }
  .site-nav-inner { flex-direction: column; gap: 12px; }
  .site-nav-links { gap: 16px; }
  .inner-content { margin: 40px auto; }
  .plan-cards { grid-template-columns: 1fr; }
}

.plan-card .price .price-was {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-right: 8px;
  vertical-align: 4px;
}
.plan-card .price .price-now {
  color: var(--heading);
}
.plan-card .price-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
}
