/* ═══════════════════════════════════════════════
   FUND4FOUNDERS PLATFORM — MAIN STYLESHEET
   Dark Forest Green · Refined Trust Aesthetic
═══════════════════════════════════════════════ */


/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── GLOBAL FONT BASELINE ───────────────────────────────────────────────────
   Enforces Arial throughout. font-size floor: nothing below 12px site-wide.
   Inline styles and component CSS can go larger — never smaller than 12px.
   All portal labels, hints, badges: bump to 12px minimum via this cascade.
   ─────────────────────────────────────────────────────────────────────────── */
* {
  font-family: Arial, sans-serif;
}
/* Tiny text patterns — bring common small-text elements to minimum 12px */
/* These classes appear throughout the platform with sub-12px font sizes */
.txt-xs, .label-xs, .eyebrow-sm, .hint-text,
[class*="font-size:9"], [class*="font-size:10"], [class*="font-size:11"] {
  font-size: 14px !important;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);  /* was #C8D8F0 — warmed for older-user readability (2026-03-11) */
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

/* ── CSS Variables ── */
:root {
  --navy-deep:    #050E1A;
  --navy:         #071628;
  --navy-mid:     #0D2040;
  --navy-light:   #152E5A;
  --blue:         #1A4A9A;
  --blue-bright:  #4A9EF0;
  --gold:         #C9A84C;
  --gold-light:   #E8C96A;
  --gold-dim:     #8B7030;
  --cream:        #F5EDD5;
  --white:        #FFFFFF;
  --text-primary: #EBF0FA;
  --text-sec:     #BDD0E8;  /* was #A8C4DE — warmed +15% brightness, hue neutral (2026-03-11) */
  --text-dim:     #94AFCB;  /* was #7A9BBF — warmed, now crosses AAA 7:1 on all surfaces (2026-03-11) */
  --border:       rgba(201,168,76,0.15);
  --border-soft:  rgba(255,255,255,0.07);
  --glow-gold:    0 0 40px rgba(201,168,76,0.14);
  --glow-blue:    0 0 40px rgba(74,158,240,0.14);
  --transition:   all 0.3s cubic-bezier(0.4,0,0.2,1);
  --radius:       12px;
  --radius-lg:    20px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(24px, 3vw, 48px) !important; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 58px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(22px, 3vw, 34px); font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }

p { font-size: 16px; font-weight: 400; color: var(--text-sec); line-height: 1.75; }

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* Prevent browser default purple on visited links in content areas.
   Nav links and footer columns manage their own visited colors separately.
   NOTE: CSS variables do not work in :visited rules (browser privacy restriction).
   All :visited rules must use hard-coded hex values. */
main a:visited,
.card a:visited,
.section a:visited,
.hero a:visited,
.btn-ghost:visited,
.btn-primary:visited {
  color: var(--gold);
}

/* Nav visited links stay same muted color as unvisited */
.nav-links a:visited {
  color: var(--text-sec);
}

/* ── Utility Classes ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.italic { font-style: italic; }

.eyebrow {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

/* ── Background Texture ── */
.grid-bg {
  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;
}

/* ── Noise Overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 20px;
  background: rgba(5, 14, 26, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-a15);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(5, 14, 26, 0.99);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  gap: 8px;
}

.nav-logo {
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
  justify-self: start;
}

/* Wide wordmark image — replaces icon + text combo */
.nav-logo-wordmark {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--gold-a25));
  transition: var(--transition);
}
.nav-logo:hover .nav-logo-wordmark {
  filter: drop-shadow(0 0 10px rgba(201,168,76,0.35));
  transform: scale(1.02);
}

/* Legacy text span — hidden now that we use the full wordmark */
.nav-logo-text { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  list-style: none;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-sec);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta .btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  padding: 7px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-cta .btn-ghost:hover {
  color: var(--white);
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.nav-cta .btn-primary {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF !important;
  background: var(--blue);
  border: 2px solid var(--blue);
  padding: 8px 18px;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-cta .btn-primary:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--blue-a25);
}

/* Hamburger: hidden on desktop, shown as fixed tab on mobile */
.hamburger { display: none; }

/* Mobile slide-in menu: hidden on desktop */
.mobile-menu { display: none; }

/* ── Buttons ── */
/* ═══════════════════════════════════════════════════════════
   BUTTON SYSTEM — 4 canonical types
   All use brand colors. No arbitrary background colors.

   1. .btn-gold     — filled gold/green accent (primary CTA)
   2. .btn-blue     — filled brand blue (secondary CTA)
   3. .btn-green    — filled brand green (success/join CTA)
   4. .btn-ghost    — transparent + thick gold border (outline CTA)

   Size modifiers: .btn-lg  .btn-md  .btn-sm
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ── Size modifiers ── */
.btn-lg  { font-size: 15px; padding: 14px 34px; }
.btn-md  { font-size: 14px; padding: 11px 26px; }
.btn-sm  { font-size: 14px; padding: 7px 16px; font-weight: 700; }

/* ── 1. Gold — primary CTA ── */
.btn-gold {
  background: var(--gold);
  color: #0A1A0A !important;  /* near-black — legible on any gold/green tone */
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: #0A1A0A !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--gold-a30);
}

