/* ============================================
   M-PESA CALCULATOR - CLEAN CSS
   Only styles matching actual HTML elements
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  color: #0b1f14;
  background: #eef5f0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

/* DESIGN TOKENS */
:root {
  /* Colors */
  --color-primary: #004526;
  --color-primary-dark: #00361e;
  --color-primary-light: #06613a;
  --color-text: #0b1f14;
  --color-text-muted: rgba(11, 31, 20, 0.75);
  --color-text-soft: rgba(11, 31, 20, 0.6);
  --color-surface: #ffffff;
  --color-surface-alt: #f1f7f3;
  --color-bg: #eef5f0;
  --color-bg-soft: #f6faf7;
  --color-border: rgba(0, 69, 38, 0.12);
  --color-border-strong: rgba(0, 69, 38, 0.32);
  --color-accent-amber: #c99137;
  --color-accent-gold: #8B6521;
  --color-danger: #d94848;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 2px 8px rgba(0, 69, 38, 0.06);
  --shadow-sm: 0 4px 12px rgba(0, 69, 38, 0.08);
  --shadow-md: 0 8px 20px rgba(0, 69, 38, 0.12);
  --shadow-lg: 0 12px 28px rgba(0, 69, 38, 0.14);
  --shadow-focus: 0 0 0 3px rgba(182, 134, 44, 0.4);

  /* Layout */
  --gutter: 1rem;
  --max-width: 1280px;
  --max-width-wide: 1440px;
  --header-height: 64px;
  --status-banner-height: 48px;

  /* Transitions */
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index */
  --z-base: 1;
  --z-sticky: 500;
  --z-fixed: 600;
  --z-modal-backdrop: 1000;
  --z-modal: 1100;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

/* Tablet adjustments */
@media (min-width: 640px) {
  :root {
    --gutter: 1.5rem;
    --header-height: 72px;
    --status-banner-height: 52px;
  }

  body {
    line-height: 1.6;
  }
}

.rate-feed .section-heading h2,
.statement-spotlight .section-heading h2 {
  font-size: 2.1rem;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--color-primary);
}

.comparison-section .section-heading h2 {
  font-size: 2.1rem;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  font-weight: 900;
  color: #ffffff;
}

.comparison-section .section-heading p {
  color: rgba(255, 255, 255, 0.9);
}

/* Desktop adjustments */
@media (min-width: 1024px) {
  :root {
    --gutter: 2rem;
    --header-height: 84px;
    --status-banner-height: 56px;
  }

  body {
    line-height: 1.65;
  }
}

/* GLOBAL UTILITIES */
::selection {
  background: rgba(0, 69, 38, 0.2);
  color: var(--color-primary-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-md);
  background: var(--color-primary);
  color: #f0fff8;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  z-index: 1300;
}

.skip-link:focus-visible {
  left: var(--space-md);
}

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

[hidden] {
  display: none !important;
}

.offline-page {
  background: var(--color-bg);
}

.offline-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--gutter);
}

.offline-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-2xl);
  max-width: 560px;
  width: 100%;
}

.offline-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-soft);
  margin-bottom: var(--space-sm);
}

.offline-card h1 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.offline-card p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.offline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.offline-actions .btn {
  text-decoration: none;
}

@media (max-width: 480px) {
  .offline-card {
    padding: var(--space-xl);
  }

  .offline-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  background: var(--color-primary);
  color: #f0fff8;
  position: relative;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  min-height: 44px;
  line-height: 1.3;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--color-accent-gold);
  box-shadow: 0 8px 16px rgba(182, 134, 44, 0.25);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  background: rgba(0, 69, 38, 0.08);
  color: var(--color-primary);
  border-color: rgba(0, 69, 38, 0.2);
}

.btn--ghost:hover {
  background: rgba(182, 134, 44, 0.12);
  border-color: rgba(182, 134, 44, 0.4);
  color: var(--color-accent-gold);
}

@media (min-width: 640px) {
  .btn {
    white-space: nowrap;
    word-break: normal;
  }
}

.icon-button {
  background: rgba(0, 69, 38, 0.08);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover {
  background: rgba(0, 69, 38, 0.12);
  transform: translateY(-1px);
}

.icon-button:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: #004526;
  backdrop-filter: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.site-header--hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.site-header__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-md) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.brand__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand__m {
  color: #fff;
  font-weight: 700;
}

.brand__calc {
  color: var(--color-accent-amber);
  font-weight: 600;
}

@media (min-width: 640px) {
  .brand__text {
    font-size: 1.5rem;
  }
}

/* Mobile: Hamburger only */
.primary-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  border: 1px solid #d6e4dc;
  background: #f5fbf7;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
}

.primary-nav__toggle:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
  box-shadow: none;
}

.primary-nav__menu,
.site-header__search,
.site-header__actions {
  display: none;
}

/* Tablet: Show search and actions */
@media (min-width: 768px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: var(--space-lg);
  }

  .site-header__search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-xs);
    min-width: 0;
  }

  .site-header__search:focus-within {
    box-shadow: var(--shadow-focus);
    border-color: var(--color-accent-gold);
  }

  .site-header__search input {
    border: none;
    background: transparent;
    padding: var(--space-xs);
    flex: 1;
    min-width: 0;
  }

