/* ============================================================
   FindingPotential — Main Stylesheet
   Design system: CLAUDE.md v0.3
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
  /* Core palette */
  --navy:         #00345C;
  --navy-dark:    #002448;
  --navy-mid:     #1F3864;
  --green:        #4EAA33;
  --green-dark:   #357223;
  --sky:          #7EB2CE;
  --sky-light:    #C5DDE9;
  --blue:         #2F5496;
  --ink:          #1A1A1A;
  --grey:         #5F5F5F;
  --grey-light:   #767676;   /* raised from #9A9A9A — 4.54:1 on white (WCAG AA) */
  --border:       #E2E8F0;
  --white:        #FFFFFF;

  /* Section backgrounds */
  --cream:        #FAFBFC;
  --sand:         #F1F5F9;
  --sand-dark:    #E2E8F0;
  --rose:         #EEF2FF;
  --sage:         #E5EDE2;
  --sky-wash:     #EFF6FA;

  /* Typography */
  --font-logo:    'Museo', 'Museo 500', 'Playfair Display', 'Rockwell', Georgia, serif;
  --font-display: 'Playfair Display', 'Rockwell', 'Georgia', serif;
  --font-heading: 'DM Sans', 'Gill Sans', 'Trebuchet MS', system-ui, sans-serif;
  --font-body:    'Inter', 'Roboto', system-ui, -apple-system, sans-serif;

  /* Score colours (traffic-light: >7 green, 4-7 orange, <4 red) */
  --score-orange:      #F59E0B;   /* bars/fills */
  --score-orange-text: #B45309;   /* 4.5:1 on white */
  --score-red:         #C00000;   /* bars/fills */
  --score-red-text:    #C00000;   /* 6.5:1 on white */

  /* Easing tokens */
  --ease-spring:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:  cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:     cubic-bezier(0.0, 0, 0.2, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --section-pad:  96px;
  --container:    1200px;
  --container-narrow: 880px;
  --container-wide: 1440px;

  /* Nav height */
  --nav-h: 72px;
}

/* ============================================================
   2. SKIP LINK (accessibility)
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ============================================================
   3. RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--navy);
}

ul, ol {
  list-style: none;
}

/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */

.display {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.08;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

h3, .h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h4, .h4 {
  font-family: 'Roboto', var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.lede {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--grey);
}

.body-large {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  margin-top: 20px;
}

p {
  margin-bottom: 20px;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  display: inline-block;
  margin-bottom: 20px;
  background: rgba(78, 170, 51, 0.10);
  border: 1px solid rgba(78, 170, 51, 0.28);
  border-radius: 100px;
  padding: 5px 14px;
  line-height: 1.4;
}

/* Italic accent in headlines */
h1 em, .h1 em, .display em {
  font-style: italic;
  color: var(--green);
  font-weight: inherit;
}

h2 em, .h2 em {
  font-style: italic;
  color: var(--green);
}

h3 em, .h3 em {
  font-style: italic;
  color: var(--green);
}

/* ============================================================
   4. LAYOUT
   ============================================================ */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: 40px;
}

.container-wide {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 40px;
}

.section {
  padding-block: var(--section-pad);
}

.section-sm {
  padding-block: 64px;
}

.section-header {
  margin-bottom: 64px;
}

.section-header .lede {
  margin-top: 20px;
}

/* Section backgrounds */
.bg-cream     { background: var(--cream); }
.bg-sand      { background: var(--sand); }
.bg-rose      { background: var(--rose); }
.bg-sage      { background: var(--sage); }
.bg-sky-wash  { background: var(--sky-wash); }
.bg-navy      { background: var(--navy); }

/* Two-column grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.grid-2.copy-right {
  direction: rtl;
}

.grid-2.copy-right > * {
  direction: ltr;
}

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

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

.grid-5-7 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.nav.scrolled {
  background: rgba(250, 251, 252, 0.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 52, 92, 0.08);
}

.nav-inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-logo {
  font-family: var(--font-logo);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  transform: translateY(-1px);
}

.nav-logo img {
  height: 22px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  position: relative;
  top: -1px;
  filter: brightness(0);
  opacity: 0.75;
}

.nav-logo em {
  font-style: normal;
  font-weight: 600;
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--grey);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
  transition: width 0.25s var(--ease-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link-has-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-link-has-menu svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.nav-link-has-menu:hover svg {
  transform: rotate(180deg);
}

/* Mega menu */
.nav-mega-wrap {
  position: relative;
}

