/* ============================================
   Net PAY KENYA - MOBILE-FIRST CSS
   Version: 2.0 - Complete Rebuild
   All 60+ issues resolved
   ============================================ */

/* 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-primary-glow: rgba(0, 69, 38, 0.18);
  --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-surface-elevated: #fdfefc;
  --color-bg: #eef5f0;
  --color-bg-soft: #f6faf7;
  --color-overlay: rgba(0, 69, 38, 0.08);
  --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-accent-blue: #2684ff;
  --color-danger: #d94848;

  /* Spacing Scale */
  --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: 1200px;
  --max-width-wide: 1320px;
  --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 Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 600;
  --z-modal-backdrop: 1000;
  --z-modal: 1100;
  --z-popover: 1200;
  --z-toast: 1300;

  /* Touch Targets & Icons */
  --touch-target: 44px;
  --icon-size: 44px;
  --icon-size-sm: 36px;
  --icon-size-xs: 24px;
}

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

  body {
    line-height: 1.6;
  }
}

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

  body {
    line-height: 1.65;
  }
}

/* Large screen adjustments */
@media (min-width: 1440px) {
  :root {
    --gutter: 2.5rem;
    --max-width-wide: 1600px;
  }
}

/* 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: var(--z-toast);
}

.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;
}

/* BUTTONS - Mobile First */
.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);
}

.btn--block {
  width: 100%;
}

/* Desktop: Single line buttons */
@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);
}

/* TAGS & CHIPS */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem var(--space-sm);
  border-radius: var(--radius-pill);
  background: rgba(0, 69, 38, 0.15);
  color: var(--color-primary);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.tag--update {
  background: rgba(201, 145, 55, 0.2);
  color: #a86b1f;
}

.chip {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.chip:hover,
.chip.is-active,
.chip[aria-selected="true"] {
  color: var(--color-primary);
  background: rgba(0, 69, 38, 0.12);
  border-color: rgba(0, 69, 38, 0.25);
}

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

/* HEADER - Mobile First */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(245, 250, 246, 0.95);
  border-bottom: 1px solid rgba(0, 69, 38, 0.08);
  box-shadow: var(--shadow-xs);
}

.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);
}

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

.brand__logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* Text-based brand logo */
.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__net {
  color: var(--color-primary);
  font-weight: 600;
}

.brand__paye {
  color: var(--color-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand__kenya {
  color: var(--color-accent-gold);
  font-weight: 500;
}

@media (min-width: 640px) {
  .brand__logo {
    height: 32px;
  }

  .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 var(--color-border);
  background: var(--color-surface);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

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

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

/* Tablet: Show search and login */
@media (min-width: 768px) {
  .site-header__inner {
    display: grid;
    /* Four columns at tablet: Brand | Menu toggle | Search (flex) | Actions */
    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);
  }

  .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;
  }
}

/* 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: var(--color-text-soft);
    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: var(--color-accent-gold);
  }

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

  .primary-nav__link:focus-visible {
    outline: none;
  }
}

/* Tablet adjustment: Tighter spacing for navigation */
@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, rgba(0, 69, 38, 0.12), rgba(0, 69, 38, 0.06));
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  flex-wrap: wrap;
  min-height: var(--status-banner-height);
}

.notification-bar__content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.notification-bar__link {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.notification-bar__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: var(--space-sm);
  margin: calc(var(--space-sm) * -1);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.notification-bar__close:hover {
  background: rgba(0, 69, 38, 0.08);
}

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

.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(0, 69, 38, 0.15);
}

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

/* Hide status banner on mobile */
@media (max-width: 639px) {
  .status-banner {
    display: none;
  }
}

.notification-bar__cta {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-bar__cta:hover {
  background: var(--color-primary-dark, #003319);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 69, 38, 0.2);
}

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

.notification-bar__cta:active {
  transform: translateY(0);
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  inset: 0;
  top: calc(var(--header-height) + var(--status-banner-height));
  background: rgba(239, 247, 242, 0.98);
  padding: var(--space-lg) var(--gutter);
  padding-bottom: max(var(--space-2xl), env(safe-area-inset-bottom));
  display: grid;
  align-content: start;
  gap: var(--space-lg);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  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);
}

.mobile-drawer--open {
  transform: translateX(0);
}

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

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

.mobile-drawer__heading {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  font-weight: 600;
}

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

.mobile-drawer__links a {
  font-weight: 600;
  color: var(--color-text);
  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.95);
  box-shadow: var(--shadow-sm);
}

