/* ============================================================
   TAX TOOLKIT UK — Global Styles
   Design: Professional accountancy. Serif headings, slate + forest green.
   Typography: DM Serif Display + Inter + JetBrains Mono
   ============================================================ */


/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg-base:          #f5f4f0;
  --bg-surface:       #ffffff;
  --bg-surface-alt:   #faf9f6;
  --bg-input:         #f0ede8;
  --bg-input-focus:   #ffffff;
  --bg-nav:           #ffffff;
  --text-primary:     #1a2332;
  --text-secondary:   #2e3d4f;
  --text-muted:       #64748b;
  --text-tertiary:    #94a3b8;
  --text-inverse:     #ffffff;
  --accent:           #1e5c3a;
  --accent-hover:     #174d30;
  --accent-active:    #0f3d24;
  --accent-light:     #edf7f1;
  --accent-mid:       #2d8653;
  --accent-muted:     rgba(30, 92, 58, 0.09);
  --accent-rgb:       30, 92, 58;
  --slate:            #1e2d3d;
  --slate-mid:        #2e4057;
  --slate-light:      #eef2f7;
  --slate-rgb:        30, 45, 61;
  --success:          #166534;
  --success-bg:       #f0fdf4;
  --success-border:   #bbf7d0;
  --error:            #991b1b;
  --error-bg:         #fef2f2;
  --error-border:     #fecaca;
  --warning:          #92400e;
  --warning-bg:       #fffbeb;
  --warning-border:   #fde68a;
  --info-bg:          #f0f9ff;
  --info-border:      #bae6fd;
  --border:           #ddd8d0;
  --border-strong:    #c9c3bb;
  --border-focus:     var(--accent);
  --shadow-xs:        0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:        0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:        0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:        0 8px 24px rgba(0,0,0,0.08), 0 3px 6px rgba(0,0,0,0.04);
  --shadow-xl:        0 16px 40px rgba(0,0,0,0.09), 0 6px 12px rgba(0,0,0,0.04);
  --shadow-accent:    0 4px 20px rgba(30, 92, 58, 0.22);
  --shadow-card-hover:0 6px 20px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.05);
  --nav-height:       68px;
  --max-width:        1200px;
  --content-width:    860px;
  --tool-max-width:   720px;
  --radius-xs:        3px;
  --radius-sm:        5px;
  --radius:           8px;
  --radius-lg:        12px;
  --radius-xl:        16px;
  --radius-2xl:       22px;
  --t-fast:           0.12s ease;
  --t:                0.18s ease;
  --t-slow:           0.30s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', system-ui, sans-serif; background-color: var(--bg-base); color: var(--text-primary); line-height: 1.6; min-height: 100dvh; padding-top: var(--nav-height); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-hover); }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { font-family: 'DM Serif Display', Georgia, serif; line-height: 1.2; font-weight: 400; color: var(--text-primary); }
.ui-label, .field-label, .result-label, .footer-col-title, .section-tag, .hero-eyebrow, .calc-header-title, .calc-header-sub, .nav-link, .nav-logo-text, .mobile-nav-item, .tool-card-name { font-family: 'Inter', system-ui, sans-serif; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 28px; }
.container--tool { max-width: var(--tool-max-width); margin: 0 auto; padding: 0 28px; }
.flex { display: flex; } .grid { display: grid; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; }

/* NAV */
.site-nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: var(--bg-nav); border-bottom: 1px solid var(--border); z-index: 100; transition: box-shadow var(--t); }
.site-nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.nav-logo-mark { width: 36px; height: 36px; background: var(--slate); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-logo-mark svg { width: 18px; height: 18px; color: white; }
.nav-logo-text { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.0625rem; font-weight: 400; color: var(--slate); line-height: 1.2; }
.nav-logo-text span { display: block; font-family: 'Inter', system-ui, sans-serif; font-size: 0.625rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); padding: 6px 13px; border-radius: var(--radius-sm); transition: all var(--t); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--accent-muted); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-cta { font-size: 0.8125rem; font-weight: 600; color: var(--slate); border: 1.5px solid var(--border-strong); padding: 6px 16px; border-radius: var(--radius); transition: all var(--t); white-space: nowrap; }
.nav-cta:hover { background: var(--slate); color: white; border-color: var(--slate); }