.nav-mega {
  position: absolute;
  top: calc(100% + 16px);
  left: -24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0,52,92,0.06), 0 24px 64px rgba(0,52,92,0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 480px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-mega-wrap:hover .nav-mega,
.nav-mega-wrap:focus-within .nav-mega {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-mega-item {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-left: 3px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-mega-item:hover,
.nav-mega-item:focus-visible {
  background: rgba(11,29,53,0.06);
  border-left-color: var(--green);
  outline: none;
}

.nav-mega-item:hover .nav-mega-item-name {
  color: var(--green);
}

.nav-mega-item-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.nav-mega-item-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.4;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Smaller Book a demo button in nav */
.nav-actions .btn-primary {
  padding: 9px 18px;
  font-size: 13px;
}

/* Sign in — styled as a nav link, not a button */
.nav-actions .btn-ghost {
  padding: 0 0 4px 0;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--grey);
  border: none;
  background: transparent;
  position: relative;
}

.nav-actions .btn-ghost::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
  transition: width 0.25s var(--ease-smooth);
}

.nav-actions .btn-ghost:hover {
  color: var(--navy);
  transform: none;
}

.nav-actions .btn-ghost:hover::after {
  width: 100%;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s;
}

/* Mobile nav overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 40px 48px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-mobile-link {
  font-family: var(--font-heading);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s;
}

.nav-mobile-link:hover {
  color: var(--green);
}

.nav-mobile-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65); /* raised from 0.35 — was 2.85:1, now 6.25:1 */
  padding: 16px 0 4px;
  display: block;
}

.nav-mobile-sublink {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  padding: 9px 0 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid rgba(78,170,51,0.4);
  transition: color 0.2s, border-left-color 0.2s;
  display: block;
}

.nav-mobile-sublink:hover {
  color: var(--green);
  border-left-color: var(--green);
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 32px;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font: 500 15px/1 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.25, 0.1, 0.25, 1);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 3px;
}

/* Primary — navy */
.btn-primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,52,92,0.28), 0 0 0 4px rgba(0,52,92,0.08);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

/* Secondary — outline navy */
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
}

/* Green emphasis */
.btn-green {
  background: var(--green-dark);
  color: white;
  border-color: var(--green-dark);
}

.btn-green:hover {
  background: #2a5c1c;
  border-color: #2a5c1c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(53,114,35,0.32), 0 0 0 4px rgba(53,114,35,0.10);
}

.btn-green:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

/* Green outline */
.btn-green-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-green-outline:hover {
  background: var(--green-dark);
  color: white;
  transform: translateY(-2px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--green-dark);
}

.btn-ghost:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-arrow {
  transition: transform 0.22s var(--ease-smooth);
}

/* On dark (navy) backgrounds */
.bg-navy .btn-primary {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.bg-navy .btn-primary:hover {
  background: #2a5c1c;
  border-color: #2a5c1c;
}

.bg-navy .btn-secondary {
  border-color: rgba(255,255,255,0.35);
  color: white;
}

.bg-navy .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   7. CARDS
   ============================================================ */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow:
    0 1px 2px rgba(0, 52, 92, 0.04),
    0 4px 12px rgba(0, 52, 92, 0.06),
    0 20px 48px -12px rgba(0, 52, 92, 0.10);
  transition: transform 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(0,52,92,0.04),
    0 8px 24px rgba(0,52,92,0.10),
    0 32px 64px -16px rgba(0,52,92,0.14);
}

.card-sm {
  border-radius: 12px;
  padding: 24px;
}

.problem-card {
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: var(--problem-accent, var(--green));
}

.problem-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--problem-icon-bg, linear-gradient(135deg, rgba(78,170,51,0.12) 0%, rgba(126,178,206,0.10) 100%));
  transition: transform 0.3s var(--ease-spring);
}

.problem-card:hover .card-icon {
  transform: none;
}

.problem-card .card-icon svg {
  width: 28px;
  height: 28px;
}

.problem-card .problem-num {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--problem-accent, var(--green-dark));
  margin-bottom: 12px;
  display: block;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78,170,51,0.12) 0%, rgba(126,178,206,0.10) 100%);
  border: 1px solid rgba(78,170,51,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-dark);
  flex-shrink: 0;
}

.card-icon svg,
.card-icon i {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.card h3 {
  margin-bottom: 14px;
}

.card h4 {
  margin-bottom: 12px;
}

/* ============================================================
   8. FORMS
   ============================================================ */

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

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font: 400 16px/1.5 var(--font-body);
  color: var(--ink);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 4px rgba(53, 114, 35, 0.14);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #ABABAB;
}

/* ============================================================
   8b. WAYFINDING STRIP
   ============================================================ */

