:root {
  /* Institutional Fintech & Auction Authority Palette */
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #94a3b8;

  /* Brand Accents: Emerald (Profit/Trust) & Amber Gold (Gavel/Premium) */
  --brand-emerald: #059669;
  --brand-emerald-dark: #047857;
  --brand-emerald-light: #d1fae5;
  --brand-gold: #d97706;
  --brand-gold-light: #fef3c7;
  --brand-blue: #1d4ed8;
  --brand-blue-light: #dbeafe;
  --brand-danger: #dc2626;
  --brand-danger-light: #fee2e2;

  --border-color: #e2e8f0;
  --border-dark: #1e293b;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(5, 150, 105, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container-max: 1240px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

ul, ol {
  padding-left: 1.25rem;
}

img, svg {
  max-width: 100%;
  vertical-align: middle;
}

code {
  word-break: break-word;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
}

.section-dark code,
.calc-results-panel code {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* Prevent Grid Blowout on Mobile */
.hero-grid > *,
.calculator-layout > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.form-row > *,
.result-kpi-grid > *,
.footer-grid > * {
  min-width: 0;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Trust Bar */
.trust-topbar {
  background: #060b14;
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.trust-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  flex-shrink: 0;
}

/* Header & Navigation */
.site-header {
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #ffffff;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.brand-logo span.tld {
  color: #10b981;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 42px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.3;
  min-height: 46px;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  min-height: 40px;
}

.btn-lg {
  padding: 0.95rem 1.65rem;
  font-size: 1.02rem;
  border-radius: var(--radius-md);
  min-height: 50px;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-dark {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline-dark:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald-dark);
  background: #f0fdf4;
}

.btn-block {
  width: 100%;
}

/* Action & Button Group Helpers */
.quick-sim-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.cta-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.url-verifier-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.url-verifier-bar .form-control {
  flex: 1 1 260px;
  font-size: 1rem;
}

.vip-alert-box {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 2rem;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.16) 0%, transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(217, 119, 6, 0.12) 0%, transparent 45%),
              linear-gradient(180deg, #0b1120 0%, #111827 100%);
  color: var(--text-on-dark);
  padding: 4rem 0 4.25rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
  color: #ffffff;
}

.hero-title .highlight {
  background: linear-gradient(90deg, #34d399 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.075rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.85rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.15rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.metric-item span {
  font-size: 0.825rem;
  color: var(--text-on-dark-muted);
  display: block;
  line-height: 1.4;
}

/* Hero Interactive Card */
.hero-card {
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Sections & Typography */
.section {
  padding: 4.25rem 0;
}

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

.section-dark {
  background: linear-gradient(180deg, #0b1120 0%, #111827 100%);
  color: var(--text-on-dark);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.75rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-emerald);
  background: var(--brand-emerald-light);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin-bottom: 0.85rem;
}

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

.section-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.section-dark .section-desc {
  color: var(--text-on-dark-muted);
}

/* Cards & Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.card-featured {
  border: 2px solid var(--brand-emerald);
  position: relative;
}

.card-badge-top {
  position: absolute;
  top: -12px;
  right: 1.25rem;
  background: var(--brand-emerald);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  background: var(--brand-emerald-light);
  color: var(--brand-emerald-dark);
  flex-shrink: 0;
}

.card-icon.gold {
  background: var(--brand-gold-light);
  color: var(--brand-gold);
}

.card-icon.blue {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

.card-icon.danger {
  background: var(--brand-danger-light);
  color: var(--brand-danger);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Regional Authority Hub Cards (High-Contrast & Legible) */
.regional-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px;
  padding: 1.35rem 1rem;
  text-align: center;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.regional-card:hover {
  transform: translateY(-4px);
  border-color: #059669 !important;
  box-shadow: 0 10px 25px -4px rgba(5, 150, 105, 0.18);
}

.regional-card .regional-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.regional-card .regional-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a !important; /* Deep dark navy for 100% legible contrast */
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.regional-card .regional-desc {
  font-size: 0.825rem;
  color: #334155 !important; /* Dark slate for high contrast */
  font-weight: 500;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.regional-card .regional-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  color: #047857 !important;
  background: #d1fae5 !important;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease;
}

.regional-card:hover .regional-badge {
  background: #059669 !important;
  color: #ffffff !important;
}

/* Calculators & Forms */
.calculator-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.calc-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.calc-results-panel {
  background: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.hero-card .form-label {
  color: #e2e8f0;
}

.form-hint,
.help-text {
  display: block;
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* 16px (1rem) font-size prevents iOS Safari auto-zoom on input focus */
.form-control,
.form-select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand-emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.result-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.result-kpi-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
}

.result-kpi-box.highlight-emerald {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.result-kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.result-kpi-value {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: #ffffff;
  display: block;
  word-break: break-word;
}

.result-kpi-box.highlight-emerald .result-kpi-value {
  color: #34d399;
}

/* KPI Cards in Results Panels */
.kpi-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.kpi-value {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: #f8fafc;
  word-break: break-word;
}

.kpi-sub {
  font-size: 0.775rem;
  color: #94a3b8;
  line-height: 1.3;
}

.text-emerald { color: #34d399 !important; }
.text-blue { color: #38bdf8 !important; }
.text-gold { color: #fbbf24 !important; }
.text-danger { color: #fca5a5 !important; }

.breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.885rem;
  color: #cbd5e1;
}

.breakdown-label {
  color: #cbd5e1;
}

.breakdown-item strong,
.breakdown-val {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Affiliate Action Boxes inside Calculators & Guides (High-Contrast WCAG AAA) */
.affiliate-cta-box {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  border-left: 4px solid #10b981 !important;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  margin-top: 1.35rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.affiliate-cta-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.affiliate-cta-box p {
  font-size: 0.9rem;
  color: #e2e8f0 !important;
  line-height: 1.55;
  margin-bottom: 0.95rem;
}

.affiliate-cta-light {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1px solid #86efac;
  border-left: 4px solid #059669;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.affiliate-cta-light h4 {
  color: #065f46 !important;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.affiliate-cta-light p {
  color: #1e293b !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Editorial Content & E-E-A-T Styling */
.editorial-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow: hidden;
}

.editorial-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  color: var(--text-primary);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-muted);
  line-height: 1.3;
}

.editorial-content h2:first-child {
  margin-top: 0;
}

.editorial-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-primary);
  margin: 1.65rem 0 0.75rem;
  line-height: 1.35;
}

.editorial-content p {
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  font-size: 1rem;
}

.editorial-content ul,
.editorial-content ol {
  margin-bottom: 1.35rem;
  color: var(--text-secondary);
}

.editorial-content li {
  margin-bottom: 0.55rem;
}

.legal-callout {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--brand-blue);
  padding: 1.15rem 1.35rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: #1e293b !important;
  line-height: 1.65;
}

.legal-callout strong {
  display: block;
  color: #0f172a !important;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.warning-callout {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid var(--brand-gold);
  padding: 1.15rem 1.35rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: #78350f !important;
  line-height: 1.65;
}

.warning-callout strong {
  display: block;
  color: #92400e !important;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

/* Tables with Smooth Touch Scrolling */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.data-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
}

.data-table th,
.data-table td {
  padding: 0.85rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.data-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--text-primary);
}

.data-table tr:hover td {
  background: #f8fafc;
}

/* Status Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.775rem;
  font-weight: 700;
  line-height: 1.3;
}

.pill-success {
  background: #d1fae5;
  color: #065f46;
}

.pill-warning {
  background: #fef3c7;
  color: #92400e;
}

.pill-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.faq-item + .faq-item {
  margin-top: 0.85rem;
}

.faq-question {
  padding: 1.1rem 1.25rem 0.45rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--brand-emerald);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0.9rem 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid var(--bg-muted);
}

.faq-question + .faq-answer {
  padding-top: 0.5rem;
  border-top: none;
}

/* Executive Bottom CTA Banner (High-Contrast WCAG AAA) */
.cta-banner {
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
  border: 1px solid #334155;
  border-left: 5px solid var(--brand-emerald);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta-banner-content {
  flex: 1 1 400px;
}

.cta-banner-title {
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cta-banner-text {
  color: #e2e8f0 !important;
  font-size: 0.975rem;
  line-height: 1.6;
  margin: 0;
}

.lead {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.audit-check {
  accent-color: var(--brand-emerald);
}

.tool-item {
  height: 100%;
}

.term-title {
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Breadcrumbs */
.breadcrumb-bar,
.breadcrumb-container {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.7rem 0;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.breadcrumb-separator {
  color: #94a3b8;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.breadcrumb-list a:hover {
  color: var(--brand-emerald);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #060b14;
  color: #94a3b8;
  padding: 3.75rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.25rem;
  margin-bottom: 2.75rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.925rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a:hover {
  color: #34d399;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
}

/* Mobile Sticky Bottom Bar (App-like Navigation on Smartphones) */
.mobile-bottom-nav {
  display: none;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ============================================================================ */

/* Tablet & Smaller Laptops (<= 1080px): Collapse 6-item Nav into Mobile Drawer */
@media (max-width: 1080px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-cta-group {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b1120;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.55);
    gap: 0.25rem;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.975rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
  }

  .nav-link:last-child {
    border-bottom: none;
    margin-top: 0.35rem;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    text-align: center;
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .calculator-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

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

  .calc-results-panel {
    position: static;
  }
}

/* Smartphones & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 72px; /* Space for mobile sticky bottom bar */
  }

  .container,
  .container-narrow {
    padding: 0 1rem;
  }

  .trust-topbar {
    padding: 0.45rem 0;
    font-size: 0.76rem;
  }

  .trust-badges {
    display: none; /* Keep topbar single-line & clean on mobile screens */
  }

  .trust-topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .header-inner {
    min-height: 62px;
  }

  .brand-logo {
    font-size: 1.25rem;
  }

  .brand-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .hero-section {
    padding: 2.25rem 0 2.5rem;
  }

  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
  }

  .hero-subtitle {
    font-size: 0.975rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics,
  .grid-2,
  .grid-3,
  .grid-4,
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-metrics {
    padding-top: 1.25rem;
    gap: 0.85rem;
  }

  .metric-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .metric-item strong {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .metric-item span {
    text-align: right;
    font-size: 0.8rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-header {
    margin-bottom: 1.85rem;
  }

  .hero-card,
  .calc-panel,
  .calc-results-panel,
  .editorial-content,
  .vip-alert-box,
  .card,
  .document-preview {
    padding: 1.25rem !important;
    border-radius: var(--radius-md);
  }

  .calc-results-panel[style*="padding: 0"] {
    padding: 0 !important;
  }

  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .cta-banner-content {
    flex: 1 1 auto;
  }

  .cta-banner .btn {
    width: 100%;
  }

  /* Responsive indents and margins inside legal document previews on mobile screens */
  #minuta-itbi-print p,
  #requerimento-print p,
  #minuta-renajud-print p,
  #notificacao-print p,
  #print-area p {
    text-indent: 1rem !important;
  }

  #minuta-itbi-print div[style*="2cm"],
  #requerimento-print div[style*="2cm"],
  #minuta-renajud-print div[style*="2cm"] {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
  }

  #minuta-itbi-print ol,
  #requerimento-print ol,
  #minuta-renajud-print ol,
  #print-area ul {
    margin-left: 1.25rem !important;
    padding-left: 0.5rem !important;
  }

  .affiliate-cta-light,
  .affiliate-cta-box,
  .legal-callout,
  .warning-callout {
    padding: 1.1rem;
  }

  .cta-button-group,
  .url-verifier-bar {
    flex-direction: column;
  }

  .cta-button-group .btn,
  .url-verifier-bar .btn {
    width: 100%;
  }

  .url-verifier-bar .form-control {
    flex: 1 1 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  /* App-like Sticky Bottom Navigation on Mobile */
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(11, 17, 32, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  }

  .mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.3rem 0.15rem;
    border-radius: 6px;
    text-align: center;
    line-height: 1.1;
  }

  .mobile-bottom-link span.mb-icon {
    font-size: 1.1rem;
    line-height: 1;
  }

  .mobile-bottom-link.active,
  .mobile-bottom-link:hover {
    color: #34d399;
  }

  .mobile-bottom-link.highlight-sell {
    color: #fbbf24;
  }
}

/* Narrow Smartphones (<= 460px) */
@media (max-width: 460px) {
  .result-kpi-grid,
  .quick-sim-actions {
    grid-template-columns: 1fr;
  }

  .breakdown-item {
    flex-direction: column;
    gap: 0.15rem;
  }
}

/* ============================================================================
   LGPD COOKIE CONSENT BANNER (Lei 13.709/2018 Compliance)
   ============================================================================ */
.lgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(11, 17, 32, 0.98);
  border-top: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideUpLGPD 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpLGPD {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.lgpd-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.lgpd-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #cbd5e1;
  flex: 1;
}

.lgpd-text a {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.lgpd-text a:hover {
  color: #10b981;
}

.lgpd-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lgpd-banner {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 0.85rem 1rem;
  }

  .lgpd-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .lgpd-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================================
   PRINT STYLES (A4 Executive Dossier & Petitions)
   ============================================================================ */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt;
    padding-bottom: 0 !important;
  }

  .trust-topbar,
  .site-header,
  .site-footer,
  .mobile-bottom-nav,
  .lgpd-banner,
  .affiliate-cta-light,
  .affiliate-cta-box,
  .btn,
  .no-print,
  #tools-search-input,
  .header-cta-group,
  .quick-sim-actions {
    display: none !important;
  }

  .card,
  .calc-panel,
  .calc-results-panel,
  .editorial-content {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .calc-results-panel,
  .result-kpi-box,
  .kpi-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #000000 !important;
  }

  .kpi-value,
  .result-kpi-value {
    color: #047857 !important;
  }

  .kpi-label,
  .kpi-sub,
  .result-kpi-label {
    color: #475569 !important;
  }

  .calculator-layout {
    display: block !important;
  }

  .calc-panel,
  .calc-results-panel {
    margin-bottom: 1.5rem !important;
  }

  a {
    text-decoration: none !important;
    color: #000000 !important;
  }
}
