/*
  AV LÜ™ How It Works visual correction v2.4.2
  Designed, created, and owned by AVLU.
  © 2026 AVLU. All rights reserved.
*/

html[data-theme="dark"] body.route-how-it-works {
  --how-ink: #f5f8ff;
  --how-muted: #aab9d5;
  --how-blue: #2f83ff;
  --how-blue-bright: #6ea7ff;
  --how-navy: #061326;
  --how-navy-deep: #030a17;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--how-navy-deep) !important;
  color: var(--how-ink);
}

html[data-theme="dark"]:has(body.route-how-it-works) {
  background: var(--how-navy-deep) !important;
}

html[data-theme="dark"] body.route-how-it-works main {
  background: transparent !important;
}

html[data-theme="dark"] body.route-how-it-works .ref-page-hero {
  background:
    radial-gradient(ellipse at 76% 28%, rgba(20, 61, 126, 0.28), transparent 42%),
    radial-gradient(ellipse at 12% 86%, rgba(11, 43, 94, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(10, 32, 68, 0.52), transparent 52%),
    var(--how-navy-deep) !important;
}

html[data-theme="dark"] body.route-how-it-works .ref-page-hero::before {
  top: 0;
  right: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 11% 19%, rgba(121, 169, 255, 0.72) 0 1px, transparent 1.8px),
    radial-gradient(circle at 23% 72%, rgba(121, 169, 255, 0.42) 0 1px, transparent 1.8px),
    radial-gradient(circle at 42% 31%, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.7px),
    radial-gradient(circle at 61% 15%, rgba(121, 169, 255, 0.52) 0 1px, transparent 1.8px),
    radial-gradient(circle at 79% 66%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1.8px),
    radial-gradient(circle at 91% 26%, rgba(121, 169, 255, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 72% 87%, rgba(121, 169, 255, 0.4) 0 1px, transparent 1.7px),
    repeating-radial-gradient(circle at 78% 22%, transparent 0 48px, rgba(92, 145, 228, 0.055) 49px 50px);
  background-size: 211px 173px, 271px 233px, 317px 251px, 389px 307px, 463px 367px, 557px 431px, 619px 509px, auto, auto, auto;
  opacity: 0.94;
}

html[data-theme="dark"] body.route-how-it-works .ref-page-hero::after {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  background:
    linear-gradient(132deg, transparent 0 34%, rgba(92, 145, 228, 0.12) 34.08%, transparent 34.18%),
    linear-gradient(28deg, transparent 0 58%, rgba(92, 145, 228, 0.1) 58.08%, transparent 58.18%),
    linear-gradient(90deg, transparent 0 16%, rgba(92, 145, 228, 0.08) 16.05%, transparent 16.12%),
    linear-gradient(160deg, transparent 0 77%, rgba(92, 145, 228, 0.09) 77.05%, transparent 77.12%);
  opacity: 0.58;
}

html[data-theme="dark"] body.route-how-it-works .v13-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(125, 166, 232, 0.22);
  background: rgba(3, 10, 23, 0.84);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.17);
  color: var(--how-ink);
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] body.route-how-it-works .v13-header__inner {
  min-height: 74px;
  max-width: 1440px;
}

html[data-theme="dark"] body.route-how-it-works .v13-brand {
  color: #f4f7ff;
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  text-shadow: 0 0 20px rgba(90, 148, 255, 0.28);
}

html[data-theme="dark"] body.route-how-it-works .v13-brand::before {
  background: var(--how-blue);
  box-shadow: 0 0 12px rgba(47, 131, 255, 0.8);
}

html[data-theme="dark"] body.route-how-it-works .v13-nav {
  gap: clamp(18px, 2.8vw, 42px);
}

html[data-theme="dark"] body.route-how-it-works .v13-nav a {
  color: rgba(221, 231, 250, 0.72);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
}

html[data-theme="dark"] body.route-how-it-works .v13-nav a:hover,
html[data-theme="dark"] body.route-how-it-works .v13-nav a:focus-visible,
html[data-theme="dark"] body.route-how-it-works .v13-nav a[aria-current="page"] {
  color: var(--how-blue-bright);
}

html[data-theme="dark"] body.route-how-it-works .v13-nav a[aria-current="page"] {
  text-shadow: 0 0 14px rgba(47, 131, 255, 0.66);
}

html[data-theme="dark"] body.route-how-it-works .v13-nav a[aria-current="page"]::after {
  background: var(--how-blue);
  box-shadow: 0 0 10px rgba(47, 131, 255, 0.72);
}

