:root {
  --ink: #16211F;
  --paper: #F2F5F0;
  --paper-raised: #FFFFFF;
  --primary: #0E6B5C;
  --primary-ink: #04140F;
  --primary-soft: #E1EDE9;
  --accent: #E8A33D;
  --accent-soft: #FBEDD6;
  --accent2: #E15A4D;
  --muted: #5B6E68;
  --line: #D7E0DB;
  --shadow: 0 1px 2px rgba(15,30,25,0.06), 0 20px 44px -22px rgba(15,30,25,0.28);
  --shadow-pop: 0 1px 2px rgba(15,30,25,0.08), 0 30px 60px -24px rgba(14,107,92,0.45);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EDF2EE; --paper: #0B1210; --paper-raised: #141F1B; --primary: #35B599;
    --primary-ink: #04140F; --primary-soft: #16342B; --accent: #F0B75A; --accent-soft: #3A2C15;
    --accent2: #F2705F; --muted: #8FA69E; --line: #23342E;
    --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 20px 44px -20px rgba(0,0,0,0.65);
    --shadow-pop: 0 1px 2px rgba(0,0,0,0.4), 0 30px 70px -20px rgba(53,181,153,0.35);
  }
}
:root[data-theme="dark"] {
  --ink: #EDF2EE; --paper: #0B1210; --paper-raised: #141F1B; --primary: #35B599;
  --primary-ink: #04140F; --primary-soft: #16342B; --accent: #F0B75A; --accent-soft: #3A2C15;
  --accent2: #F2705F; --muted: #8FA69E; --line: #23342E;
  --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 20px 44px -20px rgba(0,0,0,0.65);
  --shadow-pop: 0 1px 2px rgba(0,0,0,0.4), 0 30px 70px -20px rgba(53,181,153,0.35);
}
:root[data-theme="light"] {
  --ink: #16211F; --paper: #F2F5F0; --paper-raised: #FFFFFF; --primary: #0E6B5C;
  --primary-ink: #04140F; --primary-soft: #E1EDE9; --accent: #E8A33D; --accent-soft: #FBEDD6;
  --accent2: #E15A4D; --muted: #5B6E68; --line: #D7E0DB;
  --shadow: 0 1px 2px rgba(15,30,25,0.06), 0 20px 44px -22px rgba(15,30,25,0.28);
  --shadow-pop: 0 1px 2px rgba(15,30,25,0.08), 0 30px 60px -24px rgba(14,107,92,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; text-wrap: balance; margin: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- Nav ---- */
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand-word { font-family: 'Fraunces'; font-weight: 600; font-size: 21px; color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper-raised);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px;
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 10px; padding: 12px 20px; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; font-family: 'Work Sans'; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn-primary { background: var(--primary); color: #E9FBF4; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(14,107,92,0.55); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-block { width: 100%; }

/* ---- Hero ---- */
.pricing-hero { padding: 70px 0 20px; text-align: center; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.pricing-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 600; margin-top: 14px; }
.pricing-hero .accent-word { color: var(--primary); }
.pricing-hero p { color: var(--muted); font-size: 17px; max-width: 620px; margin: 18px auto 0; line-height: 1.6; }

/* ---- Billing toggle ---- */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px; background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: 100px; padding: 5px; margin-top: 34px; box-shadow: var(--shadow);
}
.billing-toggle button {
  border: none; background: transparent; padding: 10px 22px; border-radius: 100px; font-weight: 600;
  font-size: 14px; font-family: 'Work Sans'; color: var(--muted); cursor: pointer; position: relative;
  transition: color .2s ease;
}
.billing-toggle button.active { background: var(--primary); color: #E9FBF4; }
.billing-toggle .save-chip {
  font-size: 10.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent);
  padding: 2px 7px; border-radius: 100px; margin-left: 6px; vertical-align: middle;
}
.billing-toggle button.active .save-chip { background: rgba(255,255,255,0.22); color: #E9FBF4; }

/* ---- Plans grid ---- */
.plans-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 50px; align-items: stretch;
}
@media (max-width: 1080px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans-grid { grid-template-columns: 1fr; } }

.plan-card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, border-color .25s ease;
  position: relative; opacity: 0; animation: cardIn .5s cubic-bezier(.16,1,.3,1) forwards;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); border-color: var(--primary); }
.plan-card.popular { border-color: var(--primary); border-width: 2px; }
.plan-card:nth-child(1) { animation-delay: .02s; }
.plan-card:nth-child(2) { animation-delay: .08s; }
.plan-card:nth-child(3) { animation-delay: .14s; }
.plan-card:nth-child(4) { animation-delay: .2s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #E9FBF4; font-size: 11.5px; font-weight: 700;
  padding: 6px 16px; border-radius: 100px; letter-spacing: 0.03em; box-shadow: 0 8px 20px -8px rgba(14,107,92,0.6);
  white-space: nowrap;
}