/* MOBILE NAV */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: #ffffff; border-top: 1px solid var(--border); z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.mobile-nav-inner { display: flex; align-items: center; justify-content: space-around; height: 64px; max-width: var(--max-width); margin: 0 auto; padding: 0 8px; }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; transition: all var(--t); min-width: 52px; text-decoration: none; }
.mobile-nav-item svg { width: 20px; height: 20px; }
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--accent); }
@media (max-width: 768px) { .site-nav .nav-links, .site-nav .nav-right { display: none; } .mobile-nav { display: block; } body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }

/* HERO */
.page-hero { background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 52px 0 44px; }
.page-hero--home { padding: 72px 0 64px; background: linear-gradient(180deg, #fefefe 0%, var(--bg-base) 100%); position: relative; }
.page-hero--home::before { content: ''; display: block; position: absolute; top: var(--nav-height); left: 0; right: 0; height: 3px; background: var(--accent); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); border-left: 3px solid var(--accent); padding: 0 0 0 10px; margin-bottom: 18px; font-family: 'Inter', system-ui, sans-serif; }
.hero-title { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 400; color: var(--slate); line-height: 1.15; margin-bottom: 16px; max-width: 680px; }
.hero-title .highlight { color: var(--accent); font-style: italic; }
.hero-desc { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.7; max-width: 560px; }
.hero-meta { display: flex; align-items: center; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 7px; font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }
.hero-meta-item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.breadcrumb a { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-tertiary); font-size: 0.75rem; }
.breadcrumb-current { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500; }

