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

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-blue: #eff6ff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #0f172a;
  --text-light: #94a3b8;
  --accent: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-dark: #1e40af;
  --accent-grad: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .10), 0 3px 8px rgba(0, 0, 0, .05);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06);
  --shadow-blue: 0 4px 20px rgba(29, 78, 216, .15);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1240px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography Helpers ───────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 600;
  font-family: var(--font);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, .3);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, .12);
  text-decoration: none;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  box-shadow: var(--shadow);
}

.btn-white:hover {
  background: var(--bg-alt);
  text-decoration: none;
  color: var(--accent);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.0625rem;
  border-radius: var(--radius-sm);
}

.btn-sm {
  padding: 7px 14px;
  font-size: .8375rem;
}

.btn-calc {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
  margin-top: 12px;
  border-radius: var(--radius-sm);
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.logo-image {
  height: 40px;
  width: auto;
  max-width: min(210px, 42vw);
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-alt);
  text-decoration: none;
}

.nav-cta {
  background: var(--accent-grad);
  color: #fff !important;
  padding: 8px 16px;
  box-shadow: var(--shadow-blue);
  border-radius: var(--radius-sm);
}

.nav-cta:hover {
  opacity: .9;
  background: var(--accent-grad) !important;
  text-decoration: none;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  transition: all .15s;
}

.nav-btn:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  z-index: 200;
  display: none;
  padding: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all .15s;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: background .1s;
}

.dropdown-item:hover {
  background: var(--bg-alt);
  text-decoration: none;
  color: var(--text);
}

.dropdown-icon {
  font-size: 1.125rem;
  width: 28px;
  text-align: center;
}

.dropdown-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
  transition: transform .25s ease, opacity .2s ease, width .2s ease;
  transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 99;
  backdrop-filter: blur(2px);
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 90vw);
  background: #fff;
  z-index: 100;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -4px 0 32px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}

.mobile-nav.open {
  display: flex;
  transform: translateX(0);
}

.mobile-nav-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  text-decoration: none;
  transition: background .15s;
}

.mobile-nav-item:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.mobile-nav-featured {
  font-weight: 700;
  color: var(--accent);
}

.mobile-nav-featured:hover {
  background: var(--accent-light);
}

.mobile-nav-footer {
  padding: 16px 20px;
  display: flex;
  gap: 20px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.mobile-nav-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.mobile-nav-footer a:hover {
  color: var(--text);
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 40%, #f8faff 100%);
  border-bottom: 1px solid #dde8ff;
  padding: 80px 0 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, .07) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, .06) 0%, transparent 70%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--accent);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  padding: 6px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .4
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero-title .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.hero-benefits {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(191, 219, 254, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 24px 60px rgba(37, 99, 235, .10);
  backdrop-filter: blur(10px);
}

.hero-benefits-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(239, 246, 255, .95);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-benefits-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .14);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 142px;
  padding: 20px 20px 20px 76px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(248, 250, 252, .88) 100%);
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow: var(--shadow-sm);
}

.stat::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 20px 0 0 20px;
  background: var(--stat-accent, var(--accent));
}

.stat-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stat-accent, var(--accent));
  background: color-mix(in srgb, var(--stat-accent, var(--accent)) 12%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stat-accent, var(--accent)) 24%, white);
}

.stat strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.stat span {
  display: flex;
  font-size: .92rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
}

/* ─── Sections ─────────────────────────────────────────────────────────────── */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: #0f172a;
  color: #fff;
}

.section-blue {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 100%);
  border-top: 1px solid #dde8ff;
  border-bottom: 1px solid #dde8ff;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-dark .section-title {
  color: #fff;
}

.section-dark .section-sub {
  color: #94a3b8;
}

