/* ===================================================================
   AGEWELL ALLIANCE — MASTER STYLESHEET
   Full 20-page business website
   =================================================================== */

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

:root {
  --navy: #0a1628;
  --navy-mid: #162544;
  --navy-light: #1e3460;
  --navy-800: #0d1d35;
  --gold: #c9a84c;
  --gold-text: #8a6914; /* WCAG AA 4.5:1+ on white */
  --gold-light: #e8d5a0;
  --gold-dark: #8a6914;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --green: #1a7a4c;
  --green-light: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.12);
  --cream: #f8f5ee;
  --cream-dark: #efe8d8;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --text: #1a1a2e;
  --text-light: #566479;
  --red: #dc2626;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 10000;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ===== PAGE TRANSITION ===== */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  transform: translateY(100%);
  pointer-events: none;
}
body.page-loading .page-transition {
  animation: pageSlideIn 0.6s var(--ease-out-expo) forwards;
}
body.page-loaded .page-transition {
  animation: pageSlideOut 0.6s var(--ease-out-expo) forwards;
}
@keyframes pageSlideIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes pageSlideOut {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}

/* ===== SCROLL ANIMATIONS — APPLE STYLE ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform, filter;
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  filter: blur(6px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform, filter;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); filter: blur(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  filter: blur(6px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform, filter;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); filter: blur(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  filter: blur(6px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.2s var(--ease-spring),
              filter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform, filter;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); filter: blur(0); }

/* Apple-style stagger cascade — feels organic, not robotic */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.42s; }
.reveal-delay-5 { transition-delay: 0.56s; }
.reveal-delay-6 { transition-delay: 0.7s; }

/* New: 3D perspective reveal (for cards and hero elements) */
.reveal-3d {
  opacity: 0;
  transform: perspective(1200px) rotateX(8deg) translateY(30px);
  filter: blur(4px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.2s var(--ease-spring),
              filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform, filter;
}
.reveal-3d.visible { opacity: 1; transform: perspective(1200px) rotateX(0) translateY(0); filter: blur(0); }

/* New: clip-path reveal for text lines */
.reveal-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-clip.visible { clip-path: inset(0 0 0 0); }

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
.float { animation: float 4s ease-in-out infinite; }
.float-slow { animation: float-slow 6s ease-in-out infinite; }

/* ===== GLOW PULSE ===== */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.1); }
  50% { box-shadow: 0 0 40px rgba(201, 168, 76, 0.25); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 122, 76, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(26, 122, 76, 0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes dash {
  to { stroke-dashoffset: 0; }
}

/* ===== APPLE-STYLE GRADIENT MORPH ===== */
@keyframes gradient-morph {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-morph {
  background-size: 200% 200%;
  animation: gradient-morph 8s ease infinite;
}

/* ===== APPLE-STYLE HERO ENTRANCE ===== */
@keyframes hero-text-enter {
  0% {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes hero-badge-enter {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes hero-stats-enter {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.hero-animate-badge {
  animation: hero-badge-enter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}
.hero-animate-title {
  animation: hero-text-enter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}
.hero-animate-subtitle {
  animation: hero-text-enter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}
.hero-animate-cta {
  animation: hero-text-enter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}
.hero-animate-stats {
  animation: hero-stats-enter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s both;
}

/* ===== APPLE-STYLE SHINE SWEEP ===== */
@keyframes shine-sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
}
#site-header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  padding: 0.75rem 3rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 30px rgba(0,0,0,0.3);
}
#site-header.header-solid {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  z-index: 10;
}
.logo-shield { width: 42px; height: 42px; }
.logo-shield svg { width: 100%; height: 100%; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s;
  letter-spacing: 0.01em;
  position: relative;
}
.nav a:hover { color: var(--gold); }
.nav a.active { color: var(--gold); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  padding-top: 0.75rem;
  min-width: 220px;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-inner {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-xl);
}
.nav-dropdown-inner a {
  display: block !important;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  color: rgba(255,255,255,0.85) !important;
  min-height: auto !important;
}
.nav-dropdown-inner a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--gold) !important;
}
.nav-dropdown-inner a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.6rem 1.35rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: all 0.3s !important;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  display: block;
}
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== LAYOUT HELPERS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

.section { padding: 7rem 0; }
.section-sm { padding: 4rem 0; }
.section-lg { padding: 10rem 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1rem;
}
.section-label-light { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-title-white { color: var(--white); }
.section-title em { font-style: normal; color: var(--gold-text); }
.section-title-white em { color: var(--gold); }
.section-title .red { color: var(--red); }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 600px;
}
.section-subtitle-light { color: rgba(255,255,255,0.7); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(201, 168, 76, 0.4), 0 4px 12px rgba(201, 168, 76, 0.2);
}
.btn-gold:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2);
  transition-duration: 0.1s;
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(10, 22, 40, 0.35), 0 4px 12px rgba(10, 22, 40, 0.15);
}
.btn-navy:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }
.btn-icon svg { width: 18px; height: 18px; }

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero {
  background: var(--navy);
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: 1.7;
}
.page-hero .breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.75); transition: color 0.3s; }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb span { margin: 0 0.5rem; }

