/* ============================================================
   Next Gen Taxes — Brand Stylesheet
   Palette (per Brand Guide PPTX):
     Terracotta      #C65E36  (primary brand / CTAs)
     Terracotta Lt   #E07A5F  (hover, soft accents)
     Sage Cream      #E6E7CD  (alternate section background)
     Off-White       #F7F7EF  (page background)
     Charcoal        #4A4441  (text)
     Sun             #F2C94C  (highlight marker only)
     Sage Deep       #8A9A5B  (success / checkmarks)
   Type: Poppins (CelebriSans web substitute) + Montserrat body
   ============================================================ */

:root {
  --terracotta: #C65E36;
  --terracotta-lt: #E07A5F;
  --sage-cream: #E6E7CD;
  --off-white: #F7F7EF;
  --charcoal: #4A4441;
  --charcoal-soft: #6E6660;
  --sun: #F2C94C;
  --sage-deep: #8A9A5B;
  --sage-band: #5F6E3F;
  --white: #FFFFFF;
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(74, 68, 65, .08);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--off-white);
}

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--charcoal-soft); }
strong { color: var(--charcoal); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 14px;
}

/* Signature: sun-yellow marker highlight on the emotional word */
.mark {
  background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%);
  padding: 0 .08em;
}

.eyebrow-terra { color: var(--terracotta); }

/* Signature: "Nailed it!" stamp — text/border ALWAYS red per logo slogan
   (terracotta-lt #E07A5F, matching "TAX RETURN. NAILED IT!" in the lockup).
   No checkmark; always ends with "!" — client directive Aug 3 2026. */
.nailed {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--terracotta-lt);
  border: 3px solid var(--terracotta-lt);
  border-radius: 999px;
  padding: 10px 24px;
  transform: rotate(-2deg);
  background: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
  border: 2px solid var(--terracotta);
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-lt); border-color: var(--terracotta-lt); transform: translateY(-2px); }
.btn-secondary { background: var(--sage-band); color: var(--white); border-color: var(--sage-band); }
.btn-secondary:hover { background: var(--sage-deep); border-color: var(--sage-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--terracotta); }
.btn-ghost:hover { background: var(--terracotta); color: var(--white); }
.btn + .btn { margin-left: 12px; }

/* ---------- Header ---------- */
.site-header .container { max-width: 1340px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 68, 65, .08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.logo img { height: 42px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500; font-size: .95rem;
  color: var(--charcoal); text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--sage-deep); border-bottom-color: var(--sage-deep); }
.nav-links a.btn-primary { color: var(--white); border-bottom: none; padding: 12px 26px; }
.nav-links a.btn-primary:hover { color: var(--white); background: var(--terracotta-lt); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 10px 22px; font-size: .9rem; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--charcoal); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 84px; background: var(--white); }
.hero .container { max-width: 1340px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 22px; font-size: clamp(2.6rem, 5.5vw, 4.3rem); }
.hero .tagline {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.55rem;
  color: var(--sage-deep);
  margin-bottom: 16px;
}
.hero .lede { font-size: 1.2rem; max-width: 34em; margin-bottom: 34px; }
.hero .btn { padding: 18px 42px; font-size: 1.15rem; }
.hero .eyebrow { font-size: .9rem; }
.hero .btn-primary { display: block; width: max-content; margin: 0 auto; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  border-top: 6px solid var(--sage-deep);
}
.hero-card h3 { margin-bottom: 6px; }
.hero-card ul { list-style: none; margin-top: 18px; }
.hero-card li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px dashed rgba(74,68,65,.12);
  color: var(--charcoal-soft);
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  color: var(--sage-deep); font-weight: 700;
}

/* Hero photo panel */
.hero-photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sound Familiar + stats layout */
.familiar-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.stat-strip.stat-col { grid-template-columns: 1fr; text-align: left; gap: 30px; }
.stat-strip.stat-col .stat-label { margin: 4px 0 0; max-width: none; }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-sage { background: var(--sage-cream); }
.section-terra { background: var(--sage-band); color: var(--white); }
.section-terra h2, .section-terra p { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.wide { max-width: none; }
.h2-xl { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 14px 0 10px; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--sage-cream);
  display: grid; place-items: center;
  font-size: 1.3rem;
}

/* Steps */
.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--sage-deep);
  line-height: 1;
  letter-spacing: .02em;
}

