/* ═══════════════════════════════════════════════════
   Inscript Studio — Marketing Website
   Brand: Crimson Pro (serif) + IBM Plex Sans (sans)
   Palette: ink, paper, cream, terracotta, warm-gray
   ═══════════════════════════════════════════════════ */

/* ─── Imports ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

/* ─── Variables ────────────────────────────────────── */
:root {
  --ink: #1a1a1a;
  --paper: #faf9f7;
  --cream: #eeebe4;
  --accent: #c45a3b;
  --accent-hover: #a94a2e;
  --warm-gray: #635d56;
  --border: #d8d4cc;
  --shadow: rgba(26, 26, 26, 0.1);
  --shadow-lg: rgba(26, 26, 26, 0.15);

  --serif: 'Crimson Pro', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;

  --max-width: 1120px;
  --section-pad: 100px;
}

/* ─── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Typography ───────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; font-weight: 600; }

.subtitle {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--warm-gray);
  line-height: 1.6;
  max-width: 600px;
}

/* ─── Layout ───────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .subtitle { color: #c0bdb7; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .subtitle {
  margin: 16px auto 0;
}

/* ─── Navigation ───────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-brand span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}
.nav-links .btn-sm {
  font-size: 0.85rem;
  padding: 8px 20px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 6px;
  transition: 0.2s;
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 22px; }

/* ─── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 90, 59, 0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ─── Hero ─────────────────────────────────────────── */
.hero {
  padding: 160px 0 var(--section-pad);
  text-align: center;
}
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}
.hero .subtitle {
  margin: 0 auto 40px;
  max-width: 560px;
  font-size: 1.25rem;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--warm-gray);
}

.hero-variant-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 24px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

/* ─── Feature Grid ─────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 36px 28px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-2px);
}
.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--accent);
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ─── Feature Rows (Features page) ─────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row-text h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}
.feature-row-text .tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.tier-writer { background: #e8e6e2; color: var(--ink); }
.tier-author { background: #dce8d5; color: #2e5a1e; }
.tier-author-pro { background: #d5dce8; color: #1e3a5a; }

.feature-row-text p {
  color: var(--warm-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}
.feature-highlights {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: grid;
  gap: 8px;
}
.feature-highlights li {
  font-size: 0.88rem;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.feature-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.feature-row-visual {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-row-visual .placeholder {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--warm-gray);
  font-style: italic;
  text-align: center;
}

/* ─── Pricing ──────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 40px 32px;
  position: relative;
  transition: box-shadow 0.2s;
}
.pricing-card:hover {
  box-shadow: 0 8px 32px var(--shadow);
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--shadow-lg);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.pricing-card-desc {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 24px;
  min-height: 44px;
}
.pricing-card-price {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-card-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--warm-gray);
}
.pricing-card-note {
  font-size: 0.82rem;
  color: var(--warm-gray);
  margin-bottom: 28px;
}
.pricing-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 28px;
}
.pricing-features {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.pricing-features li {
  font-size: 0.88rem;
  color: var(--ink);
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Testimonial / Quote ──────────────────────────── */
.quote-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 0;
}
.quote-block blockquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 20px;
}
.quote-block cite {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--warm-gray);
  font-style: normal;
}