/* ── 2. Blue — secondary CTA ── */
.btn-blue {
  background: var(--blue);
  color: #FFFFFF !important;
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--blue-a25);
}

/* ── 3. Green — join/success CTA ── */
.btn-green {
  background: var(--green);
  color: #0A1A0A !important;
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: #0A1A0A !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--green-a25);
}

/* ── 4. Ghost — thick gold border, transparent bg ── */
.btn-ghost {
  background: transparent;
  color: var(--gold) !important;
  border: 2.5px solid var(--gold);
  font-weight: 700;
}
.btn-ghost:hover {
  background: var(--gold-a12);
  color: var(--gold) !important;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-a20);
}

/* ── Legacy aliases — map to new system ── */
.btn-outline-gold  { background: transparent; color: var(--gold) !important; border: 2px solid var(--gold); font-weight: 700; }
.btn-outline-gold:hover { background: var(--gold-a10); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: var(--text-primary) !important; border: 2px solid var(--border); }
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold) !important; }

/* ── Section Base ── */
section { padding: 100px 0; }
section.hero,
section.rh-hero,
section.rl-hero,
section.dir-hero { padding: 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
}

.section-header p {
  margin-top: 20px;
  font-size: 17px;
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px auto;
}

/* ── Cards ── */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

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

/* ── Gold Line ── */
.gold-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold), var(--gold-dim), transparent);
  margin: 0;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,74,154,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(201,168,76,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(74,158,240,0.06) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-a08);
  border: 1px solid var(--gold-a22);
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  font-size: clamp(22px, 2.8vw, 42px) !important;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.2px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 19px;
  font-weight: 400;  /* was 300 — thin strokes drop out on dark bg for older readers (2026-03-11) */
  color: var(--text-sec);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
  background: var(--white-a02);
  backdrop-filter: blur(10px);
}

.hero-stat {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid var(--border-soft);
}

.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── Rotating Hero Headline ── */
.hero-headline-wrap {
  position: relative;
  height: clamp(100px, 11vw, 160px);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-hl {
  font-size: clamp(22px, 2.8vw, 42px) !important;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.2px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
  margin: 0;
}

.hero-hl.hero-hl-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-hl.hero-hl-exit {
  opacity: 0;
  transform: translateY(-18px);
  position: absolute;
}

.hero-hl em {
  font-style: italic;
  color: var(--gold);
}

/* ── Interactive NDA Cards ── */
.nda-card {
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.nda-card-front {
  position: relative;
  z-index: 1;
}

.nda-hover-hint {
  font-size:14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  margin-top: 14px;
  transition: opacity 0.2s ease;
}

.nda-card:hover .nda-hover-hint,
.nda-card:focus .nda-hover-hint {
  opacity: 0.6;
}

.nda-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--navy-deep, var(--bg));
  border: 1px solid var(--gold-a35);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  z-index: 100;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px var(--gold-a08);
  min-width: 260px;
}

.nda-card:hover .nda-tooltip,
.nda-card:focus .nda-tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Last row cards — tooltip opens downward */
.nda-card:nth-last-child(-n+2) .nda-tooltip {
  bottom: auto;
  top: calc(100% + 10px);
}

.nda-tooltip-id {
  font-size:14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.nda-tooltip-title {
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.nda-tooltip-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sec);
  margin-bottom: 12px;
}

.nda-tooltip-trigger { font-weight: 600;
  font-size:14px;
  color: var(--text-dim);
  padding-top: 10px;
  border-top: 1px solid var(--white-a06);
}

.nda-trigger-label {
  font-weight: 700;
  color: var(--gold);
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nda-tooltip-warning {
  font-size:14px;
  color: rgba(255,180,50,0.8);
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(201,168,76,0.06);
  border-radius: 6px;
  border-left: 2px solid var(--gold-a40);
  line-height: 1.5;
}

.nda-tooltip-warning a {
  color: var(--gold);
  text-decoration: underline;
}

.nda-card:hover {
  border-color: var(--gold-a40);
  background: rgba(201,168,76,0.04);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 10;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--surface-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  white-space: nowrap;
}

.trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.trust-item--gold {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(201,168,76,0.07);
  border: 1px solid var(--gold-a25);
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
}

/* ── Roles Grid ── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.role-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.role-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
}

.role-card:hover::before { opacity: 1; }

.role-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.role-card h4 {
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.role-card .role-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}

.role-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 20px;
}

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

.role-card .role-features li {
  font-size: 14px;
  color: var(--text-sec);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.role-card .role-features li::before {
  content: '✓';
  color: var(--gold);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Role color accents */
.role-card.innovator::before { background: linear-gradient(90deg, var(--blue-bright), var(--blue)); }
.role-card.investor::before  { background: linear-gradient(90deg, var(--gold), var(--gold-dim)); }
.role-card.consultant::before{ background: linear-gradient(90deg, var(--role-consultant, #148F77), var(--role-consultant)); }
.role-card.talent::before    { background: linear-gradient(90deg, var(--role-talent, #7D3C98),     var(--role-talent)); }
.role-card.customer::before  { background: linear-gradient(90deg, var(--role-customer, #C0392B),   var(--role-customer)); }
.role-card.partner::before   { background: linear-gradient(90deg, var(--role-partner, #1E5C38),    var(--role-partner)); }

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim));
}

.step-item {
  text-align: center;
  padding: 0 40px;
  position: relative;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  background: var(--surface);
}

.step-item h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-item p { font-size: 14px; }

/* ── NDA Section ── */
.nda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.nda-card {
  background: var(--white-a02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
  cursor: default;
}

.nda-card:hover {
  border-color: var(--border);
  background: rgba(201,168,76,0.03);
}

.nda-id {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.nda-title {
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.nda-parties {
  font-size: 14px;
  color: var(--text-dim);
}

.nda-sign-method {
  margin-top: 12px;
  font-size:14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  opacity: 0.8;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.price-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-gold);
}

.price-card.featured {
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
}

.price-card .featured-ribbon {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--gold);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.price-card-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.price-card-role {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.price-card-tier {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.price-amount-wrap {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-soft);
}

.price-amount {
  font-family: Arial, sans-serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--text-dim);
  margin-left: 4px;
}

.price-annual {
  font-size: 14px;
  color: var(--gold);
  margin-top: 6px;
  font-weight: 500;
}

.price-features {
  padding: 20px 28px 28px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-sec);
}

.price-features li::before {
  content: '✓';
  color: var(--blue-bright);
  flex-shrink: 0;
  margin-top: 1px;
}

.price-cta {
  padding: 0 28px 28px;
}

.price-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ── Billing Toggle ── */
.billing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
}

.billing-toggle span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  transition: color 0.2s;
}

.billing-toggle span.on { color: var(--text-primary); }

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--blue-bright);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}

.toggle-switch.active::after { transform: translateX(20px); }

.save-pill {
  background: var(--gold);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

/* ── Testimonial / Quote ── */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 24px 32px;
  background: rgba(201,168,76,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-block blockquote {
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.quote-attr {
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
}

/* ── CTA Band ── */
.cta-band {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand h3 span { color: var(--gold); }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-col h5,
.footer-col h3 {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-sec);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

/* Footer featured links — same style as all other footer links */
.footer-highlight {
  color: var(--text-sec); /* dark themes */
}
.footer-highlight:visited {
  color: var(--text-sec); /* dark themes */
}
.footer-highlight:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

/* Footer column links — visited looks identical to unvisited.
   Must use hard-coded hex — CSS variables don't work in :visited rules. */
.footer-col ul li a:visited {
  color: var(--text-sec); /* dark themes */
}
.footer-legal a:visited {
  color: var(--text-dim); /* dark themes */
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-legal a:hover { color: var(--text-sec); }

/* ── Tablet nav compression (1025px–1280px only — below 1025 uses hamburger) ── */
@media (min-width: 1025px) and (max-width: 1280px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 14px; }
  .nav-cta .btn-primary { padding: 7px 14px; font-size: 14px; }
  .nav-cta { gap: 8px; }
  .nav-logo-wordmark { height: 30px; }
}

/* ── Mobile Responsive ── */
/* 1024px covers all iPhone landscape sizes (max 932px) + small tablets */
@media (max-width: 1024px) {
  /* Nav: hide links + CTA on mobile, collapse grid */
  .nav-links          { display: none; }
  .nav-cta            { display: none; }
  .nav-inner          { grid-template-columns: 1fr; }

  /* Fixed right-edge pull tab */
  .hamburger {
    display: flex;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: var(--gold);
    padding: 16px 10px;
    border-radius: 10px 0 0 10px;
    box-shadow: -4px 0 18px rgba(0,0,0,0.45);
    transition: var(--transition);
  }
  /* WCAG 2.4.7 (2026-03-11): Split hover/focus — hover keeps gold bg,
     keyboard :focus uses global :focus-visible ring instead of outline:none */
  .hamburger:hover { background: var(--gold-light); }
  .hamburger:focus:not(:focus-visible) { background: var(--gold-light); outline: none; }

  .hamburger span {
    width: 20px;
    height: 2px;
    background: var(--surface);
    border-radius: 2px;
    transition: var(--transition);
  }

  /* Hide tab while menu is open */
  body.menu-open .hamburger {
    opacity: 0;
    pointer-events: none;
  }

  /* Full-screen slide-in menu */

  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--surface);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  }

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

  .mobile-menu a {
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
  }

  .mobile-menu a:hover { color: var(--gold); }

  .mobile-menu .nav-signin-link {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    padding: 13px 44px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    text-align: center;
    min-width: 200px;
    transition: background 0.15s, color 0.15s;
  }

  .mobile-menu .nav-signin-link:hover {
    background: var(--gold);
    color: var(--bg);
  }

  .mobile-close {
    position: absolute;
    top: 24px; right: 28px;
    font-size: 28px;
    color: var(--text-sec);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
  }

  section { padding: 72px 0; }
  section.hero,
  section.rh-hero,
  section.rl-hero,
  section.dir-hero { padding: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 42px; }
  .hero-stats { flex-direction: column; border: none; gap: 0; }
  .hero-stat { border: 1px solid var(--border-soft); border-radius: var(--radius); margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ── Page-specific: About ── */
.about-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ── Page-specific: Contact ── */
.contact-form {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white-a03);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.03);
  box-shadow: 0 0 0 3px var(--gold-a08);
}

.form-group select option {
  background: var(--surface-2);
  color: var(--text-primary);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
}

/* ── Page Hero Generic ── */
.page-hero {
  padding: 40px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Masked dot-grid overlay — fades to edges, hero area only */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--white-a03) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-a03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-a08);
  border: 1px solid var(--gold-a22);
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 14px; font-weight: 600; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 28px;
}
.page-hero-badge::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  /* No default background — each portal sets its own role color via inline style */
  z-index: 0;
}

/* Force all page-hero content to center-align */
.page-hero .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero .eyebrow {
  text-align: center;
  display: block;
}

.page-hero h1 {
  font-size: clamp(22px, 2.8vw, 42px) !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.2px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Standardised heading highlight — italic gold/green em in any hero */
.page-hero h1 em,
.page-hero h1 .txt-gold,
.fi-hero h1 em,
.ac-headline em,
h1 em.txt-gold,
h1 em.text-gold {
  font-style: italic;
  color: var(--gold);
}

.page-hero p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.page-hero .access-gate {
  margin-left: auto;
  margin-right: auto;
}

.page-hero .breadcrumb {
  align-self: flex-start;
  text-align: left;
}

/* ── Horizontal Rule ── */
hr.gold-hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 60px 0;
}

/* ── Accordion / FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-q {
  padding: 22px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  list-style: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-q:hover { color: var(--gold); }

.faq-icon {
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
}

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

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 1200px;
  padding-bottom: 20px;
}

.faq-a p { font-size: 15px; }

/* ── Tooltip-style Hover ── */
.has-tooltip { position: relative; }

/* ── Animated Gold Underline ── */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.gold-underline:hover::after { transform: scaleX(1); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light), var(--gold-dim));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ── Recruitment Program Banner (pricing page) ── */
.recruitment-banner {
  margin-bottom: 40px;
  background: var(--surface-2);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.recruitment-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 40px,
    rgba(201,168,76,0.025) 40px, rgba(201,168,76,0.025) 41px
  );
}
.recruitment-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  flex-wrap: wrap;
}
.recruitment-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  padding: 3px 12px;
  background: var(--gold-a10);
  border: 1px solid var(--gold-a25);
  border-radius: 999px;
}
.recruitment-title {
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 6px 0 10px;
}
.recruitment-desc {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.65;
  max-width: 460px;
}
.recruitment-desc strong { color: var(--gold); }
.recruitment-banner-right {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.recruitment-price-pair {
  background: var(--surface-2);
  border: 1px solid var(--gold-a20);
  border-radius: 12px;
  padding: 18px 24px;
  text-align: center;
  min-width: 150px;
}
.recruitment-role {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-sec);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.recruitment-rate {
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}
.recruitment-rate s { font-size: 16px; color: var(--text-dim); text-decoration: line-through; margin-right: 6px; }
.recruitment-rate strong { color: var(--gold); }
.recruitment-rate span { font-size: 14px; color: var(--text-dim); }

/* ── Intro Discount Badge on individual price cards ── */
.intro-discount-banner {
  margin: 0 28px 16px;
  background: var(--gold-a08);
  border: 1px solid var(--gold-a30);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.intro-tag {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.intro-prices { font-size: 14px; color: var(--text-sec); line-height: 1.4; }
.intro-prices s { color: var(--text-dim); text-decoration: line-through; }
.intro-prices strong { color: var(--gold); }

/* ═══════════════════════════════════════════
   TEST MODE — TEMPORARY — DO NOT SHIP TO PROD
   Remove testmode bar + body.testmode class to restore payment flow
═══════════════════════════════════════════ */
.testmode-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  background: repeating-linear-gradient(
    -55deg,
    var(--warning-bg) 0px, var(--warning-bg) 10px,
    var(--warning-bg-2) 10px, var(--warning-bg-2) 20px
  );
  border-bottom: 2px solid var(--warning);
  padding: 9px 20px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap;
}
.testmode-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--warning); color: var(--warning-bg);
  font-family: Arial, sans-serif; font-size: 14px; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px;
}
.testmode-badge::before { content: '⚠'; }
.testmode-text {
  font-family: Arial, sans-serif; font-size: 14px; font-weight: 500;
  color: var(--warning-text); letter-spacing: 0.3px;
}
.testmode-text strong { color: var(--warning); }
.testmode-pill {
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  background: rgba(232,160,32,0.15); border: 1px solid rgba(232,160,32,0.3);
  color: var(--warning); padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
/* Push fixed nav below test mode bar */
body.testmode .nav { top: 40px; }
body.testmode .hamburger { top: calc(50% + 20px); }
@media (max-width: 600px) {
  .testmode-bar { padding: 8px 12px; gap: 8px; }
  body.testmode .nav { top: 48px; }
}

/* ════════════════════════════════════════════════════
   MULTI-PHASE PROFILE FORM — SHARED STYLES
   Used by: recruit-innovators.html, recruit-investors.html
════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.pf-section {
  padding: 100px 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.pf-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.pf-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  position: relative;
  z-index: 2;
}

.pf-section-header h2 { margin-bottom: 12px; }
.pf-section-header p { font-size: 16px; }

/* ── Form card ── */
.pf-card {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}

/* ── Phase progress header ── */
.pf-progress-bar {
  display: flex;
  align-items: stretch;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.pf-progress-bar::-webkit-scrollbar { display: none; }

.pf-phase-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 16px 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-right: 1px solid var(--border-soft);
  transition: var(--transition);
  cursor: default;
  position: relative;
}
.pf-phase-tab:last-child { border-right: none; }

.pf-phase-tab .pf-phase-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  transition: var(--transition);
  flex-shrink: 0;
}

.pf-phase-tab .pf-phase-label { font-weight: 600;
  font-size:14px;
  letter-spacing: 0.8px;
  line-height: 1.3;
  text-align: center;
  color: var(--text-dim);
  transition: var(--transition);
}

/* Active phase */
.pf-phase-tab.pf-active {
  color: var(--gold);
  background: rgba(201,168,76,0.04);
}
.pf-phase-tab.pf-active .pf-phase-num {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg);
}
.pf-phase-tab.pf-active .pf-phase-label { color: var(--gold); }

/* Completed phase */
.pf-phase-tab.pf-done {
  color: var(--blue-bright);
}
.pf-phase-tab.pf-done .pf-phase-num {
  border-color: var(--blue-bright);
  background: var(--blue-bright);
  color: var(--bg);
  font-size: 14px;
}
.pf-phase-tab.pf-done .pf-phase-num::before { content: '✓'; }
.pf-phase-tab.pf-done .pf-phase-label { color: var(--blue-bright); }

/* ── Phase panels ── */
.pf-panels {
  position: relative;
  overflow: hidden;
}

.pf-panel {
  display: none;
  padding: 44px 48px;
  animation: pfSlideIn 0.35s cubic-bezier(0.4,0,0.2,1);
}

.pf-panel.pf-panel-active {
  display: block;
}

@keyframes pfSlideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.pf-panel-back {
  animation: pfSlideBack 0.35s cubic-bezier(0.4,0,0.2,1);
}
@keyframes pfSlideBack {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Phase heading ── */
.pf-phase-heading {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.pf-phase-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.pf-phase-title {
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pf-phase-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* ── Field groups ── */
.pf-fields { display: flex; flex-direction: column; gap: 24px; }

.pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pf-field { display: flex; flex-direction: column; gap: 8px; }

.pf-field label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--question);
}
.pf-field label .pf-label-hint {
  font-size:14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--question-sec);
  margin-left: 8px;
}

.pf-field label span.pf-optional {
  font-weight: 400;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  margin-left: 6px;
}

.pf-field label span.pf-req {
  color: var(--red);
  margin-left: 2px;
}

/* ── Inputs ── */
.pf-input,
.pf-select,
.pf-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.pf-input::placeholder,
.pf-textarea::placeholder { color: var(--text-dim); }

.pf-input:focus,
.pf-select:focus,
.pf-textarea:focus {
  border-color: var(--sel-border);
  background: var(--sel-bg);
  box-shadow: 0 0 0 3px var(--sel-bg);
}

.pf-input.pf-error,
.pf-select.pf-error,
.pf-textarea.pf-error {
  border-color: rgba(224,112,112,0.6);
  box-shadow: 0 0 0 3px rgba(224,112,112,0.08);
}

.pf-textarea { min-height: 96px; resize: vertical; line-height: 1.65; }
.pf-textarea.pf-tall { min-height: 120px; }

.pf-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23607080' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.pf-select option {
  background: var(--surface);
  color: var(--text-primary);
}

.pf-char-count {
  font-size: 14px;
  color: var(--text-dim);
  text-align: right;
  margin-top: -4px;
}

.pf-hint {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: -4px;
}

.pf-error-msg {
  font-size: 14px;
  color: var(--red);
  display: none;
  margin-top: -4px;
}
.pf-error-msg.pf-show { display: block; }

/* ── Chip multi-select ── */
.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Multi-select chips — use --sel-* tokens for theme consistency ── */
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-soft);
  background: var(--white-a03);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  line-height: 1;
}
.pf-chip:hover {
  border-color: var(--sel-border);
  color: var(--text-sec);
  background: var(--sel-bg);
  opacity: 0.8;
}
/* Selected state — same across all chips, driven by --sel-* tokens */
.pf-chip.pf-selected,
.pf-chip.pf-blue-theme.pf-selected {
  border-color: var(--sel-border);
  background: var(--sel-bg);
  color: var(--sel-text);
  font-weight: 700;
}
.pf-chip input[type="checkbox"],
.pf-chip input[type="radio"] { display: none; }

.pf-chip-check {
  font-weight: 600;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size:14px;
  font-weight: 600;
  transition: var(--transition);
  flex-shrink: 0;
}
.pf-chip.pf-selected .pf-chip-check,
.pf-chip.pf-blue-theme.pf-selected .pf-chip-check {
  border-color: var(--sel-check-bg);
  background: var(--sel-check-bg);
  color: var(--bg);
}
.pf-chip.pf-selected .pf-chip-check::after { content: '✓'; color: var(--bg); }

/* Radio chips (single select) */
.pf-chip-radio .pf-chip-check { border-radius: 50%; }

/* ── Conditional reveal ── */
.pf-conditional {
  display: none;
  padding: 20px;
  background: var(--white-a03);
  border: 1px solid var(--sel-border);
  border-left: 3px solid var(--sel-border);
  border-radius: var(--radius);
  margin-top: -8px;
}
.pf-conditional.pf-show { display: flex; flex-direction: column; gap: 18px; }

/* ── Toggle yes/no ── */
.pf-toggle-group {
  display: flex;
  gap: 10px;
}

.pf-toggle-option {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  user-select: none;
}

.pf-toggle-option:hover { border-color: var(--sel-border); color: var(--text-sec); background: var(--sel-bg); opacity: 0.8; }
.pf-toggle-option.pf-selected,
.pf-toggle-option.pf-selected-blue { border-color: var(--sel-border); background: var(--sel-bg); color: var(--sel-text); font-weight: 700; }
.pf-toggle-option input { display: none; }

/* ── Divider ── */
.pf-section-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 8px 0;
}

/* ── Form navigation ── */
.pf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-2);
}

.pf-step-indicator {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.pf-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-sec);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.pf-btn-back:hover { border-color: var(--border); color: var(--text-primary); }

