/* 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.
   2026-07-06 (Jake): elevation + motion layer added — restrained navy-tinted
   shadows and once-only scroll reveals. Palette/type lock unchanged. */

/* Self-hosted Inter variable font (latin, 400-700) — replaces the
   render-blocking Google Fonts request on this paid landing page. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-var.woff2') format('woff2');
}

: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;
  /* elevation: navy-tinted, soft — depth without new hues */
  --shadow-sm: 0 1px 2px rgba(26, 46, 74, 0.05), 0 8px 20px -12px rgba(26, 46, 74, 0.12);
  --shadow-md: 0 1px 3px rgba(26, 46, 74, 0.06), 0 18px 40px -18px rgba(26, 46, 74, 0.22);
  --shadow-lg: 0 2px 6px rgba(26, 46, 74, 0.07), 0 28px 60px -24px rgba(26, 46, 74, 0.32);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { 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); text-wrap: balance; }
.nowrap { white-space: nowrap; }
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; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
section { padding: clamp(48px, 9vw, 72px) 0; }

/* White band variant — alternates with the off-white page to chunk sections */
.band-white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---- Section header (consistent organization system) ---- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-head .kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cta-red);
  border-radius: 2px;
}
.section-head h2 { margin-bottom: 10px; }
.section-head .sub { color: var(--charcoal); }

/* ---- Scroll reveals (progressive: hidden only when JS marks <html class="js">) ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Hero (dark) ---- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 104px;
  text-align: center;
}
.hero-brand {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}
.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 12px;
}
.hero .sub strong { color: var(--white); }
.hero .sub-detail {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero .sub-detail strong { color: var(--white); }
/* trust chips — credentials as visible badges, not buried meta lines */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.hero-trust span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---- 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: 16px 36px;
  min-height: 48px;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 10px 24px -12px rgba(200, 16, 46, 0.55);
  transition: background 0.15s ease, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-cta:hover { background: var(--cta-red-hover); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(200, 16, 46, 0.6); }
.btn-cta:active { transform: translateY(0) scale(0.98); }
@media (max-width: 480px) {
  .btn-cta { display: block; width: 100%; text-align: center; }
}
.cta-meta {
  margin-top: 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.cta-meta.on-light { color: var(--muted); }
.cta-meta-2 { margin-top: 6px; font-size: 0.85rem; }
/* tertiary path for price-skeptics — text link, never a second red CTA */
.hero-jump-wrap { margin-top: 16px; }
.hero-jump {
  display: inline-block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 12px 8px;
  margin: -12px -8px;
}
.hero-jump:hover { color: var(--white); }

/* ---- Sticky mobile CTA bar (shows only while no primary CTA is on screen) ---- */
.cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px -18px rgba(26, 46, 74, 0.35);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.35s var(--ease);
}
.cta-bar.show { transform: translateY(0); }
.cta-bar .btn-cta { display: block; width: 100%; text-align: center; font-size: 1rem; padding: 13px 20px; }
.cta-bar .bar-meta { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 5px; }
@media (min-width: 720px) { .cta-bar { display: none; } }
/* <=380px: keep the bar's CTA on one line so the fixed bar never grows tall
   enough to occlude a big slice of content (two-line wrap observed at 320px) */
@media (max-width: 380px) {
  .cta-bar .btn-cta { font-size: 0.9rem; white-space: nowrap; padding: 13px 10px; }
}

/* ---- Sample savings (the hook payoff — overlaps the hero) ---- */
.savings-section { padding-top: 0; }
.savings-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 560px;
  margin: -64px auto 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.savings-card .card-head {
  padding: 24px 22px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.savings-card .card-head h2 { font-size: 1.25rem; margin-bottom: 6px; }
.savings-card .card-head p { font-size: 0.9rem; color: var(--muted); }
.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); font-variant-numeric: tabular-nums; }
.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-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.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;
  box-shadow: var(--shadow-sm);
}

/* ---- Problem 3-point ---- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) {
  .card { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.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,
.quote .quote-note { font-style: normal; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; display: block; max-width: 760px; margin: 0 auto; }

/* ---- Process steps: numbered vertical timeline ---- */
.steps {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  display: grid;
  gap: 28px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--border);
}
.step { position: relative; padding-left: 60px; }
.step .num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--cta-red);
}
.step h3 { margin-bottom: 4px; }
.step p { font-size: 1rem; }

/* ---- Qualification ---- */
.qual-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .qual-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.qual-list { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.qual-list.fit { border: 2px solid var(--navy); }
.qual-list h3 { margin-bottom: 14px; }
.qual-list.nofit h3 { color: var(--muted); }
.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(--cta-red); 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: 14px;
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.price-box .price { font-size: 3rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.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;
  interpolate-size: allow-keywords;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 18px 44px 18px 22px;
  list-style: none;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--cta-red);
  border-bottom: 2px solid var(--cta-red);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.32s var(--ease), content-visibility 0.32s allow-discrete;
}
.faq details[open]::details-content { height: auto; }
.faq details p { padding: 0 22px 18px; font-size: 1rem; }
/* visible human escape hatch — a phone call converts better than a bounce */
.faq-alt { text-align: center; margin-top: 22px; font-size: 0.95rem; color: var(--muted); }
.faq-alt a {
  color: var(--navy);
  font-weight: 600;
  display: inline-block;
  padding: 12px 6px;
  margin: -12px -6px;
}

/* ---- 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); }
/* the urgency beat stands alone, white and weighted, directly above the CTA */
.final-cta .final-urgency { font-weight: 600; color: var(--white); max-width: 520px; margin-bottom: 30px; }

/* ---- 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; }
/* inline-block + negative margin expands the tap target to ~44px without
   shifting the visual layout (the only sub-44px targets on the page). */
footer a {
  color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  padding: 14px 6px;
  margin: -14px -6px;
}

/* ---- 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: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.q-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-md); }
.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;
  touch-action: manipulation;
  transition: border-color 0.12s ease, transform 0.15s var(--ease);
}
.q-option:hover { border-color: var(--navy); }
.q-option:active { transform: scale(0.99); }
.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: 12px 16px;
  min-height: 44px;
}
.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; }
/* Always-rendered live region: empty <p> shows nothing; margin only when populated
   so role=alert announcements are reliable across SR/browser pairs. */
.error-msg { color: var(--cta-red); font-size: 0.9rem; }
.error-msg:not(:empty) { margin-top: 12px; }
.form-field input.input-error { border-color: var(--cta-red); }

/* Booking iframe: taller floor on phones so the GHL widget (header card +
   calendar + timezone + slot list) isn't clipped by scrolling="no". Desktop
   keeps the inline 700px floor; form_embed.js auto-resizes above both. */
@media (max-width: 480px) {
  iframe[id$="_booking"] { min-height: 900px !important; }
}

/* 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;
  box-shadow: var(--shadow-sm);
}

/* ---- Reduced motion: kill transitions/animations, keep everything visible ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
