/* ==========================================================================
   AUVIRA DESIGN SYSTEM & STYLESHEET
   Brand Essence: Aura and Gold Divinity
   Warm light on a luminous champagne ground, with gold as the hero
   and a sunset glow around it. Calm, grown-up, trustworthy, editorial.
   Official Brand & UI Style Guide Tokens (Oct 13, 2026 · @Takshma)
   ========================================================================== */

:root {
  /* Grounds */
  --champagne: #FBF4E6;
  --pearl: #FFFDF8;
  --pearl-text: #FBF7F0;
  --gleam: #FFF1C4;
  --parchment: #F3E3C3;
  --border: #EED9B8;

  /* Text (WCAG 2.1 AA Compliant) */
  --cocoa: #4A3B2C;      /* Headings and body (9.8:1 on champagne) */
  --taupe: #6E5E4E;      /* Captions, helper text (5.7:1) */
  --espresso: #2A1F14;   /* Text on yellow, amber, and honey fills */
  --rust: #A34F14;       /* Links, eyebrows, active tabs (5.2:1) */

  /* Gold - The Hero */
  --deep-gold: #7A4E17;
  --deep-gold-hover: #8A5A1C;
  --gold: #C8932E;
  --honey: #E8BE5E;

  /* Aura - The Sunset Glow */
  --sunlit: #FFD86B;
  --amber: #FD9E39;
  --rust-orange: #D9661F;
  --blush: #EEA09C;
  --berry: #9B3B52;      /* Urgent, destructive, menstrual phase only */
  --night: #1E1A16;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Gradients */
  --grad-aura: linear-gradient(110deg, #FFD86B, #FD9E39 60%, #F08A4A);
  --glow-aura: radial-gradient(circle at 88% 0%, rgba(255,241,196,.95) 0%,
    rgba(255,216,107,.6) 14%, rgba(253,158,57,.28) 32%,
    rgba(238,160,156,.2) 50%, rgba(251,244,230,0) 70%);

  /* Shadows & Radii */
  --shadow-primary: 0 8px 20px -12px rgba(122,78,23,.55);
  --shadow-subtle: 0 4px 14px rgba(74, 59, 44, 0.05);
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-input: 14px;
  --radius-md: 14px;

  /* 8px Spatial Baseline Grid Tokens */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  --space-section: clamp(96px, 9vw, 128px);
  --space-section-header: clamp(40px, 5vw, 56px);
  --space-gutter: clamp(20px, 4vw, 48px);
  --container-max-w: 1180px;

  /* Transitions (sub-250ms exponential ease-out) */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--champagne);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Accessibility Focus Rings */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-gutter);
  padding-right: var(--space-gutter);
}

.max-w-prose {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

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

.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 32px; }
.mb-sm { margin-bottom: 12px; }

/* Section Grounds Alternation (Page 8: alternate champagne and pearl) */
.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-champagne {
  background-color: var(--champagne);
}

.section-pearl {
  background-color: var(--pearl);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.gap-xl {
  gap: clamp(32px, 4vw, 56px);
}

.items-center {
  align-items: center;
}

/* ==========================================================================
   HEADER & TWO-TONE WORDMARK
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 244, 230, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: clamp(24px, 3vw, 48px);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* ==========================================================================
   SOLID DEEP GOLD WORDMARK (Official Choice)
   Editorial restraint, maximum contrast on champagne, Cormorant Garamond 600 italic
   ========================================================================== */
.brand-wordmark {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--deep-gold);
  background: none;
  -webkit-text-fill-color: var(--deep-gold);
  filter: none;
  transition: color 0.2s ease;
  user-select: none;
}

.brand-link:hover .brand-wordmark {
  color: var(--deep-gold-hover);
  -webkit-text-fill-color: var(--deep-gold-hover);
}

/* Fallback/compatibility in case nested spans are ever present */
.wordmark-au,
.wordmark-vira {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  display: inline !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 24px);
  margin-right: auto;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--taupe);
  position: relative;
  padding: 6px 0;
  white-space: nowrap; /* Prevent nav links from ever wrapping */
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--deep-gold);
}