/* ─── Category Grid ────────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  transition: all .22s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color, var(--accent));
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--cat-color, #1d4ed8) 10%, transparent);
}

.cat-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cat-desc {
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}

.cat-count {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 10%, white);
  color: var(--cat-color, var(--accent));
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 14px;
}

.cat-btn {
  align-self: flex-start;
  border-color: var(--cat-color, var(--accent));
  color: var(--cat-color, var(--accent));
}

.cat-btn:hover {
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 10%, transparent);
  color: var(--cat-color, var(--accent));
}

.category-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.category-card-sm {
  padding: 16px;
  text-align: center;
  border-radius: var(--radius-sm);
}

.category-card-sm .cat-icon {
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  margin: 0 auto 10px;
}

.category-card-sm .cat-name {}

/* ─── Calc Tabs & Category Groups ──────────────────────────────────────────── */
.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.calc-tab {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .8375rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.calc-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.calc-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.calc-category-group {
  margin-bottom: 44px;
}

.calc-category-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: .9rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.calc-category-count {
  margin-left: auto;
  max-width: 240px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.35;
  text-align: right;
}

/* ─── Calc Card Grid (Homepage) ────────────────────────────────────────────── */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.calc-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text);
  transition: all .2s;
}

.calc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.calc-card-icon {
  font-size: 1.5rem;
  border-radius: 10px;
  padding: 10px;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-card-body {
  flex: 1;
}

.calc-card-body h3 {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.calc-card-body p {
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

/* ─── Calc List → GRID (Category Pages) ────────────────────────────────────── */
.calc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.calc-list-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--text);
  transition: all .2s;
}

.calc-list-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cli-body {
  flex: 1;
}

.cli-body h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.cli-body p {
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.cli-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.cli-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .72rem;
  padding: 2px 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Trust Grid ───────────────────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.trust-item {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.trust-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.trust-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Steps (legacy) ───────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #4f46e5);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 60px;
  height: 60px;
  background: var(--accent-grad);
  color: #fff;
  border-radius: 50%;
  font-size: 1.375rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-blue);
  border: 4px solid #fff;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Import Stages Redesign ────────────────────────────────────────────────── */
.import-stages-section {
  background: linear-gradient(160deg, #f8faff 0%, #f0f4ff 100%);
}

.stages-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 auto;
}

.stage-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  color: var(--accent);
  font-size: 1.1rem;
  opacity: .35;
}

.stage-card {
  display: flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  transition: box-shadow .2s, transform .2s;
}

.stage-card:hover {
  box-shadow: 0 8px 32px rgba(29, 78, 216, .1);
  transform: translateY(-2px);
}

.stage-card--accent {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(29, 78, 216, .13);
}

.stage-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 82px;
  padding: 24px 16px;
  background: linear-gradient(160deg, #f0f4ff, #e8f0fe);
  border-right: 1px solid var(--border);
}

.stage-card--accent .stage-badge {
  background: linear-gradient(160deg, var(--accent), #4f46e5);
  border-right-color: transparent;
}

.stage-num {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent);
  line-height: 1;
}

.stage-card--accent .stage-num {
  color: rgba(255, 255, 255, .65);
}

.stage-icon {
  font-size: 1.875rem;
  line-height: 1;
}

.stage-body {
  flex: 1;
  padding: 20px 24px;
  min-width: 0;
}

.stage-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: #eef2ff;
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
}

.stage-body h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin-bottom: 7px;
  color: var(--text);
}

.stage-body p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.stage-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.stage-tools-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 2px;
  letter-spacing: .02em;
}

.stage-pill {
  display: inline-block;
  font-size: .775rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-alt);
  transition: all .15s;
  white-space: nowrap;
}

.stage-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #eef2ff;
  text-decoration: none;
}

.stage-pill--primary {
  border-color: var(--accent);
  color: var(--accent);
  background: #eef2ff;
  font-weight: 700;
}

.stage-pill--primary:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 600px) {
  .stage-card {
    flex-direction: column;
  }

  .stage-badge {
    flex-direction: row;
    min-width: auto;
    padding: 14px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
    gap: 10px;
  }

  .stage-body {
    padding: 16px 20px;
  }

  .stage-card--accent .stage-badge {
    border-bottom-color: rgba(255, 255, 255, .2);
  }
}

/* ─── Homepage Extended Content ────────────────────────────────────────────── */
.cost-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cost-breakdown-visual {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.cost-bar {
  margin-bottom: 14px;
}

.cost-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 500;
}

.cost-bar-track {
  height: 10px;
  background: var(--bg-alt);
  border-radius: 5px;
  overflow: hidden;
}

.cost-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width .6s ease;
}

.cost-text h2 {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cost-text p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.cost-text ul {
  padding-left: 0;
  list-style: none;
}

.cost-text li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9375rem;
}