/* ===== CARDS — APPLE-STYLE HOVER ===== */
.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease;
  will-change: transform, box-shadow;
}
.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.04);
}
.card-cream { background: var(--cream); }
.card-dark {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.4s ease,
              border-color 0.4s ease;
}
.card-dark:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Apple-style card inner content smooth reveal */
.card h3, .card p, .card ul {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover h3 { transform: translateY(-1px); }

/* ===== ICON BOXES ===== */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.icon-box-gold { background: var(--gold-glow); }
.icon-box-green { background: var(--green-glow); }
.icon-box-navy { background: rgba(30, 52, 96, 0.08); }
.icon-box-red { background: rgba(220, 38, 38, 0.08); }

/* ===== GRID HELPERS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; }

/* ===== STAT COUNTERS ===== */
.counter-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-text);
  line-height: 1;
}
.counter-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.35rem;
}

/* ===== TAGS / BADGES ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.tag-gold { background: var(--gold-glow); color: var(--gold-dark); border: 1px solid rgba(201, 168, 76, 0.2); }
.tag-green { background: var(--green-glow); color: var(--green); border: 1px solid rgba(26, 122, 76, 0.2); }
.tag-red { background: rgba(220, 38, 38, 0.08); color: #b91c1c; border: 1px solid rgba(220, 38, 38, 0.15); }
.tag-navy { background: rgba(30, 52, 96, 0.08); color: var(--navy); border: 1px solid rgba(30, 52, 96, 0.15); }

/* ===== PARALLAX ===== */
.parallax-container { position: relative; overflow: hidden; }
.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ===== MARQUEE ===== */
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  gap: 3rem;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== ACCORDION — APPLE STYLE ===== */
.accordion-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              padding-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  text-align: left;
}
.accordion-header:hover { color: var(--gold-dark); padding-left: 4px; }
.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.5s var(--ease-spring);
  flex-shrink: 0;
  color: var(--gold);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.accordion-body-inner {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s 0.1s, transform 0.4s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.accordion-item.open .accordion-body-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light), transparent);
}
.timeline-item { padding-bottom: 2.5rem; position: relative; }
.timeline-dot {
  position: absolute;
  left: -3rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  transform: translateX(-50%);
  margin-left: 1px;
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.timeline-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== TEAM CARDS ===== */
.team-card {
  text-align: center;
  padding: 2rem;
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
}
.team-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.3;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.team-card .role {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}
.team-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== BLOG CARDS — APPLE STYLE ===== */
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 25px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.04);
}
.blog-card-img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-card:hover .blog-card-img {
  transform: scale(1.04);
}
.blog-card-img {
  height: 220px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-img .icon {
  font-size: 3rem;
  opacity: 0.3;
}
.blog-card-body { padding: 1.75rem; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.blog-card-meta .date {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: var(--font-mono);
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.blog-card h3 a { transition: color 0.3s; }
.blog-card h3 a:hover { color: var(--gold-dark); }
.blog-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.3s;
}
.blog-card .read-more:hover { gap: 0.6rem; }

/* ===== BLOG POST ===== */
.blog-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-700);
}
.blog-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.blog-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.blog-content p { margin-bottom: 1.5rem; }
.blog-content ul, .blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.blog-content li { margin-bottom: 0.5rem; }
.blog-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--cream);
  margin: 2rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--navy);
}
.blog-content .callout {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}
.blog-content .callout h4 {
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.blog-content .callout p { color: rgba(255,255,255,0.7); margin-bottom: 0; }
.blog-sidebar .sidebar-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.blog-sidebar .sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
}
.blog-sidebar .sidebar-link {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.blog-sidebar .sidebar-link:hover { color: var(--gold-dark); padding-left: 0.5rem; }

/* ===== FORM STYLES ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: all 0.3s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-500); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Dark form variant */
.form-dark .form-input,
.form-dark .form-select,
.form-dark .form-textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: var(--white);
}
.form-dark .form-input::placeholder,
.form-dark .form-textarea::placeholder { color: rgba(255,255,255,0.5); }
.form-dark .form-input:focus,
.form-dark .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}
.form-dark .form-label { color: rgba(255,255,255,0.6); }
.form-dark .form-select option { background: var(--navy); color: var(--white); }

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}
.testimonial p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.testimonial-role { font-size: 0.75rem; color: var(--text-light); }