.nav-link.nav-link-highlight {
  color: var(--rust);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-screener-link {
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--cocoa);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

/* ==========================================================================
   BUTTONS & LINKS (Official Spec: Pages 6, 8, 9)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  line-height: 1;
  min-height: 48px;
  height: 50px;
  font-size: 15px;
}

.btn-sm {
  min-height: 44px;
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

/* Primary Button (Page 6 & 8) */
.btn-primary {
  background: var(--deep-gold);
  color: var(--pearl-text);
  font: 600 15px/1 var(--font-body);
  padding: 0 28px;
  height: 50px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--deep-gold-hover);
  transform: translateY(-1px);
}

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

/* Secondary Button (Page 6 & 9) */
.btn-secondary {
  background: var(--grad-aura);
  color: var(--espresso);
  font: 600 15px/1 var(--font-body);
  padding: 0 28px;
  height: 50px;
  border-radius: var(--radius-pill);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* Outline Button (Page 6) */
.btn-outline {
  background: var(--pearl);
  color: var(--cocoa);
  border: 1px solid var(--gold);
  font: 600 15px/1 var(--font-body);
  padding: 0 24px;
  height: 48px;
}

.btn-outline:hover {
  background: var(--gleam);
  border-color: var(--deep-gold);
}

/* Text Link (Page 6 & 8: Rust #A34F14, Manrope 600) */
.btn-text-link {
  color: var(--rust);
  font: 600 15px/1 var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-height: 44px;
}

.btn-text-link:hover {
  color: var(--deep-gold);
}

/* Badges / Tags (Page 6: Gleam #FFF1C4 fill, Deep gold #7A4E17 text) */
.badge-gleam {
  background-color: var(--gleam);
  color: var(--deep-gold);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  display: inline-block;
  letter-spacing: 0.02em;
}

/* Eyebrows (Anti-Slop: Clean sentence case, close proximity to title) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--rust);
  margin-bottom: 8px;
}

/* ==========================================================================
   HEADINGS & TYPOGRAPHY SCALE (Page 5)
   ========================================================================== */
.section-header {
  margin-bottom: var(--space-section-header);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cocoa);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--taupe);
  margin-bottom: 0;
}

.lead-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--taupe);
  margin-bottom: 28px;
}

/* ==========================================================================
   HERO SECTION (Page 8: Champagne with one aura glow behind hero)
   ========================================================================== */
.hero-section {
  padding: clamp(48px, 6vw, 72px) 0 clamp(72px, 8vw, 104px);
  position: relative;
  overflow: hidden;
  background-color: var(--champagne);
}

.hero-aura-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 750px;
  height: 750px;
  background: var(--glow-aura);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   PROCEDURAL ANIMATED WISPY AURA STREAKS
   Flowing cyclical light filaments in sunlit gold, amber, and blush
   ========================================================================== */
.hero-whispy-spirals {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
  width: min(840px, 94vw);
  height: min(840px, 94vw);
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.hero-wispy-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.12fr 0.98fr;
  align-items: flex-start;
  gap: clamp(32px, 4.5vw, 64px);
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 12px;
}

/* Display / Hero: 40px -> 72px / 1.14, 500, one accent word in italic 600 */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--cocoa);
  margin-bottom: 0;
}

.title-em {
  font-style: italic;
  font-weight: 600;
  color: var(--rust);
}

.hero-subtext-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 580px;
}

.hero-subtext {
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--cocoa);
  font-weight: 500;
  margin-bottom: 0;
}

.hero-subtext-secondary {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--taupe);
  margin-bottom: 0;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-top: 6px;
}

/* Highlighted Waitlist Notice Card */
.interest-note-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  padding: 14px 18px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(74, 59, 44, 0.04);
  box-sizing: border-box;
  transition: all var(--transition-normal);
}

.interest-note-highlight .note-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--deep-gold);
  background: var(--gleam);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 147, 46, 0.35);
  white-space: nowrap;
  text-transform: none;
}

.interest-note-highlight .note-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--taupe);
  font-weight: 500;
  margin: 0;
}

/* Rewarding Registration Animation & Celebration States */
.celebration-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