.cost-text li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.import-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.import-type-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.import-type-card .iti-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.import-type-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.import-type-card p {
  font-size: .8375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.import-type-card .iti-time {
  margin-top: 12px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card span {
  color: #94a3b8;
}

/* ─── FAQ Accordion ────────────────────────────────────────────────────────── */
.faq-list {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  transition: background .1s;
}

.faq-q:hover {
  background: var(--bg-alt);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--accent);
  font-weight: 700;
  transition: transform .2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 18px 20px 18px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-a {
  display: block;
}

/* ─── CTA Banner ───────────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--accent-grad);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.cta-banner h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, .8);
  margin-bottom: 28px;
  font-size: 1.0625rem;
  position: relative;
}

.cta-banner-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-banner .btn-outline {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  background: transparent;
}

.cta-banner .btn-outline:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  transform: translateY(-1px);
}

/* ─── Info Grid (Educational) ──────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

.info-block h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.info-block p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.info-block ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-block li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-muted);
}

.info-block li strong {
  color: var(--text);
}

.check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Import Timeline v2 ────────────────────────────────────────────────────── */
.tl2-section {
  background: linear-gradient(160deg, #f8faff 0%, #f0f4ff 100%);
  padding: 72px 0 64px;
  border-top: 1px solid #dde8ff;
  border-bottom: 1px solid #dde8ff;
}

.tl2-header {
  text-align: center;
  margin-bottom: 48px;
}

.tl2-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.03em;
  margin: 8px 0 14px;
}

.tl2-sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 32px;
}

.tl2-total-bar {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-xs);
}

.tl2-total-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.tl2-bar-track {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
  background: var(--bg-alt);
}

.tl2-bar-seg {
  height: 100%;
  border-radius: 2px;
  transition: opacity .2s;
}

.tl2-bar-seg:hover {
  opacity: .75;
}

.tl2-bar-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.tl2-bar-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--text-muted);
}

.tl2-bar-legend span span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.tl2-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.tl2-arrow {
  display: none;
}

.tl2-stage {
  width: calc((100% - 40px) / 3);
}

.tl2-stage {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px 18px;
  transition: all .22s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--shadow-xs);
}

.tl2-stage:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.tl2-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: -20px;
  margin-left: -18px;
  margin-right: -18px;
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: 14px;
  border-radius: 12px 12px 0 0;
  margin-bottom: 12px;
}

.tl2-num {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 999px;
}

.tl2-icon {
  font-size: 1.6rem;
}

.tl2-days {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 2px;
}

.tl2-duration {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 10px;
}

.tl2-stage-title {
  font-size: .9375rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tl2-stage-desc {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.tl2-tip {
  font-size: .75rem;
  color: #78350f;
  background: var(--warning-bg);
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 6px 10px;
  line-height: 1.5;
}

.tl2-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .tl2-stage {
    width: 100%;
  }
}

/* ─── Process Timeline (old — kept for back-compat) ────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), #4f46e5);
}

.tl-item {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9375rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-blue);
  border: 3px solid #fff;
  z-index: 1;
}

.tl-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tl-content p {
  color: var(--text-muted);
  line-height: 1.6;
}

.tl-time {
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ─── Calculator Page Layout ───────────────────────────────────────────────── */
.calc-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 72px;
}

/* ─── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.bc-sep {
  color: var(--border-strong);
}

/* ─── Calc Article ─────────────────────────────────────────────────────────── */
.calc-header {
  margin-bottom: 28px;
}

.calc-header-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 14px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.calc-header-cat a {
  color: inherit;
  text-decoration: none;
}

.calc-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.calc-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.calc-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .8375rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.calc-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.calc-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.calc-author-name {
  color: var(--text);
  font-weight: 500;
}

.calc-author-name strong {
  font-weight: 700;
}

.calc-author-role {
  font-size: .75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.calc-meta-divider {
  width: 1px;
  height: 24px;
  background: var(--border-strong);
}

.calc-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-fact-check span {
  color: var(--success);
  font-weight: 600;
}

.calc-fact-check svg {
  color: var(--success);
}

.calc-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-xs);
}

.review-card--primary {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}

.review-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

.review-card strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--text);
}

.review-card p {

  line-height: 1.65;
  color: var(--text-muted);
}

/* ─── Calculator Widget ────────────────────────────────────────────────────── */
.calc-widget {
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: 0 0 0 6px rgba(29, 78, 216, .06), var(--shadow-blue);
}

