/* ═══════════════════════════════════════════════════════════
   PAYCALCUK — Premium Design System
   ═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* Colors */
  --navy-950: #080e1c;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  --blue-700:  #1d4ed8;
  --blue-600:  #2563eb;
  --blue-500:  #3b82f6;
  --blue-100:  #dbeafe;
  --blue-50:   #eff6ff;

  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --violet-500: #8b5cf6;
  --violet-100: #ede9fe;

  --amber-500: #f59e0b;
  --amber-100: #fef3c7;

  --rose-500: #f43f5e;
  --rose-100: #ffe4e6;

  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 8px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-xl:  0 16px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-2xl: 0 24px 64px rgba(0,0,0,0.14), 0 8px 24px rgba(0,0,0,0.08);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-900);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select { font-family: inherit; }
a { text-decoration: none; color: inherit; }
strong { font-weight: 600; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(37,99,235,0.3), 0 0 0 1px rgba(37,99,235,0.1);
}
.btn--primary:hover {
  background: var(--blue-700);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35), 0 0 0 1px rgba(37,99,235,0.15);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--sm  { padding: 8px 16px; font-size: 14px; }
.btn--md  { padding: 11px 22px; font-size: 15px; }
.btn--full { width: 100%; padding: 12px 20px; font-size: 15px; }

/* ── PILLS ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
.pill--glass {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--slate-200);
}

.nav {
  display: flex;
  align-items: center;
  height: 64px;
  gap: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo-mark {
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
}
.nav__logo-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.nav__logo-text strong {
  font-weight: 800;
  color: var(--blue-600);
}

.nav__center { flex: 1; display: flex; justify-content: center; }

.nav__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate-600);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}
.nav__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 2px rgba(16,185,129,0.2);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(16,185,129,0.2); }
  50%       { box-shadow: 0 0 0 4px rgba(16,185,129,0.1); }
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  transition: color var(--duration-fast);
}
.nav__link:hover { color: var(--navy-900); }

/* Mobile nav */
.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease);
}
.nav__mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6) var(--space-5);
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-700);
  padding: var(--space-2) 0;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--navy-950) 0%, #0d1b35 45%, #112244 75%, #0a1628 100%);
  padding: var(--space-24) 0 var(--space-20);
  overflow: hidden;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero__eyebrow { margin-bottom: var(--space-5); }

.hero__title {
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto var(--space-8);
  font-weight: 400;
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.55);
}
.trust-sep { color: rgba(255,255,255,0.2); font-size: 16px; }

.hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--slate-50));
}

/* ═══════════════════════════════════════════════════════════
   CALCULATOR SECTION
   ═══════════════════════════════════════════════════════════ */
.calc-section {
  padding: var(--space-16) 0 var(--space-20);
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.calc-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

/* ── INPUT PANEL ── */
.calc-inputs {
  padding: var(--space-8);
  border-right: 1px solid var(--slate-100);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.calc-inputs__header { margin-bottom: var(--space-2); }
.calc-inputs__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.calc-inputs__subtitle {
  font-size: 14px;
  color: var(--slate-500);
}

/* Field Groups */
.field-group { display: flex; flex-direction: column; gap: var(--space-3); }
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Salary Field */
.salary-field {
  display: flex;
  align-items: center;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}
.salary-field:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
  background: var(--white);
}
.salary-field__currency {
  padding: 0 var(--space-4);
  font-size: 22px;
  font-weight: 600;
  color: var(--slate-400);
  border-right: 1.5px solid var(--slate-200);
  line-height: 1;
  user-select: none;
}
.salary-field__input {
  flex: 1;
  padding: 14px var(--space-4);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-900);
  background: transparent;
  border: none;
  outline: none;
  letter-spacing: -0.02em;
  min-width: 0;
}
.salary-field__input::placeholder { color: var(--slate-300); }
.salary-field__input::-webkit-inner-spin-button,
.salary-field__input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Period Toggle */
.period-toggle {
  display: flex;
  background: var(--slate-100);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}
.period-btn {
  flex: 1;
  padding: 7px 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate-500);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
}
.period-btn:hover { color: var(--navy-800); }
.period-btn.active {
  background: var(--white);
  color: var(--navy-900);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Country Grid */
.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  transition: all var(--duration-base) var(--ease);
  cursor: pointer;
}
.country-card:hover {
  border-color: var(--blue-300, #93c5fd);
  background: var(--blue-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.country-card.active {
  border-color: var(--blue-500);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.country-card__flag {
  width: 40px;
  height: 27px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.country-card__flag svg { width: 100%; height: 100%; }
.country-card__name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-600);
  letter-spacing: 0.01em;
}
.country-card.active .country-card__name { color: var(--blue-600); }

/* Options Accordion */
.options-accordion {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.options-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--slate-50);
  transition: background var(--duration-fast);
}
.options-toggle:hover { background: var(--slate-100); }
.options-toggle__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
}
.options-toggle__chevron {
  color: var(--slate-400);
  transition: transform var(--duration-base) var(--ease);
  flex-shrink: 0;
}
.options-accordion.open .options-toggle__chevron { transform: rotate(180deg); }

.options-content {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--slate-200);
}
.options-accordion.open .options-content { display: flex; }

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--slate-100);
}
.option-row:last-child { border-bottom: none; }
.option-row__label { flex: 1; min-width: 0; }
.option-row__name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-800);
}
.option-row__hint {
  display: block;
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 2px;
}
.option-row__controls { flex-shrink: 0; }