html[data-theme="dark"] body.route-how-it-works .v13-login {
  color: rgba(221, 231, 250, 0.78);
}

html[data-theme="dark"] body.route-how-it-works .v13-menu {
  border-color: rgba(126, 169, 237, 0.5);
  background: rgba(7, 23, 47, 0.74);
  color: var(--how-ink);
}

html[data-theme="dark"] body.route-how-it-works .ref-page-hero {
  min-height: calc(100svh - 74px);
  padding: clamp(78px, 10vh, 132px) 0 clamp(72px, 9vh, 116px);
  overflow: hidden;
}

html[data-theme="dark"] body.route-how-it-works .ref-container {
  width: min(100% - 64px, 1360px);
}

html[data-theme="dark"] body.route-how-it-works .ref-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: clamp(60px, 8vw, 146px);
}

html[data-theme="dark"] body.route-how-it-works .ref-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

html[data-theme="dark"] body.route-how-it-works .ref-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(24px, 3vw, 38px);
  color: var(--how-blue-bright);
  font-family: var(--avlu-site-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(47, 131, 255, 0.45);
}

html[data-theme="dark"] body.route-how-it-works .ref-eyebrow::before {
  width: 38px;
  height: 1px;
  background: var(--how-blue);
  box-shadow: 0 0 10px rgba(47, 131, 255, 0.75);
  content: "";
}

