/* ============================================================
   TAXWAHALA — "Naija Ledger" design system
   Paper & ink editorial · Fraunces display · receipt mono
   ============================================================ */

:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", monospace;

  --bg: #F6F1E7;
  --bg-2: #EFE7D6;
  --ink: #14201A;
  --ink-soft: #55645A;
  --green: #0B7A3E;
  --green-deep: #0A4D2C;
  --green-soft: rgba(11, 122, 62, 0.1);
  --gold: #D98E04;
  --red: #C63D21;
  --line: rgba(20, 32, 26, 0.16);
  --line-soft: rgba(20, 32, 26, 0.08);
  --card: #FFFDF6;
  --receipt: #FFFEF6;
  --receipt-ink: #1A241D;
  --shadow-hard: 7px 7px 0 rgba(20, 32, 26, 1);
  --shadow-soft: 0 24px 60px -24px rgba(20, 32, 26, 0.35);
  --nav-bg: rgba(246, 241, 231, 0.82);

  --band0: #D8E9DC;
  --band1: #A8D8B4;
  --band2: #6CC188;
  --band3: #2FA25F;
  --band4: #0B7A3E;
  --band5: #07512A;

  --ticker-bg: #14201A;
  --ticker-ink: #F6F1E7;
}

[data-theme="dark"] {
  --bg: #0B120D;
  --bg-2: #0E1710;
  --ink: #EDE7D6;
  --ink-soft: #9BAA9D;
  --green: #46D680;
  --green-deep: #2FBE68;
  --green-soft: rgba(70, 214, 128, 0.12);
  --gold: #F0B441;
  --red: #FF6B4A;
  --line: rgba(237, 231, 214, 0.18);
  --line-soft: rgba(237, 231, 214, 0.08);
  --card: #111A13;
  --receipt: #F8F4E8;          /* the receipt stays paper, like a real one on a dark desk */
  --receipt-ink: #1A241D;
  --shadow-hard: 7px 7px 0 rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 24px 60px -18px rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(11, 18, 13, 0.82);

  --band0: #1C2A1F;
  --band1: #1F4A2E;
  --band2: #22693C;
  --band3: #2A8C4E;
  --band4: #35B266;
  --band5: #46D680;

  --ticker-bg: #EDE7D6;
  --ticker-ink: #0B120D;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.45s ease, color 0.45s ease;
}

::selection { background: var(--green); color: var(--bg); }

.container { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 9990;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10000;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 640; line-height: 1.02; letter-spacing: -0.015em; }

a { color: inherit; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input, select { font-family: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- kicker / titles ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 18px;
}
.kicker::before { content: "✦ "; }

.section-title {
  font-size: clamp(2.3rem, 5.4vw, 4.3rem);
  max-width: 18ch;
  margin-bottom: 18px;
}
.section-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 40px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px;
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--green); border-color: var(--green-deep); color: #FFFDF6; box-shadow: 4px 4px 0 var(--green-deep); }
[data-theme="dark"] .btn--primary { color: #07130B; }
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--green-deep); }
.btn--primary:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--green-deep); }
.btn--ghost { background: transparent; border-color: var(--line); font-weight: 600; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--paper { background: var(--bg); color: #0A4D2C; border-color: rgba(0,0,0,0.25); box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35); }
.btn--paper:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35); }
.btn--big { font-size: 1.1rem; padding: 17px 36px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px clamp(20px, 4vw, 40px);
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.45s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--green); color: #FFFDF6;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  box-shadow: 3px 3px 0 var(--green-deep);
}
[data-theme="dark"] .nav__logo-mark { color: #07130B; }
.nav__logo-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.nav__logo-text em { font-style: italic; color: var(--green); }

.nav__links { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav__links a {
  text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--green); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.pill-toggle {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--card); padding: 3px; gap: 2px;
}
.pill-toggle__opt {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 6px 11px; border-radius: 999px; color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.pill-toggle__opt.is-active { background: var(--ink); color: var(--bg); }

.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card);
  transition: transform 0.2s, border-color 0.2s;
}
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--ink); }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px clamp(20px, 5vw, 48px) 90px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__naira {
  position: absolute;
  font-family: var(--font-display); font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  user-select: none;
}
.hero__naira--1 { font-size: clamp(300px, 42vw, 640px); top: -12%; right: -6%; transform: rotate(12deg); animation: floaty 14s ease-in-out infinite; }
.hero__naira--2 { font-size: clamp(160px, 20vw, 320px); bottom: -8%; left: -4%; transform: rotate(-14deg); animation: floaty 18s ease-in-out infinite reverse; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -26px; } }