.plan-icon { font-size: 26px; margin-bottom: 14px; }
.plan-name { font-family: 'Fraunces'; font-size: 21px; font-weight: 600; }
.plan-desc { color: var(--muted); font-size: 13.5px; margin-top: 4px; min-height: 34px; }
.plan-price-row { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.plan-price { font-family: 'Fraunces'; font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-period { color: var(--muted); font-size: 13.5px; }
.plan-annual-note { font-size: 12px; color: var(--primary); font-weight: 600; margin-top: 6px; min-height: 16px; }
.plan-cta { margin-top: 22px; }

.plan-features { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.8px; line-height: 1.4; }
.plan-features li svg { flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; color: var(--primary); }
.plan-features li.inherited { color: var(--muted); font-weight: 600; }

/* ---- Payment methods ---- */
.payment-section { padding: 70px 0; text-align: center; }
.payment-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.pay-chip {
  display: flex; align-items: center; gap: 8px; background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 100px; padding: 10px 18px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.pay-chip:hover { transform: translateY(-3px); }
.pay-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---- AI video section ---- */
.ai-section { padding: 80px 0; }
.ai-panel {
  /* Deliberately theme-independent: always a dark showcase panel, in both
     light and dark site themes, so it isn't affected by --ink flipping to a
     light color under the dark theme. */
  background: linear-gradient(135deg, #14251F 0%, #0A1F1A 100%); border-radius: 24px; padding: 56px 46px;
  color: #EAF3EF; position: relative; overflow: hidden;
}
.ai-panel::before {
  content: ""; position: absolute; top: -30%; right: -10%; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,163,61,0.25), transparent 70%);
}
.ai-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(232,163,61,0.16); color: var(--accent); font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 100px; letter-spacing: 0.04em; }
.ai-panel h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 600; margin-top: 20px; max-width: 640px; position: relative; }
.ai-panel > p.lede { color: #B9CCC5; font-size: 15.5px; max-width: 620px; margin-top: 14px; line-height: 1.6; position: relative; }

.ai-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; position: relative; }
@media (max-width: 800px) { .ai-flow { grid-template-columns: 1fr; } }
.ai-flow-step { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 20px; }
.ai-flow-step .step-num { font-family: 'Fraunces'; color: var(--accent); font-size: 13px; font-weight: 700; }
.ai-flow-step h4 { font-size: 15px; margin-top: 8px; color: #EAF3EF; }
.ai-flow-step p { font-size: 13px; color: #AEC2BB; margin-top: 6px; line-height: 1.5; }

.ai-styles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; position: relative; }
.style-pill { font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 100px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); color: #D9E7E2; }

.ai-plans-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; position: relative; }
@media (max-width: 700px) { .ai-plans-compare { grid-template-columns: 1fr; } }
.ai-plan-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 22px; }
.ai-plan-card h4 { color: #EAF3EF; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ai-plan-card ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ai-plan-card li { font-size: 13px; color: #C4D4CE; display: flex; gap: 8px; align-items: flex-start; }

.ai-formats { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; position: relative; }
.format-chip { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); padding: 6px 12px; border-radius: 6px; color: #D9E7E2; }

.ai-roadmap-note { margin-top: 30px; font-size: 12.5px; color: #8FA69E; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; position: relative; }

footer.site-footer { text-align: center; padding: 50px 24px; color: var(--muted); font-size: 13px; }

/* ---- Homepage hero ---- */
.home-hero { padding: 100px 0 30px; text-align: center; }
.home-hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 600; line-height: 1.06; }
.home-hero .accent-word { color: var(--primary); }
.home-hero p.lede-center { color: var(--muted); font-size: 17.5px; max-width: 620px; margin: 20px auto 0; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---- Feature grid ---- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 600; margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 15.5px; margin-top: 12px; line-height: 1.6; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.feature-card h3 { font-family: 'Fraunces'; font-size: 17px; font-weight: 600; }
.feature-card p { color: var(--muted); font-size: 13.8px; margin-top: 6px; line-height: 1.55; }

/* ---- Steps ---- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; counter-reset: step; }
@media (max-width: 800px) { .steps-row { grid-template-columns: 1fr; } }
.step-item { position: relative; padding-left: 46px; }
.step-item .step-circle {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font-family: 'Fraunces'; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.step-item h3 { font-size: 15.5px; font-weight: 600; }
.step-item p { color: var(--muted); font-size: 13.5px; margin-top: 6px; line-height: 1.5; }

/* ---- CTA banner (reuses ai-panel dark styling, simplified) ---- */
.cta-banner {
  background: linear-gradient(135deg, #14251F 0%, #0A1F1A 100%); border-radius: 24px; padding: 60px 40px;
  text-align: center; color: #EAF3EF;
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 600; color: #F2F5F0; }
.cta-banner p { color: #B9CCC5; font-size: 15.5px; margin: 14px auto 0; max-width: 480px; line-height: 1.6; }
.cta-banner .hero-actions { margin-top: 28px; }
