:root {
  --ink: #000000;
  --paper: #ffffff;
  --green: #0C874C;
  --line: rgba(0, 0, 0, 0.16);
  --header-h: 92px;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 38rem;
  --page: min(1120px, calc(100% - 48px));
  --grid: rgba(0, 0, 0, 0.07);
  --chip: rgba(0, 0, 0, 0.28);
  --chip-fine: rgba(0, 0, 0, 0.14);
  --chip-pad: rgba(0, 0, 0, 0.4);
  --chip-live: rgba(12, 135, 76, 0.72);
  --gold: #E2B000;
  --blue: #2C64D6;
  --card: #ffffff;
  --hairline: rgba(0, 0, 0, 0.06);
  --hairline-hover: rgba(0, 0, 0, 0.2);

  /* Spacing scale. Fluid values reach their max around 1440px wide. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: clamp(14px, 1.1vw, 16px);
  --space-5: clamp(16px, 1.4vw, 20px);
  --space-6: clamp(20px, 1.8vw, 26px);
  --space-7: clamp(28px, 2.6vw, 38px);
  --space-8: clamp(44px, 3.9vw, 56px);
  --space-9: clamp(56px, 5.6vw, 80px);

  /* Spacing roles */
  --section-pad: clamp(96px, 8.4vw, 120px);
  --rule-gap: clamp(32px, 3vw, 44px);
  --gap-eyebrow: var(--space-4);
  --gap-heading: var(--space-6);
  --gap-text: var(--space-5);
  --gap-action: var(--space-7);
  --gap-graphic: var(--space-8);
  --gap-block: var(--space-8);
  --gap-subsection: var(--space-9);
  --gap-columns: clamp(48px, 5vw, 72px);
  --gap-cards: var(--space-6);
  --card-pad-y: var(--space-7);
  --card-pad-x: clamp(24px, 2.2vw, 32px);
  --card-gap-title: var(--space-3);
  --card-gap-text: var(--space-5);
  --card-gap-list: var(--space-6);
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #ffffff;
  --paper: #000000;
  --line: rgba(255, 255, 255, 0.2);
  --grid: rgba(255, 255, 255, 0.08);
  --chip: rgba(255, 255, 255, 0.3);
  --chip-fine: rgba(255, 255, 255, 0.16);
  --chip-pad: rgba(255, 255, 255, 0.42);
  --chip-live: rgba(12, 135, 76, 0.85);
  --card: #141414;
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-hover: rgba(255, 255, 255, 0.2);
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

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

::selection {
  background: var(--green);
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--green);
  color: #fff;
  padding: 8px 12px;
  z-index: 40;
}

.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: var(--paper);
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.site-header::after {
  background-image: linear-gradient(90deg, var(--green), transparent 92%);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 100%;
}

.site-header::before {
  background-image:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent),
    linear-gradient(90deg, var(--gold), var(--blue));
  background-repeat: no-repeat;
  background-size: 38% 100%, 100% 100%;
  mask-image: linear-gradient(90deg, #000, transparent 92%);
  opacity: 0;
  animation: header-line-sheen 1.4s ease-out infinite paused;
}

.site-header.is-scrolling::before {
  opacity: 1;
  animation-play-state: running;
}

.site-header.is-scrolling::after {
  opacity: 0;
}

@keyframes header-line-sheen {
  from { background-position: -62% 0, left center; }
  to { background-position: 162% 0, left center; }
}

.header-inner,
.footer-inner,
.hero,
.fit,
.sequence,
.problem,
.track,
.advisor,
.faq,
.action {
  width: var(--page);
  margin-inline: auto;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo-plate {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  flex: 0 0 auto;
  line-height: 0;
}

.site-header .logo-plate img { height: 58px; width: auto; animation: none; }

.site-footer .logo-plate img { height: 34px; width: auto; }

.logo-white { display: none; }

html[data-theme="dark"] .logo-standard { display: none; }

html[data-theme="dark"] .logo-white { display: block; }

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
}

.nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 0.28em;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Physical lightswitch. Range Green marks the side that is on. */
.nav-lightswitch {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.lightswitch__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-flex;
  color: rgba(0, 0, 0, 0.28);
  transition: color 0.25s ease;
}

.lightswitch__icon svg { width: 100%; height: 100%; display: block; }

.lightswitch__icon--sun { color: var(--green); }

html[data-theme="dark"] .lightswitch__icon--sun { color: rgba(255, 255, 255, 0.28); }

.lightswitch__icon--moon { color: rgba(0, 0, 0, 0.28); }