/* Hide account section in drawer (mobile: desktop-only login) */
.mobile-drawer__actions {
  display: none !important
}

/* Normalize any lists inside drawer and style rows */
.mobile-drawer [role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer [role="list"] a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 600;
  border: 1px solid transparent;
}

.mobile-drawer [role="list"] a:hover,
.mobile-drawer [role="list"] a:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(182, 134, 44, 0.45);
  outline: none;
}

.mobile-drawer__section {
  gap: var(--space-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);
}

@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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 700;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.social-links__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.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);
  }
}

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

.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;
  }
}

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

.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 - Mobile First */
.hero {
  position: relative;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  display: grid;
  gap: var(--space-xl);
  isolation: isolate;
}

/* Prevent tiny horizontal scroll caused by decorative blobs */
@media (max-width: 400px) {
  .hero {
    overflow-x: clip;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: var(--space-3xl);
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.hero h1 {
  font-size: 1.875rem;
  margin: 0 0 var(--space-md);
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.25rem;
  }
}

@media (min-width: 1440px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.h1-rotate {
  color: var(--color-accent-gold);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero__description {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0 0 var(--space-lg);
  line-height: 1.6;
}

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

.hero__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  justify-content: center;
  width: 100%;
}

.hero__search-hint {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  max-width: 32rem;
  margin: 0 auto var(--space-lg);
  line-height: 1.5;
}

.hero__command {
  font-weight: 700;
  background: rgba(0, 69, 38, 0.12);
  color: var(--color-primary);
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
}

.hero__kpis {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  width: 100%;
}

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

.hero-kpi {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-xs);
}

.hero-kpi__icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(0, 69, 38, 0.08);
  color: var(--color-accent-gold);
  font-size: 1.1rem;
}

.hero-kpi span+h3 {
  margin-top: var(--space-sm);
}

.hero-kpi h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-primary);
}

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

.hero-kpi p {
  margin: var(--space-xs) 0 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-kpi {
  position: relative;
  padding-top: var(--space-lg);
}

.hero-kpi h3 {
  margin: var(--space-sm) 0 0;
}

/* Subtle background accents - reduced on mobile */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: 200px;
  height: 200px;
  background: rgba(0, 69, 38, 0.2);
  top: -10%;
  right: 5%;
}

.hero::after {
  width: 180px;
  height: 180px;
  background: rgba(201, 145, 55, 0.15);
  bottom: -10%;
  left: 5%;
}

@media (min-width: 1024px) {
  .hero::before {
    width: 360px;
    height: 360px;
  }

  .hero::after {
    width: 320px;
    height: 320px;
  }
}

@media (min-width: 1440px) {
  .hero::before {
    width: 480px;
    height: 480px;
  }

  .hero::after {
    width: 420px;
    height: 420px;
  }
}

/* PREVIEW CARD - Mobile First */
.preview-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.preview-card__header h3 {
  font-size: 1.75rem;
  margin: 0;
}

@media (min-width: 768px) {
  .preview-card__subtitle {
    font-size: 1rem;
  }
}

