/* GSTBox — clean white, navy + saffron accents.
   Tuned for Indian small business audience: trustworthy, professional. */

:root {
  /* Light theme (default) — pure white surfaces, minimal grays */
  --bg: #FFFFFF;
  --bg-2: #FFFFFF;
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAFBFC;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --text: #0F172A;
  --text-dim: #4B5563;
  --text-mute: #9CA3AF;

  /* Brand: navy blue (trust) + saffron (action) */
  --primary: #1E40AF;          /* navy blue — trust, finance */
  --primary-deep: #1E3A8A;
  --primary-soft: rgba(30, 64, 175, 0.10);
  --secondary: #F97316;        /* saffron — Indian flag, CTA */
  --secondary-deep: #EA580C;
  --secondary-soft: rgba(249, 115, 22, 0.10);
  --success: #16A34A;          /* green — positive numbers */
  --warn: #F59E0B;
  --danger: #DC2626;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.05);
  --shadow:    0 1px 3px rgba(15, 23, 41, 0.06), 0 4px 12px rgba(15, 23, 41, 0.05);
  --shadow-lg: 0 4px 8px rgba(15, 23, 41, 0.04), 0 16px 40px rgba(15, 23, 41, 0.08);
  --shadow-cta: 0 6px 16px rgba(249, 115, 22, 0.30);
  --shadow-primary: 0 6px 16px rgba(30, 64, 175, 0.25);

  --content-maxw: 1080px;
  --tool-maxw: 720px;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  --bg: #0B1220;
  --bg-2: #111A2E;
  --paper: #0F172A;
  --surface: #111A2E;
  --surface-2: #182338;
  --border: #233146;
  --border-strong: #344056;
  --text: #F1F5FB;
  --text-dim: #A1AEC4;
  --text-mute: #748098;

  --primary: #60A5FA;
  --primary-deep: #3B82F6;
  --primary-soft: rgba(96, 165, 250, 0.16);
  --secondary: #FB923C;
  --secondary-deep: #F97316;
  --secondary-soft: rgba(251, 146, 60, 0.16);
  --success: #34D399;
  --warn: #FBBF24;
  --danger: #F87171;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 1px 3px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.30);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.4), 0 16px 40px rgba(0,0,0,0.40);
  --shadow-cta: 0 6px 16px rgba(251, 146, 60, 0.40);
  --shadow-primary: 0 6px 16px rgba(96, 165, 250, 0.40);
}

/* Light mode is the unconditional default. Dark mode only applies when
   the user has explicitly chosen it via the toggle (data-theme="dark"). */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--secondary); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

img, svg { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 10;
}
:root[data-theme="dark"] .site-header { background: var(--bg); }
.site-header__inner {
  max-width: var(--content-maxw);
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand__mark { width: 34px; height: 34px; flex: none; }

.site-nav { display: flex; align-items: center; gap: var(--space-2); }
.site-nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ===== Main ===== */
main {
  flex: 1;
  width: 100%;
  max-width: var(--content-maxw);
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-7);
}

/* ===== Landing — text+image left, calculator right ===== */
.landing {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(480px, 1.2fr);
  gap: var(--space-7);
  align-items: start;
  margin-bottom: var(--space-7);
}
.landing__intro { padding-top: var(--space-3); }
.landing__intro h1 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-3);
  line-height: 1.1;
  color: var(--text);
}
.landing__intro h1 .accent { color: var(--secondary-deep); }
:root[data-theme="dark"] .landing__intro h1 .accent { color: var(--secondary); }
.landing__intro p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 var(--space-4);
  max-width: 420px;
  line-height: 1.55;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.hero-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}
.hero-trust__item svg { width: 14px; height: 14px; color: var(--success); flex: none; }

.hero-art { width: 100%; margin-top: var(--space-3); }
.hero-art img, .hero-art svg { width: 100%; height: auto; max-width: 380px; display: block; }

.landing__tool { width: 100%; min-width: 0; }