.site-header__search input:focus {
  outline: none;
}

.site-header__search .btn {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.9rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  white-space: nowrap;
}

.site-header__btn--transparent {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: var(--space-xs) var(--space-lg);
  font-size: 0.95rem;
  color: #fff;
  opacity: 0.95;
  transition: opacity var(--transition-fast), border var(--transition-fast);
}

.site-header__btn--transparent:hover,
.site-header__btn--transparent:focus-visible {
  opacity: 1;
  border-color: #fff;
}
}

/* Desktop: Full navigation */
@media (min-width: 1024px) {
  .primary-nav__toggle {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: auto auto 1fr auto;
  }

  .primary-nav__menu {
    display: flex;
    align-items: center;
  }

  .primary-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .primary-nav__link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-xs) 0;
    position: relative;
  }

  .primary-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--color-accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
  }

  .primary-nav__link:hover {
    color: #fff;
  }

  .primary-nav__link:hover::after,
  .primary-nav__link:focus-visible::after {
    transform: scaleX(1);
  }

  .primary-nav__link:focus-visible {
    outline: 2px solid var(--color-accent-gold);
    outline-offset: 2px;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .primary-nav__list {
    gap: 0.5rem;
  }

  .primary-nav__link {
    font-size: 0.875rem;
    letter-spacing: -0.01em;
  }
}

/* STATUS BANNER */
.status-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--gutter);
  background: linear-gradient(135deg, #00361e 0%, #004526 50%, #06613a 100%);
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  flex-wrap: wrap;
  min-height: var(--status-banner-height);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-light);
  position: relative;
  flex-shrink: 0;
}

.status-indicator::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.status-indicator--success {
  background: #2f9e44;
}

@media (max-width: 639px) {
  .status-banner {
    display: none;
  }
}

/* RATES TICKER */
.rates-ticker {
  background: #0a4b0a;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.rates-ticker__inner {
  max-width: var(--max-width-wide);
  padding: 10px var(--gutter);
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 6px;
}

.rates-ticker__marquee {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 18px;
  overflow: hidden;
}

.rates-ticker__track {
  display: flex;
  align-items: center;
  gap: 18px;
  animation: rates-ticker-scroll 90s linear infinite;
}

.rates-ticker__content {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.rates-ticker__content > * {
  position: relative;
  padding-right: 18px;
}

.rates-ticker__content > *::after {
  content: "|";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
}

.rates-ticker__content > *:last-child::after {
  content: "";
}

.rates-ticker__timestamp {
  font-weight: 700;
  font-size: 0.9rem;
}

.rates-ticker__timestamp--static {
  flex-shrink: 0;
  padding-right: 4px;
  margin-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  background: #0a4b0a;
  z-index: 2;
}

.rates-ticker__label {
  color: var(--color-accent-amber);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.rates-ticker__item {
  font-weight: 600;
  font-size: 0.9rem;
}

@keyframes rates-ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rates-ticker__track {
    animation: none;
  }
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  inset: 0;
  top: calc(var(--header-height) + var(--status-banner-height));
  background: linear-gradient(180deg, #004526 0%, #00361e 100%);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: var(--z-modal);
  padding: var(--space-lg) var(--space-md) var(--space-2xl);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: var(--space-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow);
  z-index: var(--z-fixed);
  overflow-y: auto;
}

body[data-nav-open="true"] {
  overflow: hidden;
}

body[data-nav-open="true"] .mobile-drawer {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .mobile-drawer {
    display: none;
  }
}

.mobile-drawer__section {
  display: grid;
  gap: var(--space-sm);
}

.mobile-drawer__heading {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  font-weight: 700;
}

.mobile-drawer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer__links--stacked {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.mobile-drawer__links--stacked a {
  display: block;
  padding: 0.35rem 0;
  color: #eef5f0;
  font-weight: 600;
}

.mobile-drawer__links--stacked a:hover,
.mobile-drawer__links--stacked a:focus-visible {
  color: var(--color-accent-gold);
}

.mobile-drawer__links a {
  font-weight: 600;
  color: #f7f8f5;
  padding: var(--space-sm) 0;
  display: block;
}

.mobile-drawer__links a:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.mobile-drawer__search {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.mobile-drawer__search form {
  display: flex;
  gap: var(--space-sm);
  flex-direction: column;
}

.mobile-drawer__search input {
  flex: 1;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  min-height: 48px;
}

.mobile-drawer__search input:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-color: var(--color-accent-gold);
}

.mobile-drawer__quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.mobile-drawer__quick-actions .btn {
  background: var(--color-accent-gold);
  color: #ffffff;
  font-weight: 700;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.mobile-drawer__quick-actions .btn:hover,
.mobile-drawer__quick-actions .btn:focus-visible {
  background: #a4742a;
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.mobile-drawer__links a:hover,
.mobile-drawer__links a:focus-visible {
  color: var(--color-accent-gold);
}

.mobile-drawer__heading {
  color: #f7f8f5;
}

@media (min-width: 375px) {
  .mobile-drawer__quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links__item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7f8f5;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.social-links__item:hover,
.social-links__item:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: #8b6521;
  color: #0b1f14;
}

.social-links__item:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* SECTION HEADING */
main>section {
  padding: var(--space-2xl) var(--gutter);
}

@media (min-width: 768px) {
  main>section {
    padding: var(--space-3xl) var(--gutter);
  }
}

.section-heading {
  max-width: var(--max-width);
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--color-primary);
}

@media (min-width: 640px) {
  .section-heading h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-heading h2 {
    font-size: 2.6rem;
  }
}

.section-heading p {
  margin: var(--space-md) auto 0;
  max-width: 52ch;
  color: var(--color-text-muted);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .section-heading p {
    font-size: 1.05rem;
  }
}

.section-footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================
   HERO - M-PESA INSTANT
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  padding-top: var(--space-3xl);
  padding-bottom: 60px;
  overflow: hidden;
}

.hero--instant {
  isolation: isolate;
}

.hero__background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00361e 0%, #004526 50%, #06613a 100%);
  z-index: -2;
}

.hero__background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(100, 150, 255, 0.12), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.06), transparent 35%);
  z-index: 1;
}