.pf-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.pf-btn-next:hover { transform: translateY(-1px); }

.pf-btn-next-blue { background: linear-gradient(135deg, var(--blue), var(--blue-bright)); color: var(--bg); }
.pf-btn-next-blue:hover { box-shadow: 0 8px 24px var(--blue-a30); }

.pf-btn-next-gold { background: var(--gold); color: var(--bg); }
.pf-btn-next-gold:hover { background: var(--gold-light); box-shadow: 0 8px 24px var(--gold-a30); }

/* ── Success state ── */
.pf-success {
  display: none;
  padding: 72px 48px;
  text-align: center;
}

.pf-success.pf-show { display: block; }

.pf-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
}

.pf-success h3 {
  font-family: Arial, sans-serif;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 14px;
}

.pf-success p {
  font-size: 15px;
  color: var(--text-sec);
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

/* Match score preview */
.pf-match-preview {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 40px;
  margin-bottom: 32px;
}

.pf-match-preview-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.pf-match-score {
  font-family: Arial, sans-serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.pf-match-score-sub {
  font-size: 14px;
  color: var(--text-sec);
}

/* Consent checkbox */
.pf-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

.pf-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-soft);
  background: var(--surface-2);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--gold);
}

.pf-consent-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}
.pf-consent-text a { color: var(--gold); }

/* State select dropdown */
.pf-select-state { max-width: 220px; }

@media (max-width: 700px) {
  .pf-panel { padding: 28px 20px; }
  .pf-nav { padding: 18px 20px; flex-wrap: wrap; gap: 12px; }
  .pf-row { grid-template-columns: 1fr; }
  .pf-phase-tab .pf-phase-label { display: none; }
  .pf-success { padding: 44px 20px; }
  .pf-match-preview { padding: 20px 24px; }
}


/* ═══════════════ ROTATING PROMO BANNER ═══════════════════════════════════ */
.promo-banner {
  position: relative;
  z-index: 900;
  background: linear-gradient(90deg, #0D2E4A 0%, #185480 35%, #1D3D6B 65%, #185480 80%, #0D2E4A 100%);
  border-bottom: 3px solid #3498DB;
  overflow: hidden;
}
body { padding-top: 72px; }
body.testmode { padding-top: 112px; }
@media (max-width: 640px) { body.testmode { padding-top: 120px; } }

.promo-track {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.promo-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.promo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 6px 10px 6px 6px;
  border-radius: 50px;
  background: var(--white-a08);
  border: 1px solid var(--white-a15);
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.promo-link:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--white-a30);
}

.promo-badge {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size:14px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #2471A3;  /* was #3498DB — darkened for WCAG AA 4.5:1 contrast */
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

.promo-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #2ECC71;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
@media (max-width: 900px) {
  .promo-text { font-size:14px; letter-spacing: 0.8px; }
}
@media (max-width: 640px) {
  .promo-badge { display: none; }
  .promo-text { font-size:14px; letter-spacing: 0.5px; white-space: normal; text-align: center; line-height: 1.4; }
  .promo-track { height: auto; min-height: 56px; padding: 8px 12px; }
  .promo-slide { padding: 6px 8px; }
  .promo-link { gap: 8px; padding: 4px 12px; text-align: center; }
  .promo-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: none; padding: 4px 0; }
  .promo-slide.active { opacity: 1; pointer-events: auto; transform: none; }
}

.promo-arrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size:14px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  flex-shrink: 0;
  background: #2471A3;  /* was #3498DB — darkened for WCAG AA 4.5:1 contrast */
  border: none;
  color: #FFFFFF;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  animation: arrow-pulse 1.2s ease-in-out infinite;
}
.promo-link:hover .promo-arrow {
  background: #1A5276;  /* was #5BAEE8 — kept dark for hover contrast */
  animation: none;
}
@keyframes arrow-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%       { transform: scale(1.12); opacity: 1; }
}

