/* ─── Edge Realm — Nov 2026 rewrite ──────────────────────────────────────────
   Palette follows Rhodes's Nov 12 pitch deck:
     - Teal-black for dark sections (hero, closing, footer only)
     - Cream for body / content sections (dominant surface)
     - Mint teal as the primary accent (CTAs, highlights, stat values)
     - Amber as the secondary accent (industry-data stats, warnings)
     - Charcoal for text on cream; cream for text on teal-black
   Dark:light section ratio ~25:75 so the site reads editorial, not moody.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  /* Dark sections — Rhodes pitch deck p.1 teal-black */
  --ink:          #0D1F23;
  --ink-2:        #152B30;

  /* Light sections — Rhodes cream (p.2, p.4-20) */
  --cream:        #F0EADF;
  --cream-2:      #E5DFD2;
  --cream-3:      #D7D0C0;

  /* Primary accent — Rhodes mint teal */
  --mint:         #2ED4A8;
  --mint-dark:    #22A281;
  --mint-ink:     #0F7A5C;

  /* Secondary accent — Rhodes amber (industry data, caution) */
  --amber:        #E8B340;
  --amber-dark:   #C8921E;

  /* Brand blue (ERVault container) — kept for product shots only */
  --er-blue:      #1E5BCC;

  /* Text */
  --text:         #1F2528;   /* charcoal body text on cream */
  --text-muted:   #5A6670;
  --text-dim:     #7A8690;
  --text-invert:  #F0EADF;   /* cream body text on dark */
  --text-invert-m:#9BA8AA;

  /* Lines */
  --line:         #D7D0C0;   /* subtle hairline on cream */
  --line-dark:    #1F3338;   /* hairline on teal-black */

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;

  --container:    1200px;
  --gutter:       clamp(16px, 4vw, 32px);

  --shadow-sm:    0 1px 2px rgba(13, 31, 35, 0.06);
  --shadow:       0 6px 24px rgba(13, 31, 35, 0.08);
  --shadow-lg:    0 24px 60px rgba(13, 31, 35, 0.18);

  --fs-7xl: clamp(2.5rem, 6vw, 4.5rem);
  --fs-6xl: clamp(2rem, 4.5vw, 3.25rem);
  --fs-5xl: clamp(1.625rem, 3.2vw, 2.25rem);
  --fs-4xl: clamp(1.25rem, 2vw, 1.5rem);
  --fs-lg:  1.0625rem;
  --fs-md:  1rem;
  --fs-sm:  0.875rem;
  --fs-xs:  0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);     /* default surface is cream, NOT white */
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--mint-ink); text-decoration: none; }
a:hover { color: var(--mint-dark); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

/* ─── Container ──────────────────────────────────────────────────────────── */
.er-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Top nav (teal-black, reads like header band of the deck) ──────────── */
.er-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 31, 35, 0.95);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.er-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.er-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-invert);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}
.er-logo img { width: 28px; height: 28px; }
.er-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.er-nav-links a {
  color: var(--text-invert);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.er-nav-links a:hover { color: var(--mint); border-bottom-color: var(--mint); }
.er-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.er-nav-cta:hover { background: var(--mint-dark); color: var(--ink); }

.er-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-invert);
  padding: 8px;
  cursor: pointer;
}
@media (max-width: 860px) {
  .er-nav-links, .er-nav-cta { display: none; }
  .er-nav-toggle { display: inline-flex; }
  .er-nav.is-open .er-nav-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ink);
    padding: 20px var(--gutter);
    border-bottom: 1px solid var(--line-dark);
  }
  .er-nav.is-open .er-nav-cta {
    display: inline-flex;
    margin: 0 var(--gutter) 20px;
  }
}

/* ─── Hero section (compact, not sprawling) ──────────────────────────────── */
.er-hero {
  position: relative;
  min-height: clamp(360px, 54vh, 540px);
  display: flex;
  align-items: center;
  color: var(--text-invert);
  background: var(--ink) center/cover no-repeat;
  overflow: hidden;
}
/* Optional cinematic background video. Sits behind the overlay. Falls back
   to the still background-image on the .er-hero element for anyone whose
   browser blocks autoplay. */