/* ===== Tool card (the GST calculator) ===== */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.tool-card__header {
  padding: var(--space-5) var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.tool-card__header h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.tool-card__header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* Mode tabs (Add GST / Remove GST) — clean underline style */
.tabs {
  display: flex;
  background: #FFFFFF;
  margin: 0 var(--space-5);
  border-bottom: 1px solid var(--border);
  gap: 0;
  padding-top: var(--space-3);
}
.tab {
  flex: 1;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
:root[data-theme="dark"] .tabs { background: var(--surface); }
:root[data-theme="dark"] .tab[aria-selected="true"] { color: var(--primary); }
:root[data-theme="dark"] .tab[aria-selected="true"] { color: var(--primary); }
.tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Inputs */
.tool-body { padding: var(--space-5); }
.field { margin-bottom: var(--space-4); }
.field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.field__hint { font-size: 12px; color: var(--text-mute); font-weight: 400; }

.input-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.input-group__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-3);
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 18px;
  font-family: var(--font-mono);
}
:root[data-theme="dark"] .input-group__prefix { background: var(--surface-2); }
.input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px var(--space-4);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
.input-group select.select-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px var(--space-4);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 16px;
  padding-right: calc(var(--space-3) * 2 + 16px);
  cursor: pointer;
}
:root[data-theme="dark"] .input-group select.select-input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0AEC0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* Rate selector — segmented buttons */
.rate-segments {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}
.rate-seg {
  padding: 12px 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.rate-seg:hover { border-color: var(--border-strong); }
.rate-seg[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.rate-seg:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Inter / intra state radio */
.radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.radio {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px var(--space-4);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
  position: relative;
}
.radio:hover { border-color: var(--border-strong); }
.radio:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-deep); }
:root[data-theme="dark"] .radio:has(input:checked) { color: var(--primary); }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio__dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex: none;
  position: relative;
  transition: border-color 0.15s ease;
}
.radio__dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--primary);
  transform: scale(0);
  transition: transform 0.15s ease;
}
.radio input:checked ~ .radio__dot { border-color: var(--primary); }
.radio input:checked ~ .radio__dot::after { transform: scale(1); }
.radio input:focus-visible ~ .radio__dot { box-shadow: 0 0 0 4px var(--primary-soft); }
.radio__hint { display: block; font-size: 12px; color: var(--text-mute); font-weight: 400; margin-top: 2px; }

/* Result panel */
.result {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-top: var(--space-5);
}
:root[data-theme="dark"] .result { background: var(--surface-2); }
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-dim);
}
.result-row__label { font-weight: 500; }
.result-row__value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}
.result-row.is-sub {
  padding-left: var(--space-4);
  font-size: 13px;
}
.result-row.is-sub .result-row__label::before {
  content: '└─ ';
  color: var(--text-mute);
}
.result-row.is-total {
  border-top: 1.5px solid var(--border-strong);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  font-size: 16px;
  color: var(--text);
}
.result-row.is-total .result-row__label { font-weight: 700; }
.result-row.is-total .result-row__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-deep);
}
:root[data-theme="dark"] .result-row.is-total .result-row__value { color: var(--primary); }

/* CTA actions */
.actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px var(--space-4);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--secondary);
  color: #fff;
  flex: 1;
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { background: var(--secondary-deep); transform: translateY(-1px); text-decoration: none; }
.btn--primary:active { transform: translateY(0); }
.btn--primary.is-copied { background: var(--success); }
.btn--secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
  flex: 1;
}
.btn--secondary:hover { background: var(--surface); border-color: var(--border-strong); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn svg { width: 16px; height: 16px; }

/* ===== Income Tax Calculator specific ===== */
.tool-page-header {
  text-align: center;
  margin-bottom: var(--space-6);
  padding-top: var(--space-4);
}
.tool-page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-2);
  color: var(--text);
}
.tool-page-header h1 .accent { color: var(--secondary-deep); }
:root[data-theme="dark"] .tool-page-header h1 .accent { color: var(--secondary); }
.tool-page-header p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 auto;
  max-width: 560px;
}

.fy-badge {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 4px 12px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
:root[data-theme="dark"] .fy-badge { color: var(--primary); }

/* Form grid for income inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.form-grid > .field--full { grid-column: 1 / -1; }
.section-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Segmented buttons (age, type) */
.segmented {
  display: inline-flex;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
  width: 100%;
}
:root[data-theme="dark"] .segmented { background: var(--surface-2); }
.segmented label {
  flex: 1;
  text-align: center;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  position: relative;
}
.segmented label input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) {
  background: var(--primary);
  color: #FFFFFF;
}