.hero__header {
  position: relative;
  text-align: center;
  color: #fff;
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  z-index: 1;
}

.hero__title {
  font-size: 3.3rem;
  letter-spacing: -0.018em;
  margin: 0;
  color: #ffffff !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.05;
  font-weight: 900;
  text-shadow: none;
  text-transform: uppercase;
  display: inline-block;
  max-width: 100%;
  transform: rotate(-0.6deg) skewY(-1deg);
}

.hero__subtitle-main {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
  font-weight: 600;
}

.hero__rotate-word {
  color: var(--color-accent-amber);
  font-weight: 800;
}

.hero__subtitle {
  max-width: 900px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .hero__title {
    font-size: clamp(2rem, 10vw, 2.6rem);
    transform: rotate(-0.5deg) skewY(-0.8deg);
  }

  .hero__subtitle-main {
    font-size: 1.2rem;
  }

  .hero__subtitle {
    font-size: 0.98rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle-main {
    font-size: 1.85rem;
  }
}

.hero__wave {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 220px;
  z-index: 0;
}

.hero__wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* HERO BOARD */
.hero-board {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28), 0 10px 26px rgba(0, 0, 0, 0.14);
  padding: var(--space-xl);
  display: grid;
  gap: var(--space-lg);
  color: var(--color-text);
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-board {
    max-width: 1260px;
    padding: var(--space-2xl);
  }
}

.hero-board__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  text-align: center;
  text-decoration: underline wavy var(--color-primary);
  text-decoration-thickness: 1.25px;
  text-underline-offset: 4px;
  display: inline-block;
}

.hero-board__top {
  display: grid;
  gap: var(--space-md);
  justify-items: center;
}

.hero-board__paybill {
  width: 100%;
  display: grid;
  gap: var(--space-xs);
  justify-items: center;
  margin-top: -4px;
}

.hero-board__paybill .hero-board__subtext {
  margin: 0;
  font-weight: 700;
  text-align: center;
}

.hero-board__paybill-tariffs {
  display: grid;
  gap: var(--space-sm);
  width: 100%;
}

@media (min-width: 640px) {
  .hero-board__paybill-tariffs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.paybill-tariff-option {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-size: 0.9rem;
}

.paybill-tariff-option input {
  accent-color: var(--color-primary);
}

.paybill-tariff-option:hover,
.paybill-tariff-option:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xs);
}

.hero-board__paybill[hidden] {
  display: none;
}

.hero-board__services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  width: 100%;
}

@media (min-width: 640px) {
  .hero-board__services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-board__services {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
}

.service-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-pill span {
  font-size: 0.9rem;
}

.service-pill:hover {
  border-color: var(--color-primary);
  background: rgba(0, 69, 38, 0.06);
  transform: translateY(-1px);
}

.service-pill:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(0, 69, 38, 0.1);
  box-shadow: 0 4px 12px rgba(0, 69, 38, 0.15);
  color: var(--color-primary);
  font-weight: 700;
}

.hero-board__main {
  display: grid;
  gap: var(--space-sm);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-board__main {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.hero-board__input {
  display: grid;
  gap: var(--space-xs);
  align-self: center;
}

.hero-board__input label {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.9rem;
  display: block;
  text-align: center;
  margin-bottom: 6px;
}

.hero-board__input input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  height: 54px;
  box-sizing: border-box;
  line-height: 1.2;
}

.hero-board__input input:focus {
  outline: none;
  border-color: var(--color-border-strong);
  box-shadow: none;
}

.hero-board__input input:focus-visible {
  outline: none;
  border-color: var(--color-border-strong);
  box-shadow: none;
}

.hero-board__input input::placeholder {
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-board__submit {
  width: 100%;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 22px rgba(0, 69, 38, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  line-height: 1;
}

@media (min-width: 768px) {
  .hero-board__submit {
    width: auto;
    min-width: 180px;
  }
}

.hero-board__submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 69, 38, 0.25);
}

.hero-board__submit:active {
  transform: translateY(0);
}

.hero-board__result-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-lg);
}