.calc-widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dde8ff;
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: .8375rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-unit {
  font-weight: 400;
  color: var(--text-muted);
  font-size: .78rem;
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 1px 6px;
}

.field-group input,
.field-group select {
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}

.field-group input:focus,
.field-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

.field-help {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Results ──────────────────────────────────────────────────────────────── */
.calc-results {
  margin-top: 20px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius);
  padding: 20px;
}

.results-title {
  font-weight: 800;
  font-size: .8125rem;
  color: var(--success);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #d1fae5;
  font-size: .9375rem;
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--text-muted);
}

.result-value {
  font-weight: 700;
  color: var(--text);
}

.result-row.highlight {
  background: #fff;
  margin: 6px -8px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: none;
  border: 1px solid #a7f3d0;
}

.result-row.highlight .result-label {
  color: var(--text);
  font-weight: 600;
  font-size: .9375rem;
}

.result-row.highlight .result-value {
  color: var(--success);
  font-size: 1.1875rem;
}

/* ─── Markdown Content ─────────────────────────────────────────────────────── */
.calc-content {
  line-height: 1.8;
  color: var(--text);
}

.calc-content h2 {
  font-size: 1.4375rem;
  font-weight: 800;
  margin: 44px 0 16px;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  letter-spacing: -.01em;
}

.calc-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.calc-content p {
  margin-bottom: 1rem;
}

.calc-content ul,
.calc-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.calc-content li {
  margin-bottom: .4rem;
}

.calc-content strong {
  font-weight: 700;
  color: var(--text);
}

.calc-content code {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .875em;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #1e40af;
  border: 1px solid #e2e8f0;
}

.calc-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
}

.calc-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border: none;
}

.calc-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
}

.calc-content blockquote p {
  margin: 0;
  color: #1e40af;
}

.calc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calc-content th {
  background: #1e293b;
  color: #e2e8f0;
  border: none;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .03em;
}

.calc-content td {
  border: 1px solid var(--border);
  padding: 10px 16px;
  vertical-align: top;
}

.calc-content tr:nth-child(even) td {
  background: #fafbfc;
}

.calc-content a {
  color: var(--accent);
  text-decoration: underline;
}

.calc-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 36px 0;
}

/* ─── Category Tips Section ─────────────────────────────────────────────────── */
.calc-tips-section {
  margin-top: 48px;
  padding: 28px 32px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
}

.tips-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e40af;
  margin: 0 0 20px;
  border: none;
  padding: 0;
}

.tips-heading svg {
  flex-shrink: 0;
  color: #3b82f6;
}

.tips-list {
  padding-left: 1.5rem;
  margin: 0;
}

.tips-list li {
  margin-bottom: .75rem;
  line-height: 1.7;
  color: var(--text);
}

.tips-list li:last-child {
  margin-bottom: 0;
}

.tips-list strong {
  color: #1e40af;
}

/* ─── Related Calculators ──────────────────────────────────────────────────── */
.related-calcs {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 2px solid var(--border);
}

.related-calcs h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  text-decoration: none;
  color: var(--text);
  border-left: 3px solid var(--cat-color, var(--accent));
  transition: all .17s;
}

.related-card:hover {
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transform: translateX(2px);
}

.related-icon {
  font-size: 1.25rem;
}

.related-title {
  flex: 1;
  font-size: .8375rem;
  font-weight: 600;
  line-height: 1.3;
}

.related-arrow {
  color: var(--text-light);
}

