
:root {
  /* Colour palette */
  --color-night: #1a0008;
  --color-deep: #4a0020;
  --color-core: #7c1c3a;
  --color-mid: #c2547a;
  --color-blush: #e8abbe;
  --color-petal: #fff0f4;
  --color-white: #ffffff;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #fff0f4 60%, #fce8f0 100%);
  --gradient-dark: linear-gradient(135deg, #1a0008 0%, #4a0020 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #fff0f4 100%);
  --gradient-burgundy: linear-gradient(135deg, #7c1c3a 0%, #4a0020 100%);

  /* Typography */
  --font-display: 'Raleway', system-ui, -apple-system, sans-serif;
  --font-body: 'Raleway', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-doodle: 'Chelsea Market', cursive;
  --font-number: 'Urbanist', sans-serif;

  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.75rem;
  --text-6xl: 5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(124, 28, 58, 0.08);
  --shadow-md: 0 4px 20px rgba(124, 28, 58, 0.12);
  --shadow-lg: 0 8px 40px rgba(124, 28, 58, 0.16);
  --shadow-card: 0 2px 24px rgba(26, 0, 8, 0.08);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1280px;
  --section-padding: var(--space-24) var(--space-8);
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-night);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

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

.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
}

.heading-md {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.25;
}

.body-lg {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.7;
}

.body-md {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
}

.body-sm {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.6;
}

.mono-lg {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.mono-md {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 400;
}

.mono-sm {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-mid);
}

.doodle {
  font-family: var(--font-doodle);
}

/* ============================================================
   NAVBAR
   ============================================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124, 28, 58, 0.08);
}

.nav-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}


/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: calc(var(--text-base) + 1px);
  font-weight: 500;
  color: var(--color-night);
  letter-spacing: 0.04em;
  transition: color 0.2s ease, font-weight 0.2s ease, transform 0.2s ease, letter-spacing 0.2s ease;
  position: relative;
  display: inline-block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-core);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-core);
  font-weight: 600;
  transform: translateZ(0) scale(1.06);
  letter-spacing: 0.03em;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-cta .btn {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 28, 58, 0.25);
  color: #7c1c3a;
  border-radius: 50px;
  transition: all 0.25s ease;
  white-space: nowrap;
  padding: 8px 20px;
}

.nav-cta .btn i,
.nav-cta .btn svg {
  stroke: currentColor;
  color: currentColor;
}

.nav-cta .btn:hover {
  background: #7c1c3a;
  color: #ffffff;
  border-color: #7c1c3a;
  box-shadow: none;
  transform: none;
}

.nav-cta .btn:hover i,
.nav-cta .btn:hover svg {
  stroke: #ffffff;
  color: #ffffff;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-night);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6) var(--space-4) var(--space-8);
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.nav-mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.nav-mobile-links a {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-night);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-petal);
  transition: color var(--transition-fast);
}

.nav-mobile-links a:hover {
  color: var(--color-core);
}

.nav-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

#hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 3;
}

#hero-tile-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-tile-field {
  position: absolute;
  inset: 0;
  transform: scaleY(0.6);
  transform-origin: top center;
  pointer-events: none;
  perspective: 900px;
}

.hero-tile {
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(240, 233, 237, 0.42);
  border-radius: 22px;
  transform: rotate(45deg);
  transform-origin: center;
  box-shadow:
    3px 3px 8px rgba(0, 0, 0, 0.05),
    -2px -2px 6px rgba(255, 255, 255, 0.9);
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-4);
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ---- Copy column ---- */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: fade-up 0.6s ease 0.1s forwards;
}

.hero-eyebrow-diamond {
  width: 8px;
  height: 8px;
  background: var(--color-mid);
  transform: rotate(45deg);
  border-radius: 1px;
  flex-shrink: 0;
}

.hero-h1 {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: var(--text-6xl);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-night);
  opacity: 0;
  animation: fade-up 0.6s ease 0.2s forwards;
}

.hero-h1 em {
  font-style: normal;
  color: var(--color-core);
}

.hero-subline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-deep);
  max-width: 520px;
  opacity: 0;
  animation: fade-up 0.6s ease 0.35s forwards;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.6s ease 0.5s forwards;
}

/* Trust strip */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: nowrap;
  margin-top: 15px;
  opacity: 0;
  animation: fade-up 0.6s ease 0.65s forwards;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--color-blush);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-number {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-core);
  line-height: 1;
}

.trust-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-mid);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ---- Simulator column ---- */
.hero-simulator {
  opacity: 0;
  animation: fade-in 0.8s ease 0.4s forwards;
}

.simulator-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  min-height: unset;
  height: auto;
}

.simulator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  opacity: 0;
}

.simulator-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.simulator-titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.simulator-headline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0;
}

.simulator-eyebrow {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-core);
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}

.simulator-collapse {
  flex-shrink: 0;
  margin-left: 1rem;
  margin-top: 2px;
  background: transparent;
  border: 1.5px solid var(--color-core);
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-core);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.simulator-collapse:hover {
  background: var(--color-core);
  color: #fff;
}

.simulator-card.is-active .simulator-header {
  background: var(--color-core);
  border-radius: 32px 32px 0 0;
  margin: -2rem -2rem 1rem -2rem;
  padding: 1rem 2rem;
  transition: background 0.15s ease;
}

.simulator-card.is-active .simulator-headline {
  color: #fff;
}

.simulator-card.is-active .simulator-eyebrow {
  color: rgba(255,255,255,0.7);
}

.simulator-card.is-active .simulator-collapse {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.simulator-card.is-active .simulator-collapse:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* Result area: hidden until a scenario runs */
.simulator-result {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.18s ease, opacity 0.15s ease;
}

.simulator-result.is-open {
  opacity: 1;
}

/* Stress point selector */
.stress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.stress-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-blush);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-night);
}

.stress-btn:hover {
  border-color: var(--color-core);
  background: var(--color-petal);
  color: var(--color-core);
}

.stress-btn.active {
  border-color: var(--color-core);
  background: var(--gradient-burgundy);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.stress-btn .stress-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.stress-btn.active .stress-icon {
  opacity: 1;
}

/* Path canvas area */
.simulator-path-area {
  background: var(--color-petal);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.path-placeholder,
.simulator-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  gap: var(--space-3);
  color: var(--color-blush);
}

.path-placeholder-diamond {
  width: 32px;
  height: 32px;
  background: var(--color-blush);
  transform: rotate(45deg);
  border-radius: 3px;
  opacity: 0.5;
}

.path-placeholder p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-mid);
  text-align: center;
}

/* SVG path animation */
.path-svg-wrap {
  display: none;
  width: 100%;
}

.path-svg-wrap.active {
  display: block;
}

.path-svg {
  width: 100%;
  height: 220px;
  overflow: visible;
}

.path-track {
  fill: none;
  stroke: var(--color-blush);
  stroke-width: 2;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.path-track.drawn {
  stroke-dashoffset: 0;
}

.path-step-node {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.path-step-node.visible {
  opacity: 1;
}

.path-diamond-traveller {
  offset-path: path('');
  offset-distance: 0%;
  transition: offset-distance 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.path-diamond-traveller.travelling {
  offset-distance: 100%;
}

/* Step labels beneath */
.simulator-steps {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.simulator-steps.active {
  display: flex;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-row.visible {
  opacity: 1;
  transform: translateX(0);
}

.step-dot {
  width: 8px;
  height: 8px;
  background: var(--color-core);
  transform: rotate(45deg);
  border-radius: 1px;
  flex-shrink: 0;
  margin-top: 5px;
}

.step-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-night);
  line-height: 1.5;
}

.step-text strong {
  font-weight: 700;
  color: var(--color-core);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }


  .nav-hamburger {
    display: flex;
  }

  .nav-mobile {
    display: flex;
    flex-direction: column;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding: var(--space-10) var(--space-4);
  }

  .hero-h1 {
    font-size: var(--text-5xl);
  }

  .hero-subline {
    max-width: 100%;
    overflow-wrap: break-word;
    padding-right: var(--space-4);
  }

  .hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3) var(--space-2);
    overflow: hidden;
  }

  .trust-divider {
    display: none;
  }

  .hero-simulator {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .simulator-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: var(--space-6);
  }

  .stress-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: var(--text-4xl);
  }

  .stress-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   SECTION 2: INTENT CANVAS
   ============================================================ */

#intent-canvas {
  padding: 2.5rem var(--space-8) 2.5rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  min-height: auto;
}

#intent-canvas::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 0;
}

#intent-canvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.72) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

#intent-canvas > * {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.canvas-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-core);
  margin-bottom: 0.5rem;
}

.canvas-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-night);
  margin-bottom: 0.75rem;
  max-width: 640px;
}

.canvas-subline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-core);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.canvas-shell {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(120, 24, 54, 0.1);
  background: #fff;
  min-height: 440px;
}

/* ---- Left: Input Panel ---- */
.canvas-input-panel {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
}

.canvas-textarea-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.canvas-textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-night);
  background: transparent;
  width: 100%;
  min-height: 200px;
}

.canvas-textarea::placeholder {
  color: #c9bcc2;
}

.canvas-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-6);
  gap: var(--space-4);
}

.canvas-antispam {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-mid);
  line-height: 1.4;
  max-width: 320px;
}

.canvas-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-burgundy);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.canvas-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 28, 58, 0.3);
}

.canvas-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- Right: Context Panel ---- */
.canvas-context-panel {
  background: linear-gradient(160deg, #fbf4f6, #f5e7ec);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(124, 28, 58, 0.08);
}

.canvas-context-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: var(--space-4);
}

.canvas-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

/* ---- Context cards ---- */
.context-card {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 4px 14px rgba(120, 24, 54, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.context-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.context-card:hover {
  box-shadow: 0 8px 22px rgba(120, 24, 54, 0.16);
}

.context-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.context-card-body h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-night);
  margin: 0 0 0.2rem;
}

.context-card-body p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-mid);
  margin: 0;
  line-height: 1.4;
}

/* ---- Empty state ---- */
.canvas-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-mid);
  gap: 0.75rem;
}

.canvas-empty-state svg { opacity: 0.4; }

.canvas-empty-state p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  max-width: 220px;
  margin: 0;
}

/* ---- Handoff state ---- */
.canvas-handoff {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
}

.canvas-handoff.active { display: flex; }

.handoff-bubble {
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  padding: 1rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-night);
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(120, 24, 54, 0.08);
}

.handoff-ready {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-night);
  margin-top: auto;
}

.handoff-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.9rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.handoff-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  #intent-canvas {
    padding: var(--space-12) var(--space-4);
  }

  .canvas-shell {
    grid-template-columns: 1fr;
  }

  .canvas-context-panel {
    border-left: none;
    border-top: 1px solid rgba(124, 28, 58, 0.08);
  }

  .canvas-input-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .canvas-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   SECTION 3: KARNATAKA MARKET CONTEXT
   ============================================================ */

#market-context {
  padding: var(--space-16) var(--space-8);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
}

#market-context > * {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.market-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-core);
  margin-bottom: 0.5rem;
}

.market-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-night);
  margin-bottom: 0.75rem;
  max-width: 680px;
}

.market-subline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-mid);
  margin-bottom: var(--space-6);
  max-width: 560px;
}

/* ---- Region toggle ---- */
.market-toggle-wrap {
  width: 100%;
  text-align: center;
  margin-bottom: var(--space-6);
}

.market-toggle {
  display: inline-flex;
  width: auto;
  margin: 0 auto;
  background: rgba(124, 28, 58, 0.06);
  border-radius: 999px;
  padding: 0.3rem;
  gap: 0.2rem;
}

.market-toggle button {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-mid);
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.market-toggle button.active {
  background: var(--gradient-burgundy);
  color: #fff;
}

@keyframes region-pill-jiggle-idle {
  0%, 85% { transform: scale(1) rotate(0deg); }
  88% { transform: scale(1.04) rotate(-2deg); }
  92% { transform: scale(0.98) rotate(2deg); }
  96% { transform: scale(1.02) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.market-toggle button:not(.active) {
  animation: region-pill-jiggle-idle 3.5s ease infinite;
}

/* ---- Stats grid ---- */
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.market-stat {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 8px 28px rgba(120, 24, 54, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.market-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(120, 24, 54, 0.13);
}

.market-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbf4f6, #f5e7ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-core);
  margin-bottom: var(--space-4);
}

.market-stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--color-core);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  white-space: normal;       /* allow wrap — never truncate */
  overflow: visible;
  word-break: break-word;
  max-width: 100%;
}

/* Currency count-up values */
.market-stat-value--currency {
  font-size: clamp(1.3rem, 3.2vw, 2rem);
}

/* Values longer than ~8 chars (ranges, phrases) — proportionally smaller */
.market-stat-value--long {
  font-size: clamp(1.1rem, 2.8vw, 1.7rem);
  line-height: 1.25;
}

.market-stat-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-night);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* Card 3 variant: no leading number, label acts as the visual headline */
.market-stat--no-number .market-stat-label {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--color-night);
}

.market-stat-note {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-mid);
  line-height: 1.4;
}

/* ---- Placeholder flag (kept for any remaining dev placeholders) ---- */
.market-placeholder-flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b008b0;
  background: rgba(176, 8, 176, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 0.6rem;
}

/* ---- Source citation tag ---- */
.market-source-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-mid);
  text-transform: none;
  display: block;
  margin-top: 0.6rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ============================================================
   SECTION 4: THE BROKEN WAY
   ============================================================ */

#broken-way {
  position: relative;
  background: linear-gradient(160deg, #4a0f24, #2e0817);
  padding: var(--space-16) var(--space-8);
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: auto;
}

#broken-way .broken-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ---- Background debris layer ---- */
.broken-debris {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.debris-diamond {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transform: rotate(45deg);
  will-change: transform;
}

.debris-diamond.d1  { width: 90px;  height: 90px;  top: 12%; left: -6%;  animation: drift1 38s linear infinite; }
.debris-diamond.d2  { width: 48px;  height: 48px;  top: 60%; left: -4%;  animation: drift2 46s linear infinite; animation-delay: -14s; }
.debris-diamond.d3  { width: 130px; height: 130px; top: 30%; left: -10%; animation: drift1 54s linear infinite; animation-delay: -22s; }
.debris-diamond.d4  { width: 32px;  height: 32px;  top: 78%; left: -3%;  animation: drift3 42s linear infinite; animation-delay: -8s; }
.debris-diamond.d5  { width: 64px;  height: 64px;  top: 5%;  left: -5%;  animation: drift2 60s linear infinite; animation-delay: -35s; }
.debris-diamond.d6  { width: 110px; height: 110px; top: 70%; left: -8%;  animation: drift1 50s linear infinite; animation-delay: -18s; }
.debris-diamond.d7  { width: 40px;  height: 40px;  top: 45%; left: -4%;  animation: drift3 48s linear infinite; animation-delay: -6s; }
.debris-diamond.d8  { width: 56px;  height: 56px;  top: 22%; left: -5%;  animation: drift2 44s linear infinite; animation-delay: -28s; }
.debris-diamond.d9  { width: 80px;  height: 80px;  top: 85%; left: -7%;  animation: drift1 58s linear infinite; animation-delay: -11s; }
.debris-diamond.d10 { width: 24px;  height: 24px;  top: 50%; left: -2%;  animation: drift3 36s linear infinite; animation-delay: -20s; }
.debris-diamond.d11 { width: 100px; height: 100px; top: 38%; left: -9%;  animation: drift2 52s linear infinite; animation-delay: -40s; }
.debris-diamond.d12 { width: 36px;  height: 36px;  top: 68%; left: -3%;  animation: drift1 43s linear infinite; animation-delay: -3s; }
.debris-diamond.d13 { width: 72px;  height: 72px;  top: 8%;  left: -6%;  animation: drift3 56s linear infinite; animation-delay: -31s; }

@keyframes drift1 {
  0%   { transform: rotate(45deg) translate(0, 0);       opacity: 0; }
  10%  {                                                  opacity: 1; }
  85%  {                                                  opacity: 1; }
  100% { transform: rotate(45deg) translate(120vw, 0);   opacity: 0; }
}
@keyframes drift2 {
  0%   { transform: rotate(45deg) translate(0, 0);       opacity: 0; }
  10%  {                                                  opacity: 1; }
  85%  {                                                  opacity: 1; }
  100% { transform: rotate(45deg) translate(120vw, 0);   opacity: 0; }
}
@keyframes drift3 {
  0%   { transform: rotate(45deg) translate(0, 0);       opacity: 0; }
  10%  {                                                  opacity: 1; }
  85%  {                                                  opacity: 1; }
  100% { transform: rotate(45deg) translate(115vw, 0);   opacity: 0; }
}

/* ---- Section copy ---- */
.broken-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e89ab4;
  margin-bottom: 0.5rem;
}

.broken-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 0.75rem;
  max-width: 680px;
}

.broken-subline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

/* ---- Failure cards ---- */
.broken-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.broken-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.broken-card:hover,
.broken-card:focus-visible {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(232, 154, 180, 0.35);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(194, 84, 122, 0.15);
  outline: none;
}

.broken-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(194, 84, 122, 0.3), rgba(124, 28, 58, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e89ab4;
  margin-bottom: var(--space-4);
}

.broken-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.broken-card-lead {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0;
}

/* Detail reveal */
.broken-card-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  margin-top: 0;
}

.broken-card:hover .broken-card-detail,
.broken-card:focus-visible .broken-card-detail,
.broken-card.expanded .broken-card-detail {
  max-height: 200px;
  opacity: 1;
  margin-top: var(--space-4);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .broken-cards {
    grid-template-columns: 1fr;
  }

  .broken-card:hover {
    transform: none;
    box-shadow: none;
  }
}

#loan-process {
  position: relative;
  background: linear-gradient(180deg, #fff, #fbf4f6);
  overflow: hidden;
  padding: var(--space-12) 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Intro block with watermark */
.process-intro {
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.process-eyebrow {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-core);
  margin-bottom: 0.5rem;
}

.process-headline {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-night);
  margin-bottom: 0.75rem;
  max-width: 680px;
}

.process-sub {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-mid);
  margin-bottom: 0;
  max-width: 560px;
}

/* Akiko mark watermark — full section height, right-anchored */
.process-logo-bg {
  position: absolute;
  right: -4%;
  top: 0;
  bottom: 0;
  width: 700px;
  height: 100%;
  opacity: 0.055;
  filter: grayscale(100%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 22%,
    #000 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 22%,
    #000 78%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-logo-bg img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 90%;
}

/* Horizontal scroll track */
.process-track-wrap {
  overflow-x: auto;
  overflow-y: visible;
  padding: var(--space-8) var(--space-6) var(--space-8);
  cursor: grab;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
}

.process-track-wrap:active { cursor: grabbing; }
.process-track-wrap::-webkit-scrollbar { display: none; }

.process-drag-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(124, 28, 58, 0.35);
  margin-top: var(--space-2);
  user-select: none;
}

.process-track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  gap: 0;
  position: relative;
}

/* Base connector line at node level */
.process-track::before {
  content: '';
  position: absolute;
  top: 31px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(124, 28, 58, 0.15);
  z-index: 0;
}

.process-item {
  width: 320px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* Per-item colored line overlay */
.process-item::before {
  content: '';
  position: absolute;
  top: 31px;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1;
  background: transparent;
}

.process-item.passed::before {
  background: var(--gradient-burgundy);
}

.process-item.current::before {
  width: 50%;
  background: var(--gradient-burgundy);
}

/* Circle glassmorphic node */
.process-node {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(124, 28, 58, 0.35);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 4px 14px rgba(124, 28, 58, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.process-node i {
  color: var(--color-core);
}

.process-item.passed .process-node {
  border-color: var(--color-core);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 6px 18px rgba(124, 28, 58, 0.14);
}

.process-item.passed .process-node i { color: var(--color-core); }

.process-item.current .process-node {
  border-color: var(--color-core);
  background: rgba(255, 255, 255, 0.5);
  animation: process-pulse 2s ease-in-out infinite;
}

.process-item.current .process-node i { color: var(--color-core); }

@keyframes process-pulse {
  0%, 100% { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 0 0 4px rgba(194, 84, 122, 0.2); }
  50%       { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 0 0 9px rgba(194, 84, 122, 0.08); }
}

.process-item.selected .process-node {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 0 0 5px rgba(194, 84, 122, 0.2), 0 10px 26px rgba(124, 28, 58, 0.25);
  transform: scale(1.1);
}

/* Card under each node */
.process-card {
  margin-top: 1.25rem;
  padding: 0 1rem;
  text-align: center;
}

.process-card-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-core);
  margin-bottom: 0.3rem;
}

.process-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-night);
  line-height: 1.25;
}

.process-card-subtext {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-mid);
  line-height: 1.4;
  margin-top: 0.35rem;
  max-width: 220px;
  display: block;
}

.process-item.upcoming .process-card-num,
.process-item.upcoming .process-card-title,
.process-item.upcoming .process-card-subtext { opacity: 0.5; }
.process-item.upcoming .process-node { border-color: rgba(124, 28, 58, 0.2); }

/* Rich detail card — fixed height so it never jumps between stages */
.process-detail {
  max-width: 1440px;
  margin: var(--space-6) auto 0;
  padding: 0 var(--space-6);
}

.process-detail-card {
  background: #fff;
  border-radius: var(--radius-xl, 24px);
  box-shadow: 0 20px 60px rgba(120, 24, 58, 0.12);
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 0.35s ease, opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.process-detail-card.open {
  height: 340px;
  opacity: 1;
}

.process-detail-header {
  position: relative;
  background: var(--gradient-burgundy, linear-gradient(135deg, #c2547a, #7c1c3a));
  padding: var(--space-6) var(--space-7, 2.5rem);
  overflow: hidden;
}

.process-detail-header .dh-icon {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  opacity: 0.18;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 1));
  background: none;
  pointer-events: none;
}

.process-detail-header .dh-icon svg {
  width: 130px !important;
  height: 130px !important;
  stroke-width: 1.5px !important;
}

.process-detail-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 0;
}

.process-detail-body {
  flex: 1;
  padding: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
  background: #fafafa;
}

.process-detail-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  padding: var(--space-6) var(--space-7, 2.5rem);
}

.process-detail-overview {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
  padding-right: 3rem;
}

.process-detail-signal {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid rgba(194, 84, 122, 0.2);
  box-shadow: 0 4px 14px rgba(124, 28, 58, 0.04);
  border-radius: 20px;
  padding: 0.75rem 1.25rem;
  margin-left: -1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-core);
}

