/* AI Toolkit sales funnel: plain CSS, mobile-first */
:root {
  --navy: #10243a;
  --blue: #2563eb;
  --blue-dark: #1d4fd1;
  --bg: #f7f9fc;
  --white: #ffffff;
  --text: #182230;
  --muted: #64748b;
  --line: #e2e8f0;
  --cta: #15803d;      /* green CTA, white text: 5.0:1 contrast */
  --cta-hover: #166534;
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 36, 58, 0.08);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10;
}
.skip-link:focus { left: 8px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
section { padding: 56px 0; }
.section-alt { background: var(--white); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.75rem;
}
.lead { font-size: 1.1rem; color: var(--muted); }
.center { text-align: center; }
.center .lead { max-width: 680px; margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.9rem 1.6rem; border-radius: 12px; border: 0;
  font: inherit; font-weight: 800; font-size: 1.1rem; text-decoration: none;
  color: var(--white); background: var(--cta);
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer; max-width: 100%;
}
.btn:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn[aria-disabled="true"] { opacity: 0.85; }
.btn-block { width: 100%; }
.btn-secondary { background: var(--white); color: var(--navy); box-shadow: none; border: 2px solid var(--navy); }
.btn-secondary:hover { background: var(--bg); }
.micro { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; }
.notice {
  margin: 1rem auto 0; max-width: 560px; padding: 0.75rem 1rem; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; font-size: 0.95rem;
}
.notice[hidden] { display: none; }

/* Header */
.topbar { background: var(--navy); color: #cbd5e1; font-size: 0.85rem; text-align: center; padding: 8px 12px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.brand { font-weight: 800; color: var(--navy); text-decoration: none; font-size: 0.98rem; }
.header-cta { padding: 0.55rem 1rem; min-height: 0; font-size: 0.95rem; }

/* Hero */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-copy .product-tag {
  display: inline-block; background: #eaf1ff; color: var(--blue-dark); font-weight: 700;
  font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero-copy .sub { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.25rem; }
.benefits { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; }
.check {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #dcfce7; color: var(--ok);
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; margin-top: 3px;
}
.hero-visual { display: flex; justify-content: center; }
.mockup { position: relative; width: min(280px, 78vw); }
.mockup img {
  border-radius: 6px 14px 14px 6px; box-shadow: 0 24px 50px rgba(16, 36, 58, 0.28), -8px 0 0 #0b1b2c inset;
  transform: rotate(-2deg); transition: transform 0.4s ease;
}
.mockup:hover img { transform: rotate(0deg); }
.mockup-shadow {
  position: absolute; left: 8%; right: 8%; bottom: -14px; height: 22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16,36,58,0.25), transparent);
}

/* Problem */
.pain-grid { display: grid; gap: 16px; margin-top: 32px; }
.pain {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.pain .icon { font-size: 1.6rem; margin-bottom: 8px; }
.pain p { margin: 0; color: var(--text); }

/* Solution */
.solution-box {
  background: var(--navy); color: #e2e8f0; border-radius: 20px; padding: 32px 24px; margin-top: 24px;
}
.solution-box h3 { color: var(--white); }
.solution-box .big { font-size: 1.2rem; font-weight: 700; color: #86efac; margin: 0; }
.steps { display: grid; gap: 14px; margin-top: 24px; }
.step-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* Chapter cards */
.chapter-grid { display: grid; gap: 18px; margin-top: 32px; }
.chapter {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 2px 6px rgba(16,36,58,0.04); transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex; flex-direction: column;
}
.chapter:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.chapter-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.chapter-num { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.count {
  font-size: 0.85rem; font-weight: 800; color: var(--blue-dark); background: #eaf1ff;
  padding: 4px 10px; border-radius: 999px;
}
.chapter h3 { margin-bottom: 6px; }
.chapter p { color: var(--muted); font-size: 0.97rem; margin: 0 0 10px; }
.chapter ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 0.95rem; }
.chapter li { margin-bottom: 4px; }
.total-line { text-align: center; margin-top: 22px; font-weight: 700; color: var(--navy); }

/* Examples */
.examples { display: grid; gap: 14px; margin-top: 28px; }
.example { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; padding: 16px 18px; }
.example .label { font-size: 0.8rem; font-weight: 700; color: var(--blue-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.example p { margin: 0; font-size: 0.98rem; }
.example .ref { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* 30-day plan */
.plan { background: var(--navy); color: #e2e8f0; }
.plan h2, .plan h3 { color: var(--white); }
.plan .lead { color: #cbd5e1; }
.timeline { display: grid; gap: 16px; margin-top: 32px; list-style: none; padding: 0; position: relative; }
.week { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 20px; }
.week .num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: #60a5fa; color: var(--navy); font-weight: 800; margin-bottom: 10px;
}
.week h3 { color: var(--white); margin-bottom: 6px; }
.week p { color: #cbd5e1; font-size: 0.97rem; margin: 0; }

/* Audience */
.two-col { display: grid; gap: 24px; margin-top: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 6px; }
.card.not { background: #fafafa; }

/* Value */
.value-points { display: grid; gap: 16px; margin-top: 28px; }

/* Offer */
.offer { background: var(--white); }
.offer-grid { display: grid; gap: 32px; align-items: center; }
.offer-box {
  background: var(--white); border: 2px solid var(--blue); border-radius: 20px; padding: 28px 22px;
  box-shadow: var(--shadow); text-align: center;
}
.price { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 900; color: var(--navy); margin: 6px 0 4px; }
.price-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.includes { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; display: grid; gap: 10px; }
.includes li { display: flex; gap: 10px; }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 12px; max-width: 800px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 28px 16px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; margin: 0; color: var(--text); }

/* Final CTA */
.final { background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%); color: #e2e8f0; text-align: center; }
.final h2 { color: var(--white); }
.final .recap { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin: 18px 0 28px; }
.final .recap li { font-weight: 600; }

/* Footer */
.site-footer { background: #0b1828; color: #94a3b8; padding: 40px 0; font-size: 0.93rem; }
.site-footer a { color: #cbd5e1; }
.footer-grid { display: grid; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; }
.placeholder { color: #fbbf24; }

/* Thank you page */
.ty-main { padding: 48px 0 64px; min-height: 70vh; }
.ty-card {
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow); padding: 32px 22px; text-align: center;
  max-width: 760px; margin-inline: auto; border: 1px solid var(--line);
}
.ty-check {
  width: 76px; height: 76px; border-radius: 50%; background: #dcfce7; color: var(--ok);
  display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; margin-bottom: 14px;
}
.ty-grid { display: grid; gap: 26px; margin-top: 28px; align-items: center; }
.ty-cover img { width: min(200px, 60vw); margin: 0 auto; border-radius: 6px 12px 12px 6px; box-shadow: 0 18px 36px rgba(16,36,58,0.25); }
.steps-list { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 14px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 14px; }
.steps-list .n {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.support { margin-top: 26px; font-size: 0.95rem; color: var(--muted); }
.back { display: inline-block; margin-top: 18px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 0 60px; }
.legal h1 { font-size: 2rem; }
.draft { background: #fffbeb; border: 1px solid #fcd34d; padding: 12px 14px; border-radius: 10px; color: #78350f; font-size: 0.95rem; }

/* Responsive */
@media (min-width: 640px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .chapter-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: repeat(2, 1fr); }
  .value-points { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .btn-block { width: auto; }
  .ty-grid { grid-template-columns: 220px 1fr; }
  .ty-card { padding: 44px 40px; }
}
@media (min-width: 900px) {
  section { padding: 84px 0; }
  .hero { padding: 72px 0 92px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-copy { text-align: left; }
  .chapter-grid { grid-template-columns: repeat(3, 1fr); }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr; }
}
@media (max-width: 639px) {
  .site-header .wrap { flex-wrap: wrap; }
  .hero-copy .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}

/* Illustrations (inline SVG) */
.chapter-icon { width: 48px; height: 48px; margin-bottom: 12px; flex: 0 0 48px; }
.value-icon { width: 48px; height: 48px; margin-bottom: 10px; }
.graphic svg { display: block; }
.chart svg text { font-family: Inter, Arial, sans-serif; }

/* Legal pages: highlight details the publisher must complete */
.legal mark.ph { background: #fef3c7; color: #78350f; padding: 0 3px; border-radius: 4px; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