.preview-card__subtitle {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
  color: var(--color-text-secondary, #6b7280);
  background: rgba(229, 240, 232, 0.8);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.preview-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.preview-form label {
  text-align: center;
  font-weight: 600;
}

.preview-form label span {
  color: var(--color-primary);
  display: block;
}

.preview-form input {
  width: 100%;
}

/* Narrow devices need slightly tighter padding to avoid overflow */
@media (max-width: 375px) {
  .preview-card {
    padding: var(--space-md);
  }
}

/* Ensure grid children can shrink within the hero grid */
@media (max-width: 900px) {
  .hero>* {
    min-width: 0;
  }
}

@media (min-width: 640px) {
  .preview-card {
    padding: var(--space-xl);
  }
}

.preview-card__header h3 {
  margin: 0 0 var(--space-md);
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

@media (min-width: 640px) {
  .preview-card__header h3 {
    font-size: 1.35rem;
  }
}

.preview-card__nav {
  display: flex;
  gap: 0;
  padding: 4px;
  background: rgba(229, 240, 232, 0.5);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
  margin-top: var(--space-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.preview-card__nav::-webkit-scrollbar {
  display: none;
}

.preview-card__quick-link {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  font-size: 0.85rem;
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .preview-card__quick-link {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
  }
}

.preview-card__quick-link.is-active,
.preview-card__quick-link:hover {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-xs);
}

.preview-card__quick-link:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.preview-card__body {
  display: grid;
  gap: var(--space-lg);
}

.preview-form {
  display: grid;
  gap: var(--space-md);
}

.preview-form label {
  font-weight: 600;
  color: var(--color-text);
  display: grid;
  gap: var(--space-xs);
  text-align: left;
}

.preview-form input,
.preview-form select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  background: rgba(229, 240, 232, 0.4);
  font-size: 1rem;
  min-height: 48px;
}

.preview-form input:focus-visible,
.preview-form select:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-color: var(--color-accent-gold);
}

.preview-results {
  margin: 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* MINI RECEIPT - Mobile Optimized */
.mini-receipt {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.mini-receipt dl {
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}

.mini-receipt div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  align-items: baseline;
}

@media (max-width: 374px) {
  .mini-receipt div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .mini-receipt dd {
    text-align: left;
    font-weight: 600;
  }
}

.mini-receipt dt {
  color: var(--color-text);
}

.mini-receipt dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.mini-receipt__total {
  font-weight: 700;
  border-top: 1px dashed var(--color-border-strong);
  padding-top: var(--space-sm);
  color: var(--color-primary);
}

.preview-highlight {
  background: rgba(229, 240, 232, 0.5);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: grid;
  gap: var(--space-md);
  border: 1px solid var(--color-border);
}

/* LIVE ACTIVITY TICKER */
.live-activity {
  background: linear-gradient(120deg, rgba(0, 69, 38, 0.08), rgba(0, 69, 38, 0.04));
  padding: var(--space-lg) 0;
  overflow: hidden;
}

.live-activity__title {
  text-align: center;
  margin: 0 0 var(--space-md);
  color: var(--color-text-soft);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .live-activity__title {
    font-size: 0.95rem;
  }
}

.live-activity__track {
  display: flex;
  gap: 2rem;
  animation: ticker-scroll 40s linear infinite;
  will-change: auto;
}

@media (min-width: 1024px) {
  .live-activity__track {
    gap: 3rem;
  }
}

.live-activity__track:hover {
  animation-play-state: paused;
}

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

  100% {
    transform: translateX(-50%);
  }
}

.live-activity__track img {
  height: 24px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

@media (min-width: 640px) {
  .live-activity__track img {
    height: 30px;
  }
}

.live-activity__track img:hover {
  opacity: 1;
}

/* POPULAR CALCULATORS - Mobile First Grid */
.popular {
  background: var(--color-surface);
}

.popular__list {
  margin: 0 auto;
  max-width: var(--max-width);
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  /* Fallback for older browsers */
  grid-gap: var(--space-md);
}

@media (min-width: 640px) {
  .popular__list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

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

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

.popular-card {
  background: linear-gradient(160deg, rgba(229, 240, 232, 0.7), rgba(255, 255, 255, 0.95));
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-md);
  grid-template-rows: auto auto 1fr auto;
  min-height: 280px;
  transition: all var(--transition-base);
}

.popular-card:hover {
  border-color: rgba(0, 69, 38, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.popular-card strong {
  font-size: 1.1rem;
  color: var(--color-primary);
  line-height: 1.3;
}

.popular-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.popular-card time {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.popular-card .btn {
  margin-top: auto;
}

/* UPDATES SECTION - Mobile First */
.updates {
  background: var(--color-bg-soft);
}

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

.updates-grid {
  position: relative;
  padding: var(--space-lg) 0;
}

.updates-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, rgba(0, 69, 38, 0.25), transparent);
  opacity: 0.6;
  border-radius: 2px;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .updates-grid::before {
    display: none;
  }
}

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

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

.updates-loading,
.updates-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-soft);
  padding: var(--space-lg) 0;
  font-size: 1rem;
}

.updates-error {
  color: var(--color-error, #dc2626);
}

/* Update Cards */
.update-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

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

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

.update-card__meta time {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.update-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
}

.update-card__badge--launch {
  background: rgba(0, 69, 38, 0.12);
  color: var(--color-primary);
  border-color: rgba(0, 69, 38, 0.25);
}

.update-card__badge--feature {
  background: rgba(37, 99, 235, 0.12);
  color: #1e40af;
  border-color: rgba(37, 99, 235, 0.25);
}

.update-card__badge--rate-update {
  background: rgba(234, 179, 8, 0.12);
  color: #a16207;
  border-color: rgba(234, 179, 8, 0.25);
}

.update-card__badge--bugfix {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.25);
}

.update-card__badge--enhancement {
  background: rgba(168, 85, 247, 0.12);
  color: #7c3aed;
  border-color: rgba(168, 85, 247, 0.25);
}

.update-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.update-card__excerpt {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  flex: 1;
}

.update-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.update-card__version {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-soft);
  font-family: 'Courier New', monospace;
}

.update-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.update-card__link:hover {
  color: var(--color-accent-gold);
  gap: var(--space-sm);
}

.update-card__link i {
  transition: transform var(--transition-fast);
}

.update-card__link:hover i {
  transform: translateX(4px);
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  padding: var(--space-xl);
  display: grid;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.card--update {
  grid-template-rows: auto auto 1fr auto;
  border-color: rgba(0, 69, 38, 0.15);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}

.card__meta--updates {
  align-items: center;
  gap: var(--space-xs);
}

.update-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), rgba(0, 69, 38, 0.8));
  color: #ffffff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem var(--space-sm);
  border-radius: var(--radius-sm);
  background: rgba(0, 69, 38, 0.06);
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem var(--space-sm);
  border-radius: var(--radius-sm);
  background: rgba(182, 134, 44, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
  color: #a86b1f;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card__description {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 69, 38, 0.06);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 69, 38, 0.12);
  transition: all var(--transition-fast);
  margin-top: auto;
  width: fit-content;
}

.card__link:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  text-decoration: none;
}

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

/* PRICING SECTION - Mobile First */
.pricing {
  background: linear-gradient(180deg, rgba(229, 240, 232, 0.6), transparent);
}

.pricing__plans {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  /* Fallback for older browsers */
  grid-gap: var(--space-lg);
}

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

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

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

.plan-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  display: grid;
  gap: var(--space-lg);
  grid-template-rows: auto 1fr auto;
  min-height: 320px;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
}

.plan-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.plan-card--popular {
  border-width: 2px;
  border-color: var(--color-primary);
}

@media (min-width: 1024px) {
  .plan-card--popular {
    transform: scale(1.03);
  }

  .plan-card--popular:hover {
    transform: scale(1.03) translateY(-4px);
  }
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 0.35rem var(--space-md);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.plan-card__header {
  display: grid;
  gap: var(--space-sm);
  align-items: center;
  justify-items: center;
}

.plan-card__icon {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.plan-card__price {
  margin: 0;
  color: var(--color-text-soft);
  font-weight: 700;
  font-size: 1.1rem;
}

.plan-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
  text-align: left;
}

.plan-card__features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.plan-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* CALCULATOR BRIEFING - Dark Section */
.calculator-briefing {
  background: rgba(4, 22, 13, 0.95);
  color: #f3fff6;
}

.calculator-briefing .section-heading h2 {
  color: #fff;
}

.calculator-briefing .section-heading p {
  color: rgba(236, 255, 242, 0.9);
}

.calculator-briefing__timeline {
  max-width: var(--max-width);
  margin: 0 auto var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(11, 31, 20, 0.5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(236, 255, 242, 0.2);
  padding: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.calculator-briefing__timeline-link {
  color: #c2f5d8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

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

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

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

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

.calculator-briefing__grid article {
  background: rgba(11, 31, 20, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(236, 255, 242, 0.25);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.calculator-briefing__grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(4, 16, 10, 0.3);
}

.calculator-briefing__grid article header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.calculator-briefing .tag,
.calculator-briefing .chip {
  padding: 0.25rem var(--space-sm);
  font-size: 0.75rem;
  white-space: nowrap;
}

.calculator-briefing .chip {
  background: rgba(236, 255, 242, 0.12);
  border-color: rgba(236, 255, 242, 0.3);
  color: #eafff2;
}

.calculator-briefing .tag {
  background: rgba(236, 255, 242, 0.1);
  color: #eafff2;
}

.calculator-briefing .tag--update {
  background: rgba(182, 134, 44, 0.3);
  color: #fff;
}

.calculator-briefing__grid h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .calculator-briefing__grid h3 {
    font-size: 1.25rem;
  }
}

.calculator-briefing__grid p {
  margin: 0;
  color: rgba(236, 255, 242, 0.95);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Definition Lists - Mobile Optimized */
.calculator-briefing__meta {
  margin: 0;
  display: grid;
  gap: 0;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(236, 255, 242, 0.2);
  border-radius: var(--radius-md);
  background: rgba(11, 31, 20, 0.5);
  overflow: hidden;
}

.calculator-briefing__meta>div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px dotted rgba(236, 255, 242, 0.25);
}

@media (min-width: 640px) {
  .calculator-briefing__meta>div {
    grid-template-columns: 1fr auto;
    gap: var(--space-md);
    align-items: baseline;
  }
}

.calculator-briefing__meta>div:last-child {
  border-bottom: 0;
}

.calculator-briefing__meta dt {
  font-weight: 700;
  color: #eafff2;
  font-size: 0.9rem;
}

.calculator-briefing__meta dd {
  margin: 0;
  color: rgba(236, 255, 242, 0.95);
  text-align: left;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .calculator-briefing__meta dd {
    text-align: right;
    justify-self: end;
  }
}

.calculator-briefing__meta .briefing-total {
  border-top: 1px dashed rgba(236, 255, 242, 0.35);
  font-weight: 700;
  background: rgba(11, 31, 20, 0.3);
}

.calculator-briefing a {
  color: #c2f5d8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

.calculator-briefing__cta {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-sm);
}

.calculator-briefing__cta a::after {
  content: " →";
}

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

.calculator-briefing .btn,
.calculator-briefing .btn--ghost {
  min-width: 200px;
}

@media (max-width: 639px) {

  .calculator-briefing .btn,
  .calculator-briefing .btn--ghost {
    width: 100%;
  }
}

.calculator-briefing .btn:hover,
.calculator-briefing .btn:focus-visible,
.calculator-briefing .btn--ghost:hover,
.calculator-briefing .btn--ghost:focus-visible {
  color: #fff;
}

/* EXAMPLES SECTION - Mobile First */
.examples {
  background: var(--color-surface);
}

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

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

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

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

.example-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-md);
  grid-template-rows: auto auto 1fr auto;
  min-height: 340px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}

.example-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.example-card h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.example-card__meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.example-card__takehome {
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary);
}

/* Definition List - Stacks on Mobile */
.example-card__dl {
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(229, 240, 232, 0.3);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.example-card__dl>div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px dotted var(--color-border);
}

@media (min-width: 480px) {
  .example-card__dl>div {
    grid-template-columns: 1fr auto;
    gap: var(--space-md);
    align-items: baseline;
  }
}

.example-card__dl>div:last-child {
  border-bottom: 0;
}

.example-card__dl dt {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.9rem;
}

.example-card__dl dd {
  margin: 0;
  color: var(--color-text);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (min-width: 480px) {
  .example-card__dl dd {
    text-align: right;
    justify-self: end;
  }
}

.example-card .btn {
  width: 100%;
}

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

.examples__cta .btn {
  min-width: 200px;
}

@media (max-width: 639px) {
  .examples__cta .btn {
    width: 100%;
  }
}

/* NEWSLETTER SECTION */
.newsletter {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(229, 240, 232, 0.6));
}

.focused-briefing {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .focused-briefing {
    padding: var(--space-2xl);
  }
}

.focused-briefing__form {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .focused-briefing__form {
    display: flex;
    gap: var(--space-sm);
    max-width: 560px;
  }
}

.focused-briefing__form input {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-pill);
  padding: var(--space-md) var(--space-lg);
  background: rgba(229, 240, 232, 0.6);
  border: 1px solid var(--color-border);
  min-height: 48px;
}

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