.wayfinding-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.wayfinding-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wayfinding-home {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.wayfinding-home:hover { color: var(--navy); }

.wayfinding-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.wayfinding-prev,
.wayfinding-next {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.wayfinding-prev:hover,
.wayfinding-next:hover { color: var(--green); }

.wayfinding-current {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* Mobile: show home link + step indicator only */
@media (max-width: 600px) {
  .wayfinding-inner {
    padding: 0 20px;
  }
  .wayfinding-prev,
  .wayfinding-next {
    display: none;
  }
  .wayfinding-nav {
    gap: 0;
  }
}

/* ============================================================
   9. HERO SECTIONS
   ============================================================ */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-mesh {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-mesh::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 50% 42% at 22% 52%, rgba(78, 170, 51, 0.11) 0%, transparent 58%),
    radial-gradient(ellipse 46% 62% at 82% 55%, rgba(126, 178, 206, 0.13) 0%, transparent 58%);
  animation: meshDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 52, 92, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.hero-mesh > * {
  position: relative;
  z-index: 1;
}

.hero-inner {
  width: 100%;
  padding-block: 80px 96px;
}

.hero-content {
  max-width: 720px;
}

.hero-content .eyebrow {
  margin-bottom: 24px;
}

.hero-content h1 {
  margin-bottom: 24px;
  font-family: 'DM Sans', 'Gill Sans', 'Trebuchet MS', system-ui, sans-serif;
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-content .lede {
  margin-bottom: 40px;
  max-width: 560px;
  margin-inline: auto;
  font-size: 18px;
}

.hero-split .hero-content .lede {
  margin-inline: 0;
}

/* Hero with visual split */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ============================================================
   10. ANIMATIONS & KEYFRAMES
   ============================================================ */

@keyframes ringPulse {
  0%   { box-shadow: 0 0 0 0 rgba(102, 153, 0, 0.40); }
  70%  { box-shadow: 0 0 0 10px rgba(102, 153, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(102, 153, 0, 0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.4); }
  55%  { transform: scale(1.18); }
  75%  { transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

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

@keyframes scoreBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  70%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

@keyframes barPop {
  0%   { transform: scaleX(1); }
  30%  { transform: scaleX(1.04); }
  60%  { transform: scaleX(0.98); }
  100% { transform: scaleX(1); }
}

@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, -3%) scale(1.07); }
}

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

@keyframes pillStamp {
  0%   { opacity: 0; transform: scale(0.55) translateY(10px); }
  60%  { transform: scale(1.12) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Scroll reveal — initial state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.48s var(--ease-out), transform 0.48s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Directional slide reveals for step-band columns */
.reveal-from-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.54s var(--ease-out), transform 0.54s var(--ease-out);
}
.reveal-from-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.54s var(--ease-out), transform 0.54s var(--ease-out);
}
.reveal-from-left.visible,
.reveal-from-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-from-left.reveal-delay-2,
.reveal-from-right.reveal-delay-2 { transition-delay: 0.18s; }

/* Hero stagger — initial state (JS removes .hero-stagger-hidden) */
.hero-stagger > * {
  opacity: 0;
  transform: translateY(24px);
}

.hero-stagger.animated > *:nth-child(1) { animation: fadeUp 0.55s var(--ease-spring) 0.05s both; }
.hero-stagger.animated > *:nth-child(2) { animation: fadeUp 0.55s var(--ease-spring) 0.12s both; }
.hero-stagger.animated > *:nth-child(3) { animation: fadeUp 0.55s var(--ease-spring) 0.19s both; }
.hero-stagger.animated > *:nth-child(4) { animation: fadeUp 0.55s var(--ease-spring) 0.26s both; }
.hero-stagger.animated > *:nth-child(5) { animation: fadeUp 0.55s var(--ease-spring) 0.33s both; }
.hero-stagger.animated > *:nth-child(6) { animation: fadeUp 0.55s var(--ease-spring) 0.40s both; }

.hero-visual-stagger {
  opacity: 0;
  transform: translateY(48px);
}

.hero-visual-stagger.animated {
  animation: slideUpIn 0.72s var(--ease-spring) 0.44s both;
}

/* ============================================================
   11. CUSTOM CURSOR
   ============================================================ */

.custom-cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 52, 92, 0.2);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-smooth), height 0.25s var(--ease-smooth), background 0.25s var(--ease-smooth), opacity 0.3s;
  opacity: 0;
}

.custom-cursor.visible { opacity: 1; }
.custom-cursor.cta-hover {
  width: 40px;
  height: 40px;
  background: rgba(78, 170, 51, 0.15);
}

/* ============================================================
   12. FIT SCORE CARD (homepage dark callout)
   ============================================================ */

.fit-score-card {
  background: var(--navy);
  border-radius: 24px;
  padding: 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.fit-score-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78,170,51,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.fit-score-card .eyebrow {
  color: var(--green);
  background: rgba(78,170,51,0.18);
  border-color: rgba(78,170,51,0.4);
}

.fit-score-number {
  font-family: 'DM Sans', 'Gill Sans', 'Trebuchet MS', system-ui, sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-block: 8px 16px;
}

.fit-score-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.fit-score-bar-fill {
  height: 100%;
  background: var(--sky);
  border-radius: 3px;
  transition: width 0.8s ease-out;
}

.fit-score-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   13. RANKED LIST (Match dashboard mock)
   ============================================================ */

.ranked-list {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,52,92,0.08), 0 20px 48px rgba(0,52,92,0.06);
}

.ranked-list-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ranked-list-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.ranked-list-meta {
  font-size: 12px;
  color: var(--grey-light);
}

.ranked-list-item {
  padding: 18px 28px;
  border-bottom: 1px solid rgba(229,224,213,0.5);
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  align-items: center;
  transition: background 0.15s;
}

.ranked-list-item:last-child {
  border-bottom: none;
}

/* Avatar variant — adds a 32px column after the rank number */
.ranked-list--avatars .ranked-list-item {
  grid-template-columns: 32px 32px 1fr auto;
  gap: 12px;
}

.ranked-list-item:hover {
  background: var(--cream);
  cursor: pointer;
}

.rank-num {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-light);
  text-align: center;
}