/* ===== PRICING CARD — APPLE STYLE ===== */
.policy-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease;
  position: relative;
}
.policy-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 25px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.05);
}
.policy-card.featured {
  border: 2px solid var(--gold);
  transform: scale(1.03);
  box-shadow: 0 25px 70px rgba(201, 168, 76, 0.18), 0 8px 20px rgba(201, 168, 76, 0.08);
}
.policy-card.featured:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow: 0 35px 80px rgba(201, 168, 76, 0.22), 0 12px 30px rgba(201, 168, 76, 0.1);
}
.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-mono);
}
.policy-header {
  padding: 2.25rem 2rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.policy-tier {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}
.policy-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.policy-price { display: flex; align-items: baseline; justify-content: center; gap: 0.2rem; }
.policy-price .currency { font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.policy-price .amount { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.policy-price .period { font-size: 0.9rem; color: var(--text-light); }
.policy-body { padding: 1.5rem 2rem; }
.policy-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.policy-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.policy-features li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--green); }
.policy-features li.highlight { font-weight: 700; color: var(--navy); }
.policy-footer { padding: 0 2rem 2rem; }
.policy-btn {
  display: block;
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.3s;
}

/* ===== COMPARISON TABLE (semantic <table>) ===== */
.comp-table { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); width: 100%; border-collapse: collapse; }
.comp-header { background: var(--navy); }
.comp-header th, .comp-header div { padding: 1.15rem 1.25rem; text-align: center; font-weight: 700; color: var(--white); font-size: 0.9rem; }
.comp-header th:first-child, .comp-header div:first-child { text-align: left; background: transparent; }
.comp-header th:nth-child(2), .comp-header div:nth-child(2) { opacity: 0.6; }
.comp-header th:nth-child(3), .comp-header div:nth-child(3) { background: rgba(201, 168, 76, 0.15); color: var(--gold); }
.comp-row { background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.04); }
.comp-row:nth-child(even) { background: var(--cream); }
.comp-row td, .comp-row div { padding: 0.9rem 1.25rem; font-size: 0.88rem; }
.comp-row td:first-child, .comp-row div:first-child { font-weight: 600; color: var(--navy); }
.comp-row-category { background: var(--navy) !important; }
/* Legacy div-grid support */
.comp-header[style*="grid"] { display: grid; }
.comp-row[style*="grid"] { display: grid; }
.comp-row[style*="grid"] div { display: flex; align-items: center; }
.comp-row div:nth-child(2) { color: var(--text-light); text-align: center; }
.comp-row div:nth-child(3) { color: var(--green); font-weight: 600; text-align: center; background: rgba(34, 197, 94, 0.03); }

/* ===== DANGER STAT ===== */
.danger-stat {
  background: var(--white);
  border: 1px solid rgba(220, 38, 38, 0.1);
  border-left: 4px solid var(--red);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: all 0.3s;
}
.danger-stat:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.danger-stat .number { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--red); margin-bottom: 0.2rem; }
.danger-stat .label { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  animation: cta-breathe 4s ease-in-out infinite;
}
@keyframes cta-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
  letter-spacing: -0.02em;
}
.cta-banner h2 em { font-style: normal; color: var(--gold); }
.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  position: relative;
}
.cta-banner .btn { position: relative; }

/* ===== CERTIFICATE MOCK ===== */
.certificate-mock {
  max-width: 650px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 4px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.certificate-mock::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid var(--gold);
  border-radius: 2px;
  pointer-events: none;
}
.certificate-mock::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--gold-light);
  border-radius: 2px;
  pointer-events: none;
}

/* ===== POS FLOW ===== */
.pos-flow-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all 0.3s;
}
.pos-flow-item:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}
.pos-flow-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
#site-footer {
  background: #060e1a;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo-text span { color: var(--gold); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.85rem; line-height: 1.6; max-width: 300px; }