.focused-briefing__form .btn {
  min-width: 160px;
}

@media (max-width: 639px) {
  .focused-briefing__form .btn {
    width: 100%;
  }
}

.focused-briefing__social-proof {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .focused-briefing__social-proof {
    font-size: 0.9rem;
  }
}

.newsletter-proof {
  margin: var(--space-md) auto 0;
  max-width: 680px;
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

/* 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;
  }
}

/* FOOTER - Mobile First */
.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__brand-row .brand__logo {
  height: 32px;
  width: auto;
  margin: 0 auto;
}

.footer__brand-row .brand__text {
  font-size: 1.5rem;
  justify-content: center;
}

/* Footer brand colors: ensure logo text is readable on dark background */
.footer__brand-row .brand__net,
.footer__brand-row .brand__paye {
  color: #ffffff;
}

@media (min-width: 640px) {
  .footer__brand-row .brand__logo {
    height: 36px;
  }

  .footer__brand-row .brand__text {
    font-size: 1.75rem;
  }
}

.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: var(--space-md);
  text-align: center;
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  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 BUTTON */
.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);
  }
}

/* ACCORDION - FAQ */
.accordion {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: var(--space-md);
}

.accordion__item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.accordion__trigger {
  width: 100%;
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  line-height: 1.5;
  min-height: 60px;
}

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