/* ─── CTA Banner ───────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: 80px 0;
}
.cta-banner h2 {
  color: var(--paper);
  margin-bottom: 16px;
}
.cta-banner .subtitle {
  margin: 0 auto 32px;
  color: #c0bdb7;
}
.cta-banner .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.cta-banner .btn-primary:hover {
  background: white;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(250, 249, 247, 0.25);
}

/* ─── About / Story ────────────────────────────────── */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}
.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 24px;
}
.about-content p:first-of-type {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.founder-intro {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.founder-photo {
  width: 200px;
  min-width: 200px;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 1;
}
.founder-bio h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.founder-bio .founder-role {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 16px;
}
.founder-books {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.founder-books span {
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--warm-gray);
  font-style: italic;
}
@media (max-width: 600px) {
  .founder-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .founder-photo { width: 160px; min-width: 160px; }
  .founder-books { justify-content: center; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.value-item h4 {
  margin-bottom: 8px;
}
.value-item p {
  font-size: 0.92rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

/* ─── Footer ───────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: #c0bdb7;
  padding: 60px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: #c0bdb7;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
}

/* ─── Comparison Table ─────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th {
  font-family: var(--serif);
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 2px solid var(--ink);
}
.comparison-table th:not(:first-child) {
  text-align: center;
}
.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.comparison-table td:not(:first-child) {
  text-align: center;
  color: var(--warm-gray);
}
.comparison-table tr:hover td {
  background: var(--cream);
}
.comparison-table .check {
  color: var(--accent);
  font-weight: 600;
}
.comparison-table .category-row td {
  font-weight: 600;
  background: var(--cream);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warm-gray);
}

/* ─── Persona Cards (index.html) ──────────────────── */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.persona-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.25s ease;
  position: relative;
}
.persona-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--shadow-lg);
  transform: translateY(-3px);
  color: var(--ink);
}
.persona-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: background 0.2s, color 0.2s;
}
.persona-card:hover .persona-icon {
  background: var(--accent);
  color: white;
}
.persona-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.persona-card > p {
  font-size: 0.92rem;
  color: var(--warm-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}
.persona-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: grid;
  gap: 6px;
  flex: 1;
}
.persona-features li {
  font-size: 0.85rem;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.persona-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}
.persona-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: auto;
  transition: color 0.2s;
}
.persona-card:hover .persona-link {
  color: var(--accent-hover);
}

/* ─── Persona Nav (features.html) ─────────────────── */
.persona-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.persona-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--warm-gray);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}
.persona-nav-item:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: white;
  box-shadow: 0 2px 8px var(--shadow);
}
.persona-nav-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* ─── Persona Sections (features.html) ────────────── */
.persona-section {
  scroll-margin-top: 80px;
}
.persona-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.persona-section-header h2 {
  margin-bottom: 12px;
}
.persona-section-header .subtitle {
  margin: 0 auto;
}
.persona-label {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(196, 90, 59, 0.1);
  margin-bottom: 16px;
}
.section--cream .persona-label {
  background: rgba(196, 90, 59, 0.12);
}

/* ─── Messaging Pillars (index.html) ──────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--accent);
}
.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.pillar p {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ─── Cost Context (pricing.html) ─────────────────── */
.cost-context {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cost-context-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cost-context-row:last-child {
  border-bottom: none;
}
.cost-context-vs {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
  min-width: 120px;
}
.cost-context-detail {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.5;
}

/* ─── Pricing Guarantee ───────────────────────────── */
.pricing-guarantee {
  text-align: center;
  font-size: 0.82rem;
  color: var(--warm-gray);
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.pricing-guarantee::before {
  content: '\2714  ';
  color: var(--accent);
}

/* ─── Comparison Table Enhancements ───────────────── */
.comparison-highlight td {
  background: rgba(196, 90, 59, 0.06) !important;
  border-bottom: 2px solid var(--accent);
}
.comparison-highlight td:first-child {
  border-left: 3px solid var(--accent);
}
.price-note {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--warm-gray);
  opacity: 0.8;
}
.price-note--sub {
  color: var(--accent);
  opacity: 1;
  font-weight: 500;
}
.comp-caveat {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--warm-gray);
  font-style: italic;
}
.check-limited {
  color: #b8a040;
  font-weight: 600;
  text-align: center;
}
.stack-cost {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 20px 24px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--warm-gray);
  text-align: center;
}
.stack-cost strong {
  color: var(--ink);
}

/* ─── Testimonial Grid (index.html) ───────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
.testimonial-card blockquote {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 20px 0;
  flex: 1;
}
.testimonial-card cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.testimonial-name {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.testimonial-detail {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--warm-gray);
}

/* ─── Beta Steps (pricing.html) ───────────────────── */
.beta-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.beta-step {
  flex: 1;
  text-align: center;
  max-width: 240px;
}
.beta-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.beta-step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.beta-step p {
  font-size: 0.88rem;
  color: var(--warm-gray);
  line-height: 1.55;
}
.beta-step-arrow {
  color: var(--border);
  font-size: 1.5rem;
  margin-top: 10px;
  flex-shrink: 0;
}