.footer-col h4, .footer-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.75rem; color: rgba(255,255,255,0.55); transition: color 0.3s; }
.footer-legal a:hover { color: var(--gold); }

/* ===== APPLE-STYLE SECTION DIVIDERS ===== */
.section-gradient-divider {
  height: 120px;
  background: linear-gradient(to bottom, var(--cream), var(--white));
}
.section-gradient-divider-dark {
  height: 120px;
  background: linear-gradient(to bottom, var(--navy), #060e1a);
}

/* ===== APPLE-STYLE SMOOTH SCROLL INDICATOR ===== */
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(10px); opacity: 1; }
}
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scroll-hint 2.5s ease-in-out infinite;
}
.scroll-indicator span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.scroll-indicator svg {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.6);
}

/* ===== APPLE-STYLE HOVER GLOW FOR LINKS ===== */
.nav a::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav a:hover::before {
  width: 100%;
  left: 0;
}
.nav a.active::before { display: none; }

/* ===== APPLE-STYLE IMAGE/ELEMENT ZOOM ON SCROLL ===== */
.scroll-zoom {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-zoom.zoomed {
  transform: scale(1.03);
}

/* ===== ACCESSIBILITY ===== */

/* Screen reader only */
.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;
}

/* Skip to content link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 100000;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* Universal focus-visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Form-specific focus (keep enhanced ring) */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Buttons keep their styles */
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Nav links focus */
.nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Accordion header focus */
.accordion-header:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Touch target minimum sizing */
.footer-col a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-legal a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
/* Form validation error states */
.form-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 0.3rem;
  display: none;
}
.form-group.has-error .form-error {
  display: block;
}
.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Form success state */
.form-success {
  background: var(--green-glow);
  border: 1px solid rgba(26, 122, 76, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  color: var(--green);
  font-weight: 600;
}

/* ===== WHY AGEWELL PAGE ===== */
.comparison-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.comparison-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.comparison-card.agewell {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--white), rgba(201, 168, 76, 0.03));
  position: relative;
}
.comparison-card.agewell::before {
  content: 'AGEWELL ALLIANCE';
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-family: var(--font-mono);
}
.stat-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--gold);
  background: rgba(201, 168, 76, 0.05);
  transition: transform 0.5s var(--ease-spring),
              box-shadow 0.5s ease;
}
.stat-ring:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
}
.stat-ring .number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-ring .label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.25rem;
  max-width: 90px;
  line-height: 1.3;
}