.rates-verified__panels {
  margin-top: var(--space-xl);
  display: grid;
  gap: var(--space-lg);
}

.rates-table__title {
  background: #0b4425;
  color: #fff;
  font-weight: 900;
  text-align: center;
  padding: 14px 18px;
  border-radius: 18px 18px 0 0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

@media (min-width: 1024px) {
  .hero-board__result-card {
    grid-template-columns: 1fr;
  }
}

.result-card__head {
  text-align: center;
  display: grid;
  gap: var(--space-sm);
}

@media (min-width: 1024px) {
  .result-card__head {
    padding-right: var(--space-lg);
    border-right: 1px solid var(--color-border);
  }
}

.result-card__label {
  margin: 0;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.result-card__amount {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

@media (min-width: 1024px) {
  .result-card__amount {
    font-size: 2.1rem;
  }
}

.result-card__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(201, 145, 55, 0.15);
  border: 1px solid rgba(201, 145, 55, 0.3);
  color: #a67c2e;
  font-weight: 700;
  font-size: 0.75rem;
}

.result-card__list {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(1, 1fr);
}

.result-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: left;
}

.result-card__row span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-card__row strong {
  color: var(--color-primary);
  letter-spacing: -0.01em;
  font-size: 1.5rem;
  font-weight: 800;
}

.result-card__note {
  margin: 0;
  padding: 0 var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: left;
}

@media (max-width: 600px) {
  .result-card__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-card__row strong {
    font-size: 1.35rem;
  }
}

.toast-stack {
  position: fixed;
  top: calc(var(--header-height, 72px) + var(--status-banner-height, 0px) + var(--space-md));
  right: var(--space-md);
  display: grid;
  gap: var(--space-sm);
  z-index: var(--z-toast, 9999);
  pointer-events: none;
}

.toast {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
  background: #fff;
  border: 1px solid rgba(0, 104, 55, 0.2);
  box-shadow: var(--shadow-md);
  color: #0b4629;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-weight: 700;
  min-width: 240px;
  pointer-events: auto;
}

.toast--error {
  background: #fff7e6;
  border-color: #f0b429;
  color: #8a5a00;
}

.hero-board__note,
.rates-verified__note {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.hero-board__note {
  text-align: center;
}

.hero-board__note a,
.rates-verified__note a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-error {
  color: #b42318;
  font-size: 0.9rem;
  margin: var(--space-xs) 0 0;
}

/* QUICK CALC FAB - Mobile Only */
.quick-calc-fab {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.quick-calc-fab:hover {
  transform: scale(1.1);
  background: var(--color-accent-gold);
}

.quick-calc-fab:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

@media (min-width: 768px) {
  .quick-calc-fab {
    display: none;
  }
}

/* ============================================
   CALCULATOR HUB
   ============================================ */
.calculator-hub {
  background: radial-gradient(circle at top, rgba(0, 69, 38, 0.08), transparent 55%),
    linear-gradient(180deg, #f8fbf7 0%, #ffffff 100%);
  padding: var(--space-3xl) var(--gutter);
  position: relative;
  overflow: hidden;
}

.calculator-hub .section-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.calculator-hub .section-heading h2 {
  margin: 0 0 var(--space-xs);
  font-size: 2rem;
  letter-spacing: -0.018em;
  color: var(--color-primary);
  font-weight: 900;
  text-transform: uppercase;
}

.calculator-hub .section-heading p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.calculator-hub .section-heading p,
.rates-verified__header .subline,
.comparison-heading__tagline,
.rate-feed .section-heading p,
.rate-feed__link,
.faq-section .section-heading p {
  display: inline-block;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 69, 38, 0.08);
}

.rate-feed__link {
  margin: var(--space-xs) auto 0;
}

@media (max-width: 720px) {
  .calculator-hub .section-heading p,
  .rates-verified__header .subline,
  .comparison-heading__tagline,
  .rate-feed .section-heading p,
  .rate-feed__link,
  .faq-section .section-heading p {
    padding: 6px 12px;
  }
}

.calculator-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .calculator-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .calculator-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .calculator-hub__card {
    text-align: center;
    justify-items: center;
  }

  .calculator-hub__head {
    justify-content: center;
    text-align: center;
  }
}

.calculator-hub__card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf7 100%);
  border-radius: 16px;
  padding: var(--space-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 69, 38, 0.12);
  display: grid;
  gap: var(--space-md);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.calculator-hub__card:hover,
.calculator-hub__card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 69, 38, 0.16);
  border-color: rgba(0, 69, 38, 0.2);
}

.calculator-hub__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.calculator-hub__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 69, 38, 0.08);
  color: var(--color-primary);
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.calculator-hub__card:hover .calculator-hub__icon,
.calculator-hub__card:focus-within .calculator-hub__icon {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

.calculator-hub__card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-primary);
  flex: 1;
}

.calculator-hub__card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.calculator-hub__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 69, 38, 0.12);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.calculator-hub__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.calculator-hub__link:hover,
.calculator-hub__link:focus-visible {
  text-decoration: underline;
}