/* Plan section CTA cluster */
.plan-cta { text-align: center; margin: 48px 0 44px; }
.plan-cta h3 { font-size: 1.55rem; font-weight: 600; margin-bottom: 22px; }
.plan-cta .btn-primary { display: inline-block; }
.plan-pricing-link { margin-top: 16px; font-size: .95rem; }
.plan-pricing-link a { color: var(--sage-deep); font-weight: 600; text-decoration: none; }
.plan-pricing-link a:hover { text-decoration: underline; }

/* Segment (Before → After) cards */
.segment { display: flex; flex-direction: column; gap: 14px; }
.segment .tag {
  align-self: flex-start;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--sage-cream); color: var(--charcoal);
  border-radius: 999px; padding: 5px 14px;
}
.ba { border-left: 3px solid var(--charcoal-soft); padding-left: 14px; }
.ba .ba-label { font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal-soft); display: block; margin-bottom: 2px; }
.ba.after { border-left-color: var(--sage-deep); }
.ba.after .ba-label { color: var(--sage-deep); }

/* Pain list (Problem section) */
.pain-card { max-width: 900px; margin: 0 auto; border-top-color: var(--terracotta); }
.pain-item { padding: 20px 0; border-bottom: 1px dashed rgba(74,68,65,.15); }
.pain-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.pain-item h3 { font-size: 1.375rem; margin-bottom: 6px; }
.pain-item p { max-width: 46em; font-size: 1.125rem; }
.pain-item .scan {
  font-weight: 600; color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Solution card: green mirror of the problem card */
.solution-card { border-top-color: var(--sage-deep); }
.solution-card .scan { text-decoration-color: var(--sage-deep); }

/* Result cards: the ideal scenario */
.result-tagline { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--sage-deep); margin-top: 10px; }
.result-card { border-top: 6px solid var(--sage-deep); padding-top: 0; overflow: hidden; }
.result-photo { width: calc(100% + 52px); max-width: none; margin: 0 -26px 20px; display: block; }
.result-card h3 { margin-top: 4px; font-size: 1.3rem; }
.result-card p { font-size: 1.05rem; }
.result-card .scan {
  font-weight: 600; color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--sage-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Testimonials */
.quote { font-style: italic; color: var(--charcoal); }
.quote-name { margin-top: 14px; font-size: .85rem; font-weight: 700; color: var(--charcoal-soft); }

/* Transitional CTA (lead magnet) */
.lead-magnet { display: grid; grid-template-columns: 1.4fr .6fr; gap: 30px; align-items: center; max-width: 900px; margin: 0 auto; }
.lead-magnet h3 { margin: 10px 0; }
.lead-magnet-action { text-align: center; }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; }
.stat-strip .stat-value { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--sage-deep); }
.section-terra .stat-strip .stat-value { color: var(--sun); }
.stat-strip .stat-label { max-width: 22em; margin: 6px auto 0; font-size: .95rem; }

/* FAQ accordion */
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  padding: 20px 54px 20px 24px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--sage-deep); font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 24px 22px; }

/* Resource cards */
.res-card { display: flex; flex-direction: column; }
.res-card .res-type { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); }
.res-card a.res-link {
  margin-top: auto; padding-top: 16px;
  font-family: var(--font-display); font-weight: 600;
  color: var(--sage-deep); text-decoration: none;
}
.res-card a.res-link:hover { color: var(--sage-band); }

/* Testimonial marquee */
.proof-section { overflow: hidden; }
.marquee {
  overflow: hidden;
  max-width: var(--maxw);
  margin: 8px auto 34px;
  padding: 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; gap: 26px; width: max-content;
  padding: 10px 0;
  animation: marquee-drift 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.t-card {
  width: 380px; flex: none;
  background: var(--white);
  border: 1px solid rgba(74, 68, 65, .12);
  box-shadow: 0 8px 28px rgba(74, 68, 65, .12);
}
.t-card .quote { font-size: .98rem; }
@keyframes marquee-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marquee-track { animation: none; }
}
@media (max-width: 900px) {
  .t-card { width: 300px; }
}

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { margin-bottom: 30px; }
.section-terra .btn-ghost { color: var(--white); border-color: var(--white); }
.section-terra .btn-ghost:hover { background: var(--white); color: var(--terracotta); }