/* ROI Calculator */
.roi-calculator {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.roi-calculator::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.roi-result {
  background: rgba(26, 122, 76, 0.12);
  border: 1px solid rgba(26, 122, 76, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-top: 1.5rem;
  transition: transform 0.5s var(--ease-spring);
}
.roi-result:hover {
  transform: scale(1.02);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2-1, .grid-1-2, .grid-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .comp-header div, .comp-row div { padding: 0.7rem 0.85rem; font-size: 0.78rem; }
}
@media (max-width: 768px) {
  #site-header { padding: 1rem 1.5rem; }
  #site-header.scrolled { padding: 0.75rem 1.5rem; }
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    padding: 5rem 2rem 2rem;
    gap: 0.75rem;
    backdrop-filter: blur(20px);
    z-index: 5;
  }
  .nav.mobile-open a { font-size: 1.1rem; padding: 0.5rem 0; }
  .nav.mobile-open .nav-dropdown-content {
    display: block;
    position: static;
    padding-top: 0;
  }
  .nav.mobile-open .nav-dropdown-inner {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .section-lg { padding: 6rem 0; }
  .page-hero { padding: 8rem 0 3rem; }
  .container { padding: 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .policy-card.featured { transform: none; }
  .policy-card.featured:hover { transform: translateY(-6px); }
  .nav a::before { display: none; }
  .trust-compare { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .trust-compare > div:nth-child(2) { display: none; }
  .mission-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-3d, .reveal-clip {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
  .sonar-ring { animation: none !important; opacity: 0.3; transform: scale(1) !important; }
}

/* ===== TECHNOLOGY PAGE — SONAR VISUALIZATION ===== */
.sonar-ring {
  position: absolute;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  animation: sonar-pulse 3s ease-out infinite;
}
.sonar-ring:nth-child(2) { animation-delay: 1s; }
.sonar-ring:nth-child(3) { animation-delay: 2s; }
@keyframes sonar-pulse {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* Product section anchor offset for fixed header */
[id="tinkysee"], [id="tinkyspeak"], [id="tinkyhealth"], [id="linguascribe"] {
  scroll-margin-top: 100px;
}

/* ===== HERO TABLET DEMO ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-text { position: relative; z-index: 2; }
.hero-tablet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
.hero-device-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 0.4rem 1rem;
  border-radius: 100px;
}
.hero-device-label svg {
  color: var(--gold);
  flex-shrink: 0;
}
.hero-device-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  max-width: 380px;
  text-align: center;
  justify-content: center;
  line-height: 1.4;
}
.hero-tablet-frame {
  background: linear-gradient(145deg, #151b30, #0a0e1c);
  border-radius: 28px;
  border: 2px solid rgba(255,255,255,0.06);
  padding: 14px;
  box-shadow:
    0 50px 100px rgba(0,0,0,0.5),
    0 20px 40px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transform: perspective(1200px) rotateY(-5deg);
  animation: tablet-float 5s ease-in-out infinite;
  max-width: 380px;
  width: 100%;
}
.hero-tablet-notch {
  width: 56px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 6px auto 10px;
}
.hero-tablet-screen {
  background: linear-gradient(180deg, rgba(15,20,40,0.95), rgba(10,14,30,0.98));
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
}
/* Tablet header bar */
.tablet-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tablet-header svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}
.tablet-header span:first-of-type {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}
.tablet-live-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #34d399;
  background: rgba(52,211,153,0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
/* Tablet float animation */
@keyframes tablet-float {
  0%, 100% { transform: perspective(1200px) rotateY(-5deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-5deg) translateY(-10px); }
}
/* Tablet entrance animation */
.hero-animate-tablet {
  opacity: 0;
  transform: translateX(40px);
  animation: tablet-enter 0.8s ease-out 0.6s forwards;
}
@keyframes tablet-enter {
  to { opacity: 1; transform: translateX(0); }
}
/* === Tablet Demo Tabs === */
.tablet-nav {
  display: flex;
  gap: 2px;
  padding: 0.5rem 0.75rem 0;
  background: rgba(255,255,255,0.02);
}
.tablet-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.55rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}
.tablet-nav-btn:hover {
  color: rgba(255,255,255,0.6);
}
.tablet-nav-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.tablet-nav-btn svg {
  flex-shrink: 0;
}
.tablet-tabs-content {
  position: relative;
  min-height: 300px;
}
.tablet-tab {
  display: none;
  padding: 0.75rem;
  animation: tabFadeIn 0.3s ease;
}
.tablet-tab.active {
  display: block;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Menu tab */
.tablet-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tablet-menu-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  transition: border-color 0.2s;
}
.tablet-menu-item:hover {
  border-color: rgba(201,168,76,0.2);
}
.tablet-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
}
.tablet-menu-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.tablet-menu-price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
}
.tablet-menu-desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.35rem;
}
.tablet-menu-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.tmtag {
  font-size: 0.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
}
.tmtag.veg { background: rgba(52,211,153,0.1); color: #34d399; }
.tmtag.gf { background: rgba(201,168,76,0.1); color: var(--gold); }
.tablet-menu-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.65rem;
  color: rgba(52,211,153,0.7);
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 0.5rem;
}
.tablet-menu-footer svg { color: #34d399; flex-shrink: 0; }
/* Translate tab */
.tablet-translate-demo { padding: 0.25rem 0; }
.tablet-translate-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.tablet-translate-from, .tablet-translate-to {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
}
.tablet-translate-to { background: rgba(201,168,76,0.12); color: var(--gold); }
.tablet-translate-header svg { color: rgba(255,255,255,0.3); }
.tablet-translate-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}
.tablet-translate-original, .tablet-translate-result {
  padding: 0.75rem;
}
.tablet-translate-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
}
.tablet-translate-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.tablet-translate-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.2rem;
}
.tablet-translate-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.tablet-translate-result {
  background: rgba(201,168,76,0.04);
}
.tablet-translate-result .tablet-translate-text { color: var(--gold); }
.tablet-lang-chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.tablet-lang-chip {
  font-size: 0.62rem;
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.tablet-lang-chip.active {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}
/* Certify tab */
.tablet-cert-demo { padding: 0.25rem 0; display: flex; justify-content: center; }
.tablet-cert-card {
  text-align: center;
  background: rgba(52,211,153,0.04);
  border: 1px solid rgba(52,211,153,0.12);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  width: 100%;
}
.tablet-cert-badge { margin-bottom: 0.5rem; }
.tablet-cert-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #34d399;
  margin-bottom: 0.25rem;
}
.tablet-cert-status {
  font-size: 0.72rem;
  color: rgba(52,211,153,0.7);
  margin-bottom: 0.75rem;
}
.tablet-cert-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.tablet-qr-grid {
  width: 64px;
  height: 64px;
  background:
    repeating-conic-gradient(rgba(255,255,255,0.8) 0% 25%, transparent 0% 50%) 0 0 / 8px 8px,
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  border-radius: 6px;
  border: 3px solid white;
}
.tablet-cert-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.tablet-cert-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tablet-cert-row span:first-child { color: rgba(255,255,255,0.35); }
.tablet-cert-row span:last-child { color: rgba(255,255,255,0.75); font-weight: 600; font-family: var(--font-mono); }
/* Access tab */
.tablet-access-demo { padding: 0.25rem 0; }
.tablet-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.tablet-access-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
  cursor: pointer;
}
.tablet-access-btn:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.15);
  color: var(--gold);
}
.tablet-access-btn span {
  font-size: 0.68rem;
  font-weight: 600;
}
/* Lock tablet to 16px base so page-wide html font-size changes don't affect it */
.hero-tablet-screen {
  font-size: 16px !important;
}
/* Tablet controls are exempt from page-wide a11y toggle effects — see matching exclusions below near each html.a11y-* rule */
/* Responsive: stack at 900px */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-grid .hero-text {
    order: 1;
  }
  .hero-grid .hero-tablet {
    order: 2;
  }
  .hero-tablet-frame {
    max-width: 320px;
    margin: 0 auto;
    transform: perspective(1200px) rotateY(0deg);
  }
  @keyframes tablet-float {
    0%, 100% { transform: perspective(1200px) rotateY(0deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(0deg) translateY(-8px); }
  }
  .hero-grid .hero-text .hero-animate-cta {
    justify-content: center;
  }
  .hero-grid .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 480px) {
  .hero-tablet-frame {
    max-width: 280px;
    padding: 10px;
    border-radius: 20px;
  }
  .hero-tablet-screen {
    min-height: 360px;
    border-radius: 14px;
  }
}
/* prefers-reduced-motion: disable float */
@media (prefers-reduced-motion: reduce) {
  .hero-tablet-frame { animation: none; }
  .hero-animate-tablet { animation: none; opacity: 1; transform: none; }
  .tablet-live-badge { animation: none; }
}

