/* =========================================================
   TaxDonre — Global Stylesheet
   Professional tax organizer marketing site
   ========================================================= */

:root {
  /* Brand palette */
  --navy-900: #0b1f3a;
  --navy-800: #10294c;
  --navy-700: #163962;
  --blue-600: #1d5fd8;
  --blue-500: #2f77f0;
  --blue-100: #e6efff;
  --teal-500: #17b0a4;
  --teal-100: #dff6f3;

  --ink-900: #0f1826;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #94a3b8;

  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eef3fb;
  --line: #e2e8f0;

  --success: #15803d;
  --danger: #dc2626;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 24, 38, .06), 0 1px 3px rgba(15, 24, 38, .08);
  --shadow: 0 10px 30px rgba(15, 31, 58, .10);
  --shadow-lg: 0 24px 60px rgba(15, 31, 58, .16);

  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.section { padding: 82px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.lead { font-size: 1.18rem; color: var(--ink-700); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.measure { max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 95, 216, .30);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(29, 95, 216, .38); color:#fff; }

.btn--ghost {
  background: #fff;
  color: var(--navy-800);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }

.btn--light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn--light:hover { background: rgba(255,255,255,.24); color:#fff; }

.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) 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-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: #fff; font-weight: 800; font-size: 1.05rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: .97rem;
  padding: 9px 13px;
  border-radius: 8px;
}
.nav__links a:hover { background: var(--bg-soft); color: var(--navy-800); text-decoration: none; }
.nav__links a.active { color: var(--blue-600); font-weight: 600; }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 44px; height: 42px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block;
  width: 20px; height: 2px; background: var(--navy-800);
  position: relative; transition: .2s;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(47,119,240,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(23,176,164,.12), transparent 55%),
    linear-gradient(180deg, #fbfdff, var(--bg));
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 90px;
}
.hero h1 { margin-bottom: 18px; }
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  font-size: .86rem; font-weight: 600; color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Hero visual card */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.mock__bar { display: flex; gap: 7px; margin-bottom: 18px; }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: #dbe4f0; display:block;}
.mock__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 12px; background: var(--bg-soft);
}
.mock__row span { font-weight: 600; color: var(--ink-900); font-size: .95rem; }
.mock__tag {
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.mock__tag--ok { background: var(--teal-100); color: #0e7a70; }
.mock__tag--wait { background: #fff3d6; color: #9a6b00; }
.mock__bar-progress { height: 8px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; margin-top: 4px; }
.mock__bar-progress i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--teal-500), var(--blue-500)); }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--blue-100); color: var(--blue-600);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; color: var(--ink-500); font-size: .98rem; }

/* Steps */
.steps { counter-reset: step; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  display: grid; place-items: center; font-weight: 700;
  margin-bottom: 16px;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.4rem; color: var(--navy-900); font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--ink-500); font-size: .95rem; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.sec-head p { color: var(--ink-500); font-size: 1.08rem; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(47,119,240,.4), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 26px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq__q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 22px; font-size: 1.05rem; font-weight: 600;
  color: var(--ink-900); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: inherit;
}
.faq__q::after { content: "+"; font-size: 1.5rem; color: var(--blue-600); font-weight: 400; }
.faq__item.open .faq__q::after { content: "–"; }
.faq__a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.faq__item.open .faq__a { padding: 0 22px 20px; max-height: 400px; }
.faq__a p { color: var(--ink-500); margin: 0; }

/* ---------- Forms ---------- */
.form-wrap {
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-weight: 600; color: var(--ink-900);
  margin-bottom: 7px; font-size: .95rem;
}
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink-900);
  background: #fff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47,119,240,.15);
}
.field input.invalid, .field textarea.invalid { border-color: var(--danger); }
.field__error {
  display: none; color: var(--danger); font-size: .85rem; margin-top: 6px;
}
.field__error.show { display: block; }
.field__hint { color: var(--ink-500); font-size: .85rem; margin-top: 6px; }

.checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--ink-500);
}
.checkbox input { width: auto; margin-top: 4px; }

.form-note {
  font-size: .85rem; color: var(--ink-500); text-align: center; margin-top: 18px;
}

.form-alert {
  display: none;
  padding: 14px 18px; border-radius: 10px; margin-bottom: 22px;
  font-size: .95rem; font-weight: 500;
}
.form-alert.show { display: block; }
.form-alert--ok { background: #e7f7ee; color: var(--success); border: 1px solid #b7e6c9; }

/* Feature list rows */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 60px; }
.frow:nth-child(even) .frow__media { order: -1; }
.frow__media {
  background: linear-gradient(135deg, var(--bg-tint), #fff);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li {
  position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink-700);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-100); color: #0e7a70;
  display: grid; place-items: center; font-size: .78rem; font-weight: 800;
}

/* ---------- Legal / prose pages ---------- */
.prose-head {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 56px 0 40px; border-bottom: 1px solid var(--line);
}
.prose {
  max-width: 820px; margin: 0 auto; padding: 50px 22px 80px;
}
.prose h2 { font-size: 1.4rem; margin-top: 42px; }
.prose h3 { font-size: 1.12rem; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-700); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1rem; }
.prose li { margin-bottom: 8px; }
.prose__meta { color: var(--ink-500); font-size: .9rem; margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-soft); }

.callout {
  background: var(--blue-100); border-left: 4px solid var(--blue-600);
  padding: 16px 20px; border-radius: 8px; margin: 20px 0;
  color: var(--ink-700); font-size: .96rem;
}
.callout--warn { background: #fff6e6; border-left-color: #d99400; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.72);
  padding: 60px 0 28px;
  font-size: .95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer__about { color: rgba(255,255,255,.6); font-size: .92rem; max-width: 300px; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { color: rgba(255,255,255,.72); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; font-size: .86rem; color: rgba(255,255,255,.55);
}
.footer__bottom a { color: rgba(255,255,255,.7); }
.disclaimer-strip {
  background: var(--navy-800);
  color: rgba(255,255,255,.55);
  font-size: .8rem; text-align: center; padding: 14px 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 100;
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  display: none;
  flex-wrap: wrap; align-items: center; gap: 14px;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; flex: 1 1 320px; font-size: .9rem; color: var(--ink-700); }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 10px 18px; font-size: .9rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hide { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .frow { grid-template-columns: 1fr; gap: 26px; }
  .frow:nth-child(even) .frow__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 18px; gap: 2px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 14px; }
  .nav__cta { margin: 8px 0 0; }
  .section { padding: 58px 0; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .form-wrap { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
}
