/* ============================================================
   TaxCore — shared design system
   Editorial / established-but-modern trust aesthetic
   ============================================================ */

:root {
  --paper:      #FAF7F0;
  --paper-2:    #F2EDE2;
  --ink:        #16201C;
  --ink-soft:   #3C463F;
  --muted:      #6B7269;
  --line:       #DAD3C4;
  --emerald:    #185C43;
  --emerald-dk: #103C2C;
  --emerald-lt: #E4EFE8;
  --gold:       #B0852E;
  --gold-lt:    #F3E9D2;
  --white:      #FFFFFF;
  --danger:     #9A3B2A;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 64px);

  --shadow-soft: 0 1px 2px rgba(22,32,28,.04), 0 8px 24px rgba(22,32,28,.06);
  --shadow-lift: 0 2px 4px rgba(22,32,28,.05), 0 18px 48px rgba(22,32,28,.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
}

.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 13px 26px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--emerald); color: var(--paper); }
.btn-primary:hover { background: var(--emerald-dk); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,240,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--emerald); color: var(--paper);
  display: grid; place-items: center; font-size: 17px; font-weight: 600;
  font-family: var(--font-display);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--emerald); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px var(--pad) 22px;
  }
  .nav-links.open a { padding: 10px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
}

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 48px); margin: 14px 0 18px; }

/* ---------- hero ---------- */
.hero { padding: clamp(60px, 11vw, 140px) 0 clamp(50px, 8vw, 90px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.6vw, 78px); line-height: 1.02; }
.hero h1 em { font-style: italic; color: var(--emerald); }
.hero .lead { margin: 26px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }

.hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); padding: 22px; position: relative;
}
.chat-row { display: flex; gap: 11px; margin-bottom: 16px; align-items: flex-start; }
.chat-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.chat-av.ai { background: var(--emerald-lt); color: var(--emerald); }
.chat-av.cpa { background: var(--gold-lt); color: var(--gold); }
.chat-bubble { background: var(--paper-2); border-radius: 4px 14px 14px 14px; padding: 11px 14px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.chat-bubble.user { background: var(--emerald); color: var(--paper); border-radius: 14px 4px 14px 14px; }
.chat-row.right { flex-direction: row-reverse; }
.chat-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; display: block; }
.chat-tag.ai { color: var(--emerald); }
.chat-tag.cpa { color: var(--gold); }
.chat-foot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 13px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(24,92,67,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(24,92,67,.45);} 70%{box-shadow:0 0 0 9px rgba(24,92,67,0);} 100%{box-shadow:0 0 0 0 rgba(24,92,67,0);} }

@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 38px; } }

/* ---------- feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: #cdc6b5; }
.card .ico {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--emerald-lt); color: var(--emerald); font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* ---------- band (dark feature) ---------- */
.band { background: var(--emerald-dk); color: var(--paper); position: relative; overflow: hidden; }
.band h2, .band h3 { color: var(--paper); }
.band .eyebrow { color: var(--gold); }
.band .lead { color: rgba(250,247,240,.82); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .band-grid { grid-template-columns: 1fr; gap: 36px; } }
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 36px; }
.stat .n { font-family: var(--font-display); font-size: 46px; line-height: 1; color: var(--gold); }
.stat .l { font-size: 14px; color: rgba(250,247,240,.72); margin-top: 6px; }
.law-list { list-style: none; }
.law-list li { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid rgba(250,247,240,.14); font-size: 16px; color: rgba(250,247,240,.9); }
.law-list li i { color: var(--gold); margin-top: 3px; }
.law-list li:last-child { border-bottom: none; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
@media (max-width: 880px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 14px; }
.step .num { font-family: var(--font-display); font-size: 17px; font-weight: 600; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--emerald); color: var(--emerald); display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- reviews ---------- */
.reviews-note { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 8px; }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.stars { color: var(--gold); font-size: 17px; letter-spacing: 2px; }
.review p { font-family: var(--font-display); font-size: 19px; line-height: 1.45; color: var(--ink); font-style: italic; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-weight: 700; color: var(--emerald); font-size: 15px; }
.review .who .nm { font-weight: 600; font-size: 15px; }
.review .who .rl { font-size: 13px; color: var(--muted); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
@media (max-width: 880px){ .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 32px 28px; display: flex; flex-direction: column;
}
.tier.featured { border: 2px solid var(--emerald); box-shadow: var(--shadow-lift); position: relative; }
.tier .badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; min-height: 24px; }
.badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 11px; border-radius: 20px; }
.badge.green { background: var(--emerald); color: var(--paper); }
.badge.soft { background: var(--gold-lt); color: var(--gold); }
.tier .tname { font-size: 15px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tier .pain { font-family: var(--font-display); font-size: 22px; margin: 10px 0 18px; line-height: 1.2; }
.tier .price { font-family: var(--font-display); font-size: 44px; line-height: 1; }
.tier .price small { font-family: var(--font-body); font-size: 15px; color: var(--muted); font-weight: 500; }
.tier ul { list-style: none; margin: 22px 0 26px; flex: 1; }
.tier ul li { display: flex; gap: 10px; padding: 9px 0; font-size: 15px; color: var(--ink-soft); }
.tier ul li i { color: var(--emerald); margin-top: 3px; flex: none; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--gold-lt); border-radius: var(--r-lg); padding: clamp(40px,6vw,68px); text-align: center; }
.cta-strip h2 { font-size: clamp(28px,4vw,44px); margin-bottom: 14px; }
.cta-strip .lead { margin: 0 auto 28px; }
.cta-strip .hero-cta { justify-content: center; }