.hero__inner { position: relative; max-width: 1200px; margin: 0 auto; width: 100%; }

.hero__title {
  font-size: clamp(3.4rem, 11.5vw, 9.5rem);
  font-weight: 750;
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 8px 0 26px;
}
.hero__line { display: block; overflow: hidden; }
.hero__line span { display: inline-block; transform: translateY(110%); animation: riseUp 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
.hero__line--accent span { animation-delay: 0.14s; color: var(--green); font-style: italic; }
@keyframes riseUp { to { transform: translateY(0); } }

.hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 40px;
}

/* quick calc card */
.quick-calc {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-hard);
  padding: clamp(20px, 3vw, 30px);
  max-width: 640px;
}
.quick-calc__label { display: block; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 10px; }
.quick-calc__row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.quick-calc__field {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--line); border-radius: 14px;
  padding: 4px 16px; background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quick-calc__field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.quick-calc__naira { font-family: var(--font-mono); font-weight: 700; font-size: 1.4rem; color: var(--green); }
.quick-calc__input {
  width: 100%; border: 0; background: transparent; outline: 0;
  font-family: var(--font-mono); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600;
  padding: 10px 0;
  font-variant-numeric: tabular-nums;
}
.quick-calc__input::placeholder { color: var(--ink-soft); opacity: 0.4; }
.quick-calc__more { align-self: center; }

.quick-calc__result {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 18px; padding-top: 18px;
  border-top: 1.5px dashed var(--line);
}
.quick-stat__label { display: block; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.quick-stat__value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.5rem); font-variant-numeric: tabular-nums; }
.quick-stat__value--green { color: var(--green); }
.quick-calc__note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 26px; }
.trust-chips li {
  font-size: 0.84rem; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 15px; background: var(--card);
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
}
.hero__scroll-arrow { animation: bob 1.6s ease-in-out infinite; font-size: 1rem; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* ---------- ticker ---------- */
.ticker {
  background: var(--ticker-bg); color: var(--ticker-ink);
  overflow: hidden; padding: 13px 0;
  border-block: 2px solid var(--ink);
  transform: rotate(-1.1deg) scale(1.02);
  margin-block: -8px 40px;
}
.ticker__track { display: inline-flex; white-space: nowrap; animation: tick 36s linear infinite; will-change: transform; }
.ticker__item {
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding-inline: 26px;
}
.ticker__item::after { content: "✦"; margin-left: 52px; color: var(--gold); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- law scrollytelling ---------- */
.law { padding-top: 80px; }
.law__intro { padding-bottom: 20px; }

.law__scrolly { height: 380vh; position: relative; }
.law__stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: minmax(280px, 430px) 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  max-width: 1200px; margin: 0 auto;
  padding: 90px clamp(20px, 5vw, 48px) 40px;
}

.law__readout-label { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }
.law__income {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin: 6px 0 12px;
}
.law__caption {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  color: var(--ink-soft);
  min-height: 3.2em;
  max-width: 30ch;
  transition: opacity 0.3s;
}
.law__totals { display: flex; gap: 34px; margin-top: 20px; padding-top: 20px; border-top: 1.5px dashed var(--line); }
.law__total-label { display: block; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 4px; }
.law__total-value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-variant-numeric: tabular-nums; }
.law__total-value--accent { color: var(--green); }

.law__ladder { display: flex; flex-direction: column; gap: 9px; }
.band {
  position: relative;
  display: grid; grid-template-columns: 62px 1fr auto;
  align-items: center; gap: 12px;
  height: clamp(46px, 8.5vh, 66px);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding-inline: 16px;
  overflow: hidden;
  background: var(--card);
  transition: border-color 0.3s, transform 0.3s;
}
.band.is-active { border-color: var(--ink); transform: scale(1.015); }
.band__fill {
  position: absolute; inset: 0; width: 0%;
  border-radius: 0;
  transition: width 0.15s linear;
}
.band[data-band="0"] .band__fill { background: var(--band0); }
.band[data-band="1"] .band__fill { background: var(--band1); }
.band[data-band="2"] .band__fill { background: var(--band2); }
.band[data-band="3"] .band__fill { background: var(--band3); }
.band[data-band="4"] .band__fill { background: var(--band4); }
.band[data-band="5"] .band__fill { background: var(--band5); }