.rank-info {}

.rank-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.rank-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  width: 160px;
}

.rank-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease-out;
}

.rank-bar-fill.score-high,
.fit-score-bar-fill.score-high  { background: var(--green-dark); }
.rank-bar-fill.score-mid,
.fit-score-bar-fill.score-mid   { background: var(--score-orange); }
.rank-bar-fill.score-low,
.fit-score-bar-fill.score-low   { background: var(--score-red); }

.rank-score {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  min-width: 52px;
  text-align: right;
}

.rank-score.score-high  { color: var(--green-dark); }        /* 5.86:1 on white */
.rank-score.score-mid   { color: var(--score-orange-text); } /* 7.1:1 on white  */
.rank-score.score-low   { color: var(--score-red-text); }    /* 6.5:1 on white  */

.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;
}


/* ============================================================
   14. PYRAMID DISPLAY (Match page)
   ============================================================ */

.pyramid-display {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,52,92,0.08), 0 20px 48px rgba(0,52,92,0.06);
}

.pyramid-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pyramid-header-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.pyramid-header-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pyramid-row {
  border-bottom: 1px solid rgba(229,224,213,0.5);
  cursor: pointer;
}

.pyramid-row:last-child {
  border-bottom: none;
}

.pyramid-row-tier1 {
  padding: 16px 28px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  transition: background 0.15s;
}

.pyramid-row:hover .pyramid-row-tier1 {
  background: var(--cream);
}

.pyramid-row.active .pyramid-row-tier1 {
  background: var(--sky-wash);
  border-left: 3px solid var(--sky);
}

.pyramid-row-tier1:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.pyramid-row-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.pyramid-row-score {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
}

.pyramid-row-score.score-mid { color: var(--score-orange-text); }
.pyramid-row-score.score-low { color: var(--score-red-text); }

.pyramid-expand-icon {
  width: 20px;
  height: 20px;
  color: var(--grey-light);
  transition: transform 0.25s var(--ease-in-out), color 0.2s;
}

.pyramid-row.active .pyramid-expand-icon {
  transform: rotate(180deg);
  color: var(--sky);
}

.pyramid-tier2 {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s var(--ease-spring), opacity 0.25s;
  opacity: 0;
}

.pyramid-row.active .pyramid-tier2 {
  max-height: 400px;
  opacity: 1;
}

.pyramid-tier2-inner {
  padding: 16px 28px 20px;
  background: rgba(239,246,250,0.5);
}

.pyramid-behaviour-row {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.pyramid-behaviour-row:last-child {
  margin-bottom: 0;
}

.pyramid-behaviour-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
}

.pyramid-b-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.pyramid-b-fill {
  height: 100%;
  background: var(--sky);
  border-radius: 3px;
  transition: width 0.5s ease-out;
}

.pyramid-b-fill.flag { background: var(--green-dark); }

.pyramid-b-score {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

.pyramid-tier3 {
  padding: 12px 28px 18px;
  background: rgba(239,246,250,0.5);
  border-top: 1px solid rgba(229,224,213,0.4);
}

.pyramid-view-report {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}

.pyramid-view-report:hover {
  color: var(--navy);
  gap: 10px;
}

/* ============================================================
   15. JOURNEY SCROLL (timeline)
   ============================================================ */

.journey-scroll {
  position: relative;
  padding-left: 80px;
}

.journey-thread {
  position: absolute;
  left: 34px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border);
  border-radius: 2px;
}