.interest-btn {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.interest-btn.is-success-btn {
  background: var(--deep-gold) !important;
  color: var(--pearl-text) !important;
  box-shadow: 0 0 24px rgba(253, 158, 57, 0.55), 0 8px 20px -8px rgba(122, 78, 23, 0.6) !important;
  transform: scale(1.02);
}

.interest-note-highlight.is-success {
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 241, 196, 0.52));
  border-color: var(--gold);
  box-shadow: 0 10px 28px -6px rgba(200, 147, 46, 0.25), 0 0 0 1px rgba(200, 147, 46, 0.28);
  animation: successCardPop 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successCardPop {
  0% { transform: scale(0.97); opacity: 0.8; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

.interest-note-highlight.is-success .note-pill {
  background: var(--gleam);
  color: var(--deep-gold);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255, 216, 107, 0.5);
}

.interest-note-highlight.is-success .note-text {
  color: var(--cocoa);
  font-weight: 500;
}

.interest-note-highlight.is-error {
  background: rgba(254, 245, 246, 0.95);
  border-color: rgba(155, 59, 82, 0.38);
}

.interest-note-highlight.is-error .note-pill {
  background: rgba(155, 59, 82, 0.12);
  color: var(--berry);
  border-color: rgba(155, 59, 82, 0.3);
}

.interest-note-highlight.is-error .note-text {
  color: var(--berry);
  font-weight: 500;
}

/* Hero Right: Swirl & Phone Screen Preview Card & Care Team View */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hero-swirl-container {
  margin-bottom: -38px;
  z-index: 3;
}

.hero-swirl-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  animation: heroSwirlRotateClockwise 8s linear infinite;
  transform-origin: center center;
  will-change: transform;
}

@keyframes heroSwirlRotateClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-swirl-img {
    animation: none;
  }
}

.hero-app-card {
  width: 100%;
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 8px 24px -10px rgba(74, 59, 44, 0.08);
  position: relative;
  z-index: 2;
}

.card-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.screen-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--rust);
  background: var(--gleam);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

.screen-time {
  font-size: 12px;
  color: var(--taupe);
  font-weight: 500;
  line-height: 1.4;
}

.screen-card-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cocoa);
  margin-bottom: 10px;
}

.screen-card-body {
  font-size: 14.5px;
  color: var(--taupe);
  line-height: 1.6;
  margin-bottom: 18px;
}

.careteam-action-row {
  background: rgba(243, 227, 195, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.action-status-indicator {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rust);
  line-height: 1.45;
}

.action-status-indicator svg {
  color: var(--deep-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   COORDINATED CARE TEAM PREVIEW VIEW
   Direct answer to "can we also add a view of the care team, and how that would look"
   ========================================================================== */
.hero-careteam-card {
  width: 100%;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  margin-top: 16px;
  box-shadow: 0 10px 28px -12px rgba(74, 59, 44, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.careteam-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(238, 217, 184, 0.7);
}

.careteam-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.careteam-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-gold);
  flex-shrink: 0;
}

.careteam-header-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cocoa);
}

.careteam-status-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--rust);
  background: var(--gleam);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.careteam-members-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.careteam-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(251, 244, 230, 0.55);
  border: 1px solid rgba(238, 217, 184, 0.45);
  transition: all var(--transition-fast);
}

.careteam-member:hover {
  background: rgba(255, 241, 196, 0.4);
  border-color: var(--gold);
}

.member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-doctor {
  background: #E8BE5E;
  color: #2A1F14;
}

.avatar-coordinator {
  background: #FD9E39;
  color: #FFFDF8;
}

.avatar-dietitian {
  background: #D9661F;
  color: #FFFDF8;
}

.member-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.member-info strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cocoa);
  line-height: 1.3;
}

.member-info span {
  font-size: 12px;
  color: var(--taupe);
  line-height: 1.3;
}

.member-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--taupe);
  background: var(--pearl);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.member-badge.badge-active {
  color: var(--deep-gold);
  background: var(--gleam);
  border-color: rgba(200, 147, 46, 0.4);
}