/* ─── Sidebar ──────────────────────────────────────────────────────────────── */
.calc-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.sidebar-widget h3 {
  font-size: .9375rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a {
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all .1s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-nav a::before {
  content: '→';
  font-size: .75rem;
  color: var(--accent);
  transition: opacity .1s;
}

.sidebar-nav a:hover {
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}

.sidebar-nav a:hover::before {
  opacity: 1;
}

.sidebar-tip {
  background: var(--warning-bg);
  border-color: #fcd34d;
}

.tip-icon {
  font-size: 1.375rem;
  margin-bottom: 10px;
}

.sidebar-tip h4 {
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-tip p {
  font-size: .8125rem;
  color: #78350f;
  line-height: 1.55;
}

.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8375rem;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: all .1s;
}

.sidebar-cat-link:hover {
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
}

/* ─── Page Header (Category) ───────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #f0f4ff, #fff);
  border-radius: var(--radius-lg);
  border: 1px solid #dde8ff;
}

.page-header-icon {
  font-size: 2.5rem;
  padding: 16px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.page-header-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.related-cats {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 2px solid var(--border);
}

.related-cats h2 {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 52px 0 44px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand .logo {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
}

.footer-brand .logo-image {
  height: 48px;
  max-width: min(240px, 100%);
}

.footer-tagline {
  font-size: .8375rem;
  margin-top: 14px;
  color: #94a3b8;
  line-height: 1.65;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  background: #1e293b;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all .15s;
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: .8rem;
  color: #94a3b8;
  margin-bottom: 8px;
  transition: color .1s;
  line-height: 1.3;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

/* India States & Cities footer section */
.footer-region {
  border-top: 1px solid #1e293b;
  padding: 36px 0;
  background: #0a1628;
}

.footer-region-head {
  font-size: .72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-india-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-india-h4 {
  font-size: .72rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.footer-india-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px 12px;
}

.footer-india-links a {
  display: block;
  font-size: .78rem;
  color: #94a3b8;
  padding: 3px 0;
  transition: color .1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-india-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  padding: 20px 0;
  background: #080f1e;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .75rem;
  line-height: 1.6;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: .75rem;
  color: #94a3b8;
  transition: color .1s;
}

.footer-bottom-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ─── Legal Pages ──────────────────────────────────────────────────────────── */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.legal-meta {
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 36px 0 12px;
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 24px 0 8px;
}

.legal-page p,
.legal-page li {
  font-size: .9375rem;
  line-height: 1.8;
  color: #374151;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page li {
  margin-bottom: .4rem;
}

.legal-page a {
  color: var(--accent);
}

.legal-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.legal-toc h4 {
  font-size: .8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-toc ol {
  padding-left: 1.25rem;
}

.legal-toc li {
  margin-bottom: 4px;
}

.legal-highlight {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.legal-highlight p {
  margin: 0;
  font-size: .9rem;
  color: #78350f;
}

/* About Page */
.about-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
  border-bottom: 1px solid #dde8ff;
  padding: 56px 0 48px;
}

.about-hero h1 {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.about-hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
}

.metric-card strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}

.metric-card span {
  font-size: .8125rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.team-avatar {
  width: 64px;
  height: 64px;
  background: var(--accent-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
}

.team-card h4 {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card p {
  font-size: .8125rem;
  color: var(--text-muted);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Country Page ─────────────────────────────────────────────────────────── */
.country-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.country-fees-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .calc-page-layout {
    grid-template-columns: 1fr;
  }

  .calc-sidebar {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .footer-india-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .cost-breakdown {
    grid-template-columns: 1fr;
  }

  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .import-types {
    grid-template-columns: 1fr;
  }

  .country-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .main-nav .nav-link,
  .main-nav .nav-dropdown {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .logo-image {
    height: 34px;
  }

  .footer-brand .logo-image {
    height: 42px;
  }

  .hero {
    padding: 52px 0 44px;
  }

  .hero-benefits {
    padding: 16px;
    border-radius: 22px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stat {
    min-height: 0;
    padding: 18px 18px 18px 72px;
  }

  .calc-category-count {
    margin-left: 0;
    max-width: none;
    text-align: left;
  }

  .section {
    padding: 52px 0;
  }

  .calc-list {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-india-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-india-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-fields {
    grid-template-columns: 1fr;
  }

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

  .page-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .logo-image {
    height: 30px;
  }

  .footer-brand .logo {
    padding: 8px 10px;
  }

  .footer-brand .logo-image {
    height: 38px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-benefits {
    padding: 14px;
  }

  .hero-benefits-kicker {
    font-size: .68rem;
    letter-spacing: .07em;
  }

  .stat {
    padding: 18px 16px 16px 68px;
    border-radius: 18px;
  }

  .stat strong {
    font-size: .96rem;
  }

  .stat span {
    font-size: .87rem;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    left: 16px;
  }

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

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-india-links {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-banner {
    padding: 32px 24px;
  }

  .calc-widget {
    padding: 20px;
  }

  .metric-cards {
    grid-template-columns: 1fr;
  }
}