/* ==========================================================================
   PROMILLERECHNER - Modern SaaS Stylesheet 2026
   Aesthetic: Premium Fintech / Scientific Tool Platform (Stripe, Linear, Vercel)
   Theme: Light (#FFFFFF / #F8FAFC), Deep Navy (#1E3A5F), Electric Teal (#0D9488)
   Typography: Inter, system-ui fallback
   ========================================================================== */

:root {
  --primary: #0D9488;
  --primary-hover: #0F766E;
  --primary-light: #F0FDFA;
  --primary-border: #99F6E4;
  --primary-glow: rgba(13, 148, 136, 0.18);
  --primary-gradient: linear-gradient(135deg, #0D9488 0%, #0284C7 100%);
  --accent-blue: #2563EB;
  --accent-purple: #7C3AED;

  --navy: #1E3A5F;
  --navy-dark: #0F172A;
  --navy-light: #2D4A73;

  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;

  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F1F5F9;
  --bg-input: #F1F5F9;

  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-focus: #0D9488;

  --status-green: #10B981;
  --status-green-bg: #ECFDF5;
  --status-green-border: #A7F3D0;

  --status-amber: #F59E0B;
  --status-amber-bg: #FFFBEB;
  --status-amber-border: #FDE68A;

  --status-orange: #EA580C;
  --status-orange-bg: #FFF7ED;
  --status-orange-border: #FED7AA;

  --status-red: #DC2626;
  --status-red-bg: #FEF2F2;
  --status-red-border: #FECACA;

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(15, 23, 42, 0.08), 0 6px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 44px -6px rgba(15, 23, 42, 0.09), 0 10px 18px -4px rgba(15, 23, 42, 0.04);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1140px;

  /* Compatibility Aliases for Guides and Editorial Articles */
  --color-primary: var(--primary);
  --color-surface: #FFFFFF;
  --color-border: var(--border-light);
  --color-text-primary: var(--navy);
  --color-text-secondary: #475569;
  --color-bg: #F8FAFC;
  --color-teal: #0D9488;
}

.hidden {
  display: none !important;
}

.error-banner {
  margin-top: 1rem;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.error-banner:empty {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 90% 0%, rgba(13, 148, 136, 0.08) 0px, transparent 45%),
    radial-gradient(at 10% 25%, rgba(30, 58, 95, 0.05) 0px, transparent 45%),
    radial-gradient(#CBD5E1 0.75px, transparent 0.75px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
}

/* ==========================================================================
   Typography & Base Elements
   ========================================================================== */

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

/* H1: Noticeably bolder, stronger hierarchy */
h1,
.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
  color: var(--navy-dark);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.text-gradient {
  background: linear-gradient(135deg, #0D9488 0%, #2563EB 50%, #0284C7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
  color: var(--navy);
}

h3 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--navy-light);
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

p {
  margin-bottom: 1.15rem;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.68;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header & Sticky Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-icon-wrap {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 2px 5px rgba(13, 148, 136, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
}

.nav-links a {
  color: #334155;
  font-weight: 500;
  font-size: 0.90rem;
  text-decoration: none;
  padding: 0.4rem 0.2rem;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.btn-nav {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.6rem 1.25rem !important;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.3);
  transition: all 0.2s ease !important;
}

.btn-nav:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
  text-decoration: none !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding-top: 1.75rem;
  padding-bottom: 1.25rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FFFFFF;
  border: 1px solid rgba(13, 148, 136, 0.28);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.08);
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.hero-intro {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.45);
  text-decoration: none;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid var(--border-medium);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background-color: #F8FAFC;
  border-color: var(--navy-light);
  text-decoration: none;
}

.hero-metrics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin-top: 0.5rem;
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.80rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Calculator Card Component
   ========================================================================== */

.calculator-wrapper {
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.calc-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.calc-header {
  background: linear-gradient(135deg, #1E3A5F 0%, #0B192C 100%);
  color: #FFFFFF;
  padding: 1.35rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calc-header-title h2 {
  color: #FFFFFF;
  font-size: 1.35rem;
  margin: 0;
}

.calc-tag {
  background: rgba(13, 148, 136, 0.25);
  border: 1px solid rgba(13, 148, 136, 0.5);
  color: #A7F3D0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0;
}

.calc-inputs-pane {
  padding: 2.25rem;
  border-right: 1px solid var(--border-light);
  background-color: #FFFFFF;
}

.calc-results-pane {
  padding: 2.25rem;
  background: linear-gradient(180deg, #FBFDFE 0%, #F8FAFC 100%);
  display: flex;
  flex-direction: column;
}

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

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.form-label-val {
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  background-color: var(--primary-light);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border-light);
}

.segmented-option {
  position: relative;
  text-align: center;
}

.segmented-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.segmented-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.segmented-option input:checked + label {
  background-color: #FFFFFF;
  color: var(--navy);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
}

.slider-number-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-slider {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: #E2E8F0;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.4);
  cursor: pointer;
}

.number-input-wrap {
  position: relative;
  width: 105px;
}

.number-input {
  width: 100%;
  padding: 0.55rem 1.9rem 0.55rem 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  background-color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.number-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.number-input-unit {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-subtle);
  pointer-events: none;
}

.drinks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.drinks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.drink-row {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.drink-row:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.drink-row-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drink-select {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  outline: none;
  cursor: pointer;
}

.drink-select:focus {
  border-color: var(--primary);
}

.quantity-stepper {
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stepper-btn {
  width: 34px;
  height: 36px;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s;
}

.stepper-btn:hover {
  background-color: var(--bg-input);
  color: var(--primary);
}

.stepper-val {
  width: 34px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.btn-remove-drink {
  background: none;
  border: none;
  color: var(--text-subtle);
  width: 34px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.btn-remove-drink:hover {
  color: var(--status-red);
  background-color: var(--status-red-bg);
}

.custom-drink-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-medium);
}

.custom-input-wrap label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.custom-input-wrap input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background-color: #FFFFFF;
}

.calc-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FFFFFF;
  color: var(--navy);
  border: 1px solid var(--border-medium);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-input);
  border-color: var(--text-subtle);
}

.btn-outline-danger {
  color: var(--text-muted);
  border: 1px solid transparent;
  background: none;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  margin-left: auto;
  transition: all 0.15s;
}

.btn-outline-danger:hover {
  color: var(--status-red);
  background-color: var(--status-red-bg);
}

/* Results Card & Gauge */
.result-card-main {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  position: relative;
}

.result-header-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.result-value-big {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin: 0.35rem 0;
  transition: color 0.3s ease;
}

.bac-meter-wrapper {
  margin: 1.1rem 0 0.8rem;
}

.bac-meter-bar {
  height: 10px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  display: flex;
}

.meter-seg-green { width: 20%; background-color: var(--status-green); }
.meter-seg-amber { width: 13.3%; background-color: var(--status-amber); }
.meter-seg-orange { width: 40%; background-color: var(--status-orange); }
.meter-seg-red { width: 26.7%; background-color: var(--status-red); }

.bac-indicator-pointer {
  position: relative;
  height: 16px;
  margin-top: 4px;
}

.bac-needle {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid var(--navy);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bac-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-green { color: var(--status-green); }
.status-amber { color: var(--status-amber); }
.status-orange { color: var(--status-orange); }
.status-red { color: var(--status-red); }

.status-badge {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 0.6rem;
  line-height: 1.4;
  max-width: 95%;
}

.badge-green { background-color: var(--status-green-bg); color: #065F46; border: 1px solid var(--status-green-border); }
.badge-amber { background-color: var(--status-amber-bg); color: #92400E; border: 1px solid var(--status-amber-border); }
.badge-orange { background-color: var(--status-orange-bg); color: #9A3412; border: 1px solid var(--status-orange-border); }
.badge-red { background-color: var(--status-red-bg); color: #991B1B; border: 1px solid var(--status-red-border); }

.result-details-list {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.result-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

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

.detail-label { color: var(--text-muted); }
.detail-value { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.warning-box {
  background-color: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid var(--status-amber);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: auto;
}

.warning-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #D97706;
  margin-top: 2px;
}

.warning-box p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #92400E;
}

/* Trust Bar below calculator */
.calculator-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
}

.trust-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon-box svg { width: 20px; height: 20px; }
.trust-text { display: flex; flex-direction: column; }
.trust-text strong { font-size: 0.95rem; color: var(--navy); line-height: 1.3; }
.trust-text span { font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; }

/* ==========================================================================
   NEW REDESIGNED CONTENT AREA: SaaS Component System
   ========================================================================== */

.content-hub {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-bottom: 5rem;
}

/* Individual Modular Section Container */
.saas-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.saas-section-card:hover {
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: var(--shadow-lg);
}

/* Top Badge / Slash Category Header */
.section-header-wrap {
  margin-bottom: 1.75rem;
}

.section-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-category-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* AEO Lead Card (Direct Answer Highlight Component) */
.aeo-featured-card {
  background: linear-gradient(135deg, #F8FAFC 0%, #F0FDFA 100%);
  border: 1px solid var(--primary-border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.aeo-featured-card .aeo-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.aeo-featured-card p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.68;
  font-weight: 500;
  color: var(--navy-dark);
}

/* Visual Step-by-Step Workflow Cards (01, 02, 03, 04) */
.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.workflow-step-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.workflow-step-card:hover {
  background: #FFFFFF;
  border-color: var(--primary-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.step-number-pill {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--navy);
  color: #FFFFFF;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.step-icon-wrap {
  color: var(--primary);
}

.workflow-step-card h4 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.workflow-step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* 3-Pillar Feature Row */
.pillars-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pillar-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
}

.pillar-item .pillar-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-content strong {
  display: block;
  font-size: 0.94rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.pillar-content span {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Definition Callout Banner (Promille = 1 g/kg) */
.definition-hero-card {
  background: linear-gradient(135deg, #1E3A5F 0%, #0F233D 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.definition-hero-left h3 {
  color: #A7F3D0;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem 0;
}

.definition-hero-left p {
  color: #E2E8F0;
  font-size: 1.05rem;
  margin: 0;
  max-width: 550px;
}

.definition-badge-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  backdrop-filter: blur(8px);
}

.def-equation-big {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.def-equation-sub {
  font-size: 0.8rem;
  color: #94A3B8;
  display: block;
  margin-top: 0.15rem;
}

/* 3 Stats Grid Component */
.stats-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.stat-triad-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-triad-card:hover {
  background: #FFFFFF;
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-triad-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  display: block;
}

.stat-triad-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.25rem;
  display: block;
}

.stat-triad-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
  display: block;
}

/* Terminology Cards Grid (BAK, AAK, ‰) */
.terminology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.term-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-xs);
}

.term-badge {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.term-card h4 {
  font-size: 1.02rem;
  margin: 0.65rem 0 0.4rem;
}

.term-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   TECHNICAL SCIENTIFIC FORMULA COMPONENT
   ========================================================================== */

.formula-engine-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin: 2rem 0;
}

.formula-engine-header {
  background: #0F172A;
  color: #FFFFFF;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.formula-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94A3B8;
}

.formula-display-area {
  background: #090D16;
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.formula-math-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #38BDF8;
  letter-spacing: 0.02em;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Variable Breakdown Matrix */
.formula-variables-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: #F8FAFC;
}

.var-cell {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.var-symbol {
  font-family: monospace;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  background: var(--primary-light);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.var-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy);
}

.var-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Connected Calculation Steps Flow Component */
.calc-flow-wrapper {
  margin: 2.25rem 0;
}

.calc-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-flow-item {
  display: grid;
  grid-template-columns: 180px 1fr 140px;
  align-items: center;
  gap: 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.calc-flow-item:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.calc-flow-item.calc-flow-final {
  background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%);
  border: 2px solid var(--primary);
}

.flow-step-tag {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.flow-math {
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--navy);
}

.flow-res {
  font-size: 1.05rem;
  font-weight: 800;
  text-align: right;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.calc-flow-final .flow-res {
  font-size: 1.25rem;
  color: #0F766E;
}

/* Modernized Tables */
.modern-table-container {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background-color: #FFFFFF;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.styled-table th {
  background: #1E3A5F;
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.styled-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.styled-table tbody tr:nth-child(even) {
  background-color: #F8FAFC;
}

.styled-table tbody tr:hover {
  background-color: #F1F5F9;
}

/* Data Table and Hub Table Wrap Alias */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.data-table th {
  background: #1E3A5F;
  color: #FFFFFF;
  padding: 0.85rem 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
  background-color: #F8FAFC;
}

.data-table tbody tr:hover {
  background-color: #F1F5F9;
}

/* Status Pills for Tables & Results */
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.status-pill.status-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.status-pill.status-neutral {
  background-color: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.status-pill.status-warning {
  background-color: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.status-pill.status-danger {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* SVG Curve Chart responsive styling */
.abbau-curve-svg {
  width: 100%;
  height: auto;
  min-height: 220px;
  display: block;
}

/* Distinct Alert / Callout Components */
.alert-component {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.alert-component .alert-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-component h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.alert-component p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Alert Type: Scientific Note */
.alert-scientific {
  background-color: #F0FDFA;
  border: 1px solid var(--primary-border);
  border-left: 5px solid var(--primary);
}
.alert-scientific .alert-icon { color: var(--primary); }
.alert-scientific h4 { color: #0F766E; }
.alert-scientific p { color: #134E4A; }

/* Alert Type: Legal Warning */
.alert-legal {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-left: 5px solid #2563EB;
}
.alert-legal .alert-icon { color: #2563EB; }
.alert-legal h4 { color: #1E40AF; }
.alert-legal p { color: #1E3A8A; }

/* Alert Type: Safety Risk / Danger */
.alert-danger {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 5px solid var(--status-red);
}
.alert-danger .alert-icon { color: var(--status-red); }
.alert-danger h4 { color: #991B1B; }
.alert-danger p { color: #7F1D1D; }

/* Alert Type: Caution / Myth Buster */
.alert-warning {
  background-color: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 5px solid var(--status-amber);
}
.alert-warning .alert-icon { color: #D97706; }
.alert-warning h4 { color: #92400E; }
.alert-warning p { color: #78350F; }

/* 6-Card Influencing Factors Grid */
.factors-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.factor-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

.factor-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.factor-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.factor-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.factor-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.factor-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.card-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm, 8px);
  background: #F0FDFA;
  color: var(--primary, #0D9488);
  border: 1px solid var(--primary-border, #CCFBF1);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1.25rem;
  transition: all 0.2s ease;
  width: 100%;
}

.factor-card:hover .card-btn-action {
  background: var(--primary, #0D9488);
  color: #FFFFFF;
  border-color: var(--primary, #0D9488);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transform: translateY(-1px);
}

/* Debunking Myths Grid */
.myths-interactive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.myth-item-card {
  background: #FFFFFF;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.myth-item-card:hover {
  box-shadow: var(--shadow-sm);
}

.myth-cross-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FEE2E2;
  color: #DC2626;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.myth-text strong {
  display: block;
  font-size: 0.94rem;
  color: #991B1B;
  margin-bottom: 0.25rem;
}

.myth-text span {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.48;
}

/* Sanctions Ladder Component */
.sanctions-ladder-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 2rem 0;
}

.sanction-ladder-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.sanction-ladder-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.sanction-badge-col {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 1.25rem;
  border-right: 1px solid var(--border-light);
}

.sanction-badge-col span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.sanction-desc-col {
  padding: 1.25rem 1.5rem;
}

.sanction-desc-col h4 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.sanction-desc-col p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Legal Ladder Color Schemes */
.ladder-green .sanction-badge-col { background: var(--status-green-bg); color: #065F46; }
.ladder-amber .sanction-badge-col { background: var(--status-amber-bg); color: #92400E; }
.ladder-orange .sanction-badge-col { background: var(--status-orange-bg); color: #9A3412; }
.ladder-red .sanction-badge-col { background: var(--status-red-bg); color: #991B1B; }
.ladder-darkred .sanction-badge-col { background: #450A0A; color: #FECACA; }

/* Timeline Chronology Nodes (History) */
.timeline-history-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

.timeline-history-node {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border-top: 3px solid var(--navy);
  transition: all 0.2s ease;
}

.timeline-history-node:hover {
  background: #FFFFFF;
  border-top-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.node-year {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.35rem;
  display: block;
}

.timeline-history-node p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Split Comparison: Bike vs E-Scooter */
.split-vehicle-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.vehicle-card {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.vehicle-card.vehicle-warning {
  border: 2px solid var(--status-red);
  background: linear-gradient(180deg, #FFFFFF 0%, #FEF2F2 100%);
}

.vehicle-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.vehicle-card-top h4 {
  font-size: 1.05rem;
  margin: 0;
}

.vehicle-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Morning After Timeline Scenario Simulation */
.morning-timeline-visual {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.morning-timeline-visual h4 {
  color: #92400E;
  margin-bottom: 1rem;
}

.morning-time-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.morning-time-node {
  background: #FFFFFF;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  text-align: center;
}

.morning-time-node .node-time {
  font-weight: 800;
  font-size: 0.95rem;
  color: #92400E;
  display: block;
}

.morning-time-node .node-bac {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.25rem 0;
  display: block;
}

.morning-time-node .node-status {
  font-size: 0.74rem;
  font-weight: 600;
  color: #B45309;
  display: block;
}

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

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-xs);
}

.faq-item[open] {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1.025rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.4rem 1.35rem 1.4rem;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.68;
  border-top: 1px solid #F1F5F9;
  padding-top: 1rem;
}

/* EEAT Authority Box */
.eeat-box {
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eeat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.eeat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.eeat-meta h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.eeat-meta span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.eeat-sources {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.eeat-sources a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 1.25rem;
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer,
.footer-main {
  background-color: #0F172A;
  color: #94A3B8;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3,
.footer-col.brand-col .logo {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  text-decoration: none;
}

.footer-brand p,
.footer-col.brand-col .tagline {
  color: #94A3B8;
  font-size: 0.92rem;
  max-width: 320px;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.footer-col h4,
.footer-nav h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.footer-col ul,
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a,
.footer-links a {
  color: #94A3B8;
  transition: color 0.15s;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-col ul a:hover,
.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-disclaimer {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #CBD5E1;
  margin-bottom: 2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #64748B;
}

/* ==========================================================================
   Micro-animations & Transitions
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .badge-pulse {
    animation: none !important;
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .workflow-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .formula-variables-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  .factors-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculator-trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .calc-inputs-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 1.75rem;
  }
  .calc-results-pane {
    padding: 1.75rem;
  }
  .saas-section-card {
    padding: 2rem 1.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .calc-flow-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .flow-res {
    text-align: left;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {

  .workflow-steps-grid {
    grid-template-columns: 1fr;
  }

  .pillars-feature-row {
    grid-template-columns: 1fr;
  }

  .stats-triad-grid {
    grid-template-columns: 1fr;
  }

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

  .formula-variables-matrix {
    grid-template-columns: 1fr;
  }

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

  .myths-interactive-grid {
    grid-template-columns: 1fr;
  }

  .timeline-history-grid {
    grid-template-columns: 1fr;
  }

  .split-vehicle-comparison {
    grid-template-columns: 1fr;
  }

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

  .sanction-ladder-row {
    grid-template-columns: 1fr;
  }

  .sanction-badge-col {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    flex-direction: row;
    gap: 0.5rem;
  }

  .calculator-trust-bar {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 2.25rem;
    padding-bottom: 1.75rem;
  }

  h1,
  .hero-title {
    font-size: clamp(1.85rem, 5.6vw, 2.4rem);
    line-height: 1.24;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-intro {
    font-size: 1.02rem;
    line-height: 1.58;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }

  .hero-metrics {
    gap: 1rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 1.75rem;
    padding-bottom: 1.25rem;
  }

  h1,
  .hero-title {
    font-size: 1.72rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    padding: 0;
  }

  .hero-badge {
    font-size: 0.74rem;
    padding: 0.3rem 0.75rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-intro {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .metric-num {
    font-size: 1.2rem;
  }

  .metric-label {
    font-size: 0.78rem;
  }

  .slider-number-row {
    flex-direction: column;
    align-items: stretch;
  }
  .number-input-wrap {
    width: 100%;
  }
  .drink-row-main {
    flex-wrap: wrap;
  }
  .drink-select {
    width: 100%;
    flex: 100%;
  }
  .quantity-stepper {
    flex: 1;
  }
  .custom-drink-inputs {
    grid-template-columns: 1fr;
  }
  .morning-time-steps {
    grid-template-columns: 1fr;
  }
  .definition-hero-card {
    padding: 1.5rem 1.25rem;
  }
  .definition-badge-box {
    width: 100%;
  }
}

/* ==========================================================================
   GLOBAL DESIGN SYSTEM EXTENSIONS - MASTER HOMEPAGE CONSISTENCY
   ========================================================================== */

/* 1. Header Polish & Active Indicator */
.site-header {
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.nav-links a {
  position: relative;
  transition: color 0.18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-nav::after {
  display: none !important;
}

/* Mobile Slide-down Menu Styling */
@media (max-width: 1024px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12);
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 999;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
  }

  .nav-links a:hover {
    background: #F8FAFC;
  }

  .nav-links .btn-nav {
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.85rem !important;
  }
}

/* 2. Global Universal Article & Page Layout Containers */
.page-container,
.article-wrap,
.pillar-content-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4rem;
}

/* 3. Universal Rechner-CTA Banner (Homepage Aligned) */
.rechner-cta-banner,
.cta-banner {
  background: linear-gradient(135deg, #1E3A5F 0%, #0F172A 100%);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin: 2rem 0 3.5rem;
  color: #FFFFFF;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.rechner-cta-banner::before,
.cta-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.rechner-cta-content,
.cta-text {
  flex: 1 1 500px;
  position: relative;
  z-index: 1;
}

.rechner-cta-title,
.cta-text h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.rechner-cta-desc,
.cta-text p {
  color: #CBD5E1;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

.rechner-cta-btn,
.cta-btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.rechner-cta-btn:hover,
.cta-btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.6);
  color: #FFFFFF !important;
}

/* 4. Global Card Hover & Modern Glass Elevations */
.ui-component,
.pillar-card,
.editorial-card,
.converter-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ui-component:hover,
.pillar-card:hover,
.editorial-card:hover {
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: var(--shadow-lg);
}

/* 5. Direct Answer Lead Highlights (AEO / GEO Standard) */
.direct-ans,
.answer-lead-box,
.section-lead-paragraph {
  font-size: 1.05rem;
  font-weight: 500;
  color: #1E293B;
  background: linear-gradient(135deg, #F8FAFC 0%, #F0FDFA 100%);
  border: 1px solid var(--primary-border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.45rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
  box-shadow: var(--shadow-xs);
}

/* 6. Breadcrumbs Component */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.breadcrumb-nav span {
  color: var(--navy);
  font-weight: 600;
}

/* 7. Footer Grid Polish & Mobile Stacking */
.footer-main,
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main .container,
.site-footer .footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-container,
  .article-wrap,
  .pillar-content-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ui-component,
  .pillar-card,
  .rechner-cta-banner,
  .cta-banner {
    padding: 1.75rem 1.25rem;
  }
}


/* ==========================================================================
   UNIFIED CALCULATOR PLATFORM DESIGN SYSTEM (Shared across all tools)
   ========================================================================== */

.calc-card-unified {
  background: var(--bg-card, #FFFFFF);
  border-radius: var(--radius-lg, 16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  margin-bottom: 3rem;
  transition: box-shadow 0.25s ease;
}

.calc-card-unified .calc-header {
  background: linear-gradient(135deg, #1E3A5F 0%, #0B192C 100%);
  color: #FFFFFF;
  padding: 1.35rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-card-unified .calc-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calc-card-unified .calc-header-title h2 {
  color: #FFFFFF;
  font-size: 1.35rem;
  margin: 0;
  font-weight: 700;
}

.calc-card-unified .calc-tag {
  background: rgba(13, 148, 136, 0.25);
  border: 1px solid rgba(13, 148, 136, 0.5);
  color: #A7F3D0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full, 9999px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calc-unified-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0;
  background-color: #FFFFFF;
}

.calc-unified-inputs {
  padding: 2.25rem;
  border-right: 1px solid var(--border-light, #E2E8F0);
  background-color: #FFFFFF;
}

.calc-unified-results {
  padding: 2.25rem;
  background: linear-gradient(180deg, #FBFDFE 0%, #F8FAFC 100%);
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .calc-unified-grid {
    grid-template-columns: 1fr;
  }
  .calc-unified-inputs {
    border-right: none;
    border-bottom: 1px solid var(--border-light, #E2E8F0);
    padding: 1.5rem 1.25rem;
  }
  .calc-unified-results {
    padding: 1.5rem 1.25rem;
  }
  .calc-card-unified .calc-header {
    padding: 1.15rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

.unified-input-group {
  margin-bottom: 1.5rem;
}

.unified-input-group label {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--navy, #1E3A5F);
  margin-bottom: 0.5rem;
}

.unified-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.unified-input-wrapper input[type="text"],
.unified-input-wrapper input[type="number"],
.unified-input-wrapper input[type="time"],
.unified-input-wrapper select {
  width: 100%;
  height: 52px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy, #1E3A5F);
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-medium, #CBD5E1);
  border-radius: var(--radius-md, 10px);
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.unified-input-wrapper input:focus,
.unified-input-wrapper select:focus {
  outline: none;
  border-color: var(--primary, #0D9488);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.unified-unit-badge {
  position: absolute;
  right: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary, #0D9488);
  background: #F0FDFA;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs, 6px);
  pointer-events: none;
}

.btn-calc-unified {
  width: 100%;
  height: 52px;
  background: var(--primary-gradient, linear-gradient(135deg, #0D9488 0%, #0F766E 100%));
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md, 10px);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transition: all 0.2s ease;
  margin-top: 0.75rem;
}

.btn-calc-unified:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.45);
}

.unified-segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-md, 10px);
  gap: 4px;
  border: 1px solid var(--border-light, #E2E8F0);
  margin-bottom: 1.25rem;
}

.unified-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.unified-seg-btn:hover {
  color: var(--navy, #1E3A5F);
  background: rgba(255, 255, 255, 0.6);
}

.unified-seg-btn.active,
.unified-seg-btn[aria-pressed="true"] {
  background: #FFFFFF;
  color: var(--primary, #0D9488);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.unified-result-hero {
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.25rem;
}

.unified-result-hero-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #64748B);
  margin-bottom: 0.4rem;
}

.unified-result-hero-val {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--navy-dark, #0F172A);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.unified-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full, 9999px);
  margin-bottom: 0.5rem;
}

.unified-result-badge.status-danger {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #F87171;
}

.unified-result-badge.status-warning {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FBBF24;
}

.unified-result-badge.status-success {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.unified-result-badge.status-neutral {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.unified-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.unified-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.95rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.92rem;
}

.unified-metric-row .metric-title {
  color: var(--text-muted, #64748B);
  font-weight: 500;
}

.unified-metric-row .metric-value {
  font-weight: 700;
  color: var(--navy, #1E3A5F);
}

.trust-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1.5rem 0 2.25rem;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy, #1E3A5F);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light, #E2E8F0);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full, 9999px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.trust-badge-item svg {
  color: var(--primary, #0D9488);
  flex-shrink: 0;
}

.formula-highlight-card {
  background: #0F172A;
  color: #FFFFFF;
  padding: 1.5rem;
  border-radius: var(--radius-md, 12px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  margin: 1.5rem 0;
  border-left: 5px solid var(--primary, #0D9488);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.formula-highlight-math {
  color: #5EEAD4;
  font-weight: 700;
  font-size: 1.15rem;
}

/* ==========================================================================
   ENHANCED HERO COMPACTNESS & SAAS CONTENT / FAQ DESIGN SYSTEM
   ========================================================================== */

/* Tight Hero Section for Tool Pages to pull calculator above the fold */
.hero-section.hero-compact {
  padding: 1rem 0.25rem 0.5rem 0.25rem;
  text-align: center;
}

.hero-section.hero-compact .hero-badge {
  margin-bottom: 0.5rem;
}

.hero-section.hero-compact .hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
  margin-bottom: 0.45rem;
  line-height: 1.2;
}

.hero-section.hero-compact .hero-intro {
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 860px;
  margin: 0 auto 0.65rem auto;
  color: var(--text-muted, #64748B);
  padding: 0 0.5rem;
}

.hero-section.hero-compact .trust-badge-row {
  margin: 0.4rem 0 1rem 0;
  gap: 0.45rem 0.85rem;
}

.hero-section.hero-compact .trust-badge-item {
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
}

/* Premium SaaS Content Hub Section Cards matching Homepage */
.content-hub-section {
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: var(--radius-lg, 16px);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
}

.content-hub-section h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy, #1E3A5F);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.content-hub-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy, #1E3A5F);
  margin: 1.5rem 0 0.75rem 0;
}

.content-hub-section p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.68;
  margin-bottom: 1.2rem;
}

.content-hub-section p:last-child {
  margin-bottom: 0;
}

/* Featured AEO Definition Box */
.content-hub-section .direct-ans,
.content-hub-section .aeo-featured-card {
  background: linear-gradient(135deg, #F0FDFA 0%, #E6FFFA 100%);
  border: 1px solid #99F6E4;
  border-left: 4px solid var(--primary, #0D9488);
  border-radius: var(--radius-md, 12px);
  padding: 1.15rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #115E59;
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

/* Unified FAQ Design System matching Homepage */
.unified-faq-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: var(--radius-lg, 16px);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
}

.unified-faq-header {
  margin-bottom: 1.5rem;
}

.unified-faq-header .calc-badge {
  margin-bottom: 0.5rem;
  display: inline-flex;
}

.unified-faq-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy, #1E3A5F);
  margin: 0;
}

.unified-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.unified-faq-item {
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: var(--radius-md, 12px);
  background: #FFFFFF;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.unified-faq-item[open] {
  border-color: var(--primary-border, #99F6E4);
  box-shadow: 0 4px 16px -2px rgba(13, 148, 136, 0.12);
  background: #FAFDFF;
}

.unified-faq-question {
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy, #1E3A5F);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.unified-faq-question::-webkit-details-marker {
  display: none;
}

.unified-faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--primary, #0D9488);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.unified-faq-item[open] .unified-faq-chevron {
  transform: rotate(180deg);
}

.unified-faq-answer {
  padding: 0 1.35rem 1.25rem 1.35rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #334155;
  border-top: 1px solid #F1F5F9;
  padding-top: 1rem;
}

.unified-faq-answer p {
  margin: 0 0 0.75rem 0;
}
.unified-faq-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .content-hub-section,
  .unified-faq-card {
    padding: 1.5rem 1.15rem;
  }
}

/* ==========================================================================
   Editorial Guide Articles & Magazine Posts - Modern SaaS Design
   ========================================================================== */

.page-container,
.content-area {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
}

.guide-article {
  width: 100%;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-header .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
  margin: 0.75rem 0 1rem 0;
  letter-spacing: -0.025em;
}

.article-header .lead {
  font-size: 1.12rem;
  color: #475569;
  line-height: 1.68;
  max-width: 860px;
}

/* Modern Card Wrappers for Article Sections */
.guide-article section {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 16px);
  padding: 2.25rem;
  margin-bottom: 2.25rem;
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
}

.guide-article section h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

.guide-article section h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
}

.guide-article section p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.68;
}

.guide-article section ul,
.guide-article section ol {
  color: #334155;
  padding-left: 1.35rem;
  margin-bottom: 1.25rem;
  line-height: 1.68;
}

.guide-article section li {
  margin-bottom: 0.5rem;
}

/* CTA Banner in Articles */
.cta-banner {
  background: linear-gradient(135deg, #F0FDFA 0%, #E0F2FE 100%) !important;
  border: 1px solid var(--primary-border) !important;
  border-radius: var(--radius-lg, 16px) !important;
  padding: 2rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 6px 24px -6px rgba(13, 148, 136, 0.12) !important;
}

.cta-banner h2,
.cta-banner h3,
.cta-banner .cta-text h3 {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--navy, #1E3A5F) !important;
  margin-bottom: 0.45rem !important;
}

.cta-banner p,
.cta-banner .cta-text p {
  color: #475569 !important;
  opacity: 1 !important;
  margin: 0 !important;
  font-size: 0.96rem !important;
}

.cta-banner .btn-primary,
.cta-banner .cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.85rem 1.65rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: var(--radius-sm, 10px) !important;
  background: var(--primary, #0D9488) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.cta-banner .btn-primary:hover,
.cta-banner .cta-btn:hover {
  background: var(--primary-hover, #0F766E) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4) !important;
  text-decoration: none !important;
}

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

.faq-accordion details {
  background: #FFFFFF !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-md, 12px) !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.faq-accordion details[open] {
  border-color: var(--primary-border) !important;
  box-shadow: 0 4px 16px -2px rgba(13, 148, 136, 0.12) !important;
  background: #FAFDFF !important;
}

.faq-accordion summary {
  padding: 1.15rem 1.35rem !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: var(--navy) !important;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: transparent;
}

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

.faq-accordion summary::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: 0.75rem;
}

.faq-accordion details[open] summary::after {
  transform: rotate(-135deg);
}

.faq-accordion details p,
.faq-accordion details .faq-content,
.faq-accordion details .faq-answer,
.faq-accordion details div {
  padding: 0 1.35rem 1.25rem 1.35rem !important;
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
  color: #334155 !important;
  border-top: 1px solid #F1F5F9;
  padding-top: 1rem !important;
  margin: 0 !important;
}

/* Guide EEAT Box */
.guide-article .eeat-box,
.eeat-box {
  background: #F8FAFC !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-md, 12px) !important;
  padding: 1.25rem 1.5rem !important;
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
  box-shadow: none !important;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Editorial Article Layout & UI Components */
.article-wrap {
  max-width: var(--container-max, 1140px);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.guide-hero {
  background: linear-gradient(135deg, rgba(30,58,95,0.04) 0%, rgba(13,148,136,0.07) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 20px);
  padding: 2.75rem 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.guide-hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-intro {
  font-size: 1.125rem;
  color: #475569;
  max-width: 780px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.ui-component {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 20px);
  padding: 2.25rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
}

.ui-component h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.direct-ans {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0F766E;
  background: #F0FDFA;
  padding: 1.1rem 1.35rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.ja-aber-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ja-side {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 1.35rem;
}

.aber-side {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 1.35rem;
}

.side-title {
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ja-side .side-title { color: #166534; }
.aber-side .side-title { color: #991B1B; }

.side-text {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.danger-zone-box {
  border: 1px solid #FCA5A5;
  background: #FFF5F5;
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.danger-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #991B1B;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.unfall-alert {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  color: #92400E;
}

.recom-card {
  background: linear-gradient(135deg, #F0FDFA 0%, #E6FFFA 100%);
  border: 1px solid rgba(13, 148, 136, 0.35);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 4px 16px -2px rgba(13, 148, 136, 0.1);
}

.recom-card h3 {
  color: #0F766E;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.recom-card p {
  color: #134E4A;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.case-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.case-header {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
}

.case-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.case-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
}

.stepper-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.stepper-item {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.stepper-num {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  display: block;
}

.internal-links-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 20px);
  padding: 1.75rem 2rem;
  margin-top: 2.5rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.internal-links-box h4 {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 1rem;
}

.link-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-pill {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  background: #F1F5F9;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.link-pill:hover {
  background: #E6FFFA;
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Styled Modern Table Containers across all guides */
.guide-article table,
.article-wrap table,
.ui-component table,
.modern-table-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.guide-article th,
.article-wrap th,
.ui-component th,
.modern-table-container th {
  background: #F8FAFC;
  color: var(--navy);
  font-weight: 700;
  text-align: left;
  padding: 0.95rem 1.25rem;
  border-bottom: 2px solid var(--border-light);
}

.guide-article td,
.article-wrap td,
.ui-component td,
.modern-table-container td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
  vertical-align: middle;
}

.guide-article tr:last-child td,
.article-wrap tr:last-child td,
.ui-component tr:last-child td,
.modern-table-container tr:last-child td {
  border-bottom: none;
}

.guide-article tr:hover td,
.article-wrap tr:hover td,
.ui-component tr:hover td,
.modern-table-container tr:hover td {
  background: #F8FAFC;
}

@media (max-width: 768px) {
  .page-container,
  .content-area,
  .article-wrap {
    padding: 1.25rem 1rem 3rem 1rem;
  }
  .guide-article section,
  .ui-component {
    padding: 1.5rem 1.25rem;
  }
  .ja-aber-card,
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .guide-hero {
    padding: 2rem 1.25rem;
  }
}