.careteam-dispatch-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(238, 217, 184, 0.8);
  font-size: 12.5px;
  color: var(--taupe);
  line-height: 1.5;
}

.dispatch-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.dispatch-icon svg {
  display: block;
}

.careteam-dispatch-note p {
  margin: 0;
}

/* ==========================================================================
   PEARL CARDS & GENERAL CARDS
   ========================================================================== */
.card-pearl {
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast);
}

.card-pearl:hover {
  border-color: var(--gold);
}

.tag-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--rust);
  background: var(--gleam);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

/* ==========================================================================
   SECTION 1: ASYMMETRIC CLINICAL LEDGER (Anti-Slop Layout)
   ========================================================================== */
.pmos-ledger-layout {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 32px;
  align-items: stretch;
}

.pmos-thesis-card {
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast);
}

.pmos-thesis-card:hover {
  border-color: var(--gold);
}

.thesis-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  background: var(--gleam);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 16px;
}

.thesis-title {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 16px;
}

.thesis-body {
  font-size: 15px;
  color: var(--taupe);
  line-height: 1.6;
  margin-bottom: 24px;
}

.thesis-callout {
  background: var(--champagne);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.thesis-callout strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 4px;
}

.thesis-callout p {
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.55;
  margin: 0;
}

.thesis-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pmos-axes-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.axis-item {
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color var(--transition-fast);
}

.axis-item:hover {
  border-color: var(--gold);
}

.axis-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--gleam);
  color: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.axis-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.axis-content {
  flex-grow: 1;
}

.axis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.axis-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--cocoa);
}

.axis-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--rust);
  background: var(--gleam);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.axis-desc {
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.55;
  margin: 0;
}

/* Stats Evidence Ledger */
.stats-ledger-panel {
  background: var(--champagne);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  margin-top: clamp(40px, 5vw, 56px);
}

.ledger-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.ledger-header h3 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cocoa);
  margin-bottom: 8px;
}

.ledger-header p {
  font-size: 15px;
  color: var(--taupe);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ledger-item {
  display: flex;
  flex-direction: column;
  padding-right: 20px;
  border-right: 1px solid var(--border);
}

.ledger-item:last-child {
  border-right: none;
  padding-right: 0;
}

/* Manrope 700 for clean numbers */
.ledger-number {
  font-family: var(--font-body);
  font-size: clamp(32px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--rust);
  line-height: 1.1;
  margin-bottom: 8px;
}

.ledger-item p {
  font-size: 14px;
  color: var(--cocoa);
  line-height: 1.5;
  margin-bottom: 10px;
  flex-grow: 1;
}

.ledger-citation {
  font-size: 11.5px;
  color: var(--taupe);
  font-style: italic;
}

/* ==========================================================================
   SECTION 2: THE ASIAN GAP (Functional Indicators)
   ========================================================================== */
.gap-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gap-reason-item {
  display: flex;
  gap: 16px;
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  align-items: flex-start;
  transition: border-color var(--transition-fast);
}

.gap-reason-item:hover {
  border-color: var(--gold);
}

.gap-icon-disc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gleam);
  color: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.gap-icon-disc svg {
  width: 18px;
  height: 18px;
}

.gap-item-body strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 4px;
}

.gap-item-body p {
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.55;
  margin: 0;
}

/* Insight Card with Aura Glow (Page 6) */
.insight-glow-card {
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 36px);
  position: relative;
  overflow: hidden;
}

.card-aura-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: var(--glow-aura);
  pointer-events: none;
}

.insight-quote {
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
  color: var(--cocoa);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.quote-signoff {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rust);
  position: relative;
  z-index: 1;
}

.quote-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--rust);
}

.hawker-card {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 24px);
  border-radius: 24px;
}

/* ==========================================================================
   SECTION 3: COORDINATION PIPELINE (Anti-Slop Layout)
   ========================================================================== */
.coordination-pipeline {
  display: flex;
  align-items: stretch;
  gap: 16px;
  position: relative;
}

.pipeline-card {
  flex: 1;
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast);
}

.pipeline-card:hover {
  border-color: var(--gold);
}

.pipeline-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  background: var(--gleam);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 12px;
}