/* ============================================
   LIVE M-PESA RATES 2026 - COMPLETE
   ============================================ */
.rates-verified {
  background: #f5faf6;
  padding: var(--space-3xl) var(--gutter);
}

.rates-verified .container {
  max-width: var(--max-width);
}

.rates-verified__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.rates-verified__header h2 {
  margin: 2px 0 6px;
  font-size: 1.85rem;
  letter-spacing: -0.012em;
  color: var(--color-primary);
  font-weight: 900;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .rates-verified__header h2 {
    font-size: 2.1rem;
  }
}

.rates-verified__header .subline {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  font-weight: 600;
  max-width: 36rem;
}

.rates-verified__meta--badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 69, 38, 0.12);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0;
}

.rates-verified__body {
  background: #ffffff;
  border: 1px solid rgba(0, 69, 38, 0.12);
  border-radius: 22px;
  padding: var(--space-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

@media (max-width: 720px) {
  .rates-verified__body {
    padding: var(--space-md);
    border-radius: 18px;
  }
}

/* Tab Navigation */
.rates-verified__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
  padding: 6px;
  margin: 0 auto var(--space-lg);
  width: 100%;
  background: rgba(0, 69, 38, 0.08);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 69, 38, 0.08);
}

@media (min-width: 900px) {
  .rates-verified__nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.rates-tab {
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: none;
}

.rates-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 69, 38, 0.18);
}

.rates-tab.is-active {
  background: #ffffff;
  border-color: rgba(0, 69, 38, 0.18);
  color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.rates-tab:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

/* Panels Container */
.rates-verified__panels {
  position: relative;
  min-height: 400px;
}

.rates-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Rate Table - Desktop */
.rates-table {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 69, 38, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border-collapse: collapse;
}

.rates-table caption {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
  text-align: center;
}

.rates-table th,
.rates-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 69, 38, 0.12);
}

.rates-table thead {
  background: #0b4425;
  color: #fff;
}

.rates-table thead th {
  background: #0b4425;
  color: #fff;
}

.rates-table thead tr:first-child th {
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
  padding: 14px 16px;
  border: none;
}

.rates-table thead th {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  text-align: left;
}

.rates-table thead th:last-child {
  text-align: right;
}

.rates-table tbody tr {
  border-bottom: 1px solid rgba(0, 69, 38, 0.08);
}

.rates-table tbody tr:nth-child(odd) {
  background: #f9fbf9;
}

.rates-table tbody tr:hover {
  background: #eef6ef;
}

.rates-table tbody tr:last-child {
  border-bottom: none;
}

.rates-table tbody td {
  padding: 14px 18px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.rates-table tbody td:last-child {
  text-align: right;
  color: var(--color-primary);
  font-weight: 700;
}

/* Loading State */
.rates-table tbody td[colspan] {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-muted);
  font-style: italic;
}

/* Mobile Responsive - 2 Column Card Layout */
@media (max-width: 720px) {
  .rates-verified__header h2 {
    font-size: 1.6rem;
  }

  .rates-verified__header .subline {
    font-size: 0.95rem;
  }

  .rates-verified__nav {
    max-width: 100%;
    gap: 8px;
  }

  .rates-tab {
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  .rates-table {
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .rates-table caption {
    display: block;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    text-align: center;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 69, 38, 0.15);
    font-size: 1rem;
    padding: var(--space-md);
  }

  .rates-table thead {
    display: none;
  }

  .rates-table tbody {
    display: grid;
    gap: var(--space-md);
  }

  /* Each row becomes a card with 2 columns */
  .rates-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 69, 38, 0.08);
    padding: var(--space-md);
    gap: var(--space-xs) var(--space-md);
    margin-bottom: 0;
  }

  /* Remove default td styling */
  .rates-table tbody td {
    padding: 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* First cell - Amount label and value */
  .rates-table tbody td:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
    text-align: left;
  }

  .rates-table tbody td:first-child::before {
    content: "Amount";
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
  }

  .rates-table tbody td:first-child {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
  }

  /* Second cell - Charge label and value */
  .rates-table tbody td:last-child {
    grid-column: 2;
    grid-row: 1 / 3;
    text-align: right;
  }

  .rates-table tbody td:last-child::before {
    content: "Charge";
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
  }

  .rates-table tbody td:last-child {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-primary);
  }

  /* Loading State - Mobile */
  .rates-table tbody tr:has(td[colspan]) {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .rates-table tbody td[colspan] {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-muted);
    font-style: italic;
  }

  .rates-table tbody td[colspan]::before {
    display: none;
  }
}

.rates-verified__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--space-sm);
  width: 100%;
  margin-top: var(--space-md);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.rates-verified__note,
.rates-verified__meta {
  margin: 0;
}

.rates-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 69, 38, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.95rem;
}

.rates-verified__meta {
  font-weight: 700;
  color: var(--color-text-soft);
}

.rates-verified__meta.rates-verified__meta--badge {
  color: var(--color-primary);
}

.rates-table {
  table-layout: fixed;
}

.rates-table thead tr:first-child th:first-child {
  text-align: left;
}

