/* ── Custom properties ── */
:root {
  --brand: #7c3aed;
  --brand-dark: #6d28d9;
  --brand-light: #ede9fe;
  --brand-text: #ffffff;

  --bg: #ffffff;
  --bg-alt: #faf9ff;
  --text: #1e1b2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --error: #ef4444;
  --error-bg: #fef2f2;

  --radius: 0.5rem;
  --radius-lg: 1rem;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);

  --max-w: 1100px;
  --section-py: 5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e17;
    --bg-alt: #1a1929;
    --text: #f0eeff;
    --text-muted: #9ca3af;
    --border: #2d2b3d;
    --brand-light: #2d1e5a;
    --shadow: 0 1px 3px rgba(0,0,0,.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,.4);
    --success-bg: #064e3b;
    --error-bg: #450a0a;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utilities ── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 1.25rem; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-text);
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand-light); text-decoration: none; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.brand { color: var(--brand); }
.nav-cta { font-size: 0.9rem; }

/* ── Hero ── */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(160deg, var(--bg) 60%, var(--bg-alt) 100%);
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
}

/* ── Sections ── */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-alt); }
.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ── Feature tiles ── */
.tiles {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}
.section-alt .tile { background: var(--bg-alt); }
.tile-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.tile h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.tile p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ── Pricing bundles ── */
.bundles {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 480px) { .bundles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .bundles { grid-template-columns: repeat(4, 1fr); } }

.bundle-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}
.bundle-card:hover { box-shadow: var(--shadow-md); }
.bundle-hero {
  border-color: var(--brand);
  border-width: 2px;
  background: var(--bg);
}
.bundle-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: var(--brand-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.bundle-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text); }
.bundle-credits { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.bundle-price { font-size: 2rem; font-weight: 800; color: var(--brand); margin-bottom: 0.15rem; }
.bundle-period { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); margin-left: 0.15rem; }
.bundle-per { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.bundle-for { font-size: 0.85rem; color: var(--text); font-weight: 500; }
.pricing-guarantee {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5rem;
}
.pricing-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-inline: auto;
}

/* ── Trust line ── */
.trust-line {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin-inline: auto;
}

/* ── FAQ ── */
/* <details> without a name attribute: each opens independently, so any number
   can be open at once, and none carry `open`, so they all start closed. */
.faq {
  max-width: 42rem;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.25rem;
  background: var(--bg);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.faq-item summary h3 {
  font-size: 1.05rem;
  margin: 0;
}
/* Chevron, rotated when the item is open */
.faq-item summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.25rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  margin-top: 0.25rem;
  transform: rotate(-135deg);
}
.faq-item > p {
  margin: 0;
  padding-bottom: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}

/* ── Blog ── */
.footer-link { color: var(--brand); text-decoration: none; font-weight: 600; }
.footer-link:hover { text-decoration: underline; }
.nav-logo-link { text-decoration: none; color: inherit; }
.post { max-width: 44rem; }
.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.post-meta a { color: var(--brand); text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }
.post-title { font-size: 2rem; line-height: 1.2; margin-bottom: 1.5rem; }
.post-body h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.post-body p { margin-bottom: 1.1rem; }
.post-body ul, .post-body ol { margin: 0 0 1.1rem 1.25rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body a { color: var(--brand); }
.post-body code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}

.post-list { list-style: none; display: grid; gap: 2rem; margin-top: 2.5rem; }
.post-list-item { border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
.post-list-item:last-child { border-bottom: none; }
.post-list-date { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.post-list-title { font-size: 1.3rem; line-height: 1.3; margin: 0.35rem 0 0.5rem; }
.post-list-title a { color: var(--text); text-decoration: none; }
.post-list-title a:hover { color: var(--brand); }
.post-list-excerpt { color: var(--text-muted); font-size: 0.95rem; }
.post-list-empty { color: var(--text-muted); margin-top: 2rem; }

/* ── Waitlist form ── */
.form-container { max-width: 520px; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.25rem; }
.form-field label { font-weight: 600; font-size: 0.95rem; }
.required { color: var(--brand); }
.form-field input {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.field-hint { font-size: 0.8rem; color: var(--text-muted); }
.form-message { font-size: 0.9rem; min-height: 1.4rem; margin-bottom: 1rem; }
.form-message.error { color: var(--error); }
.success-message {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* ── Footer ── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer-tagline { color: var(--text-muted); font-size: 0.95rem; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* Post CTA (_includes/post-cta.html) */
.post-cta {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  text-align: center;
}
.post-cta-heading { font-size: 1.25rem; line-height: 1.3; margin-bottom: 0.75rem; }
.post-cta-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