html[data-theme="dark"] .lightswitch__icon--moon { color: #ffffff; }

.lightswitch {
  display: inline-flex;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 7px;
}

.lightswitch__plate,
.lightswitch__track {
  box-sizing: content-box;
}

.lightswitch__plate {
  position: relative;
  width: 54px;
  height: 24px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lightswitch:hover .lightswitch__plate {
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .lightswitch__plate {
  background: #000000;
  border-color: var(--green);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lightswitch__screw {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #ffffff, #b6b6b6 55%, #7c7c7c 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

html[data-theme="dark"] .lightswitch__screw {
  background: radial-gradient(circle at 35% 32%, #4a4a4a, #1c1c1c 60%, #050505 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lightswitch__track {
  position: relative;
  width: 36px;
  height: 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  flex-shrink: 0;
}

html[data-theme="dark"] .lightswitch__track {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.65);
}

.lightswitch__rocker {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2e2e2e, #050505);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme="dark"] .lightswitch__rocker {
  transform: translateX(18px);
  background: var(--green);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.button-primary {
  background: var(--green);
  color: #fff;
}

.button-primary:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--green);
}

@property --cta-green {
  syntax: "<color>";
  inherits: false;
  initial-value: #0C874C;
}

.button-pulse {
  --cta-green: #0C874C;
  position: relative;
  border: 1px solid transparent;
  background-color: transparent;
  background-image:
    linear-gradient(var(--cta-green), var(--cta-green)),
    linear-gradient(110deg, var(--gold), var(--blue), var(--gold));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: auto, 220% 100%;
  background-position: 0 0, 0% 50%;
  animation: cta-border 5.6s linear infinite, cta-glow 5.6s ease-in-out infinite;
}

.button-pulse:hover {
  animation: none;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--green);
  box-shadow: none;
}

.button-pulse:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

@keyframes cta-border {
  from { background-position: 0 0, 0% 50%; }
  to { background-position: 0 0, 200% 50%; }
}

@keyframes cta-glow {
  0%, 100% {
    --cta-green: #0C874C;
    box-shadow: 0 0 14px rgba(226, 176, 0, 0.32);
  }
  50% {
    --cta-green: #0a6b3c;
    box-shadow:
      0 0 22px rgba(44, 100, 214, 0.5),
      0 0 8px rgba(226, 176, 0, 0.35);
  }
}

.button-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.arrow { transition: transform 180ms ease; }

.button:hover .arrow { transform: translateX(3px); }

.hero {
  position: relative;
  padding: clamp(64px, 6.5vw, 96px) 0 clamp(48px, 5vw, 72px);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(105deg, transparent 0%, transparent 14%, rgba(0, 0, 0, 0.28) 36%, #000 52%, #000 86%, transparent 100%);
  mask-image: linear-gradient(105deg, transparent 0%, transparent 14%, rgba(0, 0, 0, 0.28) 36%, #000 52%, #000 86%, transparent 100%);
}

@media (max-width: 900px) {
  .hero-atmosphere {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.07) 24%, transparent 46%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.07) 24%, transparent 46%);
  }
}

.hero-chip {
  position: absolute;
  top: -36px;
  left: -48px;
  width: calc(100% + 488px);
  height: calc(100% + 336px);
  max-width: none;
  animation: chip-drift 90s linear infinite;
}

@keyframes chip-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-440px, -300px, 0); }
}

.hero-layout { position: relative; z-index: 1; }