.band__rate, .band__range, .band__amt { position: relative; z-index: 1; }
.band__rate { font-family: var(--font-display); font-weight: 750; font-size: clamp(1.15rem, 2.4vw, 1.7rem); }
.band__range { font-family: var(--font-mono); font-size: clamp(0.72rem, 1.4vw, 0.88rem); font-weight: 500; color: var(--ink-soft); }
.band__amt { font-family: var(--font-mono); font-size: clamp(0.72rem, 1.4vw, 0.92rem); font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 0.25s; }
.band.is-touched .band__amt { opacity: 1; }
.band.is-deep .band__range, .band.is-deep .band__rate, .band.is-deep .band__amt { color: #FFFDF6; }
.band.is-deep .band__range { color: rgba(255, 253, 246, 0.75); }
[data-theme="dark"] .band.is-deep .band__rate,
[data-theme="dark"] .band.is-deep .band__amt { color: #07130B; }
[data-theme="dark"] .band.is-deep .band__range { color: rgba(7, 19, 11, 0.65); }

.law__outro { text-align: center; padding: 90px 0 110px; }
.law__outro-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  max-width: 34ch; margin: 0 auto 34px;
}
.law__outro-text em { color: var(--green); }

/* ---------- calculator ---------- */
.calc { padding: 90px 0 40px; scroll-margin-top: 40px; }

.calc__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.tab {
  display: inline-flex; align-items: center; gap: 9px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--card);
  padding: 12px 22px;
  font-weight: 700; font-size: 0.95rem;
  transition: all 0.18s ease;
}
.tab:hover { border-color: var(--ink); transform: translateY(-2px); }
.tab.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 4px 4px 0 var(--green); }
.tab__emoji { font-size: 1.05rem; }

.calc__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.9fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.panel[hidden] { display: none; }

.freq-toggle {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 22px;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
}
.freq {
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--card); padding: 7px 15px;
  font-size: 0.82rem; font-weight: 700;
  transition: all 0.15s;
}
.freq.is-active { background: var(--green); border-color: var(--green-deep); color: #FFFDF6; }
[data-theme="dark"] .freq.is-active { color: #07130B; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 0.86rem; font-weight: 600;
  margin-bottom: 7px;
}
.field label small { font-weight: 500; color: var(--ink-soft); font-size: 0.74rem; }
.field__wrap {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.field__wrap span { font-family: var(--font-mono); font-weight: 600; color: var(--ink-soft); }
.field__wrap input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600;
  padding: 13px 0;
  font-variant-numeric: tabular-nums;
}
.field__wrap input::placeholder { color: var(--ink-soft); opacity: 0.35; }

.date-input {
  width: 100%;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink);
  font-family: var(--font-mono); font-size: 1rem; font-weight: 600;
  padding: 12px 14px;
}
[data-theme="dark"] .date-input { color-scheme: dark; }

.auto-chip {
  border: 1.5px solid var(--line); border-radius: 999px;
  background: transparent; padding: 3px 10px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.auto-chip.is-on { background: var(--green-soft); border-color: var(--green); color: var(--green); }

.deductions { margin-top: 24px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg-2); padding: 0; overflow: hidden; }
.deductions summary {
  cursor: pointer; list-style: none;
  padding: 15px 20px;
  font-weight: 700; font-size: 0.92rem;
  display: flex; align-items: center; gap: 8px;
}
.deductions summary::-webkit-details-marker { display: none; }
.deductions summary::before { content: "+"; font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--green); transition: transform 0.25s; }
.deductions[open] summary::before { transform: rotate(45deg); }
.deductions .field-grid { padding: 4px 20px 20px; }
.compare-out { margin: 0 20px 20px; font-weight: 600; font-size: 0.95rem; padding: 13px 16px; border-radius: 12px; background: var(--green-soft); border: 1.5px dashed var(--green); }

.panel-hint { margin-top: 20px; font-size: 0.86rem; color: var(--ink-soft); border-left: 3px solid var(--gold); padding-left: 14px; }