/* Input with unit toggle */
.input-with-unit {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--duration-base);
}
.input-with-unit:focus-within { border-color: var(--blue-500); }
.option-input {
  width: 72px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  border: none;
  outline: none;
  background: transparent;
  text-align: right;
}
.option-input::-webkit-inner-spin-button,
.option-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.unit-toggle {
  display: flex;
  border-left: 1px solid var(--slate-200);
}
.unit-btn {
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-400);
  transition: all var(--duration-fast);
}
.unit-btn.active {
  background: var(--blue-600);
  color: var(--white);
}

/* Select */
.option-select {
  padding: 7px 28px 7px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-800);
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color var(--duration-base);
}
.option-select:focus { border-color: var(--blue-500); }

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; cursor: pointer; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-switch__track {
  display: block;
  width: 40px;
  height: 22px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  transition: background var(--duration-base) var(--ease);
  position: relative;
}
.toggle-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease);
}
.toggle-switch input:checked + .toggle-switch__track { background: var(--blue-600); }
.toggle-switch input:checked + .toggle-switch__track::after { transform: translateX(18px); }

/* ── RESULTS PANEL ── */
.calc-results {
  padding: var(--space-8);
  background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.calc-results__header { display: flex; justify-content: flex-end; }

/* Results Period Toggle */
.results-period-toggle {
  display: flex;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
  box-shadow: var(--shadow-xs);
}
.results-period-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate-500);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease);
}
.results-period-btn:hover { color: var(--navy-800); }
.results-period-btn.active {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Take-home Hero */
.take-home-hero {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
}
.take-home-hero__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}
.take-home-hero__amount {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  color: var(--emerald-600);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  transition: all var(--duration-slow) var(--ease);
}
.take-home-hero__period {
  font-size: 14px;
  color: var(--slate-400);
  font-weight: 500;
}

/* Breakdown Bar */
.breakdown-bar {
  display: flex;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--slate-200);
  gap: 2px;
}
.breakdown-bar__segment {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease);
  min-width: 0;
}
.breakdown-bar__segment--takehome { background: var(--emerald-500); }
.breakdown-bar__segment--tax      { background: var(--blue-500); }
.breakdown-bar__segment--ni       { background: var(--violet-500); }
.breakdown-bar__segment--pension  { background: var(--amber-500); }
.breakdown-bar__segment--loan     { background: var(--teal-500); }

/* Breakdown List */
.breakdown-list {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px var(--space-5);
  border-bottom: 1px solid var(--slate-100);
  transition: background var(--duration-fast);
}
.breakdown-item:last-child { border-bottom: none; }
.breakdown-item:hover { background: var(--slate-50); }
.breakdown-item--total {
  background: var(--slate-50);
  border-top: 1.5px solid var(--slate-200) !important;
}
.breakdown-item--total:hover { background: var(--emerald-50); }

.breakdown-item__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.breakdown-item__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.breakdown-item__dot--gross    { background: var(--slate-300); }
.breakdown-item__dot--tax      { background: var(--blue-500); }
.breakdown-item__dot--ni       { background: var(--violet-500); }
.breakdown-item__dot--pension  { background: var(--amber-500); }
.breakdown-item__dot--loan     { background: var(--teal-500); }
.breakdown-item__dot--takehome { background: var(--emerald-500); }

.breakdown-item__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
}
.breakdown-item--total .breakdown-item__label {
  font-weight: 700;
  color: var(--navy-900);
}

.breakdown-item__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.breakdown-item__value--deduction { color: var(--slate-500); }
.breakdown-item__value--takehome  {
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald-600);
}

/* Rate Cards */
.rate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.rate-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
}
.rate-card__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rate-card__value {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section {
  padding: var(--space-20) 0;
  background: var(--white);
}
.section--light { background: var(--slate-50); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: 16px;
  color: var(--slate-500);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS — STEPS
   ═══════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.step-card {
  position: relative;
  padding: var(--space-8) var(--space-6);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-slow) var(--ease);
}
.step-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--blue-100);
}
.step-card__number {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  opacity: 0.7;
}
.step-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  color: var(--blue-600);
  margin-bottom: var(--space-5);
  border: 1px solid var(--blue-100);
}
.step-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.step-card__desc {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   TAX RATES — TABS
   ═══════════════════════════════════════════════════════════ */
.rates-tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: var(--space-8);
  width: fit-content;
}
.rates-tab {
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease);
  white-space: nowrap;
}
.rates-tab:hover { color: var(--navy-800); }
.rates-tab.active {
  background: var(--white);
  color: var(--navy-900);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.rates-panel { display: none; }
.rates-panel.active { display: block; }

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-6);
}