.journey-thread-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, var(--navy), #3E6B9A);
  height: 0;
  transition: height 0.1s linear;
}

.journey-thread-fill::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #669900;
  box-shadow: 0 0 0 4px rgba(102, 153, 0, 0.20), 0 0 18px rgba(102, 153, 0, 0.50);
  opacity: 0;
  transition: opacity 0.35s;
}

.journey-thread-fill.drawing::after {
  opacity: 1;
}

.journey-step {
  position: relative;
  margin-bottom: 14px;
  padding-bottom: 0;
}

.journey-step:last-child {
  margin-bottom: 0;
}

.journey-node {
  position: absolute;
  left: -66px;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #669900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  z-index: 1;
  transition: box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(102,153,0,0.30);
}

.journey-node.active {
  animation: ringPulse 1.8s ease-out infinite;
  background: #669900;
}

.journey-node.popped {
  animation: popIn 0.45s var(--ease-spring) both, ringPulse 1.8s ease-out 0.5s infinite;
  background: #669900;
}

.journey-node.setup {
  background: var(--navy);
  font-size: 16px;
  font-weight: 700;
}

/* Step card wrapper */
.journey-step-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 14px;
  padding: 18px 22px 38px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-left-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
}


.journey-step-card:hover {
  border-left-color: #669900;
  background: rgba(102,153,0,0.05);
  box-shadow: 0 6px 24px rgba(102,153,0,0.10);
  transform: translateX(3px);
}

.journey-step.step-active .journey-step-card {
  border-left-color: #669900;
  box-shadow: 0 4px 20px rgba(102,153,0,0.08);
}

.journey-step-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  display: inline-block;
  background: rgba(78,170,51,0.10);
  border: 1px solid rgba(78,170,51,0.28);
  border-radius: 100px;
  padding: 4px 12px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.journey-step h4 {
  margin-bottom: 6px;
  color: var(--navy);
  position: relative;
  z-index: 1;
}

.journey-step p {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.journey-step-eyebrow {
  position: relative;
  z-index: 1;
}

/* Step content animates in when its node is activated */
.journey-step .journey-step-eyebrow,
.journey-step h4,
.journey-step p {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.38s var(--ease-spring), transform 0.38s var(--ease-spring);
}

.journey-step.step-active .journey-step-eyebrow {
  opacity: 1; transform: translateX(0); transition-delay: 0.04s;
}
.journey-step.step-active h4 {
  opacity: 1; transform: translateX(0); transition-delay: 0.12s;
}
.journey-step.step-active p {
  opacity: 1; transform: translateX(0); transition-delay: 0.20s;
}

/* Journey step — clickable link variant */
a.journey-step-link {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  margin-left: -12px;
  padding-left: 12px;
  transition: background 0.22s var(--ease-smooth);
  cursor: pointer;
}

/* Compensate node position for -12px margin-left on link steps */
a.journey-step-link .journey-node {
  left: -54px;
}

a.journey-step-link:hover {
  background: transparent;
}

a.journey-step-link:hover .journey-step-card {
  border-left-color: #669900;
  background: rgba(102,153,0,0.05);
  box-shadow: 0 6px 24px rgba(102,153,0,0.10);
  transform: translateX(3px);
}

.journey-step-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  transition: opacity 0.22s var(--ease-smooth), transform 0.22s var(--ease-smooth);
  color: var(--green);
  pointer-events: none;
  line-height: 1;
}

a.journey-step-link:hover .journey-step-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   16. STEP BAND (How it works sections)
   ============================================================ */

.step-band {
  padding-block: var(--section-pad);
}

.step-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.step-band-inner.flip {
  direction: rtl;
}

.step-band-inner.flip > * {
  direction: ltr;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--green-dark);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  opacity: 0;
  transform: scale(0.7) translateY(8px);
}

.step-pill.pill-stamped {
  animation: pillStamp 0.5s var(--ease-spring) both;
}