/* CARDS */
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: box-shadow var(--t), border-color var(--t); }
.card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.tool-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: all var(--t-slow); display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; position: relative; overflow: hidden; }
.tool-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transition: transform var(--t-slow); transform-origin: bottom; }
.tool-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-1px); border-color: var(--border-strong); }
.tool-card:hover::after { transform: scaleY(1); }
.tool-card-icon { width: 36px; height: 36px; background: var(--slate-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-card-icon svg { width: 17px; height: 17px; color: var(--slate); }
.tool-card-name { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; font-family: 'Inter', system-ui, sans-serif; }
.tool-card-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.tool-card-arrow { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-top: 2px; transition: gap var(--t); font-family: 'Inter', system-ui, sans-serif; }
.tool-card:hover .tool-card-arrow { gap: 8px; }
.tool-card-arrow svg { width: 14px; height: 14px; }
.tool-card-badge { position: absolute; top: 14px; right: 14px; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 2px 7px; border-radius: 3px; background: var(--accent-light); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.18); font-family: 'Inter', system-ui, sans-serif; }

/* CATEGORY */
.category-section { padding: 52px 0; }
.category-section + .category-section { border-top: 1px solid var(--border); }
.category-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.category-title-wrap { display: flex; align-items: center; gap: 14px; }
.category-icon { width: 40px; height: 40px; background: var(--slate); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.category-icon svg { width: 20px; height: 20px; color: white; }
.category-label { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.25rem; font-weight: 400; color: var(--slate); }
.category-count { font-size: 0.8125rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; font-family: 'Inter', system-ui, sans-serif; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
@media (max-width: 640px) { .tool-grid { grid-template-columns: 1fr; } }

/* CALCULATOR */
.tool-section { padding: 48px 0; }
.tool-section + .tool-section { padding-top: 0; }
.calc-widget { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; margin-bottom: 32px; }
.calc-header { background: var(--slate); padding: 20px 28px; display: flex; align-items: center; gap: 12px; }
.calc-header-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.12); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.calc-header-icon svg { width: 18px; height: 18px; color: white; }
.calc-header-title { font-size: 0.9375rem; font-weight: 600; color: white; letter-spacing: 0.01em; }
.calc-header-sub { font-size: 0.8125rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
.calc-body { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 640px) { .calc-body { padding: 20px; } .calc-header { padding: 16px 20px; } }

/* FORMS */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); font-family: 'Inter', system-ui, sans-serif; }
.field-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: -2px; }
.input-wrap { position: relative; }
.input-prefix, .input-suffix { position: absolute; top: 50%; transform: translateY(-50%); font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); pointer-events: none; font-family: 'JetBrains Mono', monospace; }
.input-prefix { left: 14px; } .input-suffix { right: 14px; }
.input, .select { width: 100%; height: 46px; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 0.9375rem; font-weight: 500; transition: all var(--t); outline: none; appearance: none; -webkit-appearance: none; }
.input { padding: 0 14px; }
.input.has-prefix { padding-left: 34px; }
.input.has-suffix { padding-right: 34px; }
.input:focus, .select:focus { border-color: var(--border-focus); background: var(--bg-input-focus); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.10); }
.input::placeholder { color: var(--text-tertiary); }
.select { padding: 0 38px 0 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
.range-wrap { display: flex; flex-direction: column; gap: 8px; }
.range-header { display: flex; align-items: center; justify-content: space-between; }
.range-value { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; font-weight: 600; color: var(--accent); background: var(--accent-light); padding: 2px 10px; border-radius: 3px; }
input[type="range"] { width: 100%; height: 5px; -webkit-appearance: none; appearance: none; background: var(--border); border-radius: 3px; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 2px solid white; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform var(--t); }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 2px solid white; cursor: pointer; }
.check-group { display: flex; flex-direction: column; gap: 10px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-item input[type="checkbox"], .check-item input[type="radio"] { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.check-item-label { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; }
.check-item-label strong { color: var(--text-primary); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; border: none; border-radius: var(--radius); padding: 12px 24px; transition: all var(--t); cursor: pointer; white-space: nowrap; line-height: 1; font-family: 'Inter', system-ui, sans-serif; letter-spacing: 0.01em; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: white; box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.30); }
.btn--primary:active { background: var(--accent-active); transform: none; }
.btn--outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn--outline:hover { background: var(--accent-light); }
.btn--ghost { background: transparent; color: var(--text-secondary); }
.btn--ghost:hover { background: var(--bg-input); color: var(--text-primary); }
.btn--full { width: 100%; } .btn--sm { font-size: 0.8125rem; padding: 8px 16px; } .btn--lg { font-size: 1rem; padding: 14px 28px; }

/* RESULTS */
.results-panel { display: none; flex-direction: column; gap: 0; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 24px; }
.results-panel.visible { display: flex; }
.result-hero { text-align: center; padding: 28px 20px; background: var(--slate); border-radius: var(--radius-lg); margin-bottom: 20px; position: relative; overflow: hidden; }
.result-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.result-hero-label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.50); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; font-family: 'Inter', system-ui, sans-serif; }
.result-hero-value { font-family: 'JetBrains Mono', monospace; font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 600; color: white; line-height: 1; margin-bottom: 6px; }
.result-hero-sub { font-size: 0.8125rem; color: rgba(255,255,255,0.45); }
.result-breakdown { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.result-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); transition: background var(--t); }
.result-row:last-child { border-bottom: none; }
.result-row:hover { background: var(--bg-surface-alt); }
.result-row.total { background: var(--accent-light); border-top: 1.5px solid rgba(var(--accent-rgb), 0.18); }
.result-row.total .result-label { font-weight: 700; color: var(--text-primary); }
.result-label { font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; font-family: 'Inter', system-ui, sans-serif; }
.result-label .sublabel { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 400; margin-top: 1px; }
.result-value { font-family: 'JetBrains Mono', monospace; font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); }
.result-value.positive { color: var(--success); }
.result-value.negative { color: var(--error); }
.result-value.accent { color: var(--accent); }
.result-notice { display: flex; align-items: flex-start; gap: 10px; background: var(--info-bg); border: 1px solid var(--info-border); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; }
.result-notice svg { width: 15px; height: 15px; color: #0284c7; flex-shrink: 0; margin-top: 2px; }
.result-notice p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.55; }
.result-notice p strong { color: var(--text-primary); }