html[data-theme="dark"] body.route-how-it-works .ref-title-small {
  max-width: 760px;
  margin: 0;
  color: #f7f9ff;
  font-family: var(--avlu-site-serif, Georgia, serif);
  font-size: clamp(3.6rem, 6.8vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.89;
  text-wrap: balance;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] body.route-how-it-works .ref-lead {
  max-width: 590px;
  margin: 32px 0 0;
  color: var(--how-muted);
  font-size: clamp(0.92rem, 1.1vw, 1.08rem);
  line-height: 1.7;
}

html[data-theme="dark"] body.route-how-it-works .ref-actions {
  margin-top: 32px;
}

html[data-theme="dark"] body.route-how-it-works .v13-btn--primary {
  border-color: var(--how-blue);
  background: var(--how-blue);
  box-shadow: 0 0 0 1px rgba(110, 167, 255, 0.2), 0 12px 32px rgba(10, 67, 158, 0.34);
  color: #fff;
}

html[data-theme="dark"] body.route-how-it-works .v13-btn--primary:hover,
html[data-theme="dark"] body.route-how-it-works .v13-btn--primary:focus-visible {
  border-color: var(--how-blue-bright);
  background: var(--how-blue-bright);
  box-shadow: 0 0 0 1px rgba(110, 167, 255, 0.35), 0 14px 36px rgba(10, 67, 158, 0.46);
}

html[data-theme="dark"] body.route-how-it-works .simple-trust-line {
  color: rgba(174, 191, 220, 0.66);
}

html[data-theme="dark"] body.route-how-it-works .simple-hero-side {
  position: relative;
  z-index: 1;
  width: min(100%, 590px);
  justify-self: end;
}

html[data-theme="dark"] body.route-how-it-works .simple-summary-card {
  overflow: hidden;
  border: 1px solid rgba(77, 143, 255, 0.78);
  border-top-width: 2px;
  border-radius: 2px;
  background: rgba(7, 25, 53, 0.72);
  box-shadow:
    0 0 0 1px rgba(47, 131, 255, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(26, 91, 184, 0.14);
  backdrop-filter: blur(13px);
}

html[data-theme="dark"] body.route-how-it-works .simple-summary-card__head {
  padding: 28px 30px 26px;
  border-bottom: 1px solid rgba(111, 164, 243, 0.22);
  background: linear-gradient(115deg, rgba(19, 57, 112, 0.82), rgba(4, 20, 45, 0.68));
}

html[data-theme="dark"] body.route-how-it-works .simple-summary-card__head span {
  color: var(--how-blue-bright);
  font-family: var(--avlu-site-mono, monospace);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

html[data-theme="dark"] body.route-how-it-works .simple-summary-card__head h2 {
  margin: 15px 0 0;
  color: #f5f8ff;
  font-family: var(--avlu-site-serif, Georgia, serif);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

html[data-theme="dark"] body.route-how-it-works .simple-summary-card__rows {
  background: rgba(3, 13, 29, 0.48);
}

html[data-theme="dark"] body.route-how-it-works .simple-summary-row {
  min-height: 104px;
  padding: 22px 30px;
  border-bottom-color: rgba(119, 158, 216, 0.18);
}

html[data-theme="dark"] body.route-how-it-works .simple-summary-row > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(92, 159, 255, 0.58);
  border-radius: 50%;
  background: rgba(31, 102, 219, 0.24);
  box-shadow: 0 0 16px rgba(47, 131, 255, 0.18);
  color: var(--how-blue-bright);
  font-family: var(--avlu-site-mono, monospace);
  font-size: 0.74rem;
  font-weight: 800;
}

html[data-theme="dark"] body.route-how-it-works .simple-summary-row strong {
  color: #f4f7ff;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

html[data-theme="dark"] body.route-how-it-works .simple-summary-row small {
  margin-top: 7px;
  color: rgba(190, 205, 231, 0.7);
  font-size: 0.77rem;
  line-height: 1.45;
}

html[data-theme="dark"] body.route-how-it-works .simple-detail {
  margin-top: 14px;
  border: 1px solid rgba(92, 159, 255, 0.62);
  border-radius: 2px;
  background: rgba(5, 19, 42, 0.78);
  box-shadow: 0 0 22px rgba(31, 102, 219, 0.11);
}

html[data-theme="dark"] body.route-how-it-works .simple-detail summary {
  padding: 21px 25px;
  color: #f2f6ff;
}

html[data-theme="dark"] body.route-how-it-works .simple-detail summary::after {
  border-color: var(--how-blue-bright);
  color: var(--how-blue-bright);
}

html[data-theme="dark"] body.route-how-it-works .simple-detail__body {
  border-top-color: rgba(119, 158, 216, 0.2);
}

html[data-theme="dark"] body.route-how-it-works .simple-steps-section,
html[data-theme="dark"] body.route-how-it-works .ref-section,
html[data-theme="dark"] body.route-how-it-works .simple-proof-disclosure {
  position: relative;
  background: rgba(3, 10, 23, 0.92);
  color: var(--how-ink);
}

html[data-theme="dark"] body.route-how-it-works .v13-footer {
  background: #030a17;
  color: var(--how-muted);
}

@media (max-width: 980px) {
  html[data-theme="dark"] body.route-how-it-works .ref-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 58px;
  }

  html[data-theme="dark"] body.route-how-it-works .simple-hero-side {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] body.route-how-it-works .ref-container {
    width: min(100% - 32px, 680px);
  }

  html[data-theme="dark"] body.route-how-it-works .ref-page-hero {
    min-height: auto;
    padding: 72px 0 64px;
  }

  html[data-theme="dark"] body.route-how-it-works .ref-title-small {
    font-size: clamp(3.15rem, 15vw, 5.2rem);
    line-height: 0.92;
  }

  html[data-theme="dark"] body.route-how-it-works .ref-lead {
    margin-top: 24px;
  }

  html[data-theme="dark"] body.route-how-it-works .simple-summary-card__head,
  html[data-theme="dark"] body.route-how-it-works .simple-summary-row {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] body.route-how-it-works::before,
  html[data-theme="dark"] body.route-how-it-works::after {
    opacity: 0.46;
  }
}

/*
  AV LÜ™ How It Works lower-surface correction v2.4.3.
  The hero remains governed by the composition above; only the sections below
  it are brought onto the same dark editorial canvas.
*/
html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) {
  background:
    linear-gradient(135deg, rgba(12, 40, 83, .16), transparent 48%),
    #030a17 !important;
  color: var(--how-ink);
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero):nth-of-type(odd) {
  background:
    linear-gradient(135deg, rgba(22, 61, 121, .2), transparent 52%),
    #061326 !important;
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) :is(.ref-section-title h2, .ref-faq-head h2, .ref-cta h2, .ref-card h3, .ref-stat strong, .ref-faq-grid summary) {
  color: #f5f8ff !important;
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) :is(.ref-section-title p, .ref-card p, .ref-stat span, .ref-faq-grid details p, .ref-cta p, .ref-card-grid + p) {
  color: rgba(201, 216, 239, .78) !important;
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) :is(.ref-card, .ref-stat, .ref-faq-grid details, .ref-cta) {
  border-color: rgba(111, 164, 243, .24) !important;
  background: rgba(7, 25, 53, .78) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) :is(.ref-card, .ref-stat, .ref-faq-grid details) :is(a, summary):hover,
html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) :is(.ref-card, .ref-stat, .ref-faq-grid details) :is(a, summary):focus-visible {
  color: #fff !important;
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) :is(.ref-icon, .ref-step-number) {
  border-color: rgba(92, 159, 255, .52);
  color: var(--how-blue-bright);
  background: rgba(31, 102, 219, .22);
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) .ref-stat {
  border-top-color: rgba(92, 159, 255, .42) !important;
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) .ref-faq-grid details {
  background: rgba(5, 19, 42, .72) !important;
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) .ref-faq-grid summary::after {
  color: var(--how-blue-bright);
}

/* Resolve the remaining base-selector winners in the nested proof workflow. */
html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) :is(.simple-section-heading, .simple-step) {
  color: var(--how-ink);
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) .simple-step {
  border-color: rgba(111, 164, 243, .24) !important;
  background: rgba(7, 25, 53, .78) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) .simple-section-heading h2,