.pipeline-problem {
  font-size: 12px;
  font-weight: 600;
  color: var(--berry);
  margin-bottom: 8px;
}

.pipeline-heading {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 10px;
  line-height: 1.25;
}

.pipeline-body {
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pipeline-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.pipeline-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--cocoa);
  background: var(--champagne);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.pipeline-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
}

/* ==========================================================================
   SECTION: INSIDE THE APP (App Screens Showcase, Page 6 & 8)
   ========================================================================== */
.app-screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screen-showcase-card {
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.screen-showcase-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.screen-crop-wrap {
  width: 100%;
  background-color: var(--champagne);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(74, 59, 44, 0.08);
}

.screen-caption {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--pearl);
}

.screen-caption strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--cocoa);
}

.screen-caption span {
  font-size: 12.5px;
  color: var(--taupe);
  line-height: 1.45;
}

/* ==========================================================================
   SECTION: FREE HORMONE CHECK (Interactive Screener)
   ========================================================================== */
.screener-wrapper {
  max-width: 840px;
  margin: 0 auto;
}

.screener-card {
  padding: clamp(24px, 4vw, 40px);
}

.screener-progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--parchment);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
}

/* GPU-accelerated progress animation */
.progress-fill {
  width: 100%;
  height: 100%;
  background: var(--grad-aura);
  transform-origin: left center;
  transform: scaleX(0.2);
  transition: transform var(--transition-normal);
}

.step-counter {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--taupe);
  margin-bottom: 24px;
}

.question-block {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-prompt {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--cocoa);
  margin-bottom: 8px;
}

.question-hint {
  font-size: 14px;
  color: var(--taupe);
  margin-bottom: 24px;
}

.options-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

/* Chips / Option items (Page 6: Pearl default, Aura selected) */
.option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--pearl);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 52px;
}

.option-item:hover {
  background-color: var(--gleam);
  border-color: var(--gold);
}

.option-item.selected {
  background: var(--grad-aura);
  border-color: transparent;
}

.option-checkbox-svg {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--taupe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  color: transparent;
}

.option-item.selected .option-checkbox-svg {
  background-color: var(--espresso);
  border-color: var(--espresso);
  color: #FFFFFF;
}

.option-checkbox-svg svg {
  width: 14px;
  height: 14px;
}

.option-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--cocoa);
}

.option-item.selected .option-text strong {
  color: var(--espresso);
}

.option-text span {
  font-size: 13px;
  color: var(--taupe);
}

.option-item.selected .option-text span {
  color: var(--espresso);
  opacity: 0.9;
}

.screener-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Screener Result Box */
.result-box {
  animation: fadeIn 0.4s ease-out;
}

.result-header {
  text-align: center;
  margin-bottom: 28px;
}

.result-phenotype-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gleam);
  color: var(--deep-gold);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.result-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 8px;
}

.result-summary-text {
  font-size: 15px;
  color: var(--taupe);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.result-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.breakdown-card {
  background-color: var(--champagne);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.breakdown-card h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--cocoa);
}

.breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-list li {
  font-size: 13px;
  color: var(--taupe);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.breakdown-list li strong {
  color: var(--cocoa);
}

.result-cta-banner {
  background: var(--grad-aura);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.5vw, 36px);
  text-align: center;
  color: var(--espresso);
}

.result-cta-banner h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 600;
  margin-bottom: 8px;
}

.result-cta-banner p {
  font-size: 14.5px;
  margin-bottom: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   SECTION: CARE TEAM
   ========================================================================== */
.team-photo-col {
  position: relative;
}

.care-team-photo {
  width: 100%;
  border-radius: var(--radius-card);
}

.team-quote-badge {
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 16px;
}

.team-quote-badge strong {
  display: block;
  font-size: 15px;
  color: var(--cocoa);
  margin-bottom: 4px;
}

.team-quote-badge p {
  font-size: 13.5px;
  color: var(--taupe);
  line-height: 1.5;
  margin: 0;
}

.team-roles-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-card {
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.role-card:hover {
  border-color: var(--gold);
}

.role-card.active {
  border-color: var(--rust);
}

.role-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  min-height: 52px;
}

.role-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--rust);
  background: var(--gleam);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.role-header h4 {
  flex-grow: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--cocoa);
}

.role-chevron {
  font-size: 14px;
  color: var(--taupe);
  transition: transform var(--transition-fast);
}

.role-card.active .role-chevron {
  transform: rotate(180deg);
  color: var(--rust);
}

.role-details {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.55;
}

.role-card.active .role-details {
  display: block;
}

/* ==========================================================================
   SECTION: FOUNDER NOTE
   ========================================================================== */
.founder-card {
  padding: clamp(24px, 4vw, 44px);
}

.founder-portrait-img {
  width: 100%;
  border-radius: 20px;
}

.founder-caption {
  padding-top: 12px;
}

.founder-caption strong {
  display: block;
  font-size: 16px;
  color: var(--cocoa);
}

.founder-caption span {
  font-size: 13px;
  color: var(--taupe);
}

.founder-quote {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 24px);
  font-style: italic;
  line-height: 1.35;
  color: var(--rust);
  margin-bottom: 20px;
}

.founder-body-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  color: var(--taupe);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ==========================================================================
   SECTION: SINGAPORE PILOT FORM
   ========================================================================== */
.pilot-card-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.pilot-form-container {
  padding: clamp(24px, 4vw, 40px);
}

.mode-chips-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.chip-tab {
  background: var(--champagne);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--taupe);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.chip-tab.active {
  background: var(--grad-aura);
  color: var(--espresso);
  border-color: transparent;
}

.pilot-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label,
.group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 0 16px;
  font-size: 16px; /* Floor at 16px prevents iOS auto-zoom */
  color: var(--cocoa);
  transition: border-color var(--transition-fast);
  min-height: 48px;
  height: 48px;
}

.form-group textarea {
  min-height: 100px;
  height: auto;
  padding: 12px 16px;
  line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gleam);
}

.chips-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chip-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--champagne);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  min-height: 48px;
  transition: background-color var(--transition-fast);
}

.chip-radio:hover {
  background: var(--gleam);
}

.chip-radio input[type="radio"] {
  accent-color: var(--rust);
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.privacy-notice {
  font-size: 12px;
  color: var(--taupe);
}

.pilot-success {
  text-align: center;
  padding: 32px 16px;
  animation: fadeIn 0.4s ease-out;
}

.success-swirl {
  margin-bottom: 16px;
}

.success-mark-img {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--cocoa);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 15px;
  color: var(--taupe);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION: FAQ
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--pearl);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--cocoa);
  cursor: pointer;
  min-height: 52px;
  gap: 16px;
}

.faq-icon {
  font-size: 18px;
  color: var(--rust);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  font-size: 14.5px;
  color: var(--taupe);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   FOOTER (Page 8: Cocoa text on parchment #F3E3C3)
   ========================================================================== */
.site-footer {
  background-color: var(--parchment);
  color: var(--cocoa);
  padding: clamp(56px, 7vw, 80px) 0 32px;
  border-top: 1px solid var(--border);
}

.footer-top {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.footer-top-simple {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.footer-invite-card {
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
}

.footer-invite-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 6px;
}

.footer-invite-desc {
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.5;
  margin-bottom: 16px;
}

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

.footer-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.footer-mission {
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.55;
  margin-bottom: 14px;
}

.footer-contact {
  font-size: 13px;
  color: var(--taupe);
}

.footer-email-link {
  color: var(--rust);
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--taupe);
}

.footer-links a:hover {
  color: var(--deep-gold);
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.footer-disclaimer p {
  font-size: 12px;
  color: var(--taupe);
  line-height: 1.55;
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--taupe);
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.dot-sep {
  opacity: 0.5;
}

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

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pmos-ledger-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .coordination-pipeline {
    flex-direction: column;
    gap: 16px;
  }

  .pipeline-bridge {
    transform: rotate(90deg);
    margin: -4px 0;
  }

  .app-screens-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .ledger-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .ledger-item:nth-child(2) {
    border-right: none;
  }

  .ledger-item:nth-child(3) {
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }

  .ledger-item:nth-child(4) {
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }

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

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--pearl);
    flex-direction: column;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
    display: none;
    gap: 16px;
    margin: 0;
    align-items: flex-start;
  }

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

  .mobile-toggle {
    display: flex;
  }

  .header-actions .btn {
    display: inline-flex;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    font-size: 13.5px;
  }

  .header-screener-link {
    display: none;
  }
}

@media (max-width: 1140px) {
  .header-screener-link {
    display: none;
  }

  .brand-link {
    margin-right: 24px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: clamp(56px, 8vw, 72px) 0;
  }

  .header-inner {
    height: 64px;
  }

  .nav-menu {
    top: 64px;
  }

  .brand-wordmark {
    font-size: 1.85rem;
  }

  .brand-logo-img {
    width: 44px;
    height: 44px;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gap-xl {
    gap: 24px;
  }

  .screener-card, .pilot-form-container, .founder-card {
    padding: 20px 16px;
  }

  .app-screens-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .result-breakdown-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ledger-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ledger-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    padding-right: 0;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mode-chips-bar {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .screener-nav {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .screener-nav .btn {
    width: 100%;
  }

  .axis-item {
    flex-direction: column;
    gap: 12px;
  }
}


/* Coming-soon mailing list signup (hero) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-cta-group {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.interest-form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 460px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.85), rgba(255, 241, 196, 0.6));
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(200, 147, 46, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.interest-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(200, 147, 46, 0.3), 0 0 0 3px rgba(232, 190, 94, 0.35);
}

.interest-form.is-success-form {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(200, 147, 46, 0.35), 0 0 0 2px rgba(253, 158, 57, 0.4);
}

.interest-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px 0 22px;
  border: 0;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  background: transparent;
  font: 500 15px/1 var(--font-body);
  color: var(--cocoa);
  outline: none;
}

.interest-input::placeholder {
  color: var(--taupe);
}

/* Harmonized Autofill (Conforms to round pill edge & replaces default blue with champagne glow) */
.interest-input:-webkit-autofill,
.interest-input:-webkit-autofill:hover, 
.interest-input:-webkit-autofill:focus, 
.interest-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--cocoa) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 253, 248, 0.96) inset !important;
  box-shadow: 0 0 0 1000px rgba(255, 253, 248, 0.96) inset !important;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.interest-input:autofill {
  box-shadow: 0 0 0 1000px rgba(255, 253, 248, 0.96) inset !important;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.interest-btn {
  height: 44px;
  white-space: nowrap;
}

.interest-note {
  font-size: 13px;
  color: var(--taupe);
  max-width: 460px;
}

.interest-note.is-error,
.interest-note-highlight.is-error .note-text {
  color: var(--berry);
  font-weight: 600;
}

.interest-note.is-success,
.interest-note-highlight.is-success .note-text {
  color: var(--deep-gold);
  font-weight: 600;
}

@media (max-width: 520px) {
  .interest-form {
    flex-direction: column;
    padding: 8px;
    gap: 8px;
    border-radius: 20px;
    overflow: visible;
  }
  .interest-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: rgba(255, 253, 248, 0.85);
    border: 1px solid rgba(238, 217, 184, 0.8);
    border-radius: var(--radius-pill);
    text-align: left;
    font-size: 14.5px;
  }
  .interest-input:-webkit-autofill,
  .interest-input:-webkit-autofill:hover, 
  .interest-input:-webkit-autofill:focus, 
  .interest-input:-webkit-autofill:active {
    border-radius: var(--radius-pill) !important;
  }
  .interest-input:autofill {
    border-radius: var(--radius-pill) !important;
  }
  .interest-btn {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-pill);
    padding: 0 20px;
    font-size: 15px;
  }
}

@media (max-width: 440px) {
  .careteam-member {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .careteam-member .member-badge {
    margin-left: 46px;
  }
  .hero-app-card,
  .hero-careteam-card,
  .footer-invite-card {
    padding: 18px 16px;
  }
  .header-actions .btn {
    height: 36px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }
}

/* Sections hidden for the coming-soon launch (remove [hidden] in index.html to restore) */
[hidden] {
  display: none !important;
}