.rates-table thead tr:first-child th:last-child {
  text-align: right;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-section {
  background: linear-gradient(135deg, #00361e 0%, #004526 50%, #06613a 100%);
  padding: var(--space-3xl) 0;
}

.comparison-section .section-heading h2 {
  color: #ffffff;
}

.comparison-section .section-heading p {
  color: rgba(255, 255, 255, 0.9);
}

.comparison-section .comparison-heading__tagline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  margin: 0 auto;
}

.comparison-section .comparison-heading__tagline--secondary {
  margin-top: var(--space-sm);
  background: rgba(255, 255, 255, 0.12);
}

.comparison__filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.comparison__filters button {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 69, 38, 0.18);
  background: #fff;
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 140px;
}

.comparison__filters button[aria-selected="true"] {
  background: #fff;
  color: var(--color-primary);
  border-color: rgba(0, 69, 38, 0.24);
  box-shadow: 0 8px 24px rgba(0, 69, 38, 0.18);
}

.comparison__filters button:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-lg);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 69, 38, 0.12);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  border-bottom: 1px solid rgba(0, 69, 38, 0.12);
}

.comparison-table thead th {
  background: var(--color-primary);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.comparison-table thead th.comparison-table__head--mpesa {
  background: #0b4425;
}

.comparison-table thead th.comparison-table__head--airtel {
  background: #b12a2a;
}

.comparison-table tbody tr:nth-child(2n) {
  background: rgba(0, 69, 38, 0.04);
}

.comparison-table tbody tr:hover {
  background: rgba(0, 69, 38, 0.08);
}

.comparison__winner {
  font-weight: 800;
}

.comparison__winner--mpesa {
  color: var(--color-primary);
}

.comparison__winner--airtel {
  color: #b12a2a;
}

.comparison__tick {
  font-weight: 900;
}

.comparison__cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.comparison__tick--mpesa {
  color: #0b4425;
}

.comparison__tick--airtel {
  color: #b12a2a;
}

.comparison__note-icon {
  color: var(--color-accent-gold);
  font-weight: 900;
}

.comparison__footnote {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-md);
}

.comparison__footnote p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--color-text);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 69, 38, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  margin: 0;
}

@media (max-width: 720px) {
  .comparison__footnote {
    font-size: 0.82rem;
  }
}

/* Mobile card layout for comparison (match Live Rates feel) */
@media (max-width: 720px) {
  .comparison__filters {
    flex-direction: column;
    align-items: center;
  }

  .comparison-table-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 var(--gutter);
  }

  .comparison-table {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 14px;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody {
    display: grid;
    gap: var(--space-md);
  }

  .comparison-table tr {
    display: block;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  .comparison-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 69, 38, 0.08);
    font-weight: 600;
  }

  .comparison-table td:first-child {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-weight: 800;
    color: var(--color-primary);
    border-bottom: 1px solid rgba(0, 69, 38, 0.12);
  }

  .comparison-table td:last-child {
    border-bottom: none;
  }

  .comparison-table td:nth-child(1)::before {
    content: "Amount (KES)";
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    text-align: center;
  }

  .comparison-table td:nth-child(2)::before {
    content: "M-PESA";
  }

  .comparison-table td:nth-child(3)::before {
    content: "Airtel Money";
  }

  .comparison-table td:nth-child(4)::before {
    content: "Cheapest";
  }

  .comparison-table td:nth-child(2)::before,
  .comparison-table td:nth-child(3)::before,
  .comparison-table td:nth-child(4)::before {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    min-width: 0;
  }

  .comparison-table td:nth-child(2),
  .comparison-table td:nth-child(3),
  .comparison-table td:nth-child(4) {
    font-weight: 700;
    color: var(--color-text);
  }

  .comparison__winner {
    font-weight: 800;
  }
}

/* ============================================
   STATEMENT SPOTLIGHT
   ============================================ */
.statement-spotlight {
  background: linear-gradient(180deg, #edf6f0 0%, #f8fbf7 100%);
  padding: var(--space-3xl) var(--gutter);
}

.statement-spotlight .container {
  max-width: var(--max-width-wide);
}

.statement-spotlight__card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 69, 38, 0.12);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .statement-spotlight__card {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.statement-spotlight__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.statement-spotlight .section-heading {
  margin-bottom: 0;
}

.statement-spotlight .section-heading h2 {
  margin: 0 0 0.35em;
  font-size: 2rem;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  font-weight: 800;
  text-transform: none;
}

.statement-spotlight .section-heading p {
  margin: 0;
  color: #234;
}

.statement-spotlight .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 69, 38, 0.12);
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.statement-spotlight__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: var(--space-md) 0;
  justify-content: center;
}

.statement-spotlight__divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 69, 38, 0.12);
}

.statement-spotlight__stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: var(--space-md);
}