.promo-dots {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 5px;
  align-items: center;
}
.promo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white-a30);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.promo-dot.active {
  background: var(--blue-bright);
  transform: scale(1.4);
}

.promo-progress {
  height: 2px;
  background: var(--white-a10);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.promo-progress-bar {
  height: 100%;
  background: var(--blue-bright);
  width: 0%;
  transition: width 0.1s linear;
}
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ─── WCAG 2.4.7 Accessibility Fixes (2026-03-11) ───────────────────────────── */

/* Global keyboard focus ring — gold 2px, matches brand */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove outline for mouse/touch users — no visual change for them */
:focus:not(:focus-visible) {
  outline: none;
}

/* WCAG 2.4.7 (2026-03-11): Split hover/focus — hover keeps gold bg,
   keyboard :focus uses global :focus-visible ring instead of outline:none */
@media (max-width: 768px) {
  .hamburger:hover { background: var(--gold-light); }
  .hamburger:focus:not(:focus-visible) { background: var(--gold-light); outline: none; }
}

/* ─── Notification dropdown — base hidden state (2026-03-11) ────────────────
   The dropdown is injected by site-components.js without inline display:none
   (removed to allow CSS class .open to control visibility).
   This rule provides the default hidden state so the dropdown is invisible
   until toggleNotif() adds the .open class.                                 */
#notif-dropdown { display: none; }
#notif-dropdown.open { display: block; }

/* ─── Promo banner — mid-screen text overflow fix (2026-03-11) ──────────────
   At 640–900px, white-space:nowrap caused text strings to overflow or overlap
   the badge. Added a 480–750px breakpoint where text wraps and badge hides,
   bridging the gap between the 900px font-shrink and 640px full wrap rules.  */
@media (max-width: 750px) {
  .promo-badge { display: none; }
  .promo-text { white-space: normal; text-align: center; line-height: 1.4; letter-spacing: 0.6px; font-size:14px; }
  .promo-track { height: auto; min-height: 56px; padding: 8px 12px; }
  .promo-slide { padding: 6px 8px; }
  .promo-link { gap: 8px; padding: 4px 12px; text-align: center; flex-wrap: wrap; }
}

/* ─── prefers-reduced-motion (2026-03-11) ──────────────────────────────────── */
@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;
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE LANDSCAPE FIXES — iOS & Android (2026-03-12)
   Covers: iPhone SE landscape (667px) → iPhone 14 Pro Max landscape (932px)
           Android landscape (600px–1280px)
   Nav breakpoint raised to 1024px covers all phone landscape widths.
   These rules fix the remaining layout issues in the 600–1024px range.
═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Testmode dev banner: prevent wrapping 640px–1024px ──────────────────
   flex-wrap:wrap on the bar causes it to go 2 lines on landscape phones,
   pushing the nav and content down unexpectedly. Force single line with
   smaller text and hide the pill to save space. */
@media (min-width: 641px) and (max-width: 1024px) {
  .testmode-bar {
    flex-wrap: nowrap;
    padding: 6px 16px;
    gap: 8px;
    overflow: hidden;
  }
  .testmode-badge {
    font-size:14px;
    letter-spacing: 1.5px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .testmode-text {
    font-size:14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
  }
  .testmode-pill { display: none; }
  body.testmode .nav { top: 36px; }
  body.testmode .hamburger { top: calc(50% + 18px); }
  body.testmode { padding-top: 108px; }
}

/* ── 2. Landscape orientation: short-screen hero fix ────────────────────────
   iPhone/Android in landscape has very short viewport height (~375–430px).
   Hero sections with tall padding clip content off screen. */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-inner { padding: 20px 24px 40px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 14px; margin: 12px 0 20px; }
  .hero-cta { gap: 10px; }
  .hero-stats { display: none; }
  section { padding: 48px 0; }
  section.hero, section.rh-hero, section.rl-hero { padding: 0; }
}

/* ── 3. Content grids: 960px→600px stacking for Android landscape ───────────
   Android landscape varies 600px–960px. Content grids using 2-col layouts
   that stack at 900px leave a dead zone at 900–960px on Android. */
@media (max-width: 960px) and (min-width: 901px) {
  .role-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 4. Hero stat bar: horizontal scroll prevention ─────────────────────────
   At 667–900px the 4-stat bar can overflow. Apply flex-wrap so it wraps
   into 2×2 grid rather than overflowing horizontally. */
@media (max-width: 900px) and (min-width: 601px) {
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-stat {
    flex: 0 0 calc(50% - 16px);
    border-right: none;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    margin: 4px;
  }
}

/* ── 5. Footer grid: 3-col is too tight at 900–1024px ──────────────────────
   We now show hamburger at 1024px but footer still has 3 columns.
   Switch to 1-col at 1024px to match the mobile experience. */
@media (max-width: 1024px) and (min-width: 601px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── 6. Contact form padding: tighten on landscape phones ──────────────────*/
@media (max-width: 900px) and (min-width: 601px) {
  .contact-form { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── 7. Join page role-list hero: padding fix ──────────────────────────────
   .rl-hero has large padding that creates dead space on landscape phones */
@media (max-width: 900px) and (min-width: 601px) {
  .rl-hero { padding: 120px 20px 60px !important; }
}

/* ── 8. Modal max-height on landscape phones ────────────────────────────────
   Modals with fixed padding overflow on short landscape screens */
@media (orientation: landscape) and (max-height: 500px) {
  .ob-modal {
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px 24px;
  }
  .ob-overlay { padding: 8px; }
}

/* ── 9. Promo banner: 900px–1024px range ───────────────────────────────────
   The 900px rule was previously the only shrink point. Now nav is hidden
   at 1024px, so we need the promo text to also shrink in this range. */
@media (max-width: 1024px) and (min-width: 751px) {
  .promo-text { font-size:14px; letter-spacing: 0.6px; }
}

/* ── 10. Prevent horizontal scroll globally on mobile ──────────────────────*/
@media (max-width: 1024px) {
  body { overflow-x: hidden; }
  .container, .nav-inner, .hero-inner { max-width: 100%; }
}

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

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE OPTIMISATION PASS — 2026-03-23
   Fixes reported issues: hero overflow, section padding, card grids,
   role cards, NDA section, feature grid, WIIFM cards
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────────────────────*/
@media (max-width: 640px) {
  .hero-inner {
    padding: 24px 16px 48px;
  }
  .hero-headline-wrap {
    height: clamp(80px, 22vw, 130px);
    margin-bottom: 16px;
  }
  .hero-hl {
    font-size: clamp(26px, 7.5vw, 38px) !important;
    line-height: 1.15;
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 24px;
    padding: 0 4px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 8px;
  }
  .hero-actions .btn {
    text-align: center;
  }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 12px;
    margin: 0 4px;
  }
  .hero-stat {
    flex: 1 1 45%;
    padding: 14px 10px;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
  .hero-stat:nth-child(odd) {
    border-right: 1px solid var(--border-soft);
  }
  .hero-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-label { font-size: 10px; }
}

/* ── Trust bar ─────────────────────────────────────────────────────────────*/
@media (max-width: 640px) {
  .trust-bar-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
  }
  .trust-item {
    font-size: 11px;
    gap: 4px;
  }
}

/* ── WIIFM section ─────────────────────────────────────────────────────────*/
@media (max-width: 640px) {
  #wiifm {
    padding: 48px 0 40px;
  }
  #wiifm .container {
    padding: 0 12px;
  }
  .wiifm-card {
    padding: 18px 16px !important;
  }
}

/* ── Why-us / general section cards ───────────────────────────────────────*/
@media (max-width: 640px) {
  #why-us {
    padding: 52px 0 !important;
  }
  #why-us .container {
    padding: 0 12px;
  }
  #how-it-works,
  #roles-section,
  section[id] {
    padding: 48px 0 !important;
  }
  .section-header h2 {
    font-size: clamp(20px, 6vw, 28px);
  }
}