.er-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.er-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(13, 31, 35, 0.92) 0%,
    rgba(13, 31, 35, 0.82) 60%,
    rgba(13, 31, 35, 0.92) 100%);
  z-index: 1;
}
.er-hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 7vh, 80px) 0;
  max-width: 820px;
}
.er-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--mint);
  margin-bottom: 20px;
}
.er-hero h1 {
  font-size: var(--fs-7xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-invert);
}
.er-hero-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-invert-m);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.er-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.er-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.er-btn-primary {
  background: var(--mint);
  color: var(--ink);
}
.er-btn-primary:hover { background: var(--mint-dark); color: var(--ink); }
.er-btn-ghost {
  background: transparent;
  color: var(--text-invert);
  border-color: rgba(240, 234, 223, 0.5);
}
.er-btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.er-btn-dark {
  background: var(--ink);
  color: var(--text-invert);
}
.er-btn-dark:hover { background: var(--ink-2); color: var(--text-invert); }
.er-btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.er-btn-outline:hover { background: var(--ink); color: var(--cream); }
.er-btn-sm { padding: 9px 16px; font-size: var(--fs-xs); }

/* ─── Section pattern ────────────────────────────────────────────────────── */
.er-section {
  padding: clamp(56px, 9vh, 96px) 0;
}
.er-section--cream {       /* dominant surface — default */
  background: var(--cream);
}
.er-section--cream-2 {
  background: var(--cream-2);
}
.er-section--dark {
  background: var(--ink);
  color: var(--text-invert);
}
.er-section--dark h2, .er-section--dark h3 { color: var(--text-invert); }
.er-section--dark p { color: var(--text-invert-m); }
.er-section--ink2 {
  background: var(--ink-2);
  color: var(--text-invert);
}
.er-section--ink2 h2, .er-section--ink2 h3 { color: var(--text-invert); }
.er-section--ink2 p { color: var(--text-invert-m); }

.er-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.er-section-head .er-eyebrow {
  color: var(--mint-ink);
  border-color: var(--mint-ink);
}
.er-section-head h2 {
  font-size: var(--fs-6xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.er-section--dark .er-section-head h2,
.er-section--ink2 .er-section-head h2 { color: var(--text-invert); }
.er-section-head p {
  font-size: var(--fs-lg);
  color: var(--text-muted);
}
.er-section--dark .er-section-head p,
.er-section--ink2 .er-section-head p { color: var(--text-invert-m); }
.er-section--dark .er-section-head .er-eyebrow,
.er-section--ink2 .er-section-head .er-eyebrow { color: var(--mint); border-color: var(--mint); }

/* ─── Stat row (big numbers) ─────────────────────────────────────────────── */
.er-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 40px;
}
/* Pin to 2x2 on tablet+ so 4 stats never orphan a card on the second row. */
@media (min-width: 720px) {
  .er-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Challenge belt (4-card grid, always 2x2 on tablet+) ──────────────── */
.er-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .er-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.er-stat { padding: 0 8px; border-top: 1px solid var(--line); padding-top: 24px; }
.er-section--dark .er-stat,
.er-section--ink2 .er-stat { border-color: var(--mint); }
.er-stat-val {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--mint-ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.er-section--dark .er-stat-val,
.er-section--ink2 .er-stat-val { color: var(--mint); }
/* Amber variant for industry-problem stats (per Rhodes's p.3) */
.er-stat--amber .er-stat-val { color: var(--amber-dark); }
.er-section--dark .er-stat--amber .er-stat-val,
.er-section--ink2 .er-stat--amber .er-stat-val { color: var(--amber); }
.er-stat--amber { border-top-color: var(--amber-dark); }
.er-section--dark .er-stat--amber,
.er-section--ink2 .er-stat--amber { border-top-color: var(--amber); }

.er-stat-lbl {
  font-size: var(--fs-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 8px;
}
.er-section--dark .er-stat-lbl, .er-section--ink2 .er-stat-lbl { color: var(--text-invert); }
.er-stat-ctx {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.er-section--dark .er-stat-ctx, .er-section--ink2 .er-stat-ctx { color: var(--text-invert-m); }
.er-stat-src {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: 8px;
  font-style: italic;
}

/* ─── Pillar cards ───────────────────────────────────────────────────────── */
.er-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.er-pillar {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.er-pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--amber));
}
.er-pillar h3 {
  font-size: var(--fs-4xl);
  color: var(--ink);
  margin-bottom: 8px;
}
.er-pillar-tag {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--mint-ink);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.er-pillar p { color: var(--text-muted); flex: 1; }
.er-pillar .er-btn { margin-top: 20px; align-self: flex-start; }

/* ─── Sector tiles ───────────────────────────────────────────────────────── */
.er-sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.er-sector {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  color: var(--text-invert);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.er-sector:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text-invert); }
.er-sector-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  z-index: 0;
}
.er-sector::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13, 31, 35, 0.35) 0%,
    rgba(13, 31, 35, 0.85) 60%,
    rgba(13, 31, 35, 0.95) 100%);
  z-index: 1;
}
.er-sector-body {
  position: relative;
  z-index: 2;
  padding: 24px 24px 22px;
}
.er-sector h3 {
  font-size: var(--fs-4xl);
  color: var(--text-invert);
  margin-bottom: 8px;
}
.er-sector-outcome {
  font-size: var(--fs-sm);
  color: var(--text-invert-m);
  margin: 0;
}