/* payslip OCR */
.ocr-zone { margin-bottom: 22px; }
.ocr-zone__btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  border: 2px dashed var(--line); border-radius: 16px;
  background: var(--card); padding: 15px 18px;
  text-align: left; transition: border-color 0.2s, transform 0.15s;
}
.ocr-zone__btn:hover { border-color: var(--green); transform: translateY(-2px); }
.ocr-zone__btn.is-busy { pointer-events: none; opacity: 0.7; }
.ocr-zone__icon { font-size: 1.6rem; }
.ocr-zone__btn b { display: block; font-size: 0.95rem; }
.ocr-zone__btn small { display: block; color: var(--ink-soft); font-size: 0.78rem; margin-top: 2px; }
.ocr-status {
  margin-top: 10px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  padding: 10px 14px; border-radius: 10px;
  background: var(--green-soft); border: 1.5px dashed var(--green); color: var(--green);
}
.ocr-status.is-error { background: color-mix(in srgb, var(--red) 10%, transparent); border-color: var(--red); color: var(--red); }

/* FX converter */
.fx { border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg-2); padding: 16px 18px; margin-bottom: 22px; }
.fx__title { font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.fx__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fx__select {
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem;
  padding: 12px 10px;
}
.fx__amt { flex: 1; min-width: 120px; }
.fx__rate { flex: 1; min-width: 110px; }
.fx__x { font-family: var(--font-mono); color: var(--ink-soft); font-weight: 700; }
.fx__go { padding: 11px 18px; font-size: 0.85rem; }
.fx__note { font-size: 0.76rem; color: var(--ink-soft); margin-top: 10px; }

.smallco__caveat {
  margin-top: 12px; font-size: 0.8rem; line-height: 1.55;
  padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  border: 1.5px dashed var(--gold);
}

.field--switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; grid-column: 1 / -1; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 13px 16px; }
.field--switch label { margin: 0; flex: 1; }
.switch { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); transition: left 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.switch:checked { background: var(--green); }
.switch:checked::after { left: 23px; }

.smallco { margin-top: 22px; border: 2px solid var(--green); border-radius: 16px; padding: 18px 20px; background: var(--green-soft); }
.smallco__title { font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.smallco ul { list-style: none; display: grid; gap: 7px; }
.smallco li { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; font-weight: 600; }
.smallco .tick { font-family: var(--font-mono); font-weight: 700; color: var(--green); }
.smallco li.is-fail .tick { color: var(--red); }
.smallco li.is-fail { color: var(--ink-soft); }

/* ---------- receipt ---------- */
.receipt-wrap { position: sticky; top: 90px; }
.receipt {
  position: relative;
  background: var(--receipt);
  color: var(--receipt-ink);
  font-family: var(--font-mono);
  border-radius: 6px 6px 0 0;
  padding: 26px 26px 34px;
  box-shadow: var(--shadow-soft);
  min-height: 300px;
}
.receipt::before {
  content: "";
  position: absolute; inset: 0 0 auto;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--green) 0 24px, var(--gold) 24px 32px);
  border-radius: 6px 6px 0 0;
}
.receipt__head { text-align: center; border-bottom: 1.5px dashed rgba(26, 36, 29, 0.3); padding-bottom: 14px; margin-bottom: 14px; }
.receipt__brand { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.18em; }
.receipt__sub { font-size: 0.62rem; letter-spacing: 0.14em; opacity: 0.6; margin-top: 4px; }

.receipt__empty { text-align: center; padding: 40px 0; opacity: 0.45; font-size: 0.9rem; line-height: 1.8; }

.receipt__line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.84rem; padding: 4px 0; font-variant-numeric: tabular-nums; }
.receipt__line--head { font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; opacity: 0.55; padding-top: 12px; }
.receipt__line--sub { opacity: 0.75; font-size: 0.8rem; }
.receipt__line--neg b::before { content: "−"; }
.receipt__line--big { font-weight: 700; font-size: 0.9rem; padding: 8px 0; }
.receipt__line--big b { font-size: 1.25rem; font-weight: 700; color: var(--green-deep); }
.receipt__line b { font-weight: 600; white-space: nowrap; }
.receipt__rule { border: 0; border-top: 1.5px dashed rgba(26, 36, 29, 0.3); margin: 10px 0; }