.process-detail-signal i { flex-shrink: 0; margin-top: 2px; }

.process-detail-points-panel {
  background: none;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: none;
  border-radius: 0;
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-7, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
}

.process-detail-points-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin: 0 0 0.4rem;
}

.process-detail-points {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.process-detail-point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-night);
}

.process-detail-point::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-core);
  flex-shrink: 0;
  opacity: 0.7;
}

.process-detail-point svg { display: none; }

@media (max-width: 768px) {
  .process-intro { padding: 0 1.5rem; }
  .process-track-wrap { padding: var(--space-6) 1.5rem; }
  .process-logo-bg { width: 240px; height: 240px; right: -3rem; opacity: 0.04; }
  .process-detail-card.open { height: auto; min-height: 460px; }
  .process-detail-body { grid-template-columns: 1fr; flex: none; padding: var(--space-4) 1.5rem; }
}

/* ============================================================
   SECTION 6: PHYSICAL GROUNDWORK AND THE TEAM
   ============================================================ */

#groundwork {
  position: relative;
  background: linear-gradient(180deg, #fbf4f6, #fff);
  padding: var(--space-16) var(--space-8);
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.groundwork-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ---- Section header ---- */
.groundwork-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-core);
  margin-bottom: 0.5rem;
}

.groundwork-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-night);
  margin-bottom: 0.75rem;
  max-width: 700px;
}

.groundwork-subline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-mid);
  margin-bottom: var(--space-10);
  max-width: 580px;
}

/* ---- Pillar cards ---- */
.groundwork-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.pillar-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 8px 28px rgba(120, 24, 54, 0.08);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease,
              box-shadow 0.25s ease;
}

.pillar-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.pillar-card:nth-child(2) { transition-delay: 0.12s; }
.pillar-card:nth-child(3) { transition-delay: 0.24s; }

.pillar-card:hover {
  box-shadow: 0 16px 44px rgba(120, 24, 54, 0.13);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: var(--space-4);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-night);
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-mid);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--color-night);
  line-height: 1.4;
}

.pillar-list li i {
  color: var(--color-core);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Team section ---- */
.team-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: var(--color-night);
  margin-bottom: 0.5rem;
}

.team-subline {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-mid);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.team-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-6);
  box-shadow: 0 8px 28px rgba(120, 24, 54, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: team-float 6s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 34px rgba(120, 24, 58, 0.1);
  animation-play-state: paused;
}

.team-card:nth-child(2) { animation-delay: 0.8s; }
.team-card:nth-child(3) { animation-delay: 1.6s; }
.team-card:nth-child(4) { animation-delay: 2.4s; }

@keyframes team-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Diamond watermark accent */
.team-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(124, 28, 58, 0.08);
  border-radius: 12px;
  transform: rotate(45deg);
  pointer-events: none;
}

/* Photo circle (glassmorphic) */
.team-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(124, 28, 58, 0.25);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 4px 14px rgba(124, 28, 58, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--color-core);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.team-photo i, .team-photo svg {
  color: var(--color-core);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-night);
  margin-bottom: 0.2rem;
  position: relative;
  z-index: 1;
}

.team-role {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-core);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .groundwork-pillars { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

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

@media (prefers-reduced-motion: reduce) {
  .team-card { animation: none; }
  .pillar-card { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   SECTION 7: TECHNOLOGY AND TRANSPARENCY LAYER
   ============================================================ */

#tech-layer {
  position: relative;
  background: #fff;
  padding: var(--space-16) var(--space-8);
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.tech-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: stretch;
}

.tech-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- Left: message ---- */
.tech-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-core);
  margin-bottom: 0.5rem;
}

.tech-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-night);
  margin-bottom: 0.75rem;
}

.tech-subline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-mid);
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.tech-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tech-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.tech-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbf4f6, #f5e7ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-core);
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(120, 24, 58, 0.12);
}

.tech-feature-body h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--color-night);
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}

.tech-feature-body p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-mid);
  line-height: 1.55;
  margin: 0;
}

/* ---- Right: phone mock ---- */
.tech-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-6) 0;
}

.tech-phone {
  width: 340px;
  height: 680px;
  background: #fff;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(120, 24, 58, 0.18), 0 0 0 1px rgba(124, 28, 58, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tech-phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #1a1010;
  border-radius: 999px;
  z-index: 3;
}

.tech-phone-screen {
  flex: 1;
  background: linear-gradient(180deg, #fbf4f6, #fff);
  border-radius: 34px;
  padding: 2.6rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tech-phone-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.tech-phone-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-night);
}

.tech-phone-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-burgundy);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.tracker-fileinfo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--color-mid);
  padding: 0.5rem 0.7rem;
  background: rgba(124, 28, 58, 0.04);
  border-radius: 10px;
  margin-bottom: var(--space-3);
}
.tracker-fileinfo i { color: var(--color-core); flex-shrink: 0; }
.tracker-fileinfo strong { color: var(--color-night); font-family: var(--font-mono); font-weight: 700; font-size: 0.9em; letter-spacing: 0.05em; }
.tracker-fileinfo-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--color-mid); flex-shrink: 0;
}

.tracker-section-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin: var(--space-3) 0 0.45rem;
}

/* Completed cluster */
.tracker-done-group {
  background: #fff;
  border-radius: 14px;
  padding: 0.3rem 0.2rem;
  box-shadow: 0 4px 14px rgba(120, 24, 58, 0.05);
}
.tracker-done-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
}
.tracker-done-row + .tracker-done-row {
  border-top: 1px solid rgba(124, 28, 58, 0.06);
}
.tracker-done-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-core);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.tracker-done-title {
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600; color: var(--color-text);
  flex: 1;
}
.tracker-done-by {
  font-family: var(--font-body);
  font-size: 0.64rem; color: var(--color-mid);
  text-align: right;
}

/* Active card */
.tracker-active-card {
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 10px 28px rgba(120, 24, 58, 0.12);
  border-left: 3px solid var(--color-core);
}
.tracker-active-top {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.tracker-active-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--gradient-burgundy, linear-gradient(135deg, #c2547a, #7c1c3a));
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.tracker-active-titles { display: flex; flex-direction: column; gap: 0.15rem; }
.tracker-active-title {
  font-family: var(--font-body);
  font-size: 0.86rem; font-weight: 700; color: var(--color-text);
  line-height: 1.2;
}
.tracker-active-meta {
  font-family: var(--font-body);
  font-size: 0.68rem; color: var(--color-core);
}
.tracker-progress {
  height: 5px; border-radius: 999px;
  background: rgba(124, 28, 58, 0.1);
  overflow: hidden;
}
.tracker-progress-fill {
  display: block; height: 100%; width: 0%;
  border-radius: 999px;
  background: var(--gradient-burgundy, linear-gradient(90deg, #c2547a, #7c1c3a));
  transition: width 1s ease;
}

/* Up next */
.tracker-next-group { display: flex; flex-direction: column; gap: 0.4rem; }
.tracker-next-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border: 1px dashed rgba(124, 28, 58, 0.18);
  border-radius: 11px;
}
.tracker-next-dot {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(124, 28, 58, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-mid); flex-shrink: 0;
}
.tracker-next-title {
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600; color: var(--color-mid);
}

.tech-phone-cta {
  margin-top: var(--space-4);
  width: 100%;
  border: none;
  background: var(--color-core);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tech-phone-cta:hover {
  opacity: 0.85;
}

/* ---- Screen slide system ---- */
.tech-phone-screen {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.phone-screen-1,
.phone-screen-2 {
  min-width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tech-phone-screen.slid .phone-screen-1 {
  transform: translateX(-100%);
}
.tech-phone-screen.slid .phone-screen-2 {
  transform: translateX(-100%);
}

/* ---- Screen 2: header ---- */
.tl-screen2-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}

.tl-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-core);
  display: flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 50%;
  transition: background 0.15s;
}

.tl-back-btn:hover {
  background: rgba(120, 24, 54, 0.08);
}

.tl-screen2-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ---- Scrollable timeline ---- */
.tl-timeline-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 24, 54, 0.2) transparent;
}
.tl-timeline-scroll::-webkit-scrollbar { width: 3px; }
.tl-timeline-scroll::-webkit-scrollbar-thumb {
  background: rgba(120, 24, 54, 0.2);
  border-radius: 999px;
}

/* ---- Stage rows ---- */
.tl-stage {
  display: flex;
  gap: 0.75rem;
  position: relative;
}

.tl-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.2rem;
  border: 2px solid rgba(120, 24, 54, 0.2);
  background: #fff;
  position: relative;
  z-index: 1;
}

.tl-connector {
  width: 1.5px;
  flex: 1;
  min-height: 24px;
  background: rgba(120, 24, 54, 0.15);
  margin: 3px 0;
}

/* Complete */
.tl-complete .tl-dot {
  background: var(--color-core);
  border-color: var(--color-core);
}
.tl-complete .tl-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 5px; height: 5px;
  border-right: 1.5px solid white;
  border-bottom: 1.5px solid white;
  rotate: 45deg;
  margin-top: -1px;
}
.tl-complete .tl-connector {
  background: var(--color-core);
  opacity: 0.3;
}

/* Active */
.tl-active .tl-dot {
  background: var(--color-core);
  border-color: var(--color-core);
  box-shadow: 0 0 0 4px rgba(120, 24, 54, 0.15);
  animation: tl-pulse 1.8s ease-in-out infinite;
}
@keyframes tl-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(120, 24, 54, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(120, 24, 54, 0.08); }
}

/* Pending */
.tl-pending .tl-stage-body { opacity: 0.45; }

/* Stage body text */
.tl-stage-body {
  padding-bottom: 1.25rem;
  flex: 1;
}

.tl-stage-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-core);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.15rem;
}

.tl-stage-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-text);
  margin: 0 0 0.15rem;
}

.tl-stage-sub {
  font-size: 0.72rem;
  color: var(--color-core);
  margin: 0 0 0.3rem;
  font-weight: 500;
}

.tl-stage-ai {
  font-size: 0.72rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

/* ---- Security cards row ---- */
.tech-security {
  max-width: 1280px;
  margin: var(--space-16) auto 0;
  width: 100%;
}

.tech-security-heading {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  color: var(--color-night);
  margin-bottom: 0.5rem;
  text-align: center;
}

.tech-security-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-mid);
  text-align: center;
  max-width: 520px;
  margin: 0 auto var(--space-8);
}

.tech-security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.security-card {
  background: #fff;
  border: 1px solid rgba(124, 28, 58, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 8px 24px rgba(120, 24, 54, 0.06);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.4s ease, box-shadow 0.22s ease;
}

.security-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.security-card.in-view:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(120, 24, 54, 0.13);
}

.security-card:nth-child(2) { transition-delay: 0.1s; }
.security-card:nth-child(3) { transition-delay: 0.2s; }
.security-card:nth-child(4) { transition-delay: 0.3s; }

.security-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbf4f6, #f5e7ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-core);
  margin-bottom: var(--space-4);
}

.security-card-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-core);
  margin-bottom: 0.5rem;
}

.security-card-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-mid);
  line-height: 1.5;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .tech-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .tech-phone-wrap { order: -1; }
}

@media (max-width: 1024px) {
  .tech-security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .tech-security-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .security-card { opacity: 1; transform: none; transition: none; }
}