.accordion__trigger::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  line-height: 1;
}

.accordion__trigger[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.accordion__trigger:hover {
  background: rgba(0, 69, 38, 0.04);
}

.accordion__trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(182, 134, 44, 0.3);
}

.accordion__content {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.accordion__content[hidden] {
  display: none;
}

/* COMMAND PALETTE */
.command-palette {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 20, 11, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: var(--z-modal);
  padding: var(--space-md);
}

.command-palette.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Fallback for browsers without :has() support */
body[data-modal-open="true"],
body:has(.command-palette.is-visible) {
  overflow: hidden;
}

.command-palette__panel {
  width: 100%;
  max-width: 640px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg);
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .command-palette__panel {
    padding: var(--space-xl);
  }
}

.command-palette__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.command-palette__header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.command-palette__search {
  width: 100%;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(229, 240, 232, 0.3);
  min-height: 48px;
}

.command-palette__search:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-color: var(--color-accent-gold);
}

.command-palette__results {
  margin-top: var(--space-lg);
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  gap: var(--space-sm);
}

/* ACCESSIBILITY TOOLBAR */
.accessibility-toolbar {
  position: fixed;
  top: 50%;
  right: var(--space-md);
  transform: translateY(-50%);
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  z-index: var(--z-fixed);
}

@media (max-width: 767px) {
  .accessibility-toolbar {
    display: none;
  }
}

/* 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;
  }
}

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

.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;
}

/* COMPARE SECTION */
.compare {
  background: var(--color-bg-soft);
}

.compare-widget {
  max-width: 800px;
  margin: 0 auto;
}

.compare-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.compare-form__toggle {
  display: flex;
  background: var(--color-surface-alt);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.toggle-option {
  flex: 1;
  position: relative;
}

.toggle-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-option__label {
  display: block;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-option:hover .toggle-option__label {
  color: var(--color-text);
}

.toggle-option__input:checked+.toggle-option__label {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-xs);
}

.toggle-option__input:focus-visible+.toggle-option__label {
  box-shadow: var(--shadow-focus);
}

.compare-form__inputs {
  display: grid;
  gap: var(--space-md);
}

.compare-results {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.compare-table th {
  font-weight: 700;
  color: var(--color-text);
  background: rgba(0, 69, 38, 0.04);
}

.compare-table__highlight {
  font-weight: 700;
  color: var(--color-primary);
}

/* METHODOLOGY SECTION */
.methodology {
  background: var(--color-surface);
}

.methodology__timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max-width);
  display: grid;
  gap: var(--space-lg);
  position: relative;
}

.methodology__timeline::before {
  content: "";
  position: absolute;
  left: var(--space-lg);
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, rgba(0, 69, 38, 0.3), rgba(0, 69, 38, 0.6));
}

@media (min-width: 640px) {
  .methodology__timeline::before {
    left: calc(var(--space-xl) + 8px);
  }
}

.methodology__timeline li {
  position: relative;
  background: linear-gradient(135deg, rgba(229, 240, 232, 0.8), rgba(255, 255, 255, 0.95));
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  padding-left: calc(var(--space-2xl) + var(--space-lg));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 640px) {
  .methodology__timeline li {
    padding-left: calc(var(--space-3xl) + var(--space-md));
  }
}

.methodology__timeline li::before {
  content: "";
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 69, 38, 0.3);
}

@media (min-width: 640px) {
  .methodology__timeline li::before {
    left: var(--space-md);
    width: var(--icon-size);
    height: var(--icon-size);
  }
}

.methodology__timeline h3 {
  margin: 0 0 var(--space-sm);
  color: var(--color-primary);
  font-size: 1.1rem;
}

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

/* TESTIMONIALS */
.testimonials {
  background: linear-gradient(135deg, rgba(0, 69, 38, 0.08), transparent 70%);
}

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

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

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

.testimonial-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(229, 240, 232, 0.7));
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
}

.testimonial-card__metric {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: rgba(0, 69, 38, 0.1);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  justify-self: start;
  white-space: nowrap;
}