.stat-chip {
  background: #f6fbf7;
  border: 1px solid rgba(0, 69, 38, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
  text-align: center;
}

.stat-chip span {
  display: block;
  font-size: 0.9rem;
  color: #3b4a42;
  margin-bottom: 6px;
}

.stat-chip strong {
  display: block;
  font-size: 1.1rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.stat-chip.pwa-platform img {
  height: 42px;
  width: auto;
  filter: brightness(1.15) saturate(1.2);
}

.pwa-cta__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.statement-spotlight__media {
  width: 100%;
  display: flex;
  justify-content: center;
}

.statement-spotlight__media img {
  width: 100%;
  max-width: 760px;
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 69, 38, 0.1);
  background: #f7fbf9;
  transform: translateY(2px);
}

.pwa-cta__media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.pwa-cta__media::before {
  content: "";
  position: absolute;
  right: 8%;
  top: 10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
  filter: blur(2px);
  pointer-events: none;
}

.pwa-cta__media img {
  width: 100%;
  max-width: 520px;
  display: block;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translateY(0);
  position: relative;
}

.pwa-cta__media::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6px;
  height: 140px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.4) 100%);
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
}

.link-inline {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-inline:hover {
  color: var(--color-accent-gold);
}

/* ============================================
   RATE FEED
   ============================================ */
.rate-feed {
  background: #f3f9f4;
  padding: var(--space-3xl) var(--gutter);
}

.rate-feed__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .rate-feed__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rate-feed__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feed-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(0, 69, 38, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.14);
  border-color: rgba(0, 69, 38, 0.28);
}

.feed-card__media {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f1f7f3;
}

.feed-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.feed-card__date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0;
}

.feed-card__tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 69, 38, 0.12);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.feed-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
}

.feed-card__excerpt {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
  flex: 1;
  line-height: 1.55;
}

.feed-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-primary);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.feed-card__cta:hover {
  color: var(--color-accent-gold);
}

.rate-feed__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-primary);
  font-weight: 700;
  margin-top: var(--space-xs);
}

.rate-feed__link:hover {
  color: var(--color-accent-gold);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  background: #f5faf6;
  padding: var(--space-3xl) var(--gutter);
}

.faq__list {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-md);
}

.faq-item h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
}

.faq-body {
  padding: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.09);
  display: grid;
  gap: var(--space-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.faq-item+.faq-item {
  margin-top: var(--space-md);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 69, 38, 0.18);
}

@media (max-width: 640px) {
  .faq-section {
    padding: var(--space-2xl) var(--gutter);
  }

  .faq-item {
    padding: var(--space-md);
  }
}

.faq-toggle {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 69, 38, 0.08);
  color: var(--color-primary);
  font-weight: 900;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.faq-toggle[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: rgba(0, 69, 38, 0.14);
}

.faq-body[hidden] {
  display: none;
}

.faq-body {
  display: grid;
  gap: 8px;
}

/* ============================================
   PWA CTA
   ============================================ */
.pwa-cta {
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(135deg, #002a1a 0%, #00381f 45%, #072c4a 100%);
  padding: clamp(56px, 7vw, 92px) var(--gutter);
  color: #fff;
}

.pwa-cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-lg), 3vw, var(--space-xl));
  align-items: center;
}

@media (min-width: 960px) {
  .pwa-cta__grid {
    grid-template-columns: 1.1fr 0.9fr;
    column-gap: clamp(var(--space-xl), 4vw, var(--space-2xl));
  }
}

.pwa-cta__content {
  max-width: 640px;
  display: grid;
  gap: var(--space-lg);
  justify-items: start;
}

.pwa-cta h2 {
  color: #fff;
  font-size: 2.1rem;
  letter-spacing: -0.012em;
  margin: 0;
  text-transform: uppercase;
  font-weight: 900;
}

.pwa-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin: 0;
}

.pwa-cta__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.pwa-cta__actions button,
.pwa-cta__actions .link-button {
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 0.95rem;
}