/* Values list (About) */
.values-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.values-list li { background: var(--white); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.values-list li strong { font-family: var(--font-display); display: block; margin-bottom: 4px; }

/* Placeholder notice for pre-launch review items */
.review-flag {
  border: 2px dashed var(--sage-deep);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .85rem;
  color: var(--charcoal-soft);
  background: rgba(138, 154, 91, .08);
  margin-top: 20px;
}

/* ---------- Pricing estimator ---------- */
.pricing-hero { padding: 72px 0 76px; }
.pricing-hero .section-head { margin-bottom: 30px; }
.est-instruction { display: block; margin-top: 14px; }
.pricing-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 0 0 14px; }
.pricing-hero .tagline { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--terracotta); }
.estimator {
  max-width: 980px; margin: 0 auto;
  background: var(--off-white);
  border-top-color: var(--sage-deep);
}
.est-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.est-options-5 { grid-template-columns: repeat(5, 1fr); }
.est-options-16 { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.est-chip {
  padding: 12px 14px;
  font-family: var(--font-display); font-weight: 500; font-size: .92rem;
  color: var(--charcoal); text-align: left;
}
.est-chip.selected { font-weight: 600; }
.est-opt {
  font-family: var(--font-body); text-align: left;
  background: var(--white); border: 2px solid rgba(74,68,65,.14);
  border-radius: var(--radius); padding: 16px 16px 14px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.est-opt:hover { transform: translateY(-2px); border-color: var(--sage-deep); }
.est-opt.selected { border-color: var(--sage-deep); background: var(--sage-cream); box-shadow: inset 0 0 0 1px var(--sage-deep); }
.est-opt.selected .est-opt-title::after { content: " ✓"; color: var(--sage-deep); }
.est-opt-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--charcoal); margin-bottom: 4px; }
.est-opt-sub { display: block; font-size: .82rem; color: var(--charcoal-soft); }
.est-result { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; padding: 24px 0; border-top: 1px dashed rgba(74,68,65,.15); border-bottom: 1px dashed rgba(74,68,65,.15); }
.est-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); }
.est-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--sage-deep); line-height: 1.1; margin: 6px 0; }
.est-note { font-size: .9rem; color: var(--charcoal); font-weight: 600; max-width: 24em; display: block; }
.est-includes ul { list-style: none; margin-top: 10px; }
.est-includes li { padding: 6px 0 6px 28px; position: relative; color: var(--charcoal); font-weight: 600; }
.est-includes li::before { content: "✓"; position: absolute; left: 0; top: 3px; color: var(--sage-deep); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.est-cta { text-align: center; padding-top: 26px; }
.est-fine { font-size: .85rem; color: var(--charcoal); font-weight: 600; margin-top: 14px; }
@media (max-width: 900px) {
  .est-options, .est-options-5, .est-options-16 { grid-template-columns: 1fr 1fr; }
  .est-result { grid-template-columns: 1fr; }
}

/* ---------- How It Works ---------- */
.smr-fold { padding-top: 64px; background: var(--white); }
.smr-fold h1 { margin-bottom: 8px; }
.step-block { margin-top: 26px; }
.step-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.step-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--charcoal); margin: 6px 0 14px; }
.step-head .step-num { margin-bottom: 2px; font-size: 2.2rem; }
.tagline-terra { color: var(--terracotta); }
.form-slot { max-width: 760px; margin: 0 auto; background: var(--off-white); border-top-color: var(--sage-deep); }
.form-slot-inner { text-align: center; padding: 70px 20px; }
.form-slot-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--charcoal); }
.form-slot-sub { font-size: .9rem; color: var(--charcoal-soft); margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(247,247,239,.8); padding: 56px 0 30px; }
.site-footer p { color: rgba(247,247,239,.8); } /* fixes global `p` rule overriding footer text: was 1.70:1 contrast, now 7.08:1 */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 38px; }
.site-footer h4 { font-family: var(--font-display); color: var(--white); font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(247,247,239,.75); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--sun); }
.footer-logo img { height: 120px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(247,247,239,.15); padding-top: 22px; font-size: .8rem; color: rgba(247,247,239,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .logo img { height: 34px; }
  .hero-grid, .grid-3, .grid-4, .grid-2, .footer-grid, .values-list, .stat-strip, .familiar-grid, .lead-magnet { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
  section { padding: 56px 0; }
  .nav-links {
    display: none;
    position: absolute; top: 96px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: flex-start;
    padding: 20px 24px 26px; gap: 16px;
    border-bottom: 1px solid rgba(74,68,65,.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .btn + .btn { margin-left: 0; margin-top: 12px; }
}

/* ---------- About: founders ---------- */
.founder-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--sage-deep);
  margin: -4px 0 12px;
}

/* ---------- Resources: coming-soon guide state ---------- */
span.res-link {
  margin-top: auto; padding-top: 16px;
  font-family: var(--font-display); font-weight: 600;
  font-size: .9rem; letter-spacing: .04em;
  color: var(--charcoal-soft); opacity: .75;
}