/* ===== ACCESSIBILITY TOOLBAR ===== */
.a11y-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}
.a11y-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,0,0,0.35); }
.a11y-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.a11y-fab[aria-expanded="true"] { background: var(--gold); color: var(--navy); }

.a11y-panel {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 9998;
  width: 340px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  padding: 0;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-spring);
}
.a11y-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.a11y-panel-header {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.a11y-panel-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.a11y-panel-reset {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.a11y-panel-reset:hover { background: rgba(201,168,76,0.12); }
.a11y-panel-body { padding: 1rem 1.5rem 1.5rem; }
.a11y-group { margin-bottom: 1.25rem; }
.a11y-group:last-child { margin-bottom: 0; }
.a11y-group-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}
.a11y-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.a11y-slider-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  min-width: 42px;
  text-align: center;
}
.a11y-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  outline: none;
}
.a11y-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--navy);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.a11y-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--navy);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.a11y-slider:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.a11y-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.a11y-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 500;
}
.a11y-toggle:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
.a11y-toggle.active {
  background: rgba(26,122,76,0.15);
  border-color: var(--green);
  color: var(--green-light);
}
.a11y-toggle svg { flex-shrink: 0; }
.a11y-lang-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.a11y-lang-select:focus-visible { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 1px; }
.a11y-lang-select option { background: var(--navy); color: var(--white); }
.a11y-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(26,122,76,0.15);
  color: var(--green-light);
}