.receipt__total-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  border-top: 2.5px solid var(--receipt-ink);
  margin-top: 12px; padding-top: 12px;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em;
}
.receipt__big { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.receipt__minor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.receipt__minor div { display: flex; flex-direction: column; gap: 2px; }
.receipt__minor span { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.55; }
.receipt__minor b { font-size: 0.92rem; font-variant-numeric: tabular-nums; }

.receipt__bands { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin-top: 16px; border: 1px solid rgba(26,36,29,0.25); }
.receipt__bands span { height: 100%; }

.receipt__stamp {
  position: absolute; top: 44%; left: 50%;
  transform: translate(-50%, -50%) rotate(-11deg) scale(1);
  border: 3.5px double var(--green);
  color: var(--green);
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 700; font-size: 1.35rem; letter-spacing: 0.14em;
  opacity: 0.9;
  pointer-events: none;
  animation: stampIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 254, 246, 0.6);
  backdrop-filter: blur(1px);
}
@keyframes stampIn {
  0% { transform: translate(-50%, -50%) rotate(-11deg) scale(2.1); opacity: 0; }
  100% { transform: translate(-50%, -50%) rotate(-11deg) scale(1); opacity: 0.9; }
}

.receipt__save {
  margin-top: 14px; padding: 10px 12px;
  border: 1.5px dashed var(--green);
  border-radius: 10px;
  background: rgba(11, 122, 62, 0.07);
  font-size: 0.78rem; line-height: 1.6;
  color: var(--green-deep);
}
.receipt__save.is-worse { border-color: var(--gold); background: rgba(217, 142, 4, 0.08); color: #7A5502; }
.receipt__save b { font-weight: 700; }

.receipt__foot { margin-top: 16px; }
.receipt__foot p:first-child { font-size: 0.78rem; line-height: 1.7; }
.receipt__legal { font-size: 0.64rem; opacity: 0.55; margin-top: 10px; line-height: 1.6; }

.receipt__zigzag {
  position: absolute; left: 0; right: 0; bottom: -11px; height: 12px;
  background:
    linear-gradient(-45deg, var(--receipt) 8px, transparent 0),
    linear-gradient(45deg, var(--receipt) 8px, transparent 0);
  background-size: 16px 16px;
  background-repeat: repeat-x;
}

.receipt-actions { display: flex; gap: 10px; margin-top: 26px; justify-content: center; }

/* ---------- toolkit ---------- */
.toolkit { padding: 100px 0 30px; }
.toolkit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 10px; }
.tool-card {
  border: 2px solid var(--line); border-radius: 20px;
  background: var(--card);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-hard); }
.tool-card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.tool-card__sub { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 18px; }
.tool-card--danger { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.tool-card--danger h3 { color: var(--red); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table th {
  text-align: left; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
  padding: 8px 6px; border-bottom: 2px solid var(--line);
}
.data-table td { padding: 9px 6px; border-bottom: 1px solid var(--line-soft); }
.data-table td:nth-child(2), .data-table td:nth-child(3) { font-family: var(--font-mono); font-weight: 700; text-align: right; }
.data-table th:nth-child(2), .data-table th:nth-child(3) { text-align: right; }

.penalty-list { list-style: none; display: grid; gap: 12px; }
.penalty-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--red); }
.penalty-list b { font-size: 0.92rem; }
.penalty-list span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }

.obj-result { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1.5px dashed var(--line); }
.obj-result__big { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; }
.obj-result__note { font-size: 0.84rem; color: var(--ink-soft); margin-top: 4px; }
.obj-result.is-urgent { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--bg-2)); }
.obj-result.is-urgent .obj-result__big { color: var(--red); }

.pc-out { margin-top: 16px; border-top: 1.5px dashed var(--line); padding-top: 14px; }
.pc-out__months { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--red); margin-bottom: 10px; }
.pc-out__rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 0.85rem; border-bottom: 1px solid var(--line-soft); }
.pc-out__rows b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-out__rows .pc-total { border-bottom: 0; border-top: 2px solid var(--red); font-weight: 700; margin-top: 4px; }
.pc-out__rows .pc-total b { color: var(--red); font-size: 1.15rem; }
.pc-out__grow { font-size: 0.8rem; color: var(--red); font-weight: 600; margin-top: 10px; }
.pc-out__fix { margin-top: 16px; font-size: 0.9rem; }
.pc-out__steps { padding-left: 20px; margin-top: 8px; display: grid; gap: 6px; font-size: 0.86rem; }
.pc-out__note { font-size: 0.72rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.5; }