/* ── Roles grid ────────────────────────────────────────────────────────────*/
@media (max-width: 640px) {
  .roles-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    padding: 0 12px;
  }
  .role-card {
    padding: 20px 18px !important;
  }
}

/* ── How it works steps ────────────────────────────────────────────────────*/
@media (max-width: 640px) {
  .steps-grid {
    gap: 12px;
    padding: 0 12px;
  }
}

/* ── No-broker / fee section ───────────────────────────────────────────────*/
@media (max-width: 640px) {
  #fees .container > div {
    flex-direction: column !important;
    padding: 24px 18px !important;
  }
  #fees h3 {
    font-size: clamp(18px, 5vw, 24px) !important;
  }
}

/* ── Feature / card grids ──────────────────────────────────────────────────*/
@media (max-width: 640px) {
  [style*="minmax(240px"] ,
  [style*="minmax(260px"] ,
  [style*="minmax(280px"] ,
  [style*="minmax(300px"] {
    grid-template-columns: 1fr !important;
  }
  .card {
    padding: 20px 16px !important;
  }
}

/* ── NDA accordion section ─────────────────────────────────────────────────*/
@media (max-width: 640px) {
  .nda-acc-trigger {
    padding: 14px 16px !important;
    font-size: 13px !important;
  }
  .nda-acc-id {
    display: none;
  }
}

/* ── Container padding on mobile ───────────────────────────────────────────*/
@media (max-width: 640px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* ── General section top / bottom spacing ──────────────────────────────────*/
@media (max-width: 640px) {
  section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  section.hero { padding: 0 !important; }
}

/* ── Logo map / hub canvas on mobile ───────────────────────────────────────*/
@media (max-width: 640px) {
  #hub-canvas-home {
    height: 280px !important;
  }
  .lm-wrap {
    flex-direction: column !important;
  }
  .lm-detail {
    max-width: 100% !important;
    min-height: unset !important;
  }
}

/* ── Badge profile cards (BPC) on mobile ──────────────────────────────────*/
@media (max-width: 640px) {
  .bpc-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Inline style grid overrides for mobile ────────────────────────────────
   Some grids use inline style grid-template-columns. We use !important
   to override only at mobile breakpoints.                                 */
@media (max-width: 480px) {
  [style*="grid-template-columns:2fr 1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── WIIFM 3-col grid → 1-col on mobile ──────────────────────────────────*/
@media (max-width: 768px) {
  #wiifm [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  #wiifm [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