.step-band-outcome {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #0B1D35;
  border: 1px solid rgba(78,170,51,0.30);
  border-left: 4px solid var(--green);
  border-radius: 0 16px 16px 0;
  padding: 22px 28px;
  margin-top: 32px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.step-band-outcome-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(78,170,51,0.18);
  border: 1.5px solid rgba(78,170,51,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.step-band-outcome-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Step visual mock */
.step-visual {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,52,92,0.08), 0 20px 48px rgba(0,52,92,0.06);
}

.step-visual.floating {
  animation: floatY 4.5s ease-in-out infinite;
}

/* Ranked list stagger animation */
.ranked-list.animate-in .ranked-list-item {
  opacity: 0;
  animation: slideInRight 0.4s var(--ease-spring) both;
}
.ranked-list.animate-in .ranked-list-item:nth-child(1) { animation-delay: 0.06s; }
.ranked-list.animate-in .ranked-list-item:nth-child(2) { animation-delay: 0.12s; }
.ranked-list.animate-in .ranked-list-item:nth-child(3) { animation-delay: 0.18s; }
.ranked-list.animate-in .ranked-list-item:nth-child(4) { animation-delay: 0.24s; }
.ranked-list.animate-in .ranked-list-item:nth-child(5) { animation-delay: 0.30s; }
.ranked-list.animate-in .ranked-list-item:nth-child(6) { animation-delay: 0.36s; }

/* Score count finish bounce */
.fit-score-number.bounce,
.rank-score.bounce {
  animation: scoreBounce 0.45s var(--ease-spring);
}

/* Fit score bar pop on complete */
.fit-score-bar-fill.bar-done,
.rank-bar-fill.bar-done {
  transform-origin: left center;
  animation: barPop 0.35s var(--ease-spring);
}

/* ============================================================
   17. PRICING CARDS
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 2px 4px rgba(0,52,92,0.06), 0 8px 24px rgba(0,52,92,0.10), 0 32px 64px -12px rgba(0,52,92,0.13);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  border-radius: 24px 24px 0 0;
  background: var(--tier-accent, var(--border));
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(0,52,92,0.06), 0 12px 32px rgba(0,52,92,0.12), 0 40px 80px -16px rgba(0,52,92,0.15);
}

/* Featured card — full dark treatment */
.pricing-card.featured {
  background: #0B1D35;
  border: 2px solid rgba(78,170,51,0.55);
  transform: translateY(-20px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(78,170,51,0.18), 0 12px 40px rgba(78,170,51,0.22), 0 40px 80px rgba(0,10,24,0.55);
}

.pricing-card.featured::before {
  height: 100%;
  background: linear-gradient(175deg, rgba(78,170,51,0.13) 0%, transparent 48%);
  border-radius: 0;
}

.pricing-card.featured:hover {
  transform: translateY(-24px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(78,170,51,0.3), 0 16px 48px rgba(78,170,51,0.28), 0 48px 96px rgba(0,10,24,0.6);
}

/* Text overrides inside dark featured card */
.pricing-card.featured .pricing-name    { color: white; }
.pricing-card.featured .pricing-price   { color: white; }
.pricing-card.featured .pricing-price-note { color: rgba(255,255,255,0.5); }
.pricing-card.featured .pricing-ribbon  {
  background: rgba(78,170,51,0.18);
  border-color: rgba(78,170,51,0.4);
  color: #7ADE5A;
}
.pricing-card.featured .pricing-feature {
  color: rgba(255,255,255,0.82);
  border-bottom-color: rgba(255,255,255,0.07);
}
.pricing-card.featured .pricing-feature strong { color: white; }
.pricing-card.featured .pricing-feature-icon { color: #4EAA33; }

.pricing-tier-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tier-icon-bg, rgba(0,52,92,0.07));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--tier-accent, var(--navy));
  transition: transform 0.3s var(--ease-spring);
}

.pricing-card:hover .pricing-tier-icon {
  transform: scale(1.1) rotate(-3deg);
}

.pricing-tier-icon svg {
  width: 26px;
  height: 26px;
}

.pricing-ribbon {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(78,170,51,0.1);
  border: 1px solid rgba(78,170,51,0.25);
  border-radius: 20px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 16px;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.pricing-price-note {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  padding: 9px 0;
  border-bottom: 1px solid rgba(229,224,213,0.5);
  line-height: 1.45;
}

.pricing-feature:last-child {
  border-bottom: none;
}

.pricing-feature-icon {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   18. ACCORDION
   ============================================================ */

.accordion {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

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

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.accordion-trigger:hover,
.accordion-trigger:focus-visible {
  background: var(--cream);
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.accordion-question {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--grey-light);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-in-out), color 0.2s;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  color: var(--green);
}

.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease-spring);
}

.accordion-item.open .accordion-body {
  max-height: 400px;
}

.accordion-answer {
  padding: 0 28px 22px;
  font-size: 15px;
  color: var(--grey);
  line-height: 1.7;
}

/* ============================================================
   19. TRUST SIGNALS
   ============================================================ */

.trust-bar {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.trust-stat {}

.trust-stat-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: #2D3748;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.trust-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   20a. LOGO CAROUSEL
   ============================================================ */

.logo-carousel {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: white;
  overflow: hidden;
}

.logo-carousel-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey); /* was #b0b8c4 (2.0:1 fail) — now #5F5F5F (6.4:1) */
  margin-bottom: 22px;
}