.rates-table-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.rates-table-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--slate-100);
  background: var(--slate-50);
  flex-wrap: wrap;
}
.rates-table-card__header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.rates-table-card__note {
  font-size: 12px;
  color: var(--slate-400);
  font-weight: 500;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
}
.rates-table th {
  padding: 10px var(--space-6);
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: left;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-100);
}
.rates-table td {
  padding: 12px var(--space-6);
  font-size: 14px;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}
.rates-table tr:last-child td { border-bottom: none; }
.rates-table tr:hover td { background: var(--slate-50); }
.rates-table td strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
}

.rates-note {
  padding: var(--space-4) var(--space-6);
  font-size: 12.5px;
  color: var(--slate-400);
  line-height: 1.6;
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
}

/* Band Pills */
.band-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.band-pill--zero         { background: var(--slate-100);   color: var(--slate-600); }
.band-pill--starter      { background: #fef9c3;            color: #854d0e; }
.band-pill--basic        { background: var(--blue-50);     color: var(--blue-700); }
.band-pill--intermediate { background: #e0f2fe;            color: #0369a1; }
.band-pill--higher       { background: var(--violet-100);  color: #6d28d9; }
.band-pill--advanced     { background: var(--rose-100);    color: #be123c; }
.band-pill--additional   { background: #fce7f3;            color: #9d174d; }

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 960px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration-base);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.45;
  transition: background var(--duration-fast);
}
.faq-question:hover { background: var(--slate-50); }
.faq-chevron {
  color: var(--slate-400);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform var(--duration-base) var(--ease);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  border-top: 1px solid var(--slate-100);
}
.faq-item.open .faq-answer { display: block; }
.faq-answer p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.7;
  margin-top: var(--space-4);
}
.faq-answer p:first-child { margin-top: var(--space-4); }
.faq-answer strong { color: var(--navy-800); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-900);
  color: var(--white);
  padding: var(--space-16) 0 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-16);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand { max-width: 280px; }
.footer__logo { margin-bottom: var(--space-4); }
.footer__logo .nav__logo-text { color: var(--white); }
.footer__logo .nav__logo-text strong { color: var(--blue-500); }
.footer__tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}
.footer__links {
  display: flex;
  gap: var(--space-16);
}
.footer__col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}
.footer__link {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--duration-fast);
}
.footer__link:hover { color: var(--white); }
.footer__bottom {
  padding: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.65;
  max-width: 800px;
}
.footer__disclaimer strong { color: rgba(255,255,255,0.45); font-weight: 600; }
.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .calc-card { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--slate-100); }
  .rate-cards { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: var(--space-10); }
  .footer__links { gap: var(--space-10); }
}

@media (max-width: 768px) {
  .nav__right { display: none; }
  .nav__mobile-toggle { display: flex; }
  .nav__center { display: none; }

  .hero { padding: var(--space-16) 0 var(--space-12); }
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 15px; }
  .hero__trust { gap: var(--space-2); font-size: 12px; }
  .trust-sep { display: none; }
  .trust-item { background: rgba(255,255,255,0.07); padding: 5px 10px; border-radius: var(--radius-full); }

  .calc-section { margin-top: -20px; padding: var(--space-8) 0 var(--space-12); }
  .calc-inputs { padding: var(--space-6); }
  .calc-results { padding: var(--space-6); }

  .country-grid { grid-template-columns: repeat(4, 1fr); }
  .country-card { padding: 10px 4px; }
  .country-card__flag { width: 32px; height: 22px; }
  .country-card__name { font-size: 10px; }

  .rate-cards { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .rate-card { padding: var(--space-3); }
  .rate-card__value { font-size: 16px; }

  .steps-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .step-card { padding: var(--space-6); }

  .rates-tabs { width: 100%; overflow-x: auto; }
  .rates-tab { padding: 8px 14px; font-size: 13px; }

  .faq-grid { grid-template-columns: 1fr; }

  .footer__links { flex-wrap: wrap; gap: var(--space-8); }
  .footer__top { gap: var(--space-8); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .period-toggle { gap: 1px; }
  .period-btn { font-size: 11px; padding: 6px 2px; }
  .salary-field__input { font-size: 22px; }
  .take-home-hero__amount { font-size: 36px; }
  .rate-cards { grid-template-columns: 1fr 1fr; }
  .rate-cards .rate-card:last-child { grid-column: span 2; }
  .section { padding: var(--space-12) 0; }
  .section-header { margin-bottom: var(--space-8); }
}

/* ── UTILITY ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.calc-card { animation: fadeInUp 0.5s var(--ease) both; }