/* GUIDES */
.guides {
  background: var(--color-surface);
}

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

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

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

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

.insight-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.insight-card__meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* FIND CALCULATOR */
.find-calculator {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(229, 240, 232, 0.6));
}

.find-calculator__form {
  max-width: 960px;
  margin: 0 auto var(--space-xl);
  display: grid;
  gap: var(--space-md);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 640px) {
  .find-calculator__form {
    padding: var(--space-xl);
  }
}

.find-calculator__form label {
  display: grid;
  gap: var(--space-xs);
  font-weight: 600;
  color: var(--color-text);
}

.find-calculator__form input,
.find-calculator__form select {
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-lg);
  background: rgba(229, 240, 232, 0.4);
  min-height: 48px;
}

.find-calculator__form input:focus-visible,
.find-calculator__form select:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-color: var(--color-accent-gold);
}

.find-calculator__filters {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

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

.find-calculator__results {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: var(--color-text-muted);
  text-align: center;
}

/* FAQ */
.faq {
  background: linear-gradient(180deg, rgba(0, 69, 38, 0.08), transparent 70%);
}

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

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

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

.faq-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}

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

.faq-card__trigger {
  width: 100%;
  text-align: left;
  padding: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  min-height: 60px;
  transition: background-color var(--transition-fast);
}

.faq-card__trigger:hover {
  background: rgba(0, 69, 38, 0.04);
}

.faq-card__trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(182, 134, 44, 0.3);
}

.faq-card__question {
  flex: 1;
  margin: 0;
}

.faq-card__icon {
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-card__trigger[aria-expanded="true"] .faq-card__icon {
  transform: rotate(45deg);
}

.faq-card__content {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: none;
}

.faq-card__content[aria-expanded="true"] {
  display: block;
}

/* VALUE PROP */
.value-prop {
  background: linear-gradient(180deg, rgba(0, 69, 38, 0.08), transparent 70%);
}

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

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

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

/* FEATURED IN */
.featured-in {
  background: var(--color-surface-alt);
  padding: var(--space-lg) var(--gutter);
}

@media (min-width: 640px) {
  .featured-in {
    padding: var(--space-xl) var(--gutter);
  }
}

.featured-in__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: var(--space-md);
}

.featured-in__title {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-text-soft);
  font-weight: 600;
}

@media (min-width: 640px) {
  .featured-in__title {
    font-size: 0.95rem;
  }
}

.featured-in__ticker {
  position: relative;
  overflow: hidden;
  display: flex;
}

.featured-in__track {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  opacity: 0.8;
  animation: ticker-scroll 35s linear infinite;
}

@media (min-width: 1024px) {
  .featured-in__track {
    gap: var(--space-3xl);
  }
}

.featured-in__ticker img {
  filter: grayscale(100%);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
  height: 24px;
  width: auto;
}

@media (min-width: 640px) {
  .featured-in__ticker img {
    height: 30px;
  }
}

.featured-in__ticker img:hover {
  opacity: 1;
}

/* LANDSCAPE MODE OPTIMIZATIONS */
@media (max-height: 600px) and (orientation: landscape) {
  :root {
    --header-height: 56px;
    --status-banner-height: 40px;
  }

  main>section {
    padding: var(--space-xl) var(--gutter);
  }

  .hero {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .section-heading {
    margin-bottom: var(--space-lg);
  }
}

/* ULTRA-NARROW SCREENS (320px) */
@media (max-width: 374px) {
  :root {
    --gutter: 0.75rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.25rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }

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

/* 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;
  }

  .live-activity__track {
    animation: none;
  }

  .featured-in__track {
    animation: none;
  }
}

/* PRINT STYLES */
@media print {

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

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

  a {
    text-decoration: underline;
  }

  .section-heading,
  .card,
  .popular-card,
  .example-card {
    page-break-inside: avoid;
  }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
  :root {
    --color-border: rgba(0, 69, 38, 0.4);
    --color-border-strong: rgba(0, 69, 38, 0.6);
  }

  .btn,
  .chip,
  .tag {
    border-width: 2px;
  }

  .card,
  .popular-card,
  .example-card {
    border-width: 2px;
  }
}

/* FOCUS VISIBLE IMPROVEMENTS */
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);
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

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

/* ============================================
   END OF MOBILE-FIRST CSS
   All 60+ issues resolved ✓
   ============================================ */