#loan-calculator {
  padding: var(--space-9, 4rem) 0 calc(var(--space-9, 4rem) + 80px);
  min-height: auto;
  display: block;
}

.calc-wrap {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.calc-back-card {
  position: absolute;
  bottom: -56px;
  left: calc(var(--space-6) + 24px);
  right: calc(var(--space-6) + 24px);
  height: 120px;
  background: var(--gradient-burgundy, linear-gradient(135deg, #c2547a, #7c1c3a));
  border-radius: 0 0 24px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 var(--space-6) var(--space-4);
  z-index: 0;
}
.calc-back-text {
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.calc-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 2px solid var(--color-core);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  min-height: 400px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(120, 24, 58, 0.1);
}

.calc-divider {
  position: relative;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calc-divider::before {
  content: '';
  position: absolute;
  top: var(--space-8);
  bottom: var(--space-8);
  left: 50%;
  width: 1px;
  background: rgba(124, 28, 58, 0.15);
}

.calc-logo-bg {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 34%;
  aspect-ratio: 1;
  opacity: 0.04;
  filter: grayscale(100%);
  pointer-events: none;
  z-index: 0;
}
.calc-logo-bg img { width: 100%; height: 100%; object-fit: contain; }

.calc-diamonds {
  position: absolute;
  left: 0; top: 0;
  width: 50%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.calc-diamond {
  position: absolute;
  width: 36px; height: 36px;
  border: 2px solid rgba(124, 28, 58, 0.08);
  border-radius: 6px;
  transform: rotate(45deg);
}

.calc-left {
  position: relative;
  z-index: 1;
  grid-row: 1;
  padding: var(--space-7, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  height: 100%;
}

.calc-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-core);
  margin: 0;
}
.calc-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
}
.calc-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-mid);
  margin: 0;
}

.calc-slider-group { display: flex; flex-direction: column; gap: 0.5rem; }
.calc-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}
.calc-slider-note {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-mid);
  text-transform: none;
  letter-spacing: 0;
}
.calc-slider-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-core);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(124, 28, 58, 0.12);
  cursor: pointer;
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--color-core);
  box-shadow: 0 2px 8px rgba(124, 28, 58, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--color-core);
  box-shadow: 0 2px 8px rgba(124, 28, 58, 0.25);
  cursor: pointer;
}

.calc-cta-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-7, 2.5rem);
  background: #fbf4f6;
  border-top: 1px solid rgba(124, 28, 58, 0.1);
}
.calc-cta-bar-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-mid);
}
.calc-cta-bar-btn {
  background: var(--gradient-burgundy, linear-gradient(135deg, #c2547a, #7c1c3a));
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(120, 24, 58, 0.3);
  transition: transform 0.2s ease;
}
.calc-cta-bar-btn:hover { transform: translateX(3px); }

.calc-right {
  position: relative;
  z-index: 1;
  grid-row: 1;
  padding: var(--space-7, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  height: 100%;
}
.calc-output-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin: 0;
}
.calc-output-value {
  font-family: var(--font-number), Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-core);
  margin: 0;
  line-height: 1;
}
.calc-currency-symbol {
  font-family: var(--font-number), Arial, sans-serif;
}
.calc-output-unit {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-mid);
  margin-left: 0.4rem;
  vertical-align: baseline;
}

.calc-stats { display: flex; flex-direction: column; gap: 0.9rem; margin-top: var(--space-2); }
.calc-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(124, 28, 58, 0.08);
  font-family: var(--font-body);
}
.calc-stat:last-of-type { border-bottom: none; }
.calc-stat-label { font-size: 0.85rem; color: var(--color-mid); font-weight: 600; }
.calc-stat-value { font-family: var(--font-number), Arial, sans-serif; font-variant-numeric: tabular-nums; font-size: 0.95rem; font-weight: 700; color: var(--color-text); }
.calc-stat-note {
  justify-content: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--color-mid);
  line-height: 1.4;
}
.calc-stat-note i { color: var(--color-core); flex-shrink: 0; }

@media (max-width: 900px) {
  .calc-card { grid-template-columns: 1fr; grid-template-rows: auto; }
  .calc-left, .calc-divider, .calc-right, .calc-cta-bar { grid-row: auto; grid-column: 1; }
  .calc-logo-bg { width: 50%; opacity: 0.04; }
  .calc-diamonds { width: 100%; }
  .calc-cta-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .calc-cta-bar-btn { justify-content: center; }
  .calc-left, .calc-right { padding: var(--space-6) var(--space-7, 2.5rem); }
}

/* ============================================================
   SECTION 8: UNBIASED BANKING PANEL
   ============================================================ */

#banking-panel {
  position: relative;
  background: linear-gradient(180deg, #fff, #fbf4f6);
  padding: var(--space-16) 0;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.banking-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  width: 100%;
}

/* ---- Header copy ---- */
.banking-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-core);
  margin-bottom: 0.5rem;
  text-align: center;
}

.banking-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-night);
  margin-bottom: 0.75rem;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.banking-subline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-mid);
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-10);
}

/* ---- Marquee ---- */
.banking-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  margin-bottom: var(--space-12);
  padding: var(--space-4) 0;
}

.banking-marquee-track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  animation: bank-scroll 40s linear infinite;
}

.banking-marquee:hover .banking-marquee-track {
  animation-play-state: paused;
}

@keyframes bank-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Logo tiles ---- */
.bank-logo {
  flex-shrink: 0;
  width: 170px;
  height: 90px;
  background: #fff;
  border: 1px solid rgba(124, 28, 58, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(120, 24, 54, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bank-logo img {
  max-width: 70%;
  max-height: 50%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.bank-logo:hover {
  box-shadow: 0 10px 26px rgba(120, 24, 54, 0.12);
  transform: translateY(-3px);
}

.bank-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Placeholder text until real logos arrive */
.bank-logo-placeholder {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-mid);
  text-align: center;
  padding: 0 var(--space-3);
  line-height: 1.3;
}

/* ---- Rate protection card ---- */
.rate-protection {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(120, 24, 54, 0.1);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.rate-protection-lead h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-night);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

.rate-protection-lead p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-mid);
  line-height: 1.6;
  margin: 0;
}

.rate-protection-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.rate-point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.rate-point-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbf4f6, #f5e7ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-core);
  flex-shrink: 0;
}

.rate-point-body h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-night);
  margin: 0 0 0.15rem;
}

.rate-point-body p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-mid);
  line-height: 1.45;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .rate-protection {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .banking-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

#document-vault {
  position: relative;
  background: #fff;
  padding: var(--space-12) var(--space-6);
  overflow: hidden;
}

.vault-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.vault-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-core);
  margin-bottom: 0.5rem;
}

.vault-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-night);
  margin-bottom: 0.75rem;
  max-width: 720px;
}

.vault-subline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-mid);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

/* Profile selector */
.vault-selector {
  display: flex;
  width: fit-content;
  margin: 0 auto var(--space-6);
  background: #f5e7ec;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}

.vault-tab {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-mid);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.vault-tab.active {
  background: var(--gradient-burgundy);
  color: #fff;
}

.vault-checklist-wrap {
  background: linear-gradient(160deg, #fbf4f6, #fff);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-20);
  box-shadow: 0 8px 28px rgba(120, 24, 54, 0.06);
}

.vault-checklist-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-night);
  margin-bottom: var(--space-8);
}

.vault-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.vault-checklist-note {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-mid);
  text-align: center;
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.vault-check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: #fff;
  border-radius: 14px;
  padding: var(--space-4);
  box-shadow: 0 4px 14px rgba(120, 24, 54, 0.05);
  opacity: 0;
  transform: translateY(12px);
  animation: vault-item-in 0.4s ease forwards;
}

@keyframes vault-item-in {
  to { opacity: 1; transform: translateY(0); }
}

.vault-check-item:nth-child(2) { animation-delay: 0.06s; }
.vault-check-item:nth-child(3) { animation-delay: 0.12s; }
.vault-check-item:nth-child(4) { animation-delay: 0.18s; }

.vault-check-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbf4f6, #f5e7ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-core);
  flex-shrink: 0;
}

.vault-check-body h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-night);
  margin: 0 0 0.15rem;
}

.vault-check-body p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-mid);
  line-height: 1.4;
  margin: 0;
}

/* Testimonials */
.vault-proof-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: var(--color-night);
  margin-bottom: 0.5rem;
}

.vault-proof-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-mid);
  margin-bottom: var(--space-6);
  max-width: 520px;
}

.placeholder-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b008;
  background: rgba(187, 0, 136, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.testimonial-slider {
  position: relative;
  margin-bottom: var(--space-12);
}

.testimonial-track {
  overflow: hidden;
}

.testimonial-cards {
  display: flex;
  transition: transform 0.45s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: var(--space-2);
}

.testimonial-inner {
  background: #fff;
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: none;
}

.testimonial-quote-icon {
  color: var(--color-core);
  opacity: 0.3;
  margin-bottom: var(--space-4);
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: var(--color-night);
  line-height: 1.5;
  margin: 0 0 var(--space-6);
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5e7ec, #fbf4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-core);
  flex-shrink: 0;
}

.testimonial-person h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-night);
  margin: 0;
}

.testimonial-person span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-mid);
}

.testimonial-controls {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  justify-content: center;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 28, 58, 0.2);
  background: #fff;
  color: var(--color-core);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.testimonial-btn:hover {
  background: var(--color-core);
  color: #fff;
  border-color: var(--color-core);
}

/* Proof stats */
.vault-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.vault-stat {
  text-align: center;
  background: linear-gradient(160deg, #fbf4f6, #fff);
  border-radius: var(--radius-xl);
  padding: 2.5rem var(--space-5);
  box-shadow: 0 8px 28px rgba(120, 24, 54, 0.06);
}

.vault-stat-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--color-core);
  line-height: 1;
  margin-bottom: 0.25rem;
  padding-top: 1.5rem;
}

.vault-stat-label {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-night);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .vault-checklist { grid-template-columns: 1fr; }
  .vault-stats { grid-template-columns: 1fr; }
}

#advisory-bridge {
  background: linear-gradient(180deg, #fff, #fbf4f6);
  padding: var(--space-12) 0;
}

.bridge-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-8);
  align-items: stretch;
}

.bridge-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-core);
  margin: 0 0 0.6rem;
}

/* Left card */
.bridge-card {
  background: var(--gradient-burgundy, linear-gradient(150deg, #c2547a, #7c1c3a));
  border-radius: 28px;
  padding: var(--space-8) var(--space-7, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-4);
  color: #fff;
}
.bridge-card .bridge-eyebrow { color: rgba(255, 255, 255, 0.7); }
.bridge-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}
.bridge-card-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.bridge-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: var(--space-2);
}

.bridge-field-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.8rem;
}

.bridge-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bridge-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.bridge-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.bridge-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.bridge-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s ease;
}
.bridge-pill.active {
  background: #fff;
  color: var(--color-core);
  border-color: #fff;
}

.bridge-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}
.bridge-checkbox input { margin-top: 0.2rem; accent-color: #fff; flex-shrink: 0; }
.bridge-link { color: #fff; text-decoration: underline; }

.bridge-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--color-core);
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: transform 0.2s ease;
}
.bridge-submit:hover { transform: translateY(-2px); }

.bridge-direct {
  text-align: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.bridge-direct span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}