/* ---------- forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-soft); }
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field { margin-bottom: 20px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(24,92,67,.12); }
.consent { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.5; }

/* ---------- legal pages ---------- */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(34px,5vw,52px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal h3 { font-size: 19px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal .callout { background: var(--gold-lt); border-left: 4px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 18px 22px; margin: 26px 0; }
.legal .callout p { margin: 0; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,247,240,.7); padding: 70px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 880px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.site-footer .brand { color: var(--paper); margin-bottom: 14px; }
.site-footer .brand .mark { background: var(--emerald); }
.foot-about { font-size: 14.5px; max-width: 34ch; line-height: 1.6; }
.foot-col h4 { font-family: var(--font-body); color: var(--paper); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; font-weight: 700; }
.foot-col a { display: block; font-size: 14.5px; padding: 6px 0; color: rgba(250,247,240,.7); transition: color .15s ease; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(250,247,240,.14); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.foot-disclaimer { max-width: 70ch; line-height: 1.6; margin-top: 14px; font-size: 12.5px; color: rgba(250,247,240,.5); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } .pulse{animation:none;} }

/* ---------- review letters + lightbox ---------- */
.letters { align-items: start; }
.letter {
  padding: 0; border: 1px solid var(--line); background: var(--white);
  border-radius: var(--r-md); overflow: hidden; cursor: pointer; position: relative;
  aspect-ratio: 1 / 1.414; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.letter:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #cdc6b5; }
.letter img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.letter-zoom {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--emerald); color: var(--paper); font-size: 19px;
  opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .2s ease;
}
.letter:hover .letter-zoom, .letter:focus-visible .letter-zoom { opacity: 1; transform: scale(1); }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(17,24,21,.82); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 4vh 4vw;
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: lb-in .2s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: min(620px, 92vw); max-height: 92vh; width: auto; height: auto;
  border-radius: var(--r-sm); box-shadow: 0 30px 80px rgba(0,0,0,.5); background: var(--white);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: rgba(250,247,240,.14); color: var(--paper);
  font-size: 30px; line-height: 1; cursor: pointer; transition: background .15s ease;
}
.lightbox-close:hover { background: rgba(250,247,240,.28); }

/* ---------- billing toggle ---------- */
.billing-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto 36px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
  position: relative; left: 50%; transform: translateX(-50%);
}
.bt-opt {
  border: none; background: transparent; cursor: pointer; font-family: var(--font-body);
  font-size: 15px; font-weight: 600; color: var(--ink-soft); padding: 9px 22px;
  border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; transition: all .18s ease;
}
.bt-opt.active { background: var(--emerald); color: var(--paper); }
.bt-save { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold-lt); color: var(--gold); }
.bt-opt.active .bt-save { background: rgba(250,247,240,.2); color: var(--paper); }
.price-note { font-size: 12.5px; color: var(--muted); min-height: 16px; margin-top: 2px; }

.foot-contact { font-size: 13.5px; line-height: 1.7; color: rgba(250,247,240,.55); margin-top: 14px; }