/* ─── Size slider (platform page) ────────────────────────────────────────── */
.er-sizer {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.er-sizer-range {
  width: 100%;
  margin: 24px 0 14px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--mint), var(--amber));
  outline: none;
}
.er-sizer-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--ink);
  border: 3px solid var(--cream);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--ink), var(--shadow);
}
.er-sizer-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--ink);
  border: 3px solid var(--cream);
  border-radius: 50%;
  cursor: pointer;
}
.er-sizer-ticks {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.er-sizer-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
@media (max-width: 720px) {
  .er-sizer-detail { grid-template-columns: 1fr; }
}
.er-sizer-detail img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.er-sizer-tier-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint-ink);
  margin-bottom: 8px;
}
.er-sizer-tier-name {
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
.er-sizer-tier-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: var(--fs-sm);
  margin-bottom: 24px;
}
.er-sizer-tier-specs dt {
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
}
.er-sizer-tier-specs dd {
  margin: 0;
  color: var(--text-muted);
}

/* ─── Mechanism grid (ER Cyber Membrane) ─────────────────────────────────── */
.er-mech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.er-mech-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.er-mech-item::before {
  content: "";
  position: absolute; top: 0; left: 24px; width: 32px; height: 2px;
  background: var(--mint-ink);
}
.er-mech-item h4 {
  font-size: var(--fs-md);
  color: var(--ink);
  margin-top: 8px;
  margin-bottom: 8px;
  font-weight: 800;
}
.er-mech-item p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
}
/* On dark section the mechanism items invert */
.er-section--dark .er-mech-item,
.er-section--ink2 .er-mech-item {
  background: rgba(240, 234, 223, 0.04);
  border-color: var(--line-dark);
}
.er-section--dark .er-mech-item::before,
.er-section--ink2 .er-mech-item::before { background: var(--mint); }
.er-section--dark .er-mech-item h4,
.er-section--ink2 .er-mech-item h4 { color: var(--text-invert); }
.er-section--dark .er-mech-item p,
.er-section--ink2 .er-mech-item p { color: var(--text-invert-m); }

/* ─── Leadership grid ────────────────────────────────────────────────────── */
.er-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.er-person {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 3px solid var(--mint-ink);
  text-align: center;
}
.er-person-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  border: 3px solid var(--mint-ink);
  box-shadow: var(--shadow-sm);
}
.er-person-initials {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--ink);
  color: var(--mint);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 3px solid var(--mint-ink);
}
.er-person h3 {
  font-size: var(--fs-4xl);
  color: var(--ink);
  margin-bottom: 4px;
}
.er-person-title {
  font-size: var(--fs-sm);
  color: var(--mint-ink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.er-person-bio {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 14px;
}
.er-person-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint-ink);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.15s, color 0.15s;
}
.er-person-linkedin:hover {
  border-color: var(--mint-ink);
  color: var(--mint-dark);
}
.er-person-linkedin svg { width: 14px; height: 14px; fill: currentColor; }

/* ─── Gated card (resources / contact) ───────────────────────────────────── */
.er-gate {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}
.er-gate-badge {
  display: inline-block;
  background: var(--mint-ink);
  color: var(--cream);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.er-gate h2 {
  font-size: var(--fs-5xl);
  color: var(--ink);
  margin-bottom: 12px;
}
.er-gate p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ─── Form ───────────────────────────────────────────────────────────────── */
.er-form {
  display: grid;
  gap: 16px;
  text-align: left;
}
.er-field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.er-field input,
.er-field select,
.er-field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text);
}
.er-field input:focus,
.er-field select:focus,
.er-field textarea:focus {
  outline: none;
  border-color: var(--mint-ink);
  box-shadow: 0 0 0 3px rgba(46, 212, 168, 0.18);
}
.er-field textarea { min-height: 120px; resize: vertical; }
.er-form .er-btn { justify-self: start; }
.er-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .er-form-row { grid-template-columns: 1fr; } }

