/* ─────────────────────────────────────────────────────────────────────────
   Taxblock portal — single light theme.
   Design tokens mirror apps/web (light theme): pure-white base, charcoal
   text, neutral-gray borders, brand blue #537EF4 + cyan #00C3E3, gradient
   #73BFDB → #00C3E3 → #537EF4, Inter typeface.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --surface-base:    #ffffff;
  --surface-raised:  #fafafa;
  --surface-card:    #ffffff;
  --border-subtle:   #e5e5e5;
  --border-default:  #d4d4d4;

  --text-primary:    #1d1d1d;
  --text-secondary:  #404040;
  --text-tertiary:   #737373;
  --text-muted:      #888888;

  --accent:          #537ef4;
  --accent-hover:    #3f6bef;
  --accent-cyan:     #00c3e3;
  --brand-grad:      linear-gradient(120deg, #73bfdb 0%, #00c3e3 42%, #537ef4 100%);

  --radius:          14px;
  --radius-sm:       10px;
  --shadow-sm:       0 1px 2px rgba(17,17,17,.04), 0 1px 3px rgba(17,17,17,.06);
  --shadow-md:       0 4px 16px rgba(17,17,17,.06), 0 2px 6px rgba(17,17,17,.05);
  --shadow-lg:       0 18px 48px rgba(83,126,244,.14), 0 6px 18px rgba(17,17,17,.06);
  --maxw:            1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text-secondary);
  background: var(--surface-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { color: var(--text-primary); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.bg-raised { background: var(--surface-raised); }
.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--text-tertiary); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .96rem;
  padding: 12px 24px; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(83,126,244,.28); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(83,126,244,.34); }
.btn-ghost { background: #fff; color: var(--text-primary); border-color: var(--border-default); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Header / nav ────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--text-secondary); font-weight: 500; font-size: .95rem; }
.nav__links a:hover, .nav__links a.active { color: var(--accent); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(0,195,227,.10), transparent 60%),
    radial-gradient(55% 55% at 8% 90%, rgba(83,126,244,.10), transparent 60%);
}
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 8px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero { padding: 72px 0 44px; background: var(--surface-raised); border-bottom: 1px solid var(--border-subtle); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ── Stat strip ──────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.stat span { font-size: .9rem; color: var(--text-tertiary); }

/* ── Cards / grids ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(83,126,244,.35); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-tertiary); margin: 0; font-size: .96rem; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(83,126,244,.10); color: var(--accent); margin-bottom: 16px; font-size: 22px;
}
.card__icon svg { width: 24px; height: 24px; }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band { background: var(--brand-grad); border-radius: 20px; padding: 52px 40px; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn-ghost { background: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { color: var(--accent); }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border-subtle); }
.info-item:last-child { border-bottom: 0; }
.info-item .card__icon { flex: none; background: rgba(0,195,227,.12); color: var(--accent-cyan); margin: 0; }
.info-item h4 { margin: 2px 0 4px; }
.info-item p { margin: 0; color: var(--text-tertiary); font-size: .95rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-default); background: #fff; color: var(--text-primary);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(83,126,244,.15);
}
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* ── Legal / prose pages ─────────────────────────────────────────────── */
.legal { max-width: 820px; margin: 0 auto; }
.legal .updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; padding-top: 8px; }
.legal h3 { font-size: 1.05rem; margin-top: 24px; }
.legal p, .legal li { color: var(--text-secondary); }
.legal ul { padding-left: 22px; margin: 0 0 1rem; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; }
.legal .box {
  background: var(--surface-raised); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: #0f1115; color: #b8bcc4; padding: 60px 0 28px; margin-top: 0; }
.site-footer a { color: #b8bcc4; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 36px; }
.site-footer .brand img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.site-footer .brand p { color: #8b909a; font-size: .92rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: .93rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .86rem; color: #8b909a;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .nav__links, .nav__cta .btn-ghost { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: #fff; border-bottom: 1px solid var(--border-subtle); padding: 8px 0;
  }
  .nav.open .nav__links li { width: 100%; }
  .nav.open .nav__links a { display: block; padding: 12px 24px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