.pwa-cta__actions button {
  background: #fff;
  color: var(--color-primary);
  border: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.pwa-cta__actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.pwa-cta__actions .link-button {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.pwa-cta__actions .link-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.pwa-cta__platforms {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.pwa-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.pwa-platform span {
  font-size: 2rem;
}

.pwa-platform p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 720px) {
  .pwa-cta__content {
    justify-items: center;
    text-align: center;
  }

  .pwa-cta__actions {
    justify-content: center;
  }

  .pwa-cta__media {
    justify-content: center;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #0b1f14;
  color: #dce9df;
  padding: var(--space-2xl) var(--gutter) var(--space-xl);
}

@media (min-width: 640px) {
  .site-footer {
    padding: var(--space-3xl) var(--gutter) var(--space-2xl);
  }
}

.footer__brand-row {
  max-width: var(--max-width);
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.footer__main {
  max-width: var(--max-width);
  margin: 0 auto var(--space-xl);
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer__main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer__main {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__column {
  display: grid;
  gap: var(--space-md);
  align-content: start;
}

.footer__heading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

@media (min-width: 640px) {
  .footer__heading {
    font-size: 1.05rem;
  }
}

.footer__about {
  color: rgba(220, 233, 223, 0.9);
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.footer__link {
  color: rgba(220, 233, 223, 0.8);
  transition: color var(--transition-fast);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer__link:hover {
  color: var(--color-accent-gold);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-gold);
  text-underline-offset: 3px;
}

.footer__link:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-footer__legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(220, 233, 223, 0.2);
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.85rem;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__legal {
    font-size: 0.9rem;
    gap: var(--space-lg);
  }
}

.site-footer__legal a {
  color: rgba(220, 233, 223, 0.8);
  transition: color var(--transition-fast);
}

.site-footer__legal a:hover {
  color: var(--color-accent-gold);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-gold);
}

.site-footer__legal a:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(220, 233, 223, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer__copyright {
  color: rgba(220, 233, 223, 0.7);
  font-size: 0.9rem;
}

.footer__note {
  color: rgba(220, 233, 223, 0.7);
  font-size: 0.9rem;
}

.site-footer__preferences {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
}

.site-footer__preferences .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  padding: var(--space-xs) var(--space-md);
}

.site-footer__preferences .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  right: var(--space-md);
  bottom: calc(var(--space-md) + 72px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--color-accent-gold);
}

.back-to-top:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

@media (min-width: 768px) {
  .back-to-top {
    bottom: var(--space-md);
  }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
}

@media (min-width: 640px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    right: auto;
  }
}

.cookie-banner__content p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner__content a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}


/* ============================================
   FOCUS VISIBLE
   ============================================ */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent-gold);
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--color-surface);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero::before,
  .hero::after {
    display: none;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

  .site-header,
  .mobile-drawer,
  .quick-calc-fab,
  .back-to-top,
  .cookie-banner,
  .command-palette,
  .status-banner,
  .pwa-cta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================
   404 PAGE
   ============================================ */
.not-found-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #f7fbf8 0%, #eff6f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.not-found {
  width: min(720px, 100%);
}

.not-found__card {
  background: #ffffff;
  border: 1px solid rgba(0, 69, 38, 0.12);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 69, 38, 0.08);
  text-align: center;
}

.not-found__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 69, 38, 0.1);
  color: #004526;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.not-found__card h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 12px;
  color: #0b2f1f;
}

.not-found__card p {
  color: #4b5b52;
  font-size: 16px;
  margin-bottom: 28px;
}

.not-found__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.not-found__quick {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.not-found__quick a {
  color: #0b4425;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4faf6;
  border: 1px solid rgba(0, 69, 38, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.not-found__quick a:hover,
.not-found__quick a:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 69, 38, 0.12);
}

@media (max-width: 600px) {
  .not-found__card {
    padding: 28px 20px;
  }
}

/* ============================================
   Charges Guide Shared Layout
   ============================================ */

.charges-article-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-md);
}

.charges-layout {
  display: grid;
  grid-template-columns: 220px minmax(740px, 1fr) 240px;
  gap: var(--space-lg);
  align-items: start;
}

.charges-article {
  background: #fff;
  border: 1px solid rgba(0, 69, 38, 0.08);
  border-radius: 18px;
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
  line-height: 1.7;
}

.charges-toc {
  position: sticky;
  top: 120px;
  align-self: start;
}

.toc-card {
  background: #fff;
  border: 1px solid rgba(0, 69, 38, 0.1);
  border-radius: 14px;
  padding: var(--space-lg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.toc-card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.toc-card ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.toc-card a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 69, 38, 0.08);
  transition: color var(--transition-fast), border-color var(--transition-fast), padding-left var(--transition-fast);
}

.toc-card a:hover {
  color: var(--color-primary);
  border-bottom-color: rgba(0, 69, 38, 0.2);
  padding-left: 4px;
}

.charges-popular {
  position: sticky;
  top: 120px;
  align-self: start;
}

.popular-card {
  background: #fff;
  border: 1px solid rgba(0, 69, 38, 0.1);
  border-radius: 14px;
  padding: var(--space-lg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.popular-card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.popular-list {
  display: grid;
  gap: 10px;
}

.popular-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 69, 38, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text);
  background: #f9fbf9;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.popular-item:hover {
  border-color: rgba(0, 69, 38, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.popular-title {
  display: block;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.popular-meta {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.charges-layout,
.charges-article,
.charges-toc,
.charges-popular {
  min-width: 0;
}

.charges-article h1 {
  margin: 0 0 var(--space-xl);
  font-size: 2.2rem;
  color: var(--color-primary);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
}

.charges-article h2 {
  margin: var(--space-2xl) 0 var(--space-lg);
  font-size: 1.6rem;
  color: var(--color-primary);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid rgba(0, 69, 38, 0.15);
}

.charges-article h2:first-of-type {
  margin-top: var(--space-xl);
}

.charges-article h3 {
  margin: var(--space-xl) 0 var(--space-md);
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.charges-article p {
  margin: 0 0 var(--space-lg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
}

.charges-article p:last-child {
  margin-bottom: 0;
}

.charges-article strong {
  font-weight: 800;
  color: var(--color-primary);
}

.charges-article em {
  font-style: italic;
  color: var(--color-text);
}

@media (max-width: 1150px) {
  .charges-layout {
    grid-template-columns: 1fr 260px;
  }

  .charges-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .charges-layout {
    grid-template-columns: 1fr;
  }

  .charges-popular {
    position: relative;
    top: unset;
  }
}

/* ============================================
   END OF CSS
   ============================================ */