/* Comparison cards */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.regime-card {
  background: #FFFFFF;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  transition: all 0.2s ease;
  position: relative;
}
:root[data-theme="dark"] .regime-card { background: var(--surface-2); }
.regime-card.is-winner {
  border-color: var(--success);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.15);
}
.regime-card.is-winner::after {
  content: 'Better for you';
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.regime-card h3 {
  margin: 0 0 var(--space-4);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.regime-card h3 svg {
  width: 20px; height: 20px;
  padding: 4px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: 6px;
  box-sizing: content-box;
}
:root[data-theme="dark"] .regime-card h3 svg { color: var(--primary); }
.regime-card .breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--text-dim);
}
.regime-card .breakdown-row strong { color: var(--text); }
.regime-card .breakdown-row__value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
}
.regime-card .breakdown-row.rebate .breakdown-row__value { color: var(--success); }
.regime-card .breakdown-row.is-final {
  border-top: 1.5px solid var(--border-strong);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  font-size: 16px;
  color: var(--text);
}
.regime-card .breakdown-row.is-final strong { font-weight: 700; }
.regime-card .breakdown-row.is-final .breakdown-row__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-deep);
}
:root[data-theme="dark"] .regime-card .breakdown-row.is-final .breakdown-row__value { color: var(--primary); }
.regime-card.is-winner .breakdown-row.is-final .breakdown-row__value {
  color: var(--success);
}

.recommendation {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 15px;
  color: var(--text-dim);
}
.recommendation.is-positive {
  background: rgba(22, 163, 74, 0.08);
  border-color: var(--success);
  color: var(--text);
}
.recommendation strong { color: var(--text); }

/* Disclaimer */
.disclaimer {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dim);
}
.disclaimer strong { color: var(--text); }

/* Calculate action */
.calc-action {
  margin-top: var(--space-6);
  text-align: center;
}
.btn--calculate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s ease;
  position: relative;
  overflow: hidden;
}
.btn--calculate svg { width: 20px; height: 20px; }
.btn--calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.40);
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
}
.btn--calculate:active { transform: translateY(0); }
.btn--calculate:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.btn--calculate.is-pressed { animation: btn-press 0.4s var(--ease-out); }
.btn--calculate::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.30), transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}
.btn--calculate:hover::after { transform: translateX(100%); }

@keyframes btn-press {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.calc-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--text-mute);
}
.calc-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
}

/* Results wrap — hidden until first calculation */
.results-wrap {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), max-height 0.6s var(--ease-out);
}
.results-wrap.is-revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 3000px;
}
.results-wrap.is-stale .compare-grid { opacity: 0.55; filter: blur(0.4px); transition: opacity 0.3s ease, filter 0.3s ease; }
.results-wrap.is-stale .recommendation::before {
  content: '↻ Inputs changed — click Calculate to refresh';
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--warn);
  letter-spacing: 0.02em;
}

/* Compare-grid recalc animation — flash a border, scale-bump cards */
.compare-grid.is-recalc .regime-card {
  animation: card-pop 0.5s var(--ease-out);
}
@keyframes card-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.regime-card .breakdown-row__value {
  transition: color 0.3s ease;
}

.recommendation.is-flash {
  animation: recommendation-flash 0.7s var(--ease-out);
}
@keyframes recommendation-flash {
  0%   { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Mobile */
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .regime-card.is-winner::after { font-size: 10px; padding: 3px 8px; }
  .btn--calculate { width: 100%; padding: 14px 24px; }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--success);
  color: #fff;
  padding: 12px var(--space-4);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.30);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.toast svg { width: 16px; height: 16px; }
.toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Tools grid (other tools) ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-7) auto;
  max-width: var(--tool-maxw);
}
.tool-tile {
  display: block;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: all 0.18s ease;
}
.tool-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.tool-tile.is-soon { opacity: 0.55; cursor: not-allowed; }
.tool-tile.is-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }

.tool-tile__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
:root[data-theme="dark"] .tool-tile__icon { color: var(--primary); }
.tool-tile__icon svg { width: 22px; height: 22px; }
.tool-tile h3 { margin: 0 0 var(--space-1); font-size: 15px; font-weight: 700; color: var(--text); }
.tool-tile p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.tool-tile__badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  background: var(--secondary-soft);
  color: var(--secondary-deep);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
:root[data-theme="dark"] .tool-tile__badge { color: var(--secondary); }

/* ===== Sections ===== */
.section { margin: var(--space-8) auto; max-width: var(--tool-maxw); }
.section h2 {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  text-align: center;
  color: var(--text);
}
.section__lead {
  color: var(--text-dim);
  text-align: center;
  max-width: 540px;
  margin: 0 auto var(--space-6);
  font-size: 16px;
}

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: var(--space-3); }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] { border-color: var(--primary); }
.faq summary {
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  width: 20px;
  text-align: center;
}
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { background: var(--surface-2); }
.faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.faq__answer { padding: 0 var(--space-5) var(--space-5); color: var(--text-dim); font-size: 15px; }
.faq__answer p:first-child { margin-top: 0; }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer code { font-family: var(--font-mono); background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; color: var(--text); border: 1px solid var(--border); }