.bridge-direct-number {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

/* Right column */
.bridge-steps-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* "WHAT HAPPENS NEXT" eyebrow -- override the shared style for right column only */
.bridge-steps-col .bridge-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--color-core);
  color: var(--color-core);
  margin-bottom: 0.8rem;
}

.bridge-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-night);
  margin: 0 0 var(--space-8);
  max-width: 520px;
}

.bridge-steps {
  display: flex;
  flex-direction: column;
  gap: 0; /* gap handled per-step so the connector line can fill it */
}

.bridge-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  position: relative;
}

/* Vertical connector line: runs from bottom of number circle to top of the next */
.bridge-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px; /* centre of 40px circle (40/2 - 1px line/2) */
  top: 42px;  /* bottom of circle (40px) + 2px gap */
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-core) 0px,
    var(--color-core) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.25;
  pointer-events: none;
}

/* Push each step down so the connector line has room to breathe */
.bridge-step {
  padding-bottom: var(--space-6);
}
.bridge-step:last-child { padding-bottom: 0; }

.bridge-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-core);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 28, 58, 0.25);
  position: relative;
  z-index: 1;
}

.bridge-step-body {
  padding-top: 0.5rem; /* vertically centre text with the circle */
}

.bridge-step-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-night);
  margin: 0 0 0.3rem;
}

.bridge-step-body p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-mid);
  margin: 0;
}

@media (max-width: 900px) {
  .bridge-wrap { grid-template-columns: 1fr; }
  .bridge-card { order: 2; }
  .bridge-steps-col { order: 1; }
}

#faq-advisory {
  position: relative;
  background: linear-gradient(180deg, #fbf4f6, #fff);
  padding: var(--space-12) var(--space-6);
}

.faq-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.faq-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-core);
  margin-bottom: 0.5rem;
}

.faq-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-night);
  margin-bottom: var(--space-8);
  max-width: 640px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0; /* lines touch edge-to-edge, no card gap */
  margin-bottom: var(--space-12);
}

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  padding: 0;
  transition: border-bottom-color 0.25s ease;
}

/* First item gets a top border so the list feels fully contained */
.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}

/* Open state: no card, no shadow, no highlight — just the answer below */
.faq-item.open {
  background: transparent;
  box-shadow: none;
  border-bottom-color: rgba(0, 0, 0, 0.10);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-night);
}

.faq-question .faq-chevron {
  flex-shrink: 0;
  color: var(--color-core);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  opacity: 1;
  padding-top: 0;
  padding-bottom: 1.25rem;
}

.faq-answer-inner {
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-mid);
  line-height: 1.6;
}

/* Advisory bridge */
.advisory-bridge {
  background: var(--gradient-burgundy);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.advisory-bridge::before,
.advisory-bridge::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(45deg);
  border-radius: 16px;
}

.advisory-bridge::before { width: 160px; height: 160px; top: -50px; right: -40px; }
.advisory-bridge::after  { width: 100px; height: 100px; bottom: -30px; left: -20px; }

.advisory-content { position: relative; z-index: 2; }

.advisory-bridge h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
}

.advisory-bridge p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin: 0 auto var(--space-6);
  line-height: 1.5;
}

.advisory-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.advisory-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.advisory-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.advisory-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease;
}

.advisory-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* Footer */
#site-footer {
  position: relative;
  background: #2e0817;
  color: #fff;
  padding: var(--space-12) var(--space-6) var(--space-6);
  overflow: hidden;
}

#footer-tile-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.footer-tile-field {
  position: absolute;
  inset: 0;
  transform: scaleY(0.6);
  transform-origin: top center;
  pointer-events: none;
  perspective: 900px;
}

.footer-tile {
  position: absolute;
  width: 150px;
  height: 150px;
  background: transparent;
  border-radius: 22px;
  transform: rotate(45deg);
  transform-origin: center;
  box-shadow: none;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 32px;
  margin-bottom: var(--space-4);
  display: block;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 var(--space-4);
}

.footer-col a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.7rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-12);
  flex-wrap: wrap;
}

.footer-disclosure {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  max-width: 680px;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0;
  padding-left: 0;
  width: 100%;
  display: block;
}

.footer-copyright-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.footer-copyright-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-copyright-entity {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-lang {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.footer-lang button,
.footer-lang a {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.footer-lang button.active,
.footer-lang a.active { background: #fff; color: #2e0817; }

/* Disabled-but-visible language option (target file not built yet) */
.footer-lang a.lang-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

.faq-right {
  position: sticky;
  top: 80px;
  align-self: start;
  max-width: 380px;
  width: 380px;
}

.assistant-panel {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 40px rgba(120, 24, 54, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: 560px;
}

.assistant-header {
  background: var(--color-core);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.assistant-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-core);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.assistant-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.assistant-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.assistant-body {
  background: #ffffff;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.assistant-body::-webkit-scrollbar {
  width: 3px;
}
.assistant-body::-webkit-scrollbar-track {
  background: transparent;
}
.assistant-body::-webkit-scrollbar-thumb {
  background: rgba(120, 24, 54, 0.25);
  border-radius: 999px;
}
.assistant-body::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 24, 54, 0.45);
}

.assistant-bubble {
  background: #f5f5f5;
  border-radius: 0 12px 12px 12px;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-night);
  display: inline-block;
  max-width: 90%;
  margin-bottom: 1.25rem;
  animation: lb-bubble-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.user-bubble {
  align-self: flex-end;
  background: var(--color-core);
  color: #fff;
  border-radius: 12px 0 12px 12px;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  display: inline-block;
  max-width: 90%;
  margin-bottom: 1.25rem;
  animation: lb-bubble-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.assistant-chip {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 8px;
  padding: 0.9rem 1.25rem;
  margin-bottom: auto;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-night);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.assistant-chip:hover {
  background: #fbf4f6;
  border-color: rgba(124, 28, 58, 0.30);
}

.faq-direct {
  margin-top: auto;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fcfcfc;
  text-align: center;
}

.faq-direct p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-mid);
  margin: 0 0 0.5rem 0;
}

.faq-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-core);
  text-decoration: none;
  background: rgba(124, 28, 58, 0.06);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.faq-direct-btn:hover {
  background: rgba(124, 28, 58, 0.12);
}

.assistant-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.assistant-input {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 0.4rem 0 0.4rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  vertical-align: middle;
  line-height: 1.4;
  max-height: 2.8em;
  overflow-y: auto;
  resize: none;
  display: block;
  background: transparent;
  outline: none;
  transition: border-bottom-color 0.2s ease;
}

.assistant-input:focus {
  border-bottom-color: var(--color-core);
}

.assistant-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-core);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
  align-self: center;
  flex-shrink: 0;
  margin-right: 15px;
  margin-bottom: 5px;
  transition: background 0.2s ease;
}

.assistant-send:hover {
  background: #9b2245;
}

@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-right { position: static; }
}

/* Loading dots */
.assistant-bubble--loading {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border-radius: 0 12px 12px 12px;
  width: fit-content;
}

.lb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(120, 24, 54, 0.4);
  animation: lb-wave 1.2s ease-in-out infinite;
}

.lb-dot:nth-child(1) { animation-delay: 0s; }
.lb-dot:nth-child(2) { animation-delay: 0.2s; }
.lb-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes lb-wave {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Bubble appear animation */
@keyframes lb-bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.loanberg-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-burgundy);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(124, 28, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.loanberg-chat-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 38px rgba(124, 28, 58, 0.5);
}

.loanberg-chat-launcher .icon-close { display: none; }
.loanberg-chat-launcher.open .icon-open { display: none; }
.loanberg-chat-launcher.open .icon-close { display: block; }

/* Pulse ring */
.loanberg-chat-launcher::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(194, 84, 122, 0.5);
  animation: chat-pulse 2.4s ease-out infinite;
}

.loanberg-chat-launcher.open::after { display: none; }

@keyframes chat-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0;   }
}

.loanberg-chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 9999;
  width: 370px;
  max-width: calc(100vw - 48px);
  height: 540px;
  max-height: calc(100vh - 130px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(120, 24, 54, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.loanberg-chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.loanberg-chat-header {
  background: var(--gradient-burgundy);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.loanberg-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.loanberg-chat-header-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.loanberg-chat-header-text span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.loanberg-chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}

.loanberg-chat-body {
  flex: 1;
  padding: var(--space-5);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: linear-gradient(180deg, #fbf4f6, #fff);
}

.chat-msg {
  max-width: 80%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: #fff;
  color: var(--color-night);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 4px 14px rgba(120, 24, 54, 0.08);
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--gradient-burgundy);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
}

.loanberg-chat-chips {
  padding: var(--space-3) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid rgba(124, 28, 58, 0.08);
  background: #fff;
}

.chat-chip {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-core);
  background: rgba(194, 84, 122, 0.08);
  border: 1px solid rgba(194, 84, 122, 0.2);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.chat-chip:hover {
  background: var(--color-core);
  color: #fff;
}

.loanberg-chat-input {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(124, 28, 58, 0.08);
  background: #fff;
}

.loanberg-chat-input input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-night);
  background: transparent;
}

.loanberg-chat-input input::placeholder { color: #c9bcc2; }

.loanberg-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-burgundy);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.loanberg-chat-send:hover { transform: scale(1.08); }

@media (max-width: 480px) {
  .loanberg-chat-panel {
    right: 12px;
    bottom: 88px;
    width: calc(100vw - 24px);
  }
  .loanberg-chat-launcher { right: 16px; bottom: 16px; }
}


/* Layout utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

/* Diamond shape utility */
.diamond {
  width: 40px;
  height: 40px;
  background: var(--color-core);
  transform: rotate(45deg);
  border-radius: 4px;
}

.diamond-sm { width: 20px; height: 20px; }
.diamond-md { width: 40px; height: 40px; }
.diamond-lg { width: 64px; height: 64px; }
.diamond-xl { width: 96px; height: 96px; }

/* Diamond texture background */
.diamond-texture {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}


@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Button base styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-burgundy);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-core);
  border: 1.5px solid var(--color-core);
}

.btn-secondary:hover {
  background: var(--color-petal);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

/* Card base */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 4rem;
    --text-5xl: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --text-6xl: 2.75rem;
    --text-5xl: 2.25rem;
    --text-4xl: 2rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .section {
    min-height: auto;
    padding: var(--space-16) var(--space-4);
  }
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* LoanBerg Floating Chat Pill */

#lb-chat-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(120, 24, 54, 0.10);
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  min-width: 560px;
}

.lb-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lb-bar-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.lb-bar-divider {
  width: 1px;
  height: 18px;
  background: var(--color-core);
  opacity: 0.35;
  flex-shrink: 0;
}

.lb-bar-hint {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text);
  white-space: nowrap;
  pointer-events: none;
  flex-shrink: 0;
}

.lb-bar-hint-light {
  font-weight: 400;
  color: var(--color-muted);
}

#lb-bar-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--color-text);
  resize: none;
  outline: none;
  max-height: 2.2em;
  overflow-y: hidden;
  line-height: 1.4;
  padding: 0;
}

#lb-bar-input::placeholder {
  color: var(--color-muted);
  font-weight: 600;
  font-family: var(--font-display);
}

#lb-bar-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-core);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

#lb-bar-send:hover {
  background: #5a1228;
}

/* ============================================================
   PERSONAL LOAN HERO — SCOPED DARK NAVY OVERRIDE
   Scoped entirely to .pl-hero / .pl-navbar / .pl-hero-cta so it
   cannot affect the home loan page or any other section/page.
   ============================================================ */