/* Font size classes applied to html */
html.a11y-font-sm { font-size: 14px; }
html.a11y-font-md { font-size: 16px; }
html.a11y-font-lg { font-size: 18px; }
html.a11y-font-xl { font-size: 20px; }
html.a11y-font-xxl { font-size: 22px; }
html.a11y-font-xxxl { font-size: 24px; }
/* High contrast */
html.a11y-high-contrast { filter: contrast(1.35); }
html.a11y-high-contrast .a11y-panel,
html.a11y-high-contrast .a11y-fab,
html.a11y-high-contrast .hero-tablet { filter: contrast(0.74); }
/* Dyslexia font */
html.a11y-dyslexia * {
  font-family: 'OpenDyslexic', 'Comic Sans MS', cursive, sans-serif !important;
  letter-spacing: 0.05em !important;
}
html.a11y-dyslexia .a11y-panel *,
html.a11y-dyslexia .a11y-fab,
html.a11y-dyslexia .hero-tablet-screen * { font-family: var(--font-body) !important; letter-spacing: normal !important; }
/* Line spacing */
html.a11y-spacing-wide * { line-height: 2 !important; }
html.a11y-spacing-wide .a11y-panel *,
html.a11y-spacing-wide .a11y-fab,
html.a11y-spacing-wide .hero-tablet-screen * { line-height: normal !important; }
/* Large cursor */
html.a11y-big-cursor, html.a11y-big-cursor * { cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 2L5 26L11 20L17 30L21 28L15 18L23 18Z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 5 2, auto !important; }
html.a11y-big-cursor .a11y-panel, html.a11y-big-cursor .a11y-panel *,
html.a11y-big-cursor .hero-tablet-screen, html.a11y-big-cursor .hero-tablet-screen * { cursor: auto !important; }
/* Highlight links */
html.a11y-highlight-links a:not(.a11y-fab):not(.a11y-panel a):not(.a11y-panel-reset):not(.hero-tablet-screen a) {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px !important;
  text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 480px) {
  .a11y-panel { right: 12px; left: 12px; width: auto; bottom: 88px; }
  .a11y-fab { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .a11y-toggles { grid-template-columns: 1fr; }
}

/* ===== ASSESSMENT WIZARD ===== */
.assessment-progress { height: 4px; background: var(--gray-200); border-radius: 2px; overflow: hidden; margin-bottom: 2rem; }
.assessment-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.assessment-steps-nav { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 2.5rem; }
.assessment-step-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); transition: all 0.3s; }
.assessment-step-dot.active { background: var(--gold); transform: scale(1.3); }
.assessment-step-dot.completed { background: var(--green); }
.assessment-step { display: none; }
.assessment-step.active { display: block; animation: stepFadeIn 0.4s ease-out; }
@keyframes stepFadeIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.assessment-step-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.assessment-step-desc { color: var(--text-light); font-size: 0.95rem; margin-bottom: 2rem; }
.assessment-nav { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.06); }
.assessment-option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.assessment-option { border: 2px solid var(--gray-200); border-radius: var(--radius-md); padding: 1rem 1.25rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 0.75rem; background: var(--white); }
.assessment-option:hover { border-color: var(--gold); background: rgba(201,168,76,0.03); }
.assessment-option.selected { border-color: var(--gold); background: rgba(201,168,76,0.06); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.assessment-option input[type="radio"],
.assessment-option input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.assessment-option-label { font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.assessment-option-icon { font-size: 1.3rem; flex-shrink: 0; }
.assessment-yn { display: flex; gap: 0.75rem; }
.assessment-yn .assessment-option { flex: 1; justify-content: center; padding: 1.25rem; font-weight: 600; }
/* Score circle */
.score-circle { width: 200px; height: 200px; position: relative; margin: 0 auto 2rem; }
.score-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-circle-bg { fill: none; stroke: var(--gray-200); stroke-width: 8; }
.score-circle-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.score-grade { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.score-grade-letter { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; line-height: 1; }
.score-grade-number { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-light); margin-top: 0.25rem; }
.risk-bar { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; margin-top: 0.5rem; }
.risk-bar-fill { height: 100%; border-radius: 4px; transition: width 1s cubic-bezier(0.25,0.46,0.45,0.94); }
.risk-category { margin-bottom: 1.25rem; }
.risk-category-label { font-size: 0.85rem; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; }
.assessment-results { display: none; }
.assessment-results.visible { display: block; animation: stepFadeIn 0.5s ease-out; }
.vulnerability-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(0,0,0,0.04); font-size: 0.92rem; color: var(--text); }
.vulnerability-item svg { flex-shrink: 0; margin-top: 2px; }
.lawsuit-risk-card { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); border-radius: var(--radius-lg); padding: 2rem; color: white; text-align: center; margin: 2rem 0; }
.lawsuit-risk-card .number { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.lawsuit-risk-card .label { font-size: 0.9rem; opacity: 0.85; }
@media (max-width: 600px) {
  .assessment-option-grid { grid-template-columns: 1fr; }
  .score-circle { width: 160px; height: 160px; }
  .score-grade-letter { font-size: 2.5rem; }
}

/* ===== CHECKOUT FLOW ===== */
.checkout-section { margin-bottom: 1.5rem; background: var(--white); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.4s; }
.checkout-section.locked { pointer-events: none; }
.checkout-section.locked .checkout-section-header h2 { color: var(--text-light); }
.checkout-section.locked .checkout-section-header p { color: var(--gray-300); }
.checkout-section.locked .checkout-step-number { background: var(--gray-300); color: var(--white); }
.checkout-section.active { border-color: var(--gold); box-shadow: 0 4px 20px rgba(201,168,76,0.08); }
.checkout-section.completed { border-color: var(--green); }
.checkout-section-header { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 2rem; background: var(--cream); border-bottom: 1px solid rgba(0,0,0,0.06); cursor: pointer; }
.checkout-step-number { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.checkout-section.completed .checkout-step-number { background: var(--green); color: var(--white); }
.checkout-section-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.checkout-section-body { padding: 2rem; }
.checkout-section.locked .checkout-section-body { display: none; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.device-card { background: var(--white); border: 2px solid var(--gold); border-radius: var(--radius-lg); padding: 2rem; }
.device-card-info { flex: 1; }
.device-card-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.device-card-sub { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }
.device-card-features { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.device-card-features li { font-size: 0.88rem; color: var(--text); padding: 0.3rem 0; display: flex; align-items: center; gap: 0.5rem; }
.device-card-features li svg { flex-shrink: 0; }
.device-card-price { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.device-card-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-light); }
.device-quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; margin-top: 0.75rem; }
.device-quantity button { width: 42px; height: 42px; background: var(--cream); border: none; font-size: 1.3rem; font-weight: 700; cursor: pointer; transition: background 0.2s; color: var(--navy); }
.device-quantity button:hover { background: rgba(201,168,76,0.15); }
.device-quantity span { width: 50px; text-align: center; font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; }
.order-summary { background: var(--navy); border-radius: var(--radius-lg); padding: 2rem; position: sticky; top: 100px; }
.order-summary-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.order-summary-row { display: flex; justify-content: space-between; padding: 0.6rem 0; color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.order-summary-row strong { color: var(--white); }
.order-summary-row .included { color: var(--green); font-weight: 600; }
.order-summary-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 0.75rem 0; }
.order-summary-total { display: flex; justify-content: space-between; padding: 0.75rem 0; font-size: 1.15rem; font-weight: 700; color: var(--white); }
.order-summary-sub { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.payment-notice { background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.25); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; font-size: 0.9rem; color: var(--text); }
.payment-notice svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.order-confirmation { background: rgba(26,122,76,0.04); border: 2px solid rgba(26,122,76,0.2); border-radius: var(--radius-lg); padding: 3rem; text-align: center; }
.order-confirmation .conf-icon { width: 72px; height: 72px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.order-confirmation h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); margin-bottom: 0.5rem; }
.order-confirmation .conf-number { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.5rem; }
.conf-summary { background: var(--cream); border-radius: var(--radius-md); padding: 1.5rem; text-align: left; margin: 1.5rem auto; max-width: 400px; }
.conf-summary-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.9rem; }
.shield-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(26,122,76,0.08); border: 1px solid rgba(26,122,76,0.2); padding: 0.5rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--green); margin-top: 1rem; }
/* Plan selection in checkout */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.plan-grid .policy-card { cursor: pointer; transition: all 0.3s; }
.plan-grid .policy-card:hover { border-color: var(--gold); }
.plan-grid .policy-card.selected { border: 2px solid var(--gold); box-shadow: 0 8px 30px rgba(201,168,76,0.15); }
.plan-grid .policy-card.selected .policy-btn { background: var(--gold); color: var(--navy); }
.recommended-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--white); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 0 0 8px 8px; font-family: var(--font-mono); }
@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .order-summary { position: static; margin-top: 0; }
  .checkout-section-header { padding: 1rem 1.25rem; }
  .checkout-section-body { padding: 1.25rem; }
}