/* ===== Article (legal pages, guides) ===== */
.article { max-width: 680px; margin: 0 auto; }
.article h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  line-height: 1.2;
  color: var(--text);
}
.article__meta { color: var(--text-mute); font-size: 14px; margin-bottom: var(--space-6); }
.article h2 { font-size: 22px; font-weight: 700; margin: var(--space-7) 0 var(--space-3); color: var(--text); }
.article h3 { font-size: 18px; font-weight: 600; margin: var(--space-6) 0 var(--space-3); color: var(--text); }
.article p { margin: 0 0 var(--space-4); color: var(--text-dim); }
.article ul, .article ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); color: var(--text-dim); }
.article li { margin-bottom: var(--space-2); }
.article strong { color: var(--text); }
.article code { font-family: var(--font-mono); background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; color: var(--text); border: 1px solid var(--border); }
.breadcrumbs { font-size: 13px; color: var(--text-mute); margin-bottom: var(--space-4); }
.breadcrumbs a { color: var(--text-dim); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); margin-top: auto; }
.site-footer__inner {
  max-width: var(--content-maxw);
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.site-footer p { margin: 0; font-size: 13px; color: var(--text-mute); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.site-footer nav a { color: var(--text-dim); font-size: 13px; font-weight: 500; }

/* ===== EMI calculator ===== */
.emi-headline {
  margin-top: var(--space-6);
  padding: var(--space-6) var(--space-5);
  background: linear-gradient(135deg, var(--primary-soft), rgba(249, 115, 22, 0.08));
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.emi-headline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(30, 64, 175, 0.06), transparent 60%);
  pointer-events: none;
}
:root[data-theme="dark"] .emi-headline {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.18), rgba(249, 115, 22, 0.12));
  border-color: var(--border-strong);
}
.emi-headline__label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.emi-headline__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
:root[data-theme="dark"] .emi-headline__value { color: var(--primary); }
.emi-headline__hint {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

.emi-split {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.emi-split__title {
  margin: 0 0 var(--space-3);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.emi-split__bar {
  position: relative;
  height: 14px;
  background: var(--secondary-soft);
  border-radius: 999px;
  overflow: hidden;
}
.emi-split__principal {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
  border-radius: 999px;
  transition: width 0.7s var(--ease-out);
}
:root[data-theme="dark"] .emi-split__bar { background: rgba(249, 115, 22, 0.22); }
.emi-split__legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
  font-size: 13.5px;
  color: var(--text-dim);
}
.emi-split__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.emi-split__item strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
}
.emi-split__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.emi-split__dot--p { background: var(--primary); }
.emi-split__dot--i { background: var(--secondary); }

/* ===== Invoice generator ===== */
.invoice-app {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
  align-items: start;
}

/* form pane */
.invoice-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.invoice-form__section { margin-bottom: var(--space-5); }
.invoice-form__section:last-child { margin-bottom: 0; }
.invoice-form__section h3 {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 8px;
}
.invoice-form__section h3 small,
.invoice-form__section h3 .invoice-form__hint {
  font-weight: 500;
  color: var(--text-mute);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}
.invoice-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.invoice-form__field { display: flex; flex-direction: column; gap: 6px; }
.invoice-form__field--full { grid-column: 1 / -1; }
.invoice-form__field span { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.invoice-form__field span small { font-weight: 400; color: var(--text-mute); }
.invoice-form__field input,
.invoice-form__field textarea,
.invoice-form__field select {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.invoice-form__field input:focus,
.invoice-form__field textarea:focus,
.invoice-form__field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.invoice-form__field textarea { resize: vertical; font-family: var(--font-ui); }

/* line item row */
.item-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.item-row__main input { width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.item-row__nums {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr 32px;
  gap: 6px;
}
.item-row__nums input,
.item-row__nums select {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-mono);
}
.item-row__nums select { font-family: var(--font-ui); }
.item-row__nums input:focus,
.item-row__nums select:focus { outline: none; border-color: var(--primary); }
.item-del {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  color: var(--danger);
  align-self: center;
}
.item-del:hover { background: rgba(220, 38, 38, 0.08); border-color: var(--danger); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-secondary:hover { background: rgba(30, 64, 175, 0.18); }
:root[data-theme="dark"] .btn-secondary { color: var(--primary); }

.invoice-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.invoice-actions .calc-hint { margin: 0 0 0 auto; font-size: 12px; }
.invoice-actions .calc-hint.is-saved { color: var(--success); }

/* preview pane */
.invoice-preview-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  overflow-x: auto;
}

/* invoice document */
.invoice-doc {
  background: #FFFFFF;
  color: #0F172A;
  padding: 28px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.5;
}
.invoice-doc__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
  border-bottom: 2px solid #1E40AF;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}
.invoice-doc__title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1E3A8A;
}
.invoice-doc__num { margin: 6px 0 0; font-size: 14px; color: #4B5563; }
.invoice-doc__num strong { color: #0F172A; font-weight: 700; }
.invoice-doc__seller { text-align: right; }
.invoice-doc__biz { margin: 0; font-size: 16px; font-weight: 700; color: #0F172A; }
.invoice-doc__addr { margin: 4px 0 0; white-space: pre-line; color: #4B5563; }
.invoice-doc__meta { margin: 6px 0 0; font-size: 11.5px; color: #4B5563; }
.invoice-doc__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.invoice-doc__label {
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7280;
}
.invoice-doc__dates table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.invoice-doc__dates th {
  text-align: left;
  font-weight: 600;
  color: #6B7280;
  padding: 3px 8px 3px 0;
  vertical-align: top;
  white-space: nowrap;
}
.invoice-doc__dates td { padding: 3px 0; color: #0F172A; font-weight: 600; }

.invoice-doc__items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
  font-size: 11px;
}
.invoice-doc__items th,
.invoice-doc__items td {
  padding: 6px 8px;
  text-align: right;
  border-bottom: 1px solid #E5E7EB;
}
.invoice-doc__items th:nth-child(2),
.invoice-doc__items td:nth-child(2) { text-align: left; }
.invoice-doc__items th:nth-child(3),
.invoice-doc__items td:nth-child(3) { text-align: left; }
.invoice-doc__items th:first-child,
.invoice-doc__items td:first-child { width: 24px; text-align: center; }
.invoice-doc__items thead th {
  background: #F3F4F6;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4B5563;
  border-bottom: 2px solid #1E40AF;
}
.invoice-doc__items td small {
  display: block;
  font-size: 9px;
  color: #6B7280;
  font-weight: 500;
}

.invoice-doc__totals {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.invoice-doc__words p:last-child { font-size: 11px; font-style: italic; color: #4B5563; }
.invoice-doc__totals-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.invoice-doc__totals-tbl th {
  text-align: left;
  padding: 4px 8px 4px 0;
  font-weight: 600;
  color: #4B5563;
}
.invoice-doc__totals-tbl td {
  padding: 4px 0;
  text-align: right;
  font-family: var(--font-mono);
  color: #0F172A;
}
.invoice-doc__totals-tbl tr.invoice-doc__grand th,
.invoice-doc__totals-tbl tr.invoice-doc__grand td {
  border-top: 2px solid #1E40AF;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1E3A8A;
}

.invoice-doc__footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid #E5E7EB;
  font-size: 11px;
}
.invoice-doc__bank p,
.invoice-doc__notes p { margin: 0; color: #4B5563; }
.invoice-doc__sig {
  text-align: right;
  font-size: 11px;
  color: #4B5563;
}
.invoice-doc__sig p { margin: 0 0 30px; }
.invoice-doc__sig p:first-child { margin-bottom: 8px; }
.invoice-doc__sig-line {
  height: 1px;
  background: #0F172A;
  margin-bottom: 6px;
}

@media (max-width: 700px) {
  .invoice-form__grid { grid-template-columns: 1fr; }
  .item-row__nums { grid-template-columns: 1fr 1fr; }
  .item-row__nums .item-del { grid-column: 1 / -1; width: 100%; }
  .invoice-doc { padding: 20px 18px; font-size: 11px; }
  .invoice-doc__header,
  .invoice-doc__parties,
  .invoice-doc__totals,
  .invoice-doc__footer { grid-template-columns: 1fr; }
  .invoice-doc__seller { text-align: left; }
  .invoice-doc__items { font-size: 10px; }
  .invoice-doc__items th, .invoice-doc__items td { padding: 4px 5px; }
}

/* Print: only the invoice document is visible, full page width */
@media print {
  .no-print { display: none !important; }
  body { background: #FFFFFF !important; }
  .site-header, .site-footer, .toast { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .invoice-app { display: block !important; }
  .invoice-form { display: none !important; }
  .invoice-preview-wrap {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
  }
  .invoice-doc, .contract-doc {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .section { display: none !important; }
}

/* ===== Contract document ===== */
.contract-doc {
  background: #FFFFFF;
  color: #0F172A;
  padding: 40px 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  text-align: justify;
}
.contract-doc h1 {
  margin: 0 0 var(--space-3);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
  color: #1E3A8A;
  border-bottom: 2px solid #1E40AF;
  padding-bottom: 12px;
}
.contract-doc h2 {
  margin: 24px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contract-doc p { margin: 0 0 10px; }
.contract-doc__date {
  text-align: center;
  font-size: 12px;
  color: #4B5563;
  margin-bottom: 18px;
}
.contract-doc .ph {
  color: #94A3B8;
  font-style: italic;
  font-weight: 500;
}
.contract-doc__signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #E5E7EB;
}
.contract-doc__sig-block p { margin: 0 0 8px; font-size: 12px; }
.contract-doc__sig-line {
  height: 1px;
  background: #0F172A;
  margin: 30px 0 8px;
}
@media (max-width: 700px) {
  .contract-doc { padding: 24px 20px; font-size: 12px; }
  .contract-doc h1 { font-size: 18px; }
  .contract-doc__signatures { grid-template-columns: 1fr; }
}

/* ===== Email signature preview ===== */
.esig-preview {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  padding: 24px;
  min-height: 140px;
  color: #111827;
}
:root[data-theme="dark"] .esig-preview {
  /* Always render as if on a white email canvas — readable & WYSIWYG */
  background: #FFFFFF;
  color: #111827;
}
.esig-preview a { color: inherit; }
.esig-preview img { max-width: 100%; height: auto; }

/* ===== Mobile ===== */
@media (max-width: 960px) {
  .landing { grid-template-columns: 1fr; gap: var(--space-5); }
  .landing__intro { padding-top: 0; text-align: center; }
  .landing__intro p { margin-left: auto; margin-right: auto; }
  .hero-trust { justify-content: center; margin-bottom: var(--space-2); }
  .hero-art { display: none; }
  .landing__tool { order: -1; }
}
@media (max-width: 600px) {
  main { padding: var(--space-4) var(--space-4) var(--space-6); }
  .tools-grid { grid-template-columns: 1fr; }
  .radios { grid-template-columns: 1fr; }
  .rate-segments { grid-template-columns: repeat(3, 1fr); }
  .actions { flex-direction: column; }
  .tool-body { padding: var(--space-4); }
  .tool-card__header { padding: var(--space-4) var(--space-4) var(--space-2); }
  .tabs { margin: var(--space-3) var(--space-4) 0; }
  .site-header__inner { padding: var(--space-3) var(--space-4); }
  .site-nav a { font-size: 13px; padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