#hero.pl-hero {
  background: #0a1931;
  /* Push the hero bottom (where ::after fade sits) below the fold.
     Base rule has min-height: 100vh; override to 100vh + 70px so
     the 60px fade at bottom:0 occupies [100vh+10px, 100vh+70px] —
     entirely off-screen at initial load, only revealed on scroll.
     padding-bottom removed (was a less precise earlier attempt). */
  min-height: calc(100vh + 70px);
}

.pl-hero .hero-copy {
  min-width: 0;
}

.pl-hero .hero-inner {
  gap: var(--space-8);
  padding-left: 0;
  padding-right: 0;
}

.pl-hero .hero-h1-sub {
  display: block;
  white-space: nowrap;
}

#hero.pl-hero::after {
  background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
  height: 60px;
}

.pl-hero .hero-tile {
  background: #09142B;
  box-shadow: none;
}

.pl-hero .eyebrow {
  color: #F5F7FA;
}

.pl-hero .hero-eyebrow-diamond {
  background: #F5F7FA;
}

.pl-hero .hero-h1 {
  color: #F5F7FA;
}

.pl-hero .trust-divider {
  background: rgba(255, 255, 255, 0.35);
}

.pl-hero .hero-h1 em {
  color: #09142B;
}

.pl-hero .hero-subline {
  color: #C7CDD9;
}

.pl-hero .trust-number {
  color: #F5F7FA;
}

.pl-hero .trust-label {
  color: #9AA3B2;
}

/* Operational Workflows card stays white; only fix the elements
   that were relying on the undefined --color-text inheritance
   bug or the global burgundy accent, keeping the card's internal
   palette dark-on-white and readable. */
.pl-hero .simulator-header {
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #09142B;
  box-shadow: 0 2px 6px -2px rgba(9, 20, 43, 0.35);
}

.pl-hero .simulator-headline {
  color: #10182B;
  font-weight: 600;
}

.pl-hero .simulator-eyebrow {
  color: #4A5568;
  font-weight: 400;
}

.pl-hero .simulator-collapse {
  border-color: #10182B;
  color: #10182B;
}

.pl-hero .simulator-collapse:hover {
  background: #10182B;
  color: #ffffff;
}

.pl-hero .stress-btn {
  color: #10182B;
  border-color: rgba(9, 20, 43, 0.2);
}

.pl-hero .stress-btn:hover {
  border-color: transparent;
  background: #09142B;
  color: #F5F7FA;
}

.pl-hero .stress-btn.active {
  border-color: transparent;
  background: #09142B;
  color: #F5F7FA;
}

.pl-hero .simulator-card.is-active .simulator-header {
  background: #FFFFFF;
}

.pl-hero .simulator-card.is-active .simulator-headline {
  color: #10182B;
}

.pl-hero .simulator-card.is-active .simulator-eyebrow {
  color: #4A5568;
}

.pl-hero .simulator-card.is-active .simulator-collapse {
  border-color: #10182B;
  color: #10182B;
}

.pl-hero .simulator-card.is-active .simulator-collapse:hover {
  background: #10182B;
  color: #ffffff;
  border-color: #10182B;
}

.pl-hero .simulator-placeholder,
.pl-hero .path-placeholder-diamond {
  color: #A9B7CE;
}

.pl-hero .path-placeholder-diamond {
  background: #A9B7CE;
}

.pl-hero .simulator-path-area {
  background: rgba(9, 20, 43, 0.06);
}

/* Nav logo + wordmark: light at page load (transparent navbar
   sitting on the dark hero), flipped back to dark once scrolled. */
.pl-navbar .nav-logo img {
  filter: brightness(0) invert(1);
}

.pl-navbar .nav-wordmark {
  color: #F5F7FA;
}

.pl-navbar .nav-links a {
  color: #F5F7FA;
}

.pl-navbar.scrolled .nav-wordmark {
  color: #1a0008;
}

.pl-navbar.scrolled .nav-links a {
  color: #1a0008;
}

/* FIX 1: logo — scrolled state: cancel the white invert, render dark navy */
.pl-navbar.scrolled .nav-logo img {
  filter: brightness(0) saturate(100%) invert(7%) sepia(40%) saturate(1400%) hue-rotate(193deg) brightness(90%) contrast(105%);
}

/* Primary hero CTA: scoped, does not touch base .btn */
.pl-navbar .nav-cta .btn.pl-hero-cta {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.pl-navbar .nav-cta .btn.pl-hero-cta i,
.pl-navbar .nav-cta .btn.pl-hero-cta svg {
  stroke: #ffffff;
  color: #ffffff;
}

.pl-navbar .nav-cta .btn.pl-hero-cta:hover {
  background: #ffffff;
  color: #0a1931;
  border-color: #ffffff;
}

.pl-navbar .nav-cta .btn.pl-hero-cta:hover i,
.pl-navbar .nav-cta .btn.pl-hero-cta:hover svg {
  stroke: #0a1931;
  color: #0a1931;
}

/* FIX 2: CTA — scrolled state: flip to dark navy, keep background transparent */
.pl-navbar.scrolled .nav-cta .btn.pl-hero-cta {
  border-color: #09142B;
  color: #09142B;
}

.pl-navbar.scrolled .nav-cta .btn.pl-hero-cta i,
.pl-navbar.scrolled .nav-cta .btn.pl-hero-cta svg {
  stroke: #09142B;
  color: #09142B;
}

.pl-navbar.scrolled .nav-cta .btn.pl-hero-cta:hover {
  background: #09142B;
  color: #ffffff;
  border-color: #09142B;
}

.pl-navbar.scrolled .nav-cta .btn.pl-hero-cta:hover i,
.pl-navbar.scrolled .nav-cta .btn.pl-hero-cta:hover svg {
  stroke: #ffffff;
  color: #ffffff;
}

/* ============================================================
   PL HERO — Simulator card step-list color overrides
   FIX 1: bullet diamond icon + bold label → #09142B
          (overrides global var(--color-core) = #7c1c3a)
   ============================================================ */
.pl-hero .simulator-card .step-dot {
  background: #09142B;
}

.pl-hero .simulator-card .step-text strong {
  color: #09142B;
}

/* ============================================================
   PL HERO — Simulator card main connector path stroke
   FIX 2 (cascade correction): the global .path-track rule sets
   stroke: var(--color-blush) = #e8abbe via CSS, which beats the
   SVG presentation attribute (stroke="...") edited in the HTML.
   This scoped override raises specificity to win over the global
   rule, setting the main path stroke to #4A5568 (subtitle gray)
   for the PL page only. Home loan .path-track elements are NOT
   inside .pl-hero so they are completely unaffected.
   ============================================================ */
.pl-hero .simulator-card .path-track {
  stroke: #4A5568;
}

/* ============================================================
   PL PAGE — Chat bar overrides (scoped via [data-page="pl"])
   FIX 1: logo → dark navy #09142B (was: var(--color-core) blush filter)
   FIX 2: hint-light secondary text → #4A5568 (same muted gray as subtitle)
   Home loan bar (no data-page attr) is completely unaffected.
   ============================================================ */

/* Logo: render dark navy instead of the global blush tint */
#lb-chat-bar[data-page="pl"] .lb-bar-logo {
  filter: brightness(0) saturate(100%) invert(7%) sepia(40%) saturate(1400%) hue-rotate(193deg) brightness(90%) contrast(105%);
}

/* Divider: swap var(--color-core) burgundy to navy */
#lb-chat-bar[data-page="pl"] .lb-bar-divider {
  background: #09142B;
}

/* FIX 2: secondary hint text → established PL muted gray #4A5568 */
#lb-chat-bar[data-page="pl"] .lb-bar-hint-light {
  color: #4A5568;
}

/* Send button: background + hover */
#lb-chat-bar[data-page="pl"] #lb-bar-send {
  background: #09142B;
}

#lb-chat-bar[data-page="pl"] #lb-bar-send:hover {
  background: #0d1f3c;
}

/* ============================================================
   PL PAGE — Footer color overrides (scoped via [data-page="pl"])
   FIX 1: background #2e0817 → #09142B
   FIX 2: tile hover color handled in hero-tiles.js (JS-applied inline style)
   Home loan footer (no data-page attr) is completely unaffected.
   ============================================================ */
#site-footer[data-page="pl"] {
  background: #09142B;
}

/* ============================================================
   PL PAGE — Intent Canvas accent color overrides
   FIX 1: All burgundy/pink-toned elements → #09142B / light tint.
   Scoped via .pl-hero ~ #intent-canvas (sibling combinator) so
   the home loan page's canvas (no .pl-hero predecessor) is
   completely unaffected.
   ============================================================ */

/* Section Background — was var(--gradient-hero) pink */
.pl-hero ~ #intent-canvas {
  background: linear-gradient(135deg, #ffffff 0%, rgba(9, 20, 43, 0.02) 60%, rgba(9, 20, 43, 0.05) 100%);
  padding-top: 5rem; /* FIX 1: breathing room from hero seam */
}

/* ---- Typewriter overlay (FIX 2) ---- */
/* Sits absolutely over the textarea's top-left, inherits font/size/color */
.canvas-typewriter-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;          /* clicks pass through to the real textarea */
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(9, 20, 43, 0.32); /* matches PL placeholder color */
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0;
  margin: 0;
}

/* Blinking cursor appended after typed text */
.canvas-typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: rgba(9, 20, 43, 0.32);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: tw-blink 0.9s step-end infinite;
}

@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Kicker eyebrow "THE LOANBERG INTENT CANVAS" */
.pl-hero ~ #intent-canvas .canvas-eyebrow {
  color: #09142B;
}

/* "This is not a form..." subline — was var(--color-core) burgundy */
.pl-hero ~ #intent-canvas .canvas-subline {
  color: #09142B;
}

/* "RELEVANT TO YOU" label + "Relevant to you" context label */
.pl-hero ~ #intent-canvas .canvas-context-label {
  color: #09142B;
}

/* Sparkle icon + "As you type, we will surface..." empty state */
.pl-hero ~ #intent-canvas .canvas-empty-state {
  color: rgba(9, 20, 43, 0.55);
}

/* "No robocalls. No marketing lists..." hint text */
.pl-hero ~ #intent-canvas .canvas-antispam {
  color: rgba(9, 20, 43, 0.55);
}

/* Textarea placeholder — light tint matching the navy palette */
.pl-hero ~ #intent-canvas .canvas-textarea::placeholder {
  color: rgba(9, 20, 43, 0.32);
}

/* "Send my requirement" button — solid navy, replaces burgundy gradient */
.pl-hero ~ #intent-canvas .canvas-submit {
  background: #09142B;
}

.pl-hero ~ #intent-canvas .canvas-submit:hover {
  box-shadow: 0 8px 20px rgba(9, 20, 43, 0.3);
}

/* Right panel background & border — was pink gradient & rgba(124,28,58,0.08) */
.pl-hero ~ #intent-canvas .canvas-context-panel {
  background: linear-gradient(160deg, #ffffff, rgba(9, 20, 43, 0.05));
  border-left-color: rgba(9, 20, 43, 0.08);
}

/* Context card shadow — was rgba(120,24,54,…) */
.pl-hero ~ #intent-canvas .context-card {
  box-shadow: 0 4px 14px rgba(9, 20, 43, 0.08);
}