.hero-enter {
  animation: hero-in 700ms ease-out both;
  animation-delay: var(--enter-delay, 0ms);
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.orbit-mark { color: #0C874C; display: block; }

.orbit-mark path,
.orbit-mark circle { fill: currentColor; }

html[data-theme="dark"] .orbit-mark { color: #ffffff; }

.orbit-ring {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: orbit-revolve 24s linear infinite;
}

.logo-plate img,
.logo-plate {
  animation: none;
  transform: none;
}

@keyframes orbit-revolve {
  to { transform: rotate(360deg); }
}

.eyebrow .orbit-mark { width: 22px; height: 22px; flex: 0 0 auto; }

h1, h2, h3, .hero-headline {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

h1, .hero-headline {
  margin-top: var(--gap-eyebrow);
  font-size: clamp(46px, 5.4vw, 80px);
  line-height: 0.98;
  perspective: 1200px;
}

/* The hero h1 is the descriptive sentence; it keeps the old p.subline look. */
h1.subline {
  font-family: var(--sans);
  font-optical-sizing: auto;
  letter-spacing: normal;
  perspective: none;
  color: inherit;
}

.hero-line {
  display: block;
  white-space: nowrap;
  transform-style: preserve-3d;
}

.hero-line-lead {
  white-space: normal;
  text-wrap: balance;
  max-width: 11em;
}

.hero-word {
  display: inline-block;
  transform-origin: center bottom;
  animation: word-rise 720ms ease-out both;
  animation-delay: calc(var(--word-i, 0) * 70ms);
}

@keyframes word-rise {
  from {
    opacity: 0;
    transform: translateY(45%) rotateX(-40deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.swap {
  --swap-width: 7.4em;
  position: relative;
  display: inline-block;
  width: var(--swap-width);
  white-space: nowrap;
  vertical-align: baseline;
  text-align: left;
}

.swap-word {
  position: relative;
  display: inline-block;
  padding-bottom: 0.16em;
}

.swap [data-swap] {
  display: inline-block;
}

.swap-line-track {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 1px;
  transform: scaleX(1);
  transform-origin: left center;
  pointer-events: none;
}

.swap-line-track.is-draw {
  transform-origin: left center;
  animation: line-draw 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.swap-line-track.is-draw.is-draw-delay {
  animation-delay: 780ms;
}

.swap-line-track.is-wipe {
  transform-origin: left center;
  animation: line-wipe 420ms ease-in forwards;
}

.swap-line {
  position: relative;
  display: block;
  height: 2px;
  width: 100%;
  background-color: #E2B000;
  background-image: linear-gradient(90deg, #E2B000 0%, #2C64D6 100%);
  overflow: hidden;
}

.swap-line::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  transform: translateX(-140%);
  opacity: 0;
}

.swap-line-track.is-draw .swap-line::after {
  animation: line-sheen 700ms ease-out 560ms 1 both;
}

.swap-line-track.is-draw.is-draw-delay .swap-line::after {
  animation-delay: 1280ms;
}

.swap-period { display: inline; }

.swap-probe {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
  font: inherit;
}

@keyframes line-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes line-wipe {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes line-sheen {
  0% { transform: translateX(-140%); opacity: 1; }
  100% { transform: translateX(340%); opacity: 1; }
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: var(--gap-graphic) var(--gap-columns);
  align-items: start;
}

.hero-copy {
  align-self: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stage {
  align-self: center;
  margin: 0;
  min-width: 0;
}

.subline {
  max-width: 36rem;
  margin: var(--gap-heading) 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.lede {
  max-width: 38rem;
  margin: var(--gap-text) 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: var(--gap-action);
}

.text-link {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
}

.text-link:hover { text-decoration-thickness: 2px; }

.tile {
  --spot-x: 50%;
  --spot-y: 0px;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(12, 135, 76, 0.08), transparent 52%),
    var(--card);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: hidden;
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

html[data-theme="dark"] .tile {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(12, 135, 76, 0.18), transparent 52%),
    var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--spot-x) var(--spot-y), rgba(0, 0, 0, 0.06), transparent 46%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: 1;
}

html[data-theme="dark"] .tile::after {
  background: radial-gradient(460px circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.14), transparent 46%);
}

.tile:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-hover);
}

.tile:hover::after { opacity: 1; }

.tile > * { position: relative; z-index: 2; }

.panel-instrument {
  color: #fff;
  height: 500px;
  display: flex;
  flex-direction: column;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(80% 70% at 0% 100%, rgba(12, 135, 76, 0.22), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    #070707;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .panel-instrument {
  background:
    radial-gradient(80% 70% at 0% 100%, rgba(12, 135, 76, 0.26), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
    #101010;
}

.panel-instrument::after {
  background: radial-gradient(460px circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.14), transparent 46%);
}

.panel-instrument:hover { border-color: rgba(255, 255, 255, 0.2); }

.panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px var(--card-pad-x) 10px;
  font-size: 14px;
  font-weight: 600;
}

.panel-bar h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(12, 135, 76, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(12, 135, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 135, 76, 0); }
}

.phase {
  flex: none;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.3;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.86);
}

.instrument-body {
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 8px 16px 16px;
}

.diagram-host {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.diagram-host > .orbit-diagram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.orbit-diagram text {
  font-family: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.orbit-diagram .tile-label { fill: rgba(255, 255, 255, 0.94); }

.orbit-diagram .app-tile.is-pain .tile-label { fill: #F6C9C2; }

.orbit-diagram .app-tile.is-payoff .tile-label { fill: #E8F8EF; }

.orbit-diagram .goal-label {
  fill: #ffffff;
  stroke: #070707;
  stroke-width: 4px;
  paint-order: stroke fill;
  stroke-linejoin: round;
}

.panel-instrument .goal-mark,
html[data-theme="dark"] .panel-instrument .goal-mark {
  color: #0C874C;
}

.goal-mark path,
.goal-mark circle { fill: currentColor; }

.orbit-diagram .chip-shape {
  fill: #161817;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 1;
}

.orbit-diagram .app-tile.is-pain .chip-shape {
  fill: #2a1916;
  stroke: rgba(224, 140, 128, 0.9);
  stroke-dasharray: 3 2.4;
}

.orbit-diagram .app-tile.is-payoff .chip-shape {
  fill: #0f2a1c;
  stroke: #0C874C;
}

.orbit-diagram .tile-icon { color: rgba(255, 255, 255, 0.92); }

.orbit-diagram .app-tile.is-pain .tile-icon { color: #F0B2A8; }

.orbit-diagram .app-tile.is-payoff .tile-icon { color: #9BE0B8; }

.panel-instrument.is-paused .live-dot { animation-play-state: paused; }

.fit, .sequence, .problem, .track, .advisor, .faq {
  padding-top: var(--section-pad);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-head { max-width: 40rem; }

.section-head h2,
.advisor-copy h2,
.action h2 {
  font-size: clamp(36px, 4.4vw, 60px);
}

.section-head p { margin: var(--gap-text) 0 0; }

.section-head > :first-child { margin-top: 0; }

.section-head .kicker + :is(h2, h3) { margin-top: var(--gap-eyebrow); }

.section-head :is(h2, h3) + p { margin-top: var(--gap-heading); }

.fit-grid, .sequence-grid {
  display: grid;
  gap: var(--gap-cards);
  margin-top: var(--gap-graphic);
  align-items: stretch;
}

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

/* Three equal columns: Discovery, then the Implement + Maintain pair with a wider split before it. */
/* Three equal, parallel phases. */
.sequence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--seq-gap);
}

.fit-grid article,
.frame {
  padding: var(--card-pad-y) var(--card-pad-x);
  height: 100%;
}

.tile .kicker { color: #0C874C; margin-top: 0; }

.tile h3,
.frame h3 { color: var(--ink); }

.fit-grid .tile p { color: color-mix(in srgb, var(--ink) 76%, transparent); }

.kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.fit-grid h3,
.frame h3 {
  font-size: clamp(28px, 2.4vw, 36px);
  margin-top: var(--card-gap-title);
}

.fit-grid p { margin: var(--card-gap-text) 0 0; }

.advisor-copy p { margin: var(--gap-text) 0 0; }

.frame ul {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}

.frame li {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--hairline);
  color: color-mix(in srgb, var(--ink) 84%, transparent);
}

.qualifier {
  margin: var(--gap-block) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.advisor-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: var(--gap-graphic) var(--gap-columns);
  align-items: center;
}

.advisor-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 15%;
}

.advisor-copy > :first-child { margin-top: 0; }

.advisor-copy h2 { margin-top: var(--gap-eyebrow); }

.advisor-copy h2 + p { margin-top: var(--gap-heading); }

.advisor-copy h2 + .advisor-role { margin-top: var(--gap-eyebrow); }

.advisor-copy .advisor-role + p { margin-top: var(--gap-heading); }

.advisor-role {
  font-weight: 600;
  color: var(--green);
  text-wrap: balance;
}

html[data-theme="dark"] .advisor-role { color: #3EAF78; }

.advisor-copy p { max-width: 36rem; }

.advisor-copy p:last-child { margin-top: var(--gap-action); }

.action .draw-rule { grid-column: 1 / -1; }

.action {
  margin-top: 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
  padding-top: var(--section-pad);
  padding-bottom: var(--space-6);
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 0 var(--gap-columns);
  align-items: start;
}

.action-copy .orbit-mark {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-5);
}

.action-copy p { max-width: 34rem; margin: var(--gap-text) 0 0; }

.action-copy h2 + p { margin-top: var(--gap-heading); }

.faq-list {
  margin-top: var(--gap-graphic);
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  display: block;
  padding: var(--space-5) 36px var(--space-5) 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::marker { content: ""; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: calc(var(--space-5) - 2px);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--green);
}

.faq-list details[open] summary::after { content: "\2013"; }

.faq-list summary:hover { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 0.22em; }

.faq-list details p {
  margin: 0;
  padding: 0 36px var(--space-6) 0;
  max-width: 42rem;
}

.draw-rule {
  height: 1px;
  margin: 0 0 var(--rule-gap);
  background-image: linear-gradient(90deg, var(--green), transparent 92%);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 100%;
}

@media (min-width: 901px) {
  .problem {
    padding-top: 0;
  }

  .problem > .draw-rule {
    margin-bottom: var(--section-pad);
  }
}

html.js [data-draw] { background-size: 0% 100%; }

html.js [data-draw].is-in {
  background-size: 100% 100%;
  transition: background-size 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

html.js .tile[data-reveal].is-in {
  transition-delay: 0ms;
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 300ms ease,
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms ease,
    box-shadow 300ms ease;
}

html.js .tile[data-reveal].is-in:hover { transform: translateY(-2px); }

.action-form,
.form-fallback {
  color-scheme: dark;
  color: #fff;
  background:
    radial-gradient(80% 60% at 0% 100%, rgba(12, 135, 76, 0.16), transparent 52%),
    #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: var(--card-pad-y) var(--card-pad-x);
}

html[data-theme="dark"] .action-form,
html[data-theme="dark"] .form-fallback {
  background:
    radial-gradient(80% 60% at 0% 100%, rgba(12, 135, 76, 0.2), transparent 52%),
    #141414;
}

/* Shown until main.js wires the form: no JavaScript, or the script failed to load. */
.form-fallback h3 {
  margin: 0 0 var(--space-4);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}

.form-fallback p { margin: 0; color: rgba(255, 255, 255, 0.8); }

.form-fallback .form-fallback-link {
  margin-top: var(--space-5);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.form-fallback-link a {
  color: #fff;
  text-decoration-color: #0C874C;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

/* Honeypot: off-screen, out of the tab order and the accessibility tree. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-progress { margin-bottom: var(--space-6); }

.form-progress-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0C874C;
}

.form-progress-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  overflow: hidden;
}

.form-progress-track span {
  display: block;
  height: 100%;
  width: 25%;
  background: #0C874C;
  transition: width 0.4s ease;
}

.q-step {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.q-step[hidden] { display: none !important; }

.q-step:not([hidden]) { animation: step-in 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

.q-step:focus { outline: none; }

.confirmation:focus { outline: none; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.q-step legend {
  padding: 0;
  margin: 0 0 var(--space-5);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}

.q-hint {
  margin: calc(var(--space-1) * -1) 0 var(--space-5);
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
}

.field-hint {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.66);
}

.choices {
  display: grid;
  gap: 8px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.choice:hover { border-color: rgba(255, 255, 255, 0.32); }

.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice:has(input:focus-visible) {
  outline: 2px solid #0C874C;
  outline-offset: 2px;
}

.choice:has(input:checked) {
  border-color: #0C874C;
  background: rgba(12, 135, 76, 0.14);
}

.choice-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  flex: 0 0 auto;
}

.choice:has(input:checked) .choice-mark {
  border-color: #0C874C;
  background: #0C874C;
  box-shadow: inset 0 0 0 3px #0e0e0e;
}

.choice-label { font-size: 16px; font-weight: 400; line-height: 1.4; }

.other-field,
.field { gap: 6px; }

.field { display: grid; }

.other-field { display: none; margin-top: var(--space-4); }

.q-step:has(input[value="other"]:checked) .other-field { display: grid; }

.fields { display: grid; gap: var(--space-5); }

.action-form label {
  font-size: 14px;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
}

.action-form input,
.action-form select,
.action-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
}

.action-form input:focus,
.action-form select:focus,
.action-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.action-form .choice input {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.action-form .choice input:focus {
  outline: none;
  border: 0;
}

.action-form input[aria-invalid="true"] { border-color: #e07a7a; }

.action-form input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #161616 inset;
}

.form-error {
  margin: var(--space-4) 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 140, 140, 0.4);
  background: rgba(160, 32, 32, 0.18);
  color: #ffd0d0;
  font-size: 16px;
}

.form-error[hidden] { display: none; }

.q-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-6);
}

.q-nav .button-primary { margin-left: auto; }

.privacy {
  flex: 1 1 100%;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.66);
}

.action-form .button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.action-form .button-secondary:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* In-flight submit: still focusable, visibly paused, clicks ignored by main.js. */
.action-form .button[aria-disabled="true"] {
  cursor: progress;
  animation: none;
  box-shadow: none;
}

.action-form .button-pulse[aria-disabled="true"],
.action-form .button-pulse[aria-disabled="true"]:hover {
  background: #0a6b3c;
  color: #fff;
  border-color: transparent;
}

.action-form .button-secondary[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

.action-form .button-secondary[aria-disabled="true"]:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.action-form .button[aria-disabled="true"] .arrow { display: none; }

.confirmation h3 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: var(--gap-heading);
}

.confirmation p { margin: 0 0 var(--gap-action); }

.site-footer {
  margin-top: var(--space-9);
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding: var(--space-7) 0 var(--space-8);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

/* The mobile header's `.logo-plate { grid-area: logo }` would otherwise create
   implicit columns in this grid and squeeze the footer logo to ~15px wide. */
.site-footer .logo-plate {
  grid-area: auto;
  justify-self: start;
}

.site-footer nav {
  display: flex;
  gap: var(--space-2) 18px;
  font-size: 14px;
  font-weight: 600;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 0.28em;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.footer-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-tag .orbit-mark { width: 22px; height: 22px; flex: 0 0 auto; }

/* v2 funnel sections */
.section-head .subline { font-weight: 600; }
.section-cta { margin: var(--gap-block) 0 0; }
.problem-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap-graphic) var(--gap-columns); align-items: center; }
.pain-card h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.2; padding: 18px var(--card-pad-x) 12px; border-bottom: 1px solid var(--hairline); }
.pain-list { list-style: none; margin: 0; padding: 0 var(--card-pad-x) calc(var(--card-pad-y) - var(--space-5)); }
.pain-list li { display: flex; align-items: flex-start; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--hairline); }
.pain-list li:first-child { border-top: 0; }
.pain-list li > span { min-width: 0; }
.pain-icon { width: 28px; height: 28px; flex: 0 0 28px; color: var(--green); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .pain-icon { color: #3EAF78; }
.track-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-cards); margin-top: var(--gap-graphic); }
.track-card { padding: var(--space-6); display: flex; flex-direction: column; }
.track-icon { width: 32px; height: 32px; margin-bottom: var(--space-5); color: var(--green); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.track-card .kicker { font-size: 11px; letter-spacing: 0.08em; }
/* A flex item with z-index would trap the stretched button below later text. */
.track-card h3 { position: static; z-index: auto; font-size: clamp(23px, 2vw, 28px); line-height: 1.1; margin: var(--card-gap-title) 0 0; color: var(--ink); }
.track-trigger { border: 0; background: none; padding: 0; text-align: left; font: inherit; cursor: pointer; }
.track-trigger::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.track-trigger:focus-visible { outline: none; }
.track-card:has(.track-trigger:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }
.track-card .track-hook { margin: var(--space-4) 0 var(--space-6); font-size: 15px; line-height: 1.5; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.track-cue { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--hairline); font-size: 13px; font-weight: 600; color: var(--green); }
.track-cue span { font-size: 18px; }
html[data-theme="dark"] :is(.track-icon, .track-cue, .track-card .kicker, .track-story .kicker) { color: #3EAF78; }
html:has(.track-modal[open]) { overflow: hidden; }
.track-modal { position: fixed; width: min(680px, calc(100% - 32px)); max-height: calc(100% - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: var(--space-8) var(--card-pad-x) var(--card-pad-y); border: 1px solid var(--hairline-hover); border-radius: 16px; background: var(--card); color: var(--ink); overscroll-behavior: contain; box-shadow: 0 24px 100px rgba(0, 0, 0, 0.25); }
.track-modal::backdrop { background: rgba(0, 0, 0, 0.65); }
.track-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--hairline-hover); border-radius: 50%; background: var(--card); font-size: 28px; line-height: 1; cursor: pointer; }
.track-close:hover { background: color-mix(in srgb, var(--ink) 8%, var(--card)); }
.track-story h3 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin: var(--card-gap-title) 0 0; }
.track-story .kicker { color: var(--green); margin: 0; }
.track-story p { margin: var(--space-4) 0 0; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.track-story .track-role { font-size: 15px; font-weight: 600; margin-top: var(--space-4); }
.track-story .track-role + p { margin-top: var(--card-gap-text); }
.track-story .track-why { margin-top: var(--card-gap-list); padding-top: var(--space-4); border-top: 1px solid var(--hairline-hover); font-size: 16px; }
.track-why span { font-weight: 600; color: var(--ink); }
.track-link { font-size: 15px; font-weight: 600; }
.track-link a { color: inherit; text-underline-offset: 0.25em; text-decoration-color: #0C874C; }
.inside-op { margin-top: var(--gap-subsection); }
.inside-title { font-size: clamp(28px, 3vw, 40px); }
.inside-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gap-cards); margin-top: var(--gap-graphic); }
.approach { margin: 0; padding: calc(var(--card-pad-y) - var(--space-4)) var(--card-pad-x) calc(var(--card-pad-y) - var(--space-4)) calc(var(--card-pad-x) + 24px); }
.approach li { padding: var(--space-4) 0; border-top: 1px solid var(--hairline); }
.approach li:first-child { border-top: 0; }
.approach li::marker { color: #0C874C; font-weight: 600; }
.wont { padding: var(--card-pad-y) var(--card-pad-x); }
.wont ul { margin: var(--card-gap-text) 0 0; padding-left: 20px; }
.wont li { padding: var(--space-2) 0; }
.frame .frame-sub { font-weight: 600; margin: var(--card-gap-text) 0 0; }
.frame > p { margin: var(--space-4) 0 0; }
.frame .list-label { margin-top: var(--card-gap-list); font-size: 14px; font-weight: 600; color: #0C874C; }
.frame .fine { font-size: 15px; margin-top: var(--card-gap-list); color: color-mix(in srgb, var(--ink) 70%, transparent); }
.form-alt { grid-column: 1 / -1; margin: var(--space-6) 0 0; font-size: 16px; text-align: right; }
.form-alt a, .faq-list a, .footer-contact a { color: inherit; text-decoration-color: #0C874C; text-underline-offset: 0.25em; }
.footer-contact { grid-column: 1 / -1; font-weight: 400 !important; }

/* Sequence: Discovery, Implement, Maintain as three phases. */
.sequence {
  --seq-art-h: 160px;
  --seq-gap: var(--gap-cards);
}

.phase-label {
  margin: 0 0 var(--space-5);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: #0C874C;
}

/* Sequence graphics. Every SVG shares a 320x180 viewBox drawn at the same height,
   so 1.125 and 1.6875 units render as 1px and 1.5px strokes in all three. */
.seq-art {
  --sa-ink: rgba(0, 0, 0, 0.26);
  --sa-faint: rgba(0, 0, 0, 0.13);
  --sa-dot: rgba(0, 0, 0, 0.16);
  --sa-green: #0C874C;
  --sa-pulse: #086B3D;
  --sa-glow: rgba(12, 135, 76, 0.18);
  height: var(--seq-art-h);
  margin: 0 0 var(--space-7);
}

html[data-theme="dark"] .seq-art {
  --sa-ink: rgba(255, 255, 255, 0.3);
  --sa-faint: rgba(255, 255, 255, 0.14);
  --sa-dot: rgba(255, 255, 255, 0.15);
  --sa-green: #17A05E;
  --sa-pulse: #4CC38A;
  --sa-glow: rgba(62, 175, 120, 0.26);
}

.seq-art > svg { width: 100%; height: 100%; }

.frame .seq-art + h3 { margin-top: 0; }

.sa path { fill: none; }
.sa-hair { stroke-width: 1.125; }
.sa-bold { stroke-width: 1.6875; stroke-linecap: round; stroke-linejoin: round; }
.sa-line { stroke: var(--sa-ink); fill: none; }
.sa-faint { stroke: var(--sa-faint); fill: none; }
.sa-green { stroke: var(--sa-green); fill: none; }
.sa-dash { stroke-dasharray: 2 3; }
.sa-node { fill: var(--card); }
.sa-fill { fill: var(--sa-green); stroke: none; }
.sa-dot { fill: var(--sa-dot); }
.sa-stop { stop-color: var(--sa-green); }
.sa .sa-mark { color: var(--sa-green); }
.sa .sa-mark path,
.sa .sa-mark circle { fill: currentColor; stroke: none; }
.sa .sa-mark-muted { color: var(--sa-faint); }

.sa-mark-ring {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: orbit-revolve 24s linear infinite;
}

.d-goal,
.d-ping,
.m-ping {
  transform-box: fill-box;
  transform-origin: center;
}

.d-ping,
.m-ping {
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

/* Discovery: a scan sweeps the map and traces the priority path to the goal. 10s loop. */
.d-seg { stroke-dasharray: 1 2; }
.sa-discovery .d-found { animation: d-found 10s linear infinite; }
.sa-discovery .d-seg-1 { animation: d-seg-1 10s linear infinite; }
.sa-discovery .d-seg-2 { animation: d-seg-2 10s linear infinite; }
.sa-discovery .d-seg-3 { animation: d-seg-3 10s linear infinite; }
.sa-discovery .d-node-1 { animation: d-node-1 10s linear infinite; }
.sa-discovery .d-node-2 { animation: d-node-2 10s linear infinite; }
.sa-discovery .d-node-3 { animation: d-node-3 10s linear infinite; }
.sa-discovery .d-goal { animation: d-goal 10s linear infinite; }
.sa-discovery .d-ping { animation: d-ping 10s ease-out infinite; }
.sa-discovery .d-scan { opacity: 0; animation: d-scan 10s linear infinite; }

@keyframes d-scan {
  0%, 6% { transform: translateX(0); opacity: 0; }
  9%, 52% { opacity: 1; }
  56%, 100% { transform: translateX(320px); opacity: 0; }
}

@keyframes d-seg-1 { 0%, 12.3% { stroke-dashoffset: 1.05; } 22.2%, 100% { stroke-dashoffset: 0; } }
@keyframes d-seg-2 { 0%, 24.2% { stroke-dashoffset: 1.05; } 35%, 100% { stroke-dashoffset: 0; } }
@keyframes d-seg-3 { 0%, 37% { stroke-dashoffset: 1.05; } 44.4%, 100% { stroke-dashoffset: 0; } }
@keyframes d-node-1 { 0%, 10.6% { opacity: 0; } 12.4%, 100% { opacity: 1; } }
@keyframes d-node-2 { 0%, 22.5% { opacity: 0; } 24%, 100% { opacity: 1; } }
@keyframes d-node-3 { 0%, 35.3% { opacity: 0; } 36.8%, 100% { opacity: 1; } }

@keyframes d-goal {
  0%, 44.6% { opacity: 0; transform: scale(0.7); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  50%, 100% { opacity: 1; transform: none; }
}

@keyframes d-ping {
  0%, 48% { opacity: 0; transform: none; }
  49% { opacity: 0.6; }
  64%, 100% { opacity: 0; transform: scale(1.7); }
}

@keyframes d-found {
  0%, 84% { opacity: 1; }
  92%, 100% { opacity: 0; }
}

/* Implement: blocks snap into their slots, link up, and pulses run to the goal. 12s loop. */
.sa-implement .i-block-1 { animation: i-block-1 12s linear infinite; }
.sa-implement .i-block-2 { animation: i-block-2 12s linear infinite; }
.sa-implement .i-block-3 { animation: i-block-3 12s linear infinite; }
.sa-implement .i-ports { animation: i-ports 12s linear infinite; }
.sa-implement .i-goal { animation: i-goal 12s linear infinite; }
.i-link { stroke-dasharray: 1 2; }
.sa-implement .i-link { animation: i-link 12s ease-out infinite; }
.sa-implement .i-link-out { animation-name: i-link-out; }
.i-flow { opacity: 0; }
.sa-implement .i-flow { animation: i-flow 12s linear infinite; }

.i-pulse {
  stroke: var(--sa-pulse);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 8 200;
  stroke-dashoffset: 10;
}

.sa-implement .i-pulse-in { animation: i-pulse-in 2.4s linear infinite; }
.sa-implement .i-pulse-mid { animation: i-pulse-mid 2.4s linear infinite; }
.sa-implement .i-pulse-out { animation: i-pulse-out 2.4s linear infinite; }

/* Start the loop mid-cycle so the first frame (and the paused off-screen frame) is the finished build. */
.sa.sa-implement * { animation-delay: -6s; }

@keyframes i-block-1 {
  0%, 4% { opacity: 0; transform: translate(-14px, -10px); animation-timing-function: cubic-bezier(0.22, 1.25, 0.36, 1); }
  13%, 88% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: none; }
}

@keyframes i-block-2 {
  0%, 8% { opacity: 0; transform: translate(-18px, 0); animation-timing-function: cubic-bezier(0.22, 1.25, 0.36, 1); }
  17%, 88% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: none; }
}

@keyframes i-block-3 {
  0%, 12% { opacity: 0; transform: translate(-14px, 10px); animation-timing-function: cubic-bezier(0.22, 1.25, 0.36, 1); }
  21%, 88% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: none; }
}

@keyframes i-link {
  0%, 22% { stroke-dashoffset: 1.05; opacity: 1; }
  32%, 88% { stroke-dashoffset: 0; opacity: 1; }
  95%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes i-link-out {
  0%, 32% { stroke-dashoffset: 1.05; opacity: 1; }
  37%, 88% { stroke-dashoffset: 0; opacity: 1; }
  95%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes i-ports { 0%, 22% { opacity: 0; } 24%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes i-goal { 0%, 36% { opacity: 0; } 41%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes i-flow { 0%, 40% { opacity: 0; } 41%, 80% { opacity: 1; } 82%, 100% { opacity: 0; } }

/* The three inputs reach the hub together, then one pulse carries on to the goal. */
@keyframes i-pulse-in { 0% { stroke-dashoffset: 10; } 55%, 100% { stroke-dashoffset: -80.92; } }
@keyframes i-pulse-mid { 0%, 28% { stroke-dashoffset: 10; } 55%, 100% { stroke-dashoffset: -39.2; } }
@keyframes i-pulse-out { 0%, 55% { stroke-dashoffset: 10; } 85%, 100% { stroke-dashoffset: -40.4; } }

/* Maintain: the mark's ring revolves while a pulse laps the orbit, lighting each quarter. 12s per lap. */
.sa-maintain .m-pulse {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: m-orbit 12s linear infinite;
}

.m-glow { stroke-width: 6; stroke-linecap: round; opacity: 0.22; }
.m-head-glow { fill: var(--sa-glow); }

.sa-maintain .m-q-1 .m-lit { animation: m-lit-1 12s linear infinite; }
.sa-maintain .m-q-2 .m-lit { animation: m-lit-2 12s linear infinite; }
.sa-maintain .m-q-3 .m-lit { animation: m-lit-3 12s linear infinite; }
.sa-maintain .m-q-4 .m-lit { animation: m-lit-4 12s linear infinite; }
.sa-maintain .m-q-1 .m-ping { animation: m-ping-1 12s ease-out infinite; }
.sa-maintain .m-q-2 .m-ping { animation: m-ping-2 12s ease-out infinite; }
.sa-maintain .m-q-3 .m-ping { animation: m-ping-3 12s ease-out infinite; }
.sa-maintain .m-q-4 .m-ping { animation: m-ping-4 12s ease-out infinite; }

@keyframes m-orbit {
  from { transform: rotate(-15deg); }
  to { transform: rotate(345deg); }
}

@keyframes m-lit-1 { 0%, 4% { opacity: 0; } 5.5%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes m-lit-2 { 0%, 29% { opacity: 0; } 30.5%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes m-lit-3 { 0%, 54% { opacity: 0; } 55.5%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes m-lit-4 { 0%, 79% { opacity: 0; } 80.5%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes m-ping-1 { 0%, 4% { opacity: 0; transform: none; } 4.6% { opacity: 0.7; } 18%, 100% { opacity: 0; transform: scale(3); } }
@keyframes m-ping-2 { 0%, 29% { opacity: 0; transform: none; } 29.6% { opacity: 0.7; } 43%, 100% { opacity: 0; transform: scale(3); } }
@keyframes m-ping-3 { 0%, 54% { opacity: 0; transform: none; } 54.6% { opacity: 0.7; } 68%, 100% { opacity: 0; transform: scale(3); } }
@keyframes m-ping-4 { 0%, 79% { opacity: 0; transform: none; } 79.6% { opacity: 0.7; } 93%, 100% { opacity: 0; transform: scale(3); } }

/* Graphics only move while on screen. Reduced motion shows the finished state (base styles). */
html.js .seq-art:not(.is-live) * { animation-play-state: paused; }

@media (max-width: 1099px) {
  .sequence-grid { grid-template-columns: minmax(0, 1fr); }

  .sequence-grid > .frame {
    display: grid;
    grid-template-columns: minmax(284px, 5fr) minmax(0, 7fr);
    column-gap: var(--gap-columns);
    align-content: start;
  }

  .sequence-grid > .frame > * { grid-column: 2; }

  .sequence-grid > .frame > .seq-art {
    grid-column: 1;
    grid-row: 1 / span 8;
    align-self: start;
    margin: 0;
  }
}

@media (max-width: 720px) {
  .sequence-grid > .frame { display: block; }

  .sequence-grid > .frame > .seq-art { margin-bottom: var(--space-7); }
}

@media (max-width: 900px) {
  .problem-layout, .inside-grid { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-alt { text-align: left; }
}

@media (max-width: 900px) {
  .nav { display: none; }

  :root { --header-h: 76px; }

  .site-header { height: var(--header-h); }

  .site-header .logo-plate img { height: 48px; }

  .header-inner {
    height: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 12px;
  }

  .logo-plate {
    flex: 0 1 auto;
    justify-content: flex-start;
  }

  .header-actions {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .hero-layout,
  .fit-grid,
  .advisor-card,
  .action,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .stage { align-self: stretch; }

  .action-form,
  .form-fallback { margin-top: var(--gap-graphic); }

  .advisor-card img { max-width: 420px; }

  .panel-instrument { height: 520px; }

  .site-footer nav { flex-wrap: wrap; row-gap: 0; }

  .site-footer nav a { min-height: 44px; }
}

@media (max-width: 640px) {
  .track-grid { grid-template-columns: 1fr; }
  :root {
    --page: min(1120px, calc(100% - 32px));
    --header-h: 112px;
  }

  h1, .hero-headline { font-size: 44px; }

  .site-header { height: auto; }

  .header-inner {
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 0;
    row-gap: 8px;
    gap: 8px;
  }

  .logo-plate { flex: 1 1 auto; }

  .site-header .logo-plate img { height: 48px; }

  .header-actions {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 8px;
  }

  .header-actions .button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .panel-instrument {
    height: auto;
    container-type: inline-size;
  }

  .instrument-body {
    flex: none;
    width: 100%;
    height: min(444px, 100cqw);
  }

  .q-nav .button-primary {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .subline { font-size: 18px; }
}

@media (max-width: 1040px) and (min-width: 901px) {
  .panel-instrument { height: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .site-header.is-scrolling::before { opacity: 0; }
  .site-header.is-scrolling::after { opacity: 1; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  html.js [data-draw] { background-size: 100% 100% !important; }

  .hero-word {
    opacity: 1 !important;
    transform: none !important;
  }

  .orbit-ring {
    transform: none !important;
  }

  .swap-line-track {
    transform: scaleX(1) !important;
  }

  .button-pulse {
    animation: none !important;
    background: #0C874C !important;
    background-image: none !important;
    box-shadow: none !important;
    border-color: transparent;
    color: #fff;
  }

  .button-pulse:focus-visible {
    outline: 2px solid #0C874C;
    outline-offset: 4px;
  }
}

@media (max-width: 1120px) and (min-width: 901px) {
  .nav { gap: 14px; font-size: 13px; }
}
@media (max-width: 1020px) and (min-width: 901px) {
  .nav { display: none; }
}

/* Mobile header: logo centered, theme toggle left, apply right */
@media (max-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "switch logo cta";
    align-items: center;
    column-gap: 12px;
  }
  .header-actions { display: contents; }
  .nav-lightswitch { grid-area: switch; justify-self: start; }
  .logo-plate { grid-area: logo; justify-self: center; justify-content: center; }
  .header-actions > .button { grid-area: cta; justify-self: end; }
}
@media (max-width: 640px) {
  .site-header { height: auto; }
  .header-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "logo logo" "switch cta";
    row-gap: 8px;
    padding: 10px 0;
  }
}

/* ==========================================================================
   Legal pages: /terms/, /privacy/, /refund-policy/
   Single reading column on the page grid. Uses the shared spacing tokens.
   ========================================================================== */
.legal {
  width: var(--page);
  margin-inline: auto;
  padding-top: var(--section-pad);
}

/* 60ch of Public Sans measures about 70-75 characters of running text per line. */
.legal-doc { max-width: 60ch; }

.legal-head h1 {
  margin-top: var(--gap-eyebrow);
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
}

.legal-updated {
  margin: var(--gap-heading) 0 0;
  font-size: 15px;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.legal-section { margin-top: var(--gap-block); }

.legal-section h2 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.legal-num { color: var(--green); }

html[data-theme="dark"] .legal-num { color: #3EAF78; }

.legal-intro { margin-top: var(--gap-graphic); }

.legal-intro p,
.legal-section p,
.legal-section li {
  line-height: 1.7;
}

.legal-intro p,
.legal-section p,
.legal-section ul,
.legal-section ol {
  margin: var(--gap-text) 0 0;
}

.legal-intro p:first-child,
.legal-section h2 + p,
.legal-section h2 + ul,
.legal-section h2 + ol,
.legal-section h2 + .legal-table-wrap { margin-top: var(--gap-heading); }

.legal-section ul,
.legal-section ol { padding-left: 1.4em; }

.legal-section li + li { margin-top: 0.5em; }

.legal-doc a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

/* Tables scroll inside their own box on narrow screens instead of widening the page. */
.legal-table-wrap {
  margin: var(--gap-text) 0 0;
  overflow-x: auto;
  border: 1px solid var(--hairline-hover);
  border-radius: 12px;
}

.legal-table-wrap table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.legal-table-wrap th,
.legal-table-wrap td {
  padding: var(--space-3, 12px) var(--space-4, 16px);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline-hover);
}

.legal-table-wrap tr:last-child td { border-bottom: 0; }

.legal-table-wrap th {
  background: var(--card);
  font-weight: 600;
}

/* Footer legal links: full-width row under the contact line, on every page. */
.footer-legal { grid-column: 1 / -1; }

.site-footer nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 0.28em;
}
