/* All American Tax — Tax Planning Funnel
   Design tokens locked per skills/active/marketing/static-ads.md:
   navy #1a2e4a, off-white #f8fafc, CTA red #C8102E (never substitute),
   white on dark, charcoal #334155 on light, Inter, max 3 visible colors,
   mobile-first at 375px, one CTA per view. */

:root {
  --navy: #1a2e4a;
  --navy-deep: #142539;
  --off-white: #f8fafc;
  --white: #ffffff;
  --charcoal: #334155;
  --muted: #64748b;
  --cta-red: #C8102E;
  --cta-red-hover: #a80d26;
  --border: #e2e8f0;
  --radius: 10px;
  --max-width: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.85rem, 5.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }

/* ---- Hero (dark) ---- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
}
.hero h1 { color: var(--white); max-width: 820px; margin: 0 auto 20px; }
.hero .sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 32px;
}
.hero .sub strong { color: var(--white); }

/* ---- CTA (one per view, locked red) ---- */
.btn-cta {
  display: inline-block;
  background: var(--cta-red);
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 18px 36px;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-cta:hover { background: var(--cta-red-hover); }
.cta-meta {
  margin-top: 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.cta-meta.on-light { color: var(--muted); }

/* ---- Sample savings ---- */
.savings-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
}
.savings-card table { width: 100%; border-collapse: collapse; }
.savings-card td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.savings-card td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.savings-card tr.total td {
  border-bottom: none;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}
.disclaimer-note {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 560px;
  margin: 14px auto 0;
  text-align: center;
}

/* ---- Audience tags ---- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tags span {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---- Problem 3-point ---- */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 1rem; color: var(--charcoal); }

/* ---- Quote ---- */
.quote {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.quote blockquote {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 600;
  max-width: 760px;
  margin: 0 auto 16px;
}
.quote cite { font-style: normal; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

/* ---- Process steps ---- */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { text-align: left; }
.step .num {
  display: inline-block;
  font-weight: 700;
  color: var(--cta-red);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* ---- Qualification ---- */
.qual-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 720px) { .qual-grid { grid-template-columns: 1fr 1fr; } }
.qual-list { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.qual-list h3 { margin-bottom: 14px; }
.qual-list ul { list-style: none; }
.qual-list li { padding: 6px 0 6px 28px; position: relative; font-size: 1rem; }
.qual-list.fit li::before { content: "✓"; position: absolute; left: 0; color: var(--navy); font-weight: 700; }
.qual-list.nofit li::before { content: "✕"; position: absolute; left: 0; color: var(--muted); font-weight: 700; }

/* ---- Pricing ---- */
.price-box {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  max-width: 520px;
  margin: 28px auto 0;
  padding: 36px 28px;
  text-align: center;
}
.price-box .price { font-size: 3rem; font-weight: 700; color: var(--navy); }
.price-box .price-sub { color: var(--muted); margin-bottom: 16px; }
.price-box ul { list-style: none; text-align: left; max-width: 360px; margin: 0 auto 8px; }
.price-box li { padding: 5px 0 5px 26px; position: relative; font-size: 1rem; }
.price-box li::before { content: "✓"; position: absolute; left: 0; color: var(--cta-red); font-weight: 700; }
.price-box .fine { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ---- FAQ ---- */
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 18px 22px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--cta-red); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; font-size: 1rem; }

/* ---- Final CTA ---- */
.final-cta { background: var(--navy); color: var(--white); text-align: center; }
.final-cta h2 { color: var(--white); }
.final-cta p { max-width: 640px; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.85); }

/* ---- Footer / legal ---- */
footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
  font-size: 0.8rem;
  line-height: 1.7;
}
footer .tagline { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
footer p { margin-bottom: 10px; }
footer a { color: rgba(255, 255, 255, 0.8); }

/* ---- Quiz ---- */
.quiz-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.quiz-header { text-align: center; margin-bottom: 28px; }
.quiz-header .brand { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 18px; }
.progress {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 36px;
}
.progress-bar {
  height: 100%;
  background: var(--cta-red);
  width: 0%;
  transition: width 0.25s ease;
}
.q-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.q-card h2 { font-size: 1.3rem; margin-bottom: 20px; }
.q-options { display: grid; gap: 12px; }
.q-option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--off-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 0.12s ease;
}
.q-option:hover { border-color: var(--navy); }
.q-option.selected { border-color: var(--cta-red); background: var(--white); }
.q-nav { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.q-back {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px;
}
.q-note { font-size: 0.85rem; color: var(--muted); margin-top: 16px; text-align: center; }

/* Contact form */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--navy); }
.form-field input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.form-field input:focus { outline: none; border-color: var(--navy); }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 18px 0;
}
.consent input { margin-top: 3px; flex-shrink: 0; }
.error-msg { color: var(--cta-red); font-size: 0.9rem; margin-top: 12px; display: none; }

/* Thanks pages */
.thanks-wrap { max-width: 620px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.thanks-wrap .mark { font-size: 2.5rem; margin-bottom: 16px; }
.thanks-wrap h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 18px; }
.thanks-wrap p { margin-bottom: 16px; }
.thanks-wrap .next-steps {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
  margin: 28px 0;
  font-size: 1rem;
}