.pl-hero ~ #intent-canvas .context-card:hover {
  box-shadow: 0 8px 22px rgba(9, 20, 43, 0.16);
}

/* Context card icon bg — was var(--gradient-burgundy) */
.pl-hero ~ #intent-canvas .context-card-icon {
  background: #09142B;
}

/* Context card body secondary text — was var(--color-mid) */
.pl-hero ~ #intent-canvas .context-card-body p {
  color: rgba(9, 20, 43, 0.6);
}

/* Card shell shadow — was rgba(120,24,54,0.1) */
.pl-hero ~ #intent-canvas .canvas-shell {
  box-shadow: 0 20px 60px rgba(9, 20, 43, 0.10);
}

/* Mobile border-top on context panel */
@media (max-width: 768px) {
  .pl-hero ~ #intent-canvas .canvas-context-panel {
    border-top-color: rgba(9, 20, 43, 0.08);
  }
}

/* ============================================================
   PL PAGE — Intent Canvas top seam fade
   FIX 2: Override the ::before (white→transparent) with
   #0a1931→transparent, mirroring the hero's own ::after fade
   (same color #0a1931, same direction, same technique).
   Height matches #intent-canvas::before (80px).
   TEST VARIANT: ::before set to transparent so the hero's dark fade
   dissolves directly into the section's natural light bg, no second
   dark band on the canvas side. Revert by restoring previous value:
   linear-gradient(to bottom, #0a1931 0%, transparent 100%)
   ============================================================ */
.pl-hero ~ #intent-canvas::before {
  background: transparent;
}

/* ============================================================
   PL PAGE — Market Context color overrides
   Scoped via .pl-hero ~ #market-context.
   Toggle removed; all rules below are active and valid.
   ============================================================ */
.pl-hero ~ #market-context .market-eyebrow,
.pl-hero ~ #market-context .market-subline,
.pl-hero ~ #market-context .market-stat-value {
  color: #09142B;
}

.pl-hero ~ #market-context .market-stat-icon {
  color: #09142B;
  background: rgba(9, 20, 43, 0.05);
}

.pl-hero ~ #market-context .market-stat-note {
  color: rgba(9, 20, 43, 0.65);
}

.pl-hero ~ #market-context .market-source-tag {
  color: rgba(9, 20, 43, 0.45);
}

.pl-hero ~ #market-context .market-stat:hover {
  box-shadow: 0 16px 40px rgba(9, 20, 43, 0.13);
}

/* ============================================================
   PL PAGE — Broken Way color overrides
   FIX 1: All burgundy/pink tones → #09142B navy family.
   Scoped via .pl-hero ~ #broken-way.
   White body text / card glass effect untouched.
   ============================================================ */

/* Section background: burgundy gradient → deep navy */
.pl-hero ~ #broken-way {
  background: linear-gradient(160deg, #0a1931, #09142B);
}

/* Eyebrow kicker accent: #e89ab4 (pink) → light blue-white tint */
.pl-hero ~ #broken-way .broken-eyebrow {
  color: rgba(187, 210, 255, 0.75);
}

/* Card icon tile: burgundy gradient bg + pink icon → navy tint bg + light icon */
.pl-hero ~ #broken-way .broken-card-icon {
  background: linear-gradient(135deg, rgba(9, 20, 43, 0.6), rgba(9, 20, 43, 0.35));
  color: rgba(187, 210, 255, 0.85);
}

/* Card hover border + glow: pink tones → blue tones */
.pl-hero ~ #broken-way .broken-card:hover,
.pl-hero ~ #broken-way .broken-card:focus-visible {
  border-color: rgba(9, 20, 43, 0.6);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(9, 20, 43, 0.25);
}

/* ============================================================
   PL PAGE — Loan Process color overrides
   FIX 2: Swap burgundy derived values to navy #09142B family.
   Scoped via .pl-hero ~ #loan-process.
   ============================================================ */

/* Section background gradient (was #fff to #fbf4f6 pink tint) -> #fff to light navy tint */
.pl-hero ~ #loan-process {
  background: linear-gradient(180deg, #ffffff, rgba(9, 20, 43, 0.04));
}

/* Base track line */
.pl-hero ~ #loan-process .process-track::before {
  background: rgba(9, 20, 43, 0.15);
}

/* Passed segment fill */
.pl-hero ~ #loan-process .process-item.passed::before {
  background: #09142B;
}

/* Current segment fill (half width) */
.pl-hero ~ #loan-process .process-item.current::before {
  background: #09142B;
}

/* Passed node border and icon color */
.pl-hero ~ #loan-process .process-item.passed .process-node {
  border-color: #09142B;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 6px 18px rgba(9, 20, 43, 0.14);
}
.pl-hero ~ #loan-process .process-item.passed .process-node i {
  color: #09142B;
}

/* Current node border and pulse */
.pl-hero ~ #loan-process .process-item.current .process-node {
  border-color: #09142B;
  animation: pl-process-pulse 2s ease-in-out infinite;
}
.pl-hero ~ #loan-process .process-item.current .process-node i {
  color: #09142B;
}

/* Custom navy/blue pulse glow */
@keyframes pl-process-pulse {
  0%, 100% { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 0 0 4px rgba(9, 20, 43, 0.2); }
  50%       { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 0 0 9px rgba(59, 130, 246, 0.25); }
}

/* Selected node's scaled ring */
.pl-hero ~ #loan-process .process-item.selected .process-node {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 0 0 5px rgba(59, 130, 246, 0.25), 0 10px 26px rgba(9, 20, 43, 0.25);
}

/* Eyebrow color (was burgundy) */
.pl-hero ~ #loan-process .process-eyebrow {
  color: #09142B;
}

/* Detail card number */
.pl-hero ~ #loan-process .process-card-num {
  color: #09142B;
}

/* ------------------------------------------------------------
   Full Sweep: Further burgundy overrides for #loan-process
   ------------------------------------------------------------ */

/* Subheading above track (was var(--color-mid)) */
.pl-hero ~ #loan-process .process-sub {
  color: #4A5568;
}

/* SCROLL hint text and arrows */
.pl-hero ~ #loan-process .process-drag-hint {
  color: #4A5568;
}

/* Base node border and shadow */
.pl-hero ~ #loan-process .process-node {
  border-color: rgba(9, 20, 43, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 4px 14px rgba(9, 20, 43, 0.08);
}

/* Upcoming node border */
.pl-hero ~ #loan-process .process-item.upcoming .process-node {
  border-color: rgba(9, 20, 43, 0.2);
}

/* Track subtext */
.pl-hero ~ #loan-process .process-card-subtext {
  color: #4A5568;
}

/* Detail card outer shadow */
.pl-hero ~ #loan-process .process-detail-card {
  box-shadow: 0 20px 60px rgba(9, 20, 43, 0.12);
}

/* Expanded detail header strip (solid navy replacement) */
.pl-hero ~ #loan-process .process-detail-header {
  background: #09142B;
}

/* "WHAT THIS INCLUDES" label */
.pl-hero ~ #loan-process .process-detail-points-label {
  color: #09142B;
}

/* Bullet point dots */
.pl-hero ~ #loan-process .process-detail-point::before {
  background: #09142B;
}

/* Bell icon signal callout box */
.pl-hero ~ #loan-process .process-detail-signal {
  border-color: rgba(9, 20, 43, 0.2);
  box-shadow: 0 4px 14px rgba(9, 20, 43, 0.04);
  color: #09142B;
}

/* ------------------------------------------------------------
   Final sweep: var(--color-night) replacements
   (--color-night is #1a0008, which carries a faint maroon tint.
   Swapping to #0a1931 to ensure zero red/pink residue)
   ------------------------------------------------------------ */

/* Section headline */
.pl-hero ~ #loan-process .process-headline {
  color: #0a1931;
}

/* Node card titles */
.pl-hero ~ #loan-process .process-card-title {
  color: #0a1931;
}

/* Checklist point text */
.pl-hero ~ #loan-process .process-detail-point {
  color: #0a1931;
}

/* ============================================================
   PL PAGE — Precision Work / Team Section color overrides
   Swapping burgundy/pink values to navy #09142B family.
   Scoped via .pl-hero ~ #groundwork.
   ============================================================ */

/* Section background gradient (was #fbf4f6 pink tint to #fff) -> light navy tint to #fff */
.pl-hero ~ #groundwork {
  background: linear-gradient(180deg, rgba(9, 20, 43, 0.04), #ffffff);
}

/* Section intros */
.pl-hero ~ #groundwork .groundwork-eyebrow { color: #09142B; }
.pl-hero ~ #groundwork .groundwork-headline { color: #0a1931; }
.pl-hero ~ #groundwork .groundwork-subline { color: #4A5568; }

/* Pillar cards */
.pl-hero ~ #groundwork .pillar-card { box-shadow: 0 8px 28px rgba(9, 20, 43, 0.08); }
.pl-hero ~ #groundwork .pillar-card:hover { box-shadow: 0 16px 44px rgba(9, 20, 43, 0.13); }
.pl-hero ~ #groundwork .pillar-icon { background: #09142B; }
.pl-hero ~ #groundwork .pillar-title { color: #0a1931; }
.pl-hero ~ #groundwork .pillar-desc { color: #4A5568; }
.pl-hero ~ #groundwork .pillar-list li { color: #0a1931; }
.pl-hero ~ #groundwork .pillar-list li i { color: #09142B; }

/* Team grid and layout overrides for 3 items instead of 4 */
.pl-hero ~ #groundwork .team-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .pl-hero ~ #groundwork .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pl-hero ~ #groundwork .team-grid { grid-template-columns: 1fr; }
}

/* Team section */
.pl-hero ~ #groundwork .team-heading { color: #0a1931; }
.pl-hero ~ #groundwork .team-subline { color: #4A5568; }

/* Team card */
.pl-hero ~ #groundwork .team-card { box-shadow: 0 8px 28px rgba(9, 20, 43, 0.08); }
.pl-hero ~ #groundwork .team-card:hover { box-shadow: 0 14px 34px rgba(9, 20, 43, 0.1); }
.pl-hero ~ #groundwork .team-card::after { border-color: rgba(9, 20, 43, 0.08); }
.pl-hero ~ #groundwork .team-photo {
  border-color: rgba(9, 20, 43, 0.25);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 4px 14px rgba(9, 20, 43, 0.08);
  color: #09142B;
}
.pl-hero ~ #groundwork .team-photo i, 
.pl-hero ~ #groundwork .team-photo svg { color: #09142B; }
.pl-hero ~ #groundwork .team-name { color: #0a1931; }
.pl-hero ~ #groundwork .team-role { color: #09142B; }

/* ============================================================
   PL PAGE — Technology and Transparency Layer color overrides
   Scoped via .pl-hero ~ #tech-layer.
   ============================================================ */

/* Redefine core variables for inherited colors */
.pl-hero ~ #tech-layer {
  --color-core: #09142B;
  --color-night: #0a1931;
  --color-mid: #4A5568;
}

/* Feature icons (left side) */
.pl-hero ~ #tech-layer .tech-feature-icon {
  background: linear-gradient(135deg, rgba(9, 20, 43, 0.04), rgba(9, 20, 43, 0.08));
  box-shadow: 0 6px 18px rgba(9, 20, 43, 0.12);
}