/* ─── Survey (clone, matches the public page) ────────────────────────────── */
.sv-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.sv-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sv-section-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint-ink);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-sm);
}
.sv-section-head h3 { margin: 0; color: var(--ink); font-size: var(--fs-4xl); }
.sv-q { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.sv-q:last-child { border-bottom: none; }
.sv-q-text { color: var(--text); margin: 0 0 14px; font-size: var(--fs-sm); }
.sv-q-text strong { color: var(--mint-ink); }
.sv-q-row { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: end; }
.sv-mini-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.sv-scale-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.sv-scale-val {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--mint-ink);
  font-variant-numeric: tabular-nums;
}
.sv-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(to right,
    var(--mint) var(--sv-fill, 50%),
    var(--cream-3) var(--sv-fill, 50%));
  outline: none;
}
.sv-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--ink);
  border: 3px solid var(--cream);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--ink);
}
.sv-range::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--ink);
  border: 3px solid var(--cream);
  border-radius: 50%;
  cursor: pointer;
}
.sv-scale-ticks {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

/* ─── Login card (portal + investor) ─────────────────────────────────────── */
.er-login-wrap {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gutter);
  background: var(--ink);
}
.er-login-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--mint);
}
.er-login-card h1 { color: var(--ink); font-size: var(--fs-5xl); margin-bottom: 8px; }
.er-login-card p.er-login-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: var(--fs-sm);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.er-foot {
  background: var(--ink);
  color: var(--text-invert-m);
  padding: 56px 0 28px;
  border-top: 1px solid var(--line-dark);
}
.er-foot-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 860px) {
  .er-foot-cols { grid-template-columns: 1fr 1fr; }
}
.er-foot-col h5 {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin: 0 0 14px;
}
.er-foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.er-foot-col a {
  color: var(--text-invert-m);
  font-size: var(--fs-sm);
}
.er-foot-col a:hover { color: var(--mint); }
.er-foot-brand p {
  font-size: var(--fs-sm);
  margin-top: 12px;
  color: var(--text-invert-m);
  max-width: 320px;
}
.er-foot-sub {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  flex-wrap: wrap;
}

/* ─── Utility ────────────────────────────────────────────────────────────── */
.er-center { text-align: center; }
.er-dim    { color: var(--text-muted); }
.er-mt-32  { margin-top: 32px; }
.er-mt-48  { margin-top: 48px; }
.er-mt-64  { margin-top: 64px; }

/* Preview banner — removed at cutover */
.er-preview-banner {
  background: var(--amber);
  color: var(--ink);
  text-align: center;
  padding: 10px var(--gutter);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.er-preview-banner a { color: var(--ink); text-decoration: underline; }

/* ── FAQ accordion (sector whitepaper + /faq) ───────────────────────── */
.er-faq { max-width: 820px; margin: 0 auto; }
.er-faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.er-faq-item:last-child { border-bottom: 1px solid var(--line); }
.er-faq-item summary {
  cursor: pointer;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  padding-right: 28px;
  position: relative;
}
.er-faq-item summary::-webkit-details-marker { display: none; }
.er-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--mint-ink);
  font-weight: 700;
  font-size: 1.4em;
  line-height: 1;
  transition: transform 0.15s ease;
}
.er-faq-item[open] summary::after { content: "-"; }
.er-faq-item p {
  margin: 14px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Long-form prose (legal pages, long articles) ───────────────────── */
.er-prose p { font-size: var(--fs-base); color: var(--text); line-height: 1.7; margin: 0 0 16px; }
.er-prose h2 { font-size: var(--fs-2xl); color: var(--ink); margin: 40px 0 16px; font-weight: 700; letter-spacing: -0.015em; }
.er-prose h3 { font-size: var(--fs-xl);  color: var(--ink); margin: 28px 0 12px; font-weight: 700; }
.er-prose ul { margin: 0 0 16px 24px; padding: 0; }
.er-prose li { margin: 0 0 8px; color: var(--text); line-height: 1.7; }
.er-prose a  { color: var(--mint-ink); font-weight: 600; text-decoration: underline; }
.er-prose a:hover { color: var(--ink); }
.er-prose strong { color: var(--ink); }