.logo-carousel-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logo-carousel-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: logo-scroll 32s linear infinite;
}

.logo-carousel-track:hover {
  animation-play-state: paused;
}

.logo-carousel-track img {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(1) opacity(0.42);
  transition: filter 0.2s;
  display: block;
}

.logo-carousel-track img:hover {
  filter: grayscale(1) opacity(0.68);
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-carousel-track { animation: none; }
}

/* ============================================================
   20. SECTION PATTERNS (Dark / navy)
   ============================================================ */

.bg-navy .eyebrow        { color: var(--green); background: rgba(78,170,51,0.18); border-color: rgba(78,170,51,0.4); }
.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4             { color: white; }
.bg-navy h1 em,
.bg-navy h2 em,
.bg-navy h3 em          { color: var(--green); }
.bg-navy .lede          { color: rgba(255,255,255,0.72); }
.bg-navy p,
.bg-navy .body          { color: rgba(255,255,255,0.85); }
.bg-navy .trust-stat-number { color: var(--green); }
.bg-navy .trust-stat-label  { color: rgba(255,255,255,0.7); }
.bg-navy .trust-divider     { background: rgba(255,255,255,0.15); }

/* ============================================================
   21. FOOTER
   ============================================================ */

.footer {
  background: var(--navy);
  padding-top: 72px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer-brand {}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.footer-logo img {
  height: 20px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  margin-bottom: 3px;
  position: relative;
  top: -1px;
}

.footer-logo em {
  font-style: normal;
  font-weight: 600;
  color: #6DD44E;
}

.footer-strapline {
  font-size: 14px;
  color: rgba(255,255,255,0.65); /* raised from 0.5 — was 4.35:1, now 6.25:1 */
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 24px;
}

.footer-col-header {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}

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

.footer-link {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.60); /* raised from 0.45 — now 5.56:1 on navy */
}

.footer-legal a {
  color: rgba(255,255,255,0.60); /* raised from 0.45 */
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.8);
}

.footer-gwt {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.55); /* raised from 0.4 — now 4.92:1 on navy */
}
.footer-gwt a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.35);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.footer-gwt a:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.7);
}

/* ============================================================
   22. UTILITY / HELPERS
   ============================================================ */

.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.text-green  { color: var(--green); }
.text-grey   { color: var(--grey); }
.text-white  { color: white; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 48px; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin-block: 48px;
}

/* Highlight box */
.highlight-box {
  background: var(--sage);
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-block: 24px;
}

.highlight-box p {
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0;
}

/* Tag / pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
}

.tag-green {
  background: rgba(78,170,51,0.08);
  border-color: rgba(78,170,51,0.25);
  color: var(--green-dark);
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item-text {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
}

.feature-item-text strong {
  color: var(--navy);
  font-weight: 600;
}

/* Two-protection badges */
.protection-badges {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.protection-badge {
  background: var(--sky-wash);
  border: 1px solid var(--sky-light);
  border-radius: 12px;
  padding: 18px 22px;
  flex: 1;
  min-width: 180px;
}

.protection-badge-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue); /* was var(--sky) — #7EB2CE fails 2.1:1 on sky-wash */
  margin-bottom: 6px;
}

.protection-badge-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.protection-badge-desc {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding-block: 96px;
}

.cta-band h2 {
  margin-bottom: 20px;
}

.cta-band .lede {
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
}

/* ============================================================
   23. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* GWT sprite watermark — desktop only */
.gwt-watermark {
  display: block;
}

@media (max-width: 1023px) {
  .gwt-watermark {
    display: none;
  }
}