html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) .simple-step h3 {
  color: #f5f8ff !important;
}

html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) .simple-section-heading p,
html[data-theme="dark"] body.route-how-it-works main > section:not(.ref-page-hero) .simple-step p {
  color: rgba(201, 216, 239, .78) !important;
}

html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure {
  border-color: rgba(111, 164, 243, .24) !important;
  background: rgba(3, 10, 23, .96) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
  color: var(--how-ink);
}

html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .simple-proof-body,
html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-section {
  background: transparent !important;
  color: var(--how-ink);
}

html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-heading :is(h2, p),
html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure :is(.avlu-gateway-point, .avlu-gateway-boundary) :is(strong, p),
html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-stage:not(.avlu-gateway-stage--avlu) :is(h3, p) {
  color: #f5f8ff !important;
}

html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-heading :is(.avlu-gateway-lead, .avlu-gateway-explainer),
html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-point p,
html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-boundary p,
html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-stage:not(.avlu-gateway-stage--avlu) p,
html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-note {
  color: rgba(201, 216, 239, .78) !important;
}

html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-stage:not(.avlu-gateway-stage--avlu),
html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-point,
html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-boundary {
  border-color: rgba(111, 164, 243, .24) !important;
  background: rgba(7, 25, 53, .78) !important;
}

html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-boundary::before {
  color: #fff;
  background: var(--how-blue);
}

/* Keep the highlighted workflow body copy readable over its blue surface. */
html[data-theme="dark"] body.route-how-it-works main > .simple-proof-disclosure .avlu-gateway-stage--avlu p {
  color: #fff !important;
}

/* Light-theme hero copy compatibility: keep the paper surface readable. */
html[data-theme="light"] body.route-how-it-works .ref-hero-copy h1 {
  color: #0b1e43 !important;
}

html[data-theme="light"] body.route-how-it-works .ref-hero-copy .ref-eyebrow {
  color: #1756a6 !important;
}

html[data-theme="light"] body.route-how-it-works .ref-hero-copy .ref-lead {
  color: #4f6080 !important;
}

/* Light-theme summary/process surfaces: keep the workflow legible on paper. */
html[data-theme="light"] body.route-how-it-works .simple-hero-side {
  color: #0b1e43 !important;
  background: transparent !important;
}

html[data-theme="light"] body.route-how-it-works .simple-summary-card {
  border-color: #d5deea !important;
  background: #fffdf8 !important;
  box-shadow: 0 24px 64px rgba(11, 30, 67, .12) !important;
}

html[data-theme="light"] body.route-how-it-works .simple-summary-card__head {
  border-bottom-color: #d5deea !important;
  color: #0b1e43 !important;
  background: #f4f7fb !important;
}

html[data-theme="light"] body.route-how-it-works .simple-summary-card__head span {
  color: #1756a6 !important;
}

html[data-theme="light"] body.route-how-it-works .simple-summary-card__head h2 {
  color: #0b1e43 !important;
}

html[data-theme="light"] body.route-how-it-works .simple-summary-row {
  border-top-color: #dfe5ee !important;
  background: #fffdf8 !important;
}

html[data-theme="light"] body.route-how-it-works .simple-summary-row > span {
  border-color: #b8cbe4 !important;
  color: #1756a6 !important;
  background: #e8f0fb !important;
}

html[data-theme="light"] body.route-how-it-works .simple-summary-row strong {
  color: #0b1e43 !important;
}

html[data-theme="light"] body.route-how-it-works .simple-summary-row small {
  color: #4f6080 !important;
}

html[data-theme="light"] body.route-how-it-works .simple-detail {
  border-color: #c8d5e5 !important;
  background: #fffdf8 !important;
  box-shadow: 0 12px 28px rgba(11, 30, 67, .08) !important;
}

html[data-theme="light"] body.route-how-it-works .simple-detail summary {
  color: #0b1e43 !important;
  background: #fffdf8 !important;
}

html[data-theme="light"] body.route-how-it-works .simple-detail__body {
  border-top-color: #dfe5ee !important;
  color: #0b1e43 !important;
  background: #f6f8fb !important;
}