/* ==========================================================================
   Taxclome — Professional Tax Organizer
   Global stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0b1a34;
  --navy-800: #10254a;
  --navy-700: #163360;
  --blue-600: #1f5fd1;
  --blue-500: #2f74e8;
  --blue-100: #e6efff;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --amber-400: #fbbf24;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;
  --white:   #ffffff;

  --success: #16a34a;
  --danger:  #dc2626;

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

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow:    0 8px 24px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);

  --container: 1160px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --transition: .2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
ul { padding-left: 1.2rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--ink-50); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #cdd8ec;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

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

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.section-lead { font-size: 1.12rem; color: var(--ink-500); max-width: 640px; }
.center .section-lead { margin-left: auto; margin-right: auto; }
.section--navy .section-lead { color: #a9b8d4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(31, 95, 209, .35); }
.btn-primary:hover { background: var(--blue-500); color: #fff; }
.btn-accent { background: var(--teal-500); color: #04241f; box-shadow: 0 6px 18px rgba(20, 184, 166, .4); }
.btn-accent:hover { background: var(--teal-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-300); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { color: var(--navy-800); }
.btn-lg { padding: 16px 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, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; color: var(--navy-900); letter-spacing: -.03em; }
.brand:hover { color: var(--navy-900); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(150deg, var(--blue-600), var(--teal-500));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: var(--ink-700);
  font-weight: 600;
  font-size: .97rem;
  padding: 9px 14px;
  border-radius: 8px;
}
.nav-links a:hover { background: var(--ink-100); color: var(--navy-900); }
.nav-links a.active { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy-900);
  position: relative; transition: var(--transition); margin: 0 auto;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-700) 55%, #1c4694 100%);
  color: #dbe6fb;
  overflow: hidden;
  padding: 96px 0 104px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(20, 184, 166, .22), transparent 60%),
    radial-gradient(500px 300px at 10% 90%, rgba(47, 116, 232, .28), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(90deg, #5eead4, #93c5fd);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 1.2rem; color: #b9c8e6; max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; font-size: .9rem; color: #9fb2d6; }
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust .dot { color: var(--teal-500); }

/* Hero mock card */
.mock {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  color: var(--ink-700);
}
.mock-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-300); }
.mock-bar i:nth-child(1){ background:#ff5f57;} .mock-bar i:nth-child(2){ background:#febc2e;} .mock-bar i:nth-child(3){ background:#28c840;}
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-radius: 10px; background: var(--ink-50); margin-bottom: 10px; }
.mock-row .l { display: flex; align-items: center; gap: 11px; font-weight: 600; color: var(--ink-900); font-size: .95rem; }
.mock-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); font-size: 1rem; }
.mock-badge { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.badge-done { background: #dcfce7; color: #15803d; }
.badge-wait { background: #fef3c7; color: #b45309; }
.mock-progress { height: 8px; border-radius: 20px; background: var(--ink-100); overflow: hidden; margin-top: 6px; }
.mock-progress i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--blue-500), var(--teal-500)); }

/* ---------- Logos strip ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; opacity: .7; }
.logos span { font-weight: 800; font-size: 1.1rem; color: var(--ink-500); letter-spacing: -.02em; }

/* ---------- Feature grid ---------- */
.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(--ink-100);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card .icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: linear-gradient(150deg, var(--blue-100), #d7f5f0);
  color: var(--blue-600);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-weight: 800;
  display: grid; place-items: center; margin-bottom: 16px; font-size: 1.1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--ink-500); font-size: .97rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; }
.stat .n { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; letter-spacing: -.03em; }
.stat .l { color: #9fb2d6; font-size: .95rem; margin-top: 4px; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.quote p { font-size: 1.02rem; color: var(--ink-700); font-style: italic; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(150deg, var(--blue-600), var(--teal-500)); color:#fff; display: grid; place-items: center; font-weight: 700; }
.quote .who b { color: var(--ink-900); display: block; font-size: .95rem; }
.quote .who small { color: var(--ink-500); }
.stars { color: var(--amber-400); letter-spacing: 2px; margin-bottom: 12px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  position: relative; transition: transform var(--transition), box-shadow var(--transition);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--blue-600); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue-600); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 14px; border-radius: 20px; letter-spacing: .04em; }
.plan h3 { font-size: 1.2rem; }
.plan .price { font-size: 2.6rem; font-weight: 800; color: var(--ink-900); margin: 10px 0 2px; letter-spacing: -.03em; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--ink-500); }
.plan .desc { color: var(--ink-500); font-size: .95rem; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: .96rem; border-bottom: 1px solid var(--ink-50); }
.plan ul li::before { content: "✓"; color: var(--teal-600); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--blue-600), var(--teal-600));
  border-radius: var(--radius-lg);
  padding: 54px 48px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 6px; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-900); margin-bottom: 7px; }
.form-group label .req { color: var(--danger); }
.form-control {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 13px 15px; border: 1.5px solid var(--ink-300); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink-900); transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(47, 116, 232, .14); }
.form-control::placeholder { color: #94a3b8; }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-500); margin-bottom: 20px; }
.form-check input { margin-top: 4px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--blue-600); }
.field-error { color: var(--danger); font-size: .84rem; margin-top: 6px; display: none; }
.form-control.invalid { border-color: var(--danger); }
.form-note { font-size: .84rem; color: var(--ink-500); margin-top: 14px; text-align: center; }

.form-alert {
  display: none; align-items: flex-start; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .95rem;
}
.form-alert.show { display: flex; }
.form-alert.success { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.form-alert.error { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }

.form-benefits { list-style: none; padding: 0; margin: 24px 0 0; }
.form-benefits li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; }
.form-benefits li .ic { color: var(--teal-600); font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.form-benefits li b { color: var(--ink-900); }

/* ---------- FAQ / accordion ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--ink-100); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 22px; font-family: inherit; font-size: 1.04rem; font-weight: 700; color: var(--ink-900);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { transition: transform var(--transition); color: var(--blue-600); font-size: 1.3rem; line-height: 1; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--ink-500); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #dbe6fb; padding: 72px 0 64px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: #a9b8d4; font-size: 1.12rem; max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: .88rem; color: #8ea1c4; margin-bottom: 18px; }
.breadcrumb a { color: #b9c8e6; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.prose h3 { font-size: 1.12rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-700); margin-bottom: 12px; }
.prose ul { margin-bottom: 16px; }
.prose .updated { color: var(--ink-500); font-size: .92rem; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--ink-100); }
.prose a { text-decoration: underline; }
.toc { background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 34px; }
.toc h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: 6px; }

/* ---------- Contact info blocks ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--ink-100); }
.info-list .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.info-list b { color: var(--ink-900); display: block; }
.info-list span { color: var(--ink-500); font-size: .96rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb2d6; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #8ea1c4; font-size: .95rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #9fb2d6; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #7e91b5; }
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-disclaimer { font-size: .82rem; color: #64769a; margin-top: 18px; max-width: 900px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 100;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px 24px;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .92rem; color: var(--ink-700); margin-bottom: 16px; }
.cookie-banner p a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: .92rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-wrap { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--ink-100);
    padding: 12px 20px 20px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px 14px; }
  .grid-3, .grid-2, .grid-4, .steps, .stats, .pricing { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 36px 28px; text-align: center; justify-content: center; }
  .cta-band .btn { margin: 0 auto; }
}
@media (max-width: 460px) {
  .container { padding: 0 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