@media (max-width: 1023px) {
  :root {
    --section-pad: 64px;
  }

  .hero-split,
  .grid-5-7 {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .pricing-card.featured {
    transform: none;
  }

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

  .step-band-inner,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .step-band-inner.flip {
    direction: ltr;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

@media (max-width: 767px) {
  :root {
    --section-pad: 48px;
  }

  .container,
  .container-narrow,
  .container-wide {
    padding-inline: 20px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .lede {
    font-size: 19px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 32px);
  }

  .trust-bar {
    gap: 24px;
  }

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

  .journey-scroll {
    padding-left: 56px;
  }

  .journey-node {
    left: -42px;
    width: 32px;
    height: 32px;
    font-size: 13px;
    font-weight: 700;
  }

  .journey-thread {
    left: 28px;
  }

  .rank-bar-track {
    width: 100px;
  }

  .btn-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  .ranked-list {
    overflow-x: auto;
  }

  .ranked-list-item {
    min-width: 360px;
  }

  .hero-content h1 {
    font-size: 40px;
  }
}

/* ============================================================
   24. PREFERS-REDUCED-MOTION GUARD
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .custom-cursor { display: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-from-left,
  .reveal-from-right { opacity: 1; transform: none; }
  .hero-stagger > * { opacity: 1; transform: none; }
  .hero-visual-stagger { opacity: 1; transform: none; }
  .journey-step .journey-step-eyebrow,
  .journey-step h4,
  .journey-step p { opacity: 1; transform: none; }
  .step-pill { opacity: 1; transform: none; }
}

/* ============================================================
   25. FORM PAGES (book-demo, sign-up)
   ============================================================ */

.form-page {
  min-height: 100vh;
  background: var(--sand);
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
}

.form-page-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 56px 40px 80px;
  gap: 64px;
  align-items: start;
}

/* Left panel — trust/context */
.form-trust {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.form-trust-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.form-trust h1 {
  font-family: 'DM Sans', 'Gill Sans', 'Trebuchet MS', system-ui, sans-serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.form-trust h1 em {
  color: var(--green);
}

.form-trust-lead {
  font-size: 16px;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 36px;
}

.form-trust-points {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-trust-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
}

.form-trust-points li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
}

.form-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.form-badge svg {
  color: var(--green);
}

/* Right panel — form card */
.form-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,52,92,0.06), 0 16px 48px rgba(0,52,92,0.08);
  padding: 40px;
}

.form-card-header {
  margin-bottom: 28px;
}

.form-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-card-subtitle {
  font-size: 14px;
  color: var(--grey);
}

/* Form fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.form-label .required {
  color: var(--score-red-text); /* #C00000 — 6.5:1 on white (was #E53935, 4.23:1) */
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #ABABAB;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  background: white;
  box-shadow: 0 0 0 3px rgba(78,170,51,0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--score-red);
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.08);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235F5F5F' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

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

.form-error {
  display: none;
  font-size: 12px;
  color: var(--score-red-text); /* #C00000 — 6.5:1 on white (was #E53935, 4.23:1) */
  font-weight: 500;
  align-items: center;
  gap: 4px;
}

.form-error.visible {
  display: flex;
}

.form-hint {
  font-size: 12px;
  color: var(--grey-light);
}

/* Password strength */
.password-strength {
  margin-top: 6px;
  display: none;
}

.password-strength.visible {
  display: block;
}

.password-strength-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.pw-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.2s;
}

.pw-bar.active-weak   { background: var(--score-red); }
.pw-bar.active-fair   { background: var(--score-orange); }
.pw-bar.active-good   { background: #22c55e; }
.pw-bar.active-strong { background: var(--green); }

.password-strength-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-light);
}

/* Checkbox/consent */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-check-input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--cream);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin-top: 1px;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.form-check-input:checked {
  background: var(--green);
  border-color: var(--green);
}

.form-check-input:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 6 5 9 10 3'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78,170,51,0.18);
}

.form-check-input.error {
  border-color: var(--score-red);
}

.form-check-label {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
}

.form-check-label a {
  color: var(--green-dark); /* was var(--green) — 2.69:1 on sand (fail); now 4.93:1 */
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s;
}

.form-check-label a:hover {
  text-decoration-color: var(--green-dark);
}

/* Privacy block */
.form-privacy {
  margin-top: 20px;
  padding: 16px;
  background: var(--sand);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.form-privacy p {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.55;
  margin: 0;
}

.form-privacy a {
  color: var(--green);
}

/* Submit button */
.form-submit {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: 24px;
  padding: 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-submit.loading {
  position: relative;
  color: transparent;
}

.form-submit.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success state */
.form-success-state {
  display: none;
  text-align: center;
  padding: 56px 40px 52px;
  position: relative;
  overflow: hidden;
}

.form-success-state::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  border-radius: 20px 20px 0 0;
}

.form-success-state.visible {
  display: block;
  animation: successFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.form-success-icon {
  width: 80px;
  height: 80px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--green);
  position: relative;
}

.form-success-icon::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid rgba(78, 170, 51, 0.2);
}

.form-success-state h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.form-success-state p {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.75;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.form-success-state p + p {
  margin-top: 10px;
}

/* Divider */
.form-section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* Responsive */
@media (max-width: 860px) {
  .form-page-inner {
    grid-template-columns: 1fr;
    padding: 32px 24px 60px;
    gap: 36px;
  }

  .form-trust {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 28px 20px;
  }
}