/* Phone screen background */
.pl-hero ~ #tech-layer .tech-phone-screen {
  background: linear-gradient(180deg, rgba(9, 20, 43, 0.04), #ffffff);
}
.pl-hero ~ #tech-layer .tech-phone {
  box-shadow: 0 30px 80px rgba(9, 20, 43, 0.18), 0 0 0 1px rgba(9, 20, 43, 0.06);
}

/* LIVE badge */
.pl-hero ~ #tech-layer .tech-phone-badge {
  background: #09142B;
}

/* File info wrapper */
.pl-hero ~ #tech-layer .tracker-fileinfo {
  background: rgba(9, 20, 43, 0.04);
}

/* Completed section group shadow */
.pl-hero ~ #tech-layer .tracker-done-group {
  box-shadow: 0 4px 14px rgba(9, 20, 43, 0.05);
}
.pl-hero ~ #tech-layer .tracker-done-row + .tracker-done-row {
  border-top-color: rgba(9, 20, 43, 0.06);
}

/* Active card */
.pl-hero ~ #tech-layer .tracker-active-card {
  box-shadow: 0 10px 28px rgba(9, 20, 43, 0.12);
  border-left-color: #09142B;
}
.pl-hero ~ #tech-layer .tracker-active-icon {
  background: #09142B;
}
.pl-hero ~ #tech-layer .tracker-progress {
  background: rgba(9, 20, 43, 0.1);
}
.pl-hero ~ #tech-layer .tracker-progress-fill {
  background: #09142B;
}

/* Up next section */
.pl-hero ~ #tech-layer .tracker-next-row {
  border-color: rgba(9, 20, 43, 0.18);
}
.pl-hero ~ #tech-layer .tracker-next-dot {
  border-color: rgba(9, 20, 43, 0.25);
}

/* View timeline CTA */
.pl-hero ~ #tech-layer .tech-phone-cta {
  background: #09142B;
}

/* Modal Back Arrow */
.pl-hero ~ #tech-layer .tl-back-btn:hover {
  background: rgba(9, 20, 43, 0.08);
}

/* Modal Timeline scrollbar */
.pl-hero ~ #tech-layer .tl-timeline-scroll {
  scrollbar-color: rgba(9, 20, 43, 0.2) transparent;
}
.pl-hero ~ #tech-layer .tl-timeline-scroll::-webkit-scrollbar-thumb {
  background: rgba(9, 20, 43, 0.2);
}

/* Timeline dots and connectors */
.pl-hero ~ #tech-layer .tl-dot {
  border-color: rgba(9, 20, 43, 0.2);
}
.pl-hero ~ #tech-layer .tl-connector {
  background: rgba(9, 20, 43, 0.15);
}

/* Modal Active dot pulse */
.pl-hero ~ #tech-layer .tl-active .tl-dot {
  box-shadow: 0 0 0 4px rgba(9, 20, 43, 0.15);
  animation: tl-pulse-pl 1.8s ease-in-out infinite;
}

@keyframes tl-pulse-pl {
  0%, 100% { box-shadow: 0 0 0 3px rgba(9, 20, 43, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(9, 20, 43, 0.08); }
}

/* ============================================================
   PL PAGE — Document Vault color overrides
   Scoped via .pl-hero ~ #document-vault.
   ============================================================ */

/* Redefine core variables */
.pl-hero ~ #document-vault {
  --color-core: #09142B;
  --color-night: #0a1931;
  --color-mid: #4A5568;
}

/* Tabs */
.pl-hero ~ #document-vault .vault-selector {
  background: rgba(9, 20, 43, 0.08);
}
.pl-hero ~ #document-vault .vault-tab.active {
  background: #09142B;
}

/* Checklist Area */
.pl-hero ~ #document-vault .vault-checklist-wrap {
  background: linear-gradient(160deg, rgba(9, 20, 43, 0.04), #ffffff);
  box-shadow: 0 8px 28px rgba(9, 20, 43, 0.06);
}
.pl-hero ~ #document-vault .vault-check-item {
  box-shadow: 0 4px 14px rgba(9, 20, 43, 0.05);
}
.pl-hero ~ #document-vault .vault-check-icon {
  background: linear-gradient(135deg, rgba(9, 20, 43, 0.04), rgba(9, 20, 43, 0.08));
}

/* Placeholder tag */
.pl-hero ~ #document-vault .placeholder-tag {
  background: rgba(9, 20, 43, 0.08);
  color: #09142B;
}

/* Testimonials */
.pl-hero ~ #document-vault .testimonial-avatar {
  background: linear-gradient(135deg, rgba(9, 20, 43, 0.08), rgba(9, 20, 43, 0.04));
}
.pl-hero ~ #document-vault .testimonial-btn {
  border-color: rgba(9, 20, 43, 0.2);
}

/* Stats */
.pl-hero ~ #document-vault .vault-stat {
  background: linear-gradient(160deg, rgba(9, 20, 43, 0.04), #ffffff);
  box-shadow: 0 8px 28px rgba(9, 20, 43, 0.06);
}

/* Security Cards Row (in #tech-layer) */
.pl-hero ~ #tech-layer .security-card {
  border-color: rgba(9, 20, 43, 0.08);
  box-shadow: 0 8px 24px rgba(9, 20, 43, 0.06);
}
.pl-hero ~ #tech-layer .security-card.in-view:hover {
  box-shadow: 0 16px 40px rgba(9, 20, 43, 0.13);
}
.pl-hero ~ #tech-layer .security-card-icon {
  background: linear-gradient(135deg, rgba(9, 20, 43, 0.04), rgba(9, 20, 43, 0.08));
}

/* ============================================================
   PL PAGE — Calculator color overrides
   Scoped via .pl-hero ~ #loan-calculator.
   ============================================================ */

.pl-hero ~ #loan-calculator {
  --color-core: #09142B;
  --color-night: #0a1931;
  --color-mid: #4A5568;
  --color-text: #0a1931;
  --gradient-burgundy: #09142B;
}

.pl-hero ~ #loan-calculator .calc-card {
  box-shadow: 0 30px 80px rgba(9, 20, 43, 0.1);
}

.pl-hero ~ #loan-calculator .calc-divider::before {
  background: rgba(9, 20, 43, 0.15);
}

.pl-hero ~ #loan-calculator .calc-diamond {
  border-color: rgba(9, 20, 43, 0.08);
}

.pl-hero ~ #loan-calculator .calc-slider {
  background: rgba(9, 20, 43, 0.12);
}

.pl-hero ~ #loan-calculator .calc-slider::-webkit-slider-thumb {
  box-shadow: 0 2px 8px rgba(9, 20, 43, 0.25);
}

.pl-hero ~ #loan-calculator .calc-slider::-moz-range-thumb {
  box-shadow: 0 2px 8px rgba(9, 20, 43, 0.25);
}

.pl-hero ~ #loan-calculator .calc-cta-bar {
  background: rgba(9, 20, 43, 0.04);
  border-top-color: rgba(9, 20, 43, 0.1);
}

.pl-hero ~ #loan-calculator .calc-cta-bar-btn {
  box-shadow: 0 8px 20px rgba(9, 20, 43, 0.3);
}

.pl-hero ~ #loan-calculator .calc-stat {
  border-bottom-color: rgba(9, 20, 43, 0.08);
}

/* ============================================================
   PL PAGE — Banking Panel color overrides
   Scoped via .pl-hero ~ #banking-panel. Redefines the three core
   burgundy vars to navy so all var()-driven text flips, then
   overrides the hardcoded burgundy rgba/gradients directly.
   Home loan #banking-panel (no .pl-hero predecessor) unaffected.
   ============================================================ */
.pl-hero ~ #banking-panel {
  --color-core: #09142B;
  --color-night: #10182B;
  --color-mid: #4A5568;
  background: linear-gradient(135deg, #050a15 0%, #09142B 100%);
}

.pl-hero ~ #banking-panel .banking-headline,
.pl-hero ~ #banking-panel .banking-subline,
.pl-hero ~ #banking-panel .banking-eyebrow {
  color: #fff;
}

.pl-hero ~ #banking-panel .banking-subline {
  opacity: 0.8;
}

/* Marquee logo tiles — hardcoded burgundy border + shadow */
.pl-hero ~ #banking-panel .bank-logo {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.pl-hero ~ #banking-panel .bank-logo:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

/* Rate-protection card shadow */
.pl-hero ~ #banking-panel .rate-protection {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Rate-point icon chips — hardcoded pink gradient bg */
.pl-hero ~ #banking-panel .rate-point-icon {
  background: linear-gradient(135deg, rgba(9, 20, 43, 0.06), rgba(9, 20, 43, 0.1));
}

/* ============================================================
   PL PAGE — Lead form + What Happens Next color overrides
   Scoped via .pl-hero ~ #advisory-bridge. Redefines core vars to
   navy; the dark lead-form panel flips from burgundy gradient to
   solid navy while its white-on-dark inner text stays white.
   Home loan #advisory-bridge (no .pl-hero predecessor) unaffected.
   ============================================================ */
.pl-hero ~ #advisory-bridge {
  --color-core: #09142B;
  --color-night: #10182B;
  --color-mid: #4A5568;
  --gradient-burgundy: linear-gradient(135deg, #10182B, #09142B);
}

/* Lead-form dark panel — burgundy gradient → solid navy */
.pl-hero ~ #advisory-bridge .bridge-card {
  background: #09142B;
}

/* Step number circle drop-shadow — hardcoded burgundy */
.pl-hero ~ #advisory-bridge .bridge-step-num {
  box-shadow: 0 4px 12px rgba(9, 20, 43, 0.25);
}

/* ============================================================
   PL PAGE — FAQ + Assistant panel color overrides
   Scoped via .pl-hero ~ #faq-advisory. Redefines core vars to navy;
   overrides the hardcoded burgundy rgba/hex on the assistant panel.
   Home loan #faq-advisory (no .pl-hero predecessor) unaffected.
   ============================================================ */
.pl-hero ~ #faq-advisory {
  --color-core: #09142B;
  --color-night: #10182B;
  --color-mid: #4A5568;
  --gradient-burgundy: linear-gradient(135deg, #10182B, #09142B);
}

/* Assistant panel shadow — hardcoded burgundy */
.pl-hero ~ #faq-advisory .assistant-panel {
  box-shadow: 0 8px 40px rgba(9, 20, 43, 0.10);
}

/* Assistant body scrollbar thumb — hardcoded burgundy */
.pl-hero ~ #faq-advisory .assistant-body::-webkit-scrollbar-thumb {
  background: rgba(9, 20, 43, 0.25);
}
.pl-hero ~ #faq-advisory .assistant-body::-webkit-scrollbar-thumb:hover {
  background: rgba(9, 20, 43, 0.45);
}

/* Assistant chip hover — hardcoded pink bg + burgundy border */
.pl-hero ~ #faq-advisory .assistant-chip:hover {
  background: rgba(9, 20, 43, 0.04);
  border-color: rgba(9, 20, 43, 0.30);
}

/* Assistant send button hover — hardcoded burgundy */
.pl-hero ~ #faq-advisory .assistant-send:hover {
  background: #0d1f3c;
}

/* FAQ direct button hover — hardcoded burgundy */
.pl-hero ~ #faq-advisory .faq-direct-btn {
  background: rgba(9, 20, 43, 0.06);
}
.pl-hero ~ #faq-advisory .faq-direct-btn:hover {
  background: rgba(9, 20, 43, 0.12);
}