/* TAX BAND BAR */
.tax-band-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--border); margin: 16px 0 8px; }
.tax-band-segment { height: 100%; transition: width var(--t-slow); }
.tax-band-segment.band-0  { background: var(--success); }
.tax-band-segment.band-20 { background: #2563eb; }
.tax-band-segment.band-40 { background: var(--warning); }
.tax-band-segment.band-45 { background: var(--error); }
.tax-band-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.band-legend-item { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.band-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* EDITORIAL */
.content-section { padding: 52px 0; }
.content-section + .content-section { border-top: 1px solid var(--border); padding-top: 44px; }
.section-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 12px; font-family: 'Inter', system-ui, sans-serif; }
.section-tag::before { content: ''; display: block; width: 20px; height: 2px; background: var(--accent); border-radius: 1px; }
.section-heading { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(1.375rem, 2.5vw, 1.75rem); font-weight: 400; color: var(--slate); margin-bottom: 16px; line-height: 1.2; }
.prose { color: var(--text-secondary); line-height: 1.75; }
.prose p { margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { list-style: revert; padding-left: 1.5em; margin: 0.75em 0; }
.prose li { margin-bottom: 0.4em; }
.steps { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.step { display: flex; gap: 18px; }
.step-num { width: 30px; height: 30px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; font-family: 'Inter', system-ui, sans-serif; }
.step-content h4 { font-family: 'Inter', system-ui, sans-serif; font-size: 0.9375rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.step-content p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }
.callout { background: var(--bg-surface-alt); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.callout p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }
.callout p strong { color: var(--slate); }
.rates-table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 20px 0; }
.rates-table { width: 100%; border-collapse: collapse; }
.rates-table th { background: var(--slate); color: rgba(255,255,255,0.80); padding: 10px 16px; text-align: left; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid rgba(255,255,255,0.10); font-family: 'Inter', system-ui, sans-serif; }
.rates-table td { padding: 11px 16px; font-size: 0.875rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.rates-table tr:last-child td { border-bottom: none; }
.rates-table tr:hover td { background: var(--bg-surface-alt); }
.rates-table .mono { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 0.875rem; color: var(--text-primary); }
.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: none; border: none; text-align: left; font-family: 'Inter', system-ui, sans-serif; font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); cursor: pointer; transition: background var(--t); }
.faq-question:hover { background: var(--bg-surface-alt); }
.faq-question.open { color: var(--accent); }
.faq-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-input); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--t); }
.faq-icon svg { width: 12px; height: 12px; color: var(--text-muted); transition: transform var(--t); }
.faq-question.open .faq-icon { background: var(--accent-light); }
.faq-question.open .faq-icon svg { color: var(--accent); transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 20px 18px; }
.faq-answer.open { display: block; }
.faq-answer p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 20px; }
.related-card { display: flex; align-items: center; gap: 10px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; transition: all var(--t); font-family: 'Inter', system-ui, sans-serif; }
.related-card svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.related-card:hover { border-color: rgba(var(--accent-rgb), 0.30); color: var(--accent); background: var(--accent-light); }

/* STATS STRIP */
.stats-strip { background: var(--slate); padding: 28px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,0.10); }
.stat-item:last-child { border-right: none; }
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 1.625rem; font-weight: 600; color: white; line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.50); font-weight: 500; font-family: 'Inter', system-ui, sans-serif; }
@media (max-width: 640px) { .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.10); } .stat-item { background: var(--slate); padding: 16px; border-right: none; } }

/* TRUST BAR */
.trust-bar { padding: 18px 0; border-bottom: 1px solid var(--border); background: var(--bg-surface); }
.trust-items { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 40px; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; font-family: 'Inter', system-ui, sans-serif; }
.trust-item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* FOOTER */
.site-footer { background: var(--slate); color: rgba(255,255,255,0.65); padding: 56px 0 32px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-mark { width: 30px; height: 30px; background: var(--accent-mid); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.footer-logo-mark svg { width: 14px; height: 14px; color: white; }
.footer-logo-text { font-family: 'DM Serif Display', Georgia, serif; font-size: 1rem; font-weight: 400; color: white; }
.footer-desc { font-size: 0.8125rem; line-height: 1.65; color: rgba(255,255,255,0.45); }
.footer-col-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 14px; font-family: 'Inter', system-ui, sans-serif; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color var(--t); font-family: 'Inter', system-ui, sans-serif; }
.footer-link:hover { color: white; }
.footer-bottom { padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.30); font-family: 'Inter', system-ui, sans-serif; }
.footer-tax-notice { font-size: 0.75rem; color: rgba(255,255,255,0.28); max-width: 480px; text-align: right; line-height: 1.5; font-family: 'Inter', system-ui, sans-serif; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .footer-tax-notice { text-align: left; } }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* UTILITIES */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.tax-year-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--success); background: var(--success-bg); border: 1px solid var(--success-border); padding: 3px 9px; border-radius: 3px; font-family: 'Inter', system-ui, sans-serif; }
.disclaimer { font-size: 0.75rem; color: var(--text-tertiary); line-height: 1.6; padding: 12px 0; border-top: 1px solid var(--border); margin-top: 20px; font-family: 'Inter', system-ui, sans-serif; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