/* ─── AI Page (ai.html) ───────────────────────────── */
.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ai-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ai-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(196, 90, 59, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}
.ai-cost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.ai-cost-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ai-cost-card:hover {
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-2px);
}
.ai-cost-amount {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.ai-cost-task {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.ai-cost-card p {
  font-size: 0.82rem;
  color: var(--warm-gray);
  line-height: 1.5;
}

/* ─── Import Flow (index.html) ────────────────────── */
.import-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  max-width: 740px;
  margin: 0 auto;
}
.import-flow-step {
  flex: 1;
  text-align: center;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.import-flow-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}
.import-flow-step strong {
  font-family: var(--serif);
  font-size: 1.05rem;
}
.import-flow-step span {
  font-size: 0.85rem;
  color: var(--warm-gray);
  line-height: 1.45;
}
.import-flow-arrow {
  color: var(--border);
  font-size: 1.5rem;
  margin-top: 18px;
  flex-shrink: 0;
}
.import-sources {
  text-align: center;
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin-top: 28px;
}

/* ─── NaNoWriMo (index.html) ─────────────────────── */
.nano-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(196, 90, 59, 0.12);
  margin-bottom: 16px;
}
.nano-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.nano-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.nano-stat:hover {
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-2px);
}
.nano-stat-number {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.nano-stat p {
  font-size: 0.85rem;
  color: var(--warm-gray);
  line-height: 1.55;
}

/* ─── Theme Gallery (themes.html) ─────────────────── */
.theme-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.theme-gallery--featured {
  grid-template-columns: repeat(3, 1fr);
}
.theme-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.theme-card:hover {
  box-shadow: 0 12px 40px var(--shadow-lg);
  transform: translateY(-3px);
}

/* Mini editor preview */
.theme-preview {
  display: flex;
  height: 160px;
  background: var(--tp-bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.tp-sidebar {
  width: 28%;
  background: var(--tp-sidebar);
  border-right: 1px solid var(--tp-border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tp-sidebar-label {
  height: 6px;
  width: 50%;
  background: var(--tp-gray);
  border-radius: 3px;
  opacity: 0.5;
  margin-bottom: 4px;
}
.tp-sidebar-item {
  height: 10px;
  width: 85%;
  background: var(--tp-gray);
  border-radius: 4px;
  opacity: 0.3;
}
.tp-sidebar-item.active {
  background: var(--tp-accent);
  opacity: 0.9;
}
.tp-editor {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tp-title {
  height: 10px;
  width: 45%;
  background: var(--tp-ink);
  border-radius: 3px;
  opacity: 0.8;
  margin-bottom: 6px;
}
.tp-line {
  height: 5px;
  background: var(--tp-ink);
  border-radius: 2px;
  opacity: 0.25;
}
.tp-line.w95 { width: 95%; }
.tp-line.w90 { width: 90%; }
.tp-line.w80 { width: 80%; }
.tp-line.w70 { width: 70%; }
.tp-line.w60 { width: 60%; }

/* Theme info */
.theme-info {
  padding: 20px 22px;
  position: relative;
}
.theme-info h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  display: inline;
}
.theme-type {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.theme-type--light {
  background: var(--cream);
  color: var(--warm-gray);
}
.theme-type--dark {
  background: var(--ink);
  color: var(--paper);
}
.theme-info p {
  font-size: 0.88rem;
  color: var(--warm-gray);
  line-height: 1.55;
  margin: 10px 0 14px;
}
.theme-swatches {
  display: flex;
  gap: 6px;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ─── FAQ ──────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--warm-gray);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin-top: 12px;
  color: var(--warm-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.75rem; }
  h2 { font-size: 1.75rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; }
  .persona-nav { gap: 8px; }
  .persona-nav-item { font-size: 0.82rem; padding: 8px 14px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .ai-cost-grid { grid-template-columns: repeat(2, 1fr); }
  .nano-grid { grid-template-columns: repeat(2, 1fr); }
  .import-flow { flex-direction: column; align-items: center; }
  .import-flow-arrow { transform: rotate(90deg); margin: 0; }
  .beta-steps { flex-direction: column; align-items: center; }
  .beta-step-arrow { transform: rotate(90deg); margin: 0; }
  .theme-gallery, .theme-gallery--featured { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 24px 32px;
    gap: 20px;
    box-shadow: 0 8px 32px var(--shadow);
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .pillars-grid { grid-template-columns: 1fr; }
  .ai-cost-grid { grid-template-columns: 1fr; }
  .nano-grid { grid-template-columns: 1fr; }
  .cost-context-row { flex-direction: column; gap: 4px; }
  .cost-context-vs { min-width: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