.vat-out { margin-top: 16px; display: grid; gap: 10px; }
.vat-out div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--bg-2); font-size: 0.86rem; }
.vat-out b { font-family: var(--font-mono); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* ---------- deadlines ---------- */
.deadlines { padding: 100px 0; background: var(--bg-2); border-block: 1.5px solid var(--line-soft); margin-top: 70px; transition: background 0.45s; }
.deadline-track {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  border-top: 2.5px solid var(--ink);
  padding-top: 26px; margin-top: 40px;
  position: relative;
}
.deadline { position: relative; }
.deadline::before {
  content: ""; position: absolute; top: -33px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--green); border: 2.5px solid var(--bg-2);
  box-shadow: 0 0 0 2px var(--green);
}
.deadline__date { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 5px; }
.deadline__what { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- checklist ---------- */
.checklist { padding: 100px 0 40px; }
.checklist__progress { display: flex; align-items: center; gap: 16px; max-width: 560px; margin-bottom: 28px; }
.checklist__bar { flex: 1; height: 12px; border-radius: 99px; background: var(--bg-2); border: 1.5px solid var(--line); overflow: hidden; }
.checklist__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 99px; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.checklist__count { font-family: var(--font-mono); font-weight: 700; }

.checklist__items { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: cl; }
.checklist__items li label {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--card);
  padding: 15px 18px;
  cursor: pointer; font-weight: 600; font-size: 0.92rem;
  transition: border-color 0.15s, transform 0.15s, opacity 0.2s;
}
.checklist__items li label:hover { border-color: var(--green); transform: translateX(3px); }
.checklist__items input { appearance: none; flex-shrink: 0; width: 26px; height: 26px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; display: grid; place-items: center; transition: all 0.15s; }
.checklist__items input::after { content: "✓"; font-weight: 900; font-size: 0.9rem; color: transparent; transition: color 0.15s; }
.checklist__items input:checked { background: var(--green); border-color: var(--green-deep); }
.checklist__items input:checked::after { color: #FFFDF6; }
.checklist__items li label:has(input:checked) { opacity: 0.6; text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* ---------- faq ---------- */
.faq { padding: 80px 0 100px; }
.faq__list { display: grid; gap: 12px; max-width: 860px; }
.faq__item {
  border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq__item[open] { border-color: var(--green); }
.faq__item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 22px;
  font-weight: 700; font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; font-weight: 600; color: var(--green); transition: transform 0.25s; flex-shrink: 0; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 0.95rem; max-width: 68ch; }

/* ---------- cta banner ---------- */
.cta-banner {
  background: var(--green-deep);
  color: #F6F1E7;
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative; overflow: hidden;
}
[data-theme="dark"] .cta-banner { background: #123B24; }
.cta-banner::before {
  content: "₦";
  position: absolute; right: -4%; top: 50%; translate: 0 -50%;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(300px, 40vw, 560px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(246, 241, 231, 0.14);
  pointer-events: none;
}
.cta-banner__title {
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-style: italic; font-weight: 640;
  margin-bottom: 36px;
  position: relative;
}

/* ---------- footer ---------- */
.footer { background: #0E1710; color: #EDE7D6; padding: 70px 0 30px; }
[data-theme="light"] .footer { background: #14201A; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 0.7fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer__logo { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; margin-bottom: 10px; }
.footer__logo em { font-style: italic; color: #46D680; }
.footer__tag { font-size: 0.9rem; color: rgba(237, 231, 214, 0.65); max-width: 30ch; }
.footer__built { font-family: var(--font-mono); font-size: 0.72rem; margin-top: 16px; color: rgba(237, 231, 214, 0.5); }
.footer__head { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: #46D680; margin-bottom: 14px; }
.footer__grid a { display: block; text-decoration: none; font-size: 0.92rem; color: rgba(237, 231, 214, 0.8); padding: 4px 0; }
.footer__grid a:hover { color: #46D680; }
.footer__promise p:last-child { font-size: 0.88rem; color: rgba(237, 231, 214, 0.65); }
.footer__legal { border-top: 1px solid rgba(237, 231, 214, 0.14); padding-top: 22px; font-size: 0.74rem; color: rgba(237, 231, 214, 0.45); }

/* ---------- deadline actions + WhatsApp ---------- */
.deadline-actions { margin-top: 44px; }
.deadline-actions__note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; max-width: 52ch; }
.wa-box {
  margin-top: 26px; padding: 20px 22px;
  border: 2px solid var(--line); border-radius: 18px;
  background: var(--card);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.wa-box p { font-size: 0.92rem; max-width: 52ch; }
.wa-box b { display: block; margin-bottom: 4px; font-size: 1rem; }
.obj-result__ics { margin-top: 12px; font-size: 0.82rem; padding: 9px 16px; }
.tool-card--link .btn { margin-top: 6px; }

/* ---------- confetti ---------- */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- vault ---------- */
.vault { padding: 140px 0 100px; }
.vault__stats {
  display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 14px;
  margin: 10px 0 36px;
}
.vstat {
  border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--card); padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
}
.vstat__label { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.vstat__value { font-family: var(--font-mono); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.vstat__hint { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--green); }
.vstat__select {
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
  padding: 8px 10px;
}

.vault__grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 28px; align-items: start; }
.vault__form {
  border: 2px solid var(--ink); border-radius: 20px;
  background: var(--card); padding: 24px;
  box-shadow: var(--shadow-hard);
  display: grid; gap: 16px;
  position: sticky; top: 90px;
}
.vault__form-title { font-size: 1.4rem; margin-bottom: 2px; }
.vault__select { width: 100%; }
.vault__file { font-size: 0.85rem; color: var(--ink-soft); }
.vault__file::file-selector-button {
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  padding: 8px 14px; margin-right: 10px; cursor: pointer;
}
.vault__privacy { font-size: 0.76rem; color: var(--ink-soft); }

.vault__list { list-style: none; display: grid; gap: 10px; }
.vault__empty { color: var(--ink-soft); font-style: italic; padding: 30px 0; }
.vdoc {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--card); padding: 10px 14px 10px 10px;
}
.vdoc__thumb {
  width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  border: 1.5px solid var(--line); background: var(--bg-2);
  display: grid; place-items: center; font-size: 1.3rem; cursor: pointer; padding: 0;
}
.vdoc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdoc__thumb--empty { cursor: default; }
.vdoc__main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.vdoc__main b { font-family: var(--font-mono); font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.vdoc__meta { font-size: 0.8rem; color: var(--ink-soft); }
.vdoc__del {
  border: 1.5px solid transparent; border-radius: 8px; background: transparent;
  color: var(--ink-soft); font-weight: 700; padding: 6px 10px;
  transition: all 0.15s;
}
.vdoc__del:hover { color: var(--red); border-color: var(--red); }
.vault__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.vault__print-head { font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 14px; }

.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10, 15, 12, 0.92);
  display: grid; place-items: center; padding: 30px;
}
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  background: transparent; border: 0; color: #F6F1E7;
  font-size: 1.6rem; font-weight: 700;
}

@media (max-width: 900px) {
  .vault__stats { grid-template-columns: 1fr 1fr; }
  .vault__grid { grid-template-columns: 1fr; }
  .vault__form { position: static; }
}

/* ---------- payroll ---------- */
.payroll { padding: 140px 0 100px; }
.pay-form {
  border: 2px solid var(--ink); border-radius: 20px;
  background: var(--card); padding: 24px;
  box-shadow: var(--shadow-hard);
  margin-bottom: 36px;
}
.pay-form__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.pay-form__name { grid-column: span 1; }
.pay-form__switch { grid-column: 1 / -1; }
.pay-table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); padding: 10px 16px 16px; }
.pay-table { min-width: 720px; }
.pay-table td b { font-family: var(--font-mono); }
.pay-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-table td:not(:first-child) { font-family: var(--font-mono); font-size: 0.84rem; }
.pay-company { max-width: 420px; margin-bottom: 20px; }
.pay-row-actions { display: flex; gap: 4px; align-items: center; }
.pay-slip-btn { border: 1.5px solid transparent; border-radius: 8px; background: transparent; font-size: 0.95rem; padding: 4px 8px; transition: all 0.15s; }
.pay-slip-btn:hover { border-color: var(--green); }
.pay-badge {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  color: var(--green); background: var(--green-soft);
  border-radius: 99px; padding: 2px 8px; margin-left: 6px; white-space: nowrap;
}
.pay-total td { border-top: 2.5px solid var(--ink); border-bottom: 0; font-weight: 700; padding-top: 12px; }
.pay-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.pay-summary__item {
  border: 2px solid var(--green); border-radius: 16px;
  background: var(--green-soft); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.pay-summary__item span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.pay-summary__item b { font-family: var(--font-mono); font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .pay-form__grid { grid-template-columns: 1fr 1fr; }
  .pay-summary { grid-template-columns: 1fr; }
}

/* ---------- salary SEO pages ---------- */
.sal-page { max-width: 860px; }
.salary-answer { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.sal-card { border: 2px solid var(--line); border-radius: 18px; background: var(--card); padding: 20px 22px; }
.sal-card--green { border-color: var(--green); background: var(--green-soft); }
.sal-card__label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 8px; }
.sal-big { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--ink); margin-bottom: 10px !important; font-variant-numeric: tabular-nums; }
.sal-big span { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.sal-big--green { color: var(--green); }
.sal-card__row { font-size: 0.92rem !important; margin-bottom: 4px !important; }
.sal-old { border: 1.5px dashed var(--green); border-radius: 14px; background: var(--green-soft); padding: 14px 18px; font-size: 0.95rem; margin: 20px 0; color: var(--ink); }
.sal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.sal-chip { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 13px; color: var(--ink) !important; background: var(--card); }
.sal-chip:hover { border-color: var(--green); }
.sal-chip.is-here { background: var(--ink); color: var(--bg) !important; border-color: var(--ink); }
.sal-prevnext { display: flex; justify-content: space-between; gap: 20px; border-top: 1.5px solid var(--line); padding-top: 18px; }
.sal-prevnext a { font-weight: 700; text-decoration: none; color: var(--green) !important; }
.sal-page .data-table tfoot td { border-top: 2px solid var(--ink); font-weight: 700; }

@media (max-width: 640px) { .salary-answer { grid-template-columns: 1fr; } }

/* ---------- pages (privacy / methodology) ---------- */
.page { max-width: 780px; margin: 0 auto; padding: 150px clamp(20px, 5vw, 48px) 100px; }
.page h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 20px; }
.page h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.page p, .page li { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 14px; }
.page ul { padding-left: 22px; }
.page .kicker { margin-bottom: 12px; }
.page a { color: var(--green); }
.back-link { display: inline-block; margin-bottom: 30px; text-decoration: none; font-weight: 700; font-size: 0.9rem; color: var(--green) !important; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .calc__grid { grid-template-columns: 1fr; }
  .receipt-wrap { position: static; max-width: 560px; }
  .law__stage { grid-template-columns: 1fr; gap: 22px; align-content: center; padding-top: 80px; }
  .law__caption { min-height: 2.4em; }
  .law__income { font-size: clamp(1.8rem, 7vw, 2.6rem); margin-bottom: 4px; }
  .law__totals { margin-top: 10px; padding-top: 12px; }
  .band { height: clamp(42px, 7vh, 56px); }
  .deadline-track { grid-template-columns: 1fr; gap: 26px; border-top: 0; border-left: 2.5px solid var(--ink); padding: 0 0 0 26px; }
  .deadline::before { top: 4px; left: -33px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { padding: 10px 14px; gap: 8px; }
  .nav__cta { display: none; }
  .nav__logo-text { font-size: 1.1rem; }
  .hero { padding-top: 104px; }
  .hero__title { font-size: clamp(3rem, 16.5vw, 5rem); }
  .field-grid { grid-template-columns: 1fr; }
  .checklist__items { grid-template-columns: 1fr; }
  .quick-calc__result { grid-template-columns: 1fr 1fr; }
  .quick-calc__more { width: 100%; }
  .tab { flex: 1 1 46%; justify-content: center; padding: 12px 10px; font-size: 0.85rem; }
  .hero__scroll span:first-child { display: none; }
  .receipt__minor { grid-template-columns: 1fr 1fr; }
  .law__scrolly { height: 330vh; }
}

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__line span { transform: none; animation: none; }
}

@media print {
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
  .grain, .nav, #confetti { display: none !important; }
}
