/* ============================================================
   PELYR — design system, version 02 "ENTERPRISE"
   Premium IT-provider aesthetic: white space, one restrained
   blue accent, hairlines, soft shadows, sentence-case type.
   ============================================================ */

:root {
  --bg:        #FFFFFF;
  --bg-soft:   #F6F7F9;
  --bg-deep:   #0B0F19;   /* closing band, footer accents      */
  --ink:       #0F1424;   /* headings, primary buttons         */
  --body-c:    #4A5162;   /* body text                         */
  --muted:     #697080;   /* captions, labels (AA on bg-soft)  */
  --hairline:  #E8EAEF;
  --hairline-2:#D9DDE5;
  --accent:    #2B50E0;   /* the single accent                 */
  --accent-deep: #1E3FC4;
  --accent-soft: #EEF1FD;
  --on-dark:   #EDEFF4;
  --on-dark-dim: rgba(237, 239, 244, 0.66);

  --font-sans: "Inter", "SF Pro Text", "Segoe UI", Arial, sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(15, 20, 36, 0.05);
  --shadow-md: 0 1px 2px rgba(15, 20, 36, 0.05), 0 8px 28px rgba(15, 20, 36, 0.07);
  --shadow-lg: 0 2px 4px rgba(15, 20, 36, 0.05), 0 20px 48px rgba(15, 20, 36, 0.10);

  --radius: 12px;
  --radius-sm: 8px;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max-w: 1140px;
  --space-section: clamp(5rem, 9vw, 8rem);

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---------- reset & base ---------- */

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

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

[id] { scroll-margin-top: 6rem; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body-c);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-300%);
}
.skip-link:focus-visible { transform: none; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--hairline); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.95rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 650;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand svg { width: 22px; height: 22px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 480;
  color: var(--body-c);
  transition: color 0.2s ease;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-links .btn {
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
}

/* mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.75rem 0.7rem;
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  padding: 0.8rem 1.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #232A40;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  border-color: var(--hairline-2);
  color: var(--ink);
  background: var(--bg);
}
.btn-ghost:hover {
  border-color: var(--muted);
  background: var(--bg-soft);
}

.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* on-dark variants */
.band-dark .btn-primary {
  background: #fff;
  color: var(--ink);
}
.band-dark .btn-primary:hover { background: var(--on-dark); }
.band-dark .btn-ghost {
  border-color: rgba(237, 239, 244, 0.28);
  color: var(--on-dark);
  background: transparent;
}
.band-dark .btn-ghost:hover {
  border-color: rgba(237, 239, 244, 0.55);
  background: rgba(237, 239, 244, 0.06);
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

main { display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

h1.headline, h2.headline {
  font-family: var(--font-display);
  font-weight: 540;
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

.headline .dot-accent { color: var(--accent); }

h2.headline {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  max-width: 24ch;
}

.sub {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: var(--body-c);
  max-width: 56ch;
}

.section-head { margin-bottom: clamp(2.2rem, 4.5vw, 3.5rem); }
.section-head .sub { margin-top: 1rem; }

/* editorial ghost numeral above each section head */
.sec-no {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
  color: #E3E8F1;
  margin-bottom: 0.5rem;
  user-select: none;
}
.section-soft .sec-no { color: #DDE2EC; }

.body-copy { max-width: 58ch; }
.body-copy strong { color: var(--ink); font-weight: 600; }

.card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  color: var(--body-c);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.js .pill .dot { animation: pill-pulse 3s ease infinite; }

@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(43, 80, 224, 0.25); }
  40% { box-shadow: 0 0 0 5px rgba(43, 80, 224, 0); }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(7.5rem, 14vh, 10rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(43, 80, 224, 0.055), transparent 66%),
    linear-gradient(var(--bg-soft), var(--bg) 34%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero .pill { margin-bottom: 1.5rem; }

.hero h1.headline {
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  max-width: 15ch;
}

/* range-ring artwork — reception radius as quiet hairline geometry */
.hero-art {
  position: absolute;
  top: 50%;
  right: -190px;
  transform: translateY(-50%);
  width: min(60vw, 880px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
}
.hero-art svg { width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 1; }

.hero-art .station-dot { opacity: 0.85; }
.js .hero-art .sd-2 { animation: station-blink 5.5s ease-in-out infinite; }
.js .hero-art .sd-3 { animation: station-blink 5.5s ease-in-out 2.6s infinite; }

@keyframes station-blink {
  0%, 100% { opacity: 0.85; }
  45% { opacity: 0.25; }
}

/* subpages: rings drift off the top-right corner */
.hero-art.hero-art-corner {
  top: -180px;
  right: -220px;
  transform: none;
  width: min(46vw, 640px);
}

.hero .sub { margin-top: 1.4rem; }

.hero-ctas {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.hero-sub {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- signal-path card ---------- */

.flow-card {
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.flow-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--hairline);
}
.flow-card-head .t { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.flow-card-head .s {
  font-size: 0.74rem;
  font-weight: 520;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.flow-card-body { padding: 1.5rem 1.4rem; }

.fnode {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.fnode .fico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
}
.fnode .fico svg { width: 20px; height: 20px; stroke: var(--body-c); }

.fnode .ft { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.fnode .fc { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }

.fline {
  position: relative;
  width: 1px;
  height: 30px;
  margin: 6px 0 6px 20px;
  background: var(--hairline-2);
}
.fline .fpulse {
  position: absolute;
  left: -2.5px;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.is-loaded .fline .fpulse { animation: fpulse-run 3.2s ease-in-out infinite; }
.is-loaded .fline-2 .fpulse { animation-delay: 1.6s; }

@keyframes fpulse-run {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  46% { opacity: 1; }
  60%, 100% { transform: translateY(26px); opacity: 0; }
}

.flow-card-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  background: var(--bg-soft);
}
.flow-card-foot .cell {
  padding: 0.85rem 1rem 0.95rem;
  text-align: left;
}
.flow-card-foot .cell + .cell { border-left: 1px solid var(--hairline); }
.flow-card-foot .k {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-card-foot .v {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.15rem;
}

/* ============================================================
   CLAIMS — three key statements
   ============================================================ */

.claims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
}

.claim {
  border-top: 1px solid var(--hairline-2);
  padding-top: 1.3rem;
}

.claim h2 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 540;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.claim p { font-size: 0.92rem; max-width: 36ch; }

/* ============================================================
   STEPS — receive / connect / share
   ============================================================ */

.steps3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.step {
  padding: 1.8rem 1.6rem 1.9rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step .step-no {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 640;
  margin-bottom: 1.1rem;
}

.step h3 {
  font-size: 1.08rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.step .step-tag {
  display: block;
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--accent);
  margin: 0.25rem 0 0.7rem;
}

.step p { font-size: 0.92rem; }

/* ============================================================
   FLOW — four-step summary
   ============================================================ */

.flow4 {
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.flow-step {
  counter-increment: flow;
  padding: 1.7rem 1.5rem 1.9rem;
  position: relative;
}
.flow-step + .flow-step { border-left: 1px solid var(--hairline); }

.flow-step::before {
  content: "0" counter(flow);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.9rem;
}

.flow-step h3 {
  font-size: 0.99rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.flow-step p { font-size: 0.88rem; }

.flow-step .tick {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}
.js .flow-step .tick { transform: scaleX(0); }
.is-in .flow-step .tick { transform: scaleX(1); }
.is-in .flow-step:nth-child(2) .tick { transition-delay: 0.2s; }
.is-in .flow-step:nth-child(3) .tick { transition-delay: 0.4s; }
.is-in .flow-step:nth-child(4) .tick { transition-delay: 0.6s; }

.section-more {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ============================================================
   PATHS — existing vs. new station
   ============================================================ */

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.path-card { padding: 2rem 1.8rem 2.1rem; }

.path-card .path-no {
  display: block;
  font-size: 0.74rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.path-card h3 {
  font-size: 1.35rem;
  font-weight: 630;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.path-card > p { font-size: 0.92rem; margin-bottom: 1.3rem; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
  color: var(--body-c);
}
.check-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.5' fill='none' stroke='%232B50E0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

.path-note {
  margin-top: 1.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 66ch;
}

/* ============================================================
   CALC — the pool worked example
   ============================================================ */

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* inside the two-column layout the head sits mid-column, so the
   big section-level gap would split two sentences of one argument */
.calc-grid .section-head { margin-bottom: 1.4rem; }

.calc-panel {
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--hairline);
}
.calc-head .t { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.calc-head .s {
  font-size: 0.74rem;
  font-weight: 520;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
}

.calc-rows { padding: 0.4rem 1.4rem 0.5rem; }

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.9rem 0;
  font-size: 0.92rem;
}
.calc-row + .calc-row { border-top: 1px solid var(--hairline); }

.calc-row .k { color: var(--body-c); }
.calc-row .v {
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.calc-row .v.hl { color: var(--accent); }

.calc-math {
  border-top: 1px solid var(--hairline);
  padding: 1.15rem 1.4rem 1.3rem;
  background: var(--bg-soft);
}
.calc-math .formula {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.calc-math .result {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 540;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 0.2rem;
}
.calc-math .result small {
  font-size: 0.85rem;
  font-weight: 450;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 0.5rem;
}

/* proportional share bar */
.share-bar { margin-top: 2rem; }
.share-bar .bar-track {
  height: 8px;
  border-radius: 999px;
  background: #EBEDF2;
  position: relative;
  overflow: hidden;
}
.share-bar .bar-you {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 0.7%;
  min-width: 5px;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: left;
  transition: transform 1.3s var(--ease-out) 0.4s;
}
.js .share-bar .bar-you { transform: scaleX(0); }
.is-in .share-bar .bar-you { transform: scaleX(1); }

.share-bar .bar-legend {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.share-bar .bar-legend .you { color: var(--accent); font-weight: 560; }

.disclaimer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 58ch;
}

/* ============================================================
   DARK BAND — closing CTA
   ============================================================ */

.band-dark {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--on-dark);
}
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M0,140 C260,80 520,190 780,120 C960,72 1080,110 1200,84' fill='none' stroke='rgba(237,239,244,0.07)' stroke-width='1'/%3E%3Cpath d='M0,180 C300,130 560,215 840,150 C1010,110 1110,140 1200,122' fill='none' stroke='rgba(237,239,244,0.045)' stroke-width='1'/%3E%3C/svg%3E") bottom / 100% 220px no-repeat,
    radial-gradient(760px 380px at 82% 8%, rgba(43, 80, 224, 0.22), transparent 65%);
  pointer-events: none;
}

.band-dark .eyebrow { color: var(--on-dark-dim); }
.band-dark .eyebrow::before { border-color: #8FA4F2; }
.band-dark h2.headline { color: #fff; }
.band-dark .sub { color: var(--on-dark-dim); }
.band-dark .hero-sub { color: var(--on-dark-dim); }

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 2.5rem;
  align-items: center;
}

.band-dark :focus-visible { outline-color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2.8rem 0 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-note {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.9rem;
}
.footer-links a {
  text-decoration: none;
  color: var(--body-c);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--ink); }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  font-size: 1rem;
  color: var(--ink);
}
.footer-brand svg { width: 18px; height: 18px; }

/* ============================================================
   HOW IT WORKS — roles, phases, signal chain
   ============================================================ */

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.6rem;
  overflow: hidden;
}
.role { padding: 1.25rem 1.5rem; }
.role + .role { border-left: 1px solid var(--hairline); }
.role .k {
  display: block;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.role .v { font-size: 0.9rem; color: var(--body-c); }

.phases { counter-reset: phase; }

.phase {
  counter-increment: phase;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.8rem, 3.5vw, 2.6rem) 0;
  border-top: 1px solid var(--hairline);
}
.phase:last-child { border-bottom: 1px solid var(--hairline); }

.phase .phase-no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.35rem;
}
.phase .phase-no::before { content: "Phase 0" counter(phase); }

.phase h3 {
  font-size: 1.25rem;
  font-weight: 630;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.phase p { max-width: 60ch; font-size: 0.95rem; }

/* signal chain — five stops, scroll-driven */
.chain {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 44px;
}

.chain::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--hairline);
}

.chain-progress {
  position: absolute;
  left: 13px;
  top: 8px;
  width: 2px;
  border-radius: 2px;
  height: 0;
  background: var(--accent);
  z-index: 1;
}

.chain-stop { position: relative; padding: 1.5rem 0 1.9rem; }

.chain-stop .dot {
  position: absolute;
  left: -44px;
  top: 1.7rem;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.chain-stop .dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--hairline-2);
  background: var(--bg);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.chain-stop.is-passed .dot::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.chain-stop .mono-label { display: block; margin-bottom: 0.3rem; }

.chain-stop h3 {
  font-size: 1.2rem;
  font-weight: 630;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.4rem;
  transition: color 0.35s ease;
}
.js .chain-stop:not(.is-passed) h3 { color: var(--muted); }

.chain-stop p { max-width: 52ch; font-size: 0.92rem; }

.chain-split {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.chain-split > div { padding: 1.35rem 1.6rem; }
.chain-split > div + div { border-left: 1px solid var(--hairline); }
.chain-split .k {
  display: block;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.chain-split p { font-size: 0.9rem; }

/* good to know */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
}
.fact {
  border-top: 1px solid var(--hairline-2);
  padding-top: 1.2rem;
}
.fact h3 {
  font-size: 1.04rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.fact p { font-size: 0.9rem; }

/* ============================================================
   REWARDS — formula, rank model, principles
   ============================================================ */

.formula-block {
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.formula-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(0.98rem, 2.2vw, 1.35rem);
  font-weight: 590;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.formula-line .term {
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.45em 0.85em;
}
.formula-line .op { color: var(--accent); font-weight: 640; }
.formula-line .pair {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;   /* keeps each operator attached to its operand across wraps */
}

.formula-note {
  margin-top: 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* rank model */
.rank-table { max-width: 760px; }

.rank-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 118px;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
}
.rank-row:last-child { border-bottom: 1px solid var(--hairline); }

.rank-row .rank-k { font-size: 0.88rem; color: var(--body-c); }

.rank-row .rank-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #EBEDF2;
  position: relative;
  overflow: hidden;
}
.rank-row .rank-bar {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: left;
  transition: transform 1s var(--ease-out);
}
.js .rank-row .rank-bar { transform: scaleX(0); }
.rank-row:nth-child(2) .rank-bar { transition-delay: 0.12s; }
.rank-row:nth-child(3) .rank-bar { transition-delay: 0.24s; }
.rank-row:nth-child(4) .rank-bar { transition-delay: 0.36s; background: var(--hairline-2); }
.early-table .rank-row:nth-child(4) .rank-bar { background: var(--accent); }
.early-table .rank-row:nth-child(5) .rank-bar {
  transition-delay: 0.48s;
  background: var(--hairline-2);
}
.is-in .rank-row .rank-bar { transform: scaleX(1); }

.rank-row .rank-v {
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: var(--ink);
  text-align: right;
}
.rank-row .rank-v small {
  display: block;
  font-size: 0.68rem;
  font-weight: 480;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.rank-note {
  margin-top: 1.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 64ch;
}

/* principles */
.principles {
  counter-reset: prin;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.principle {
  counter-increment: prin;
  padding: 1.8rem 1.6rem 1.9rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.principle:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.principle .prin-no {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 640;
  margin-bottom: 1.1rem;
}
.principle .prin-no::before { content: counter(prin); }

.principle h3 {
  font-size: 1.08rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.principle p { font-size: 0.92rem; }

.principle .ratio {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  margin-top: 0.9rem;
}

.principle .ratio + .ratio { margin-top: 0.5rem; }

.pool-split { max-width: 880px; }
.pool-split .path-card > p { margin-bottom: 0; }

/* pool variables */
.pool-vars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  overflow: hidden;
}
.pool-var {
  padding: 1.05rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
  color: var(--body-c);
}
.pool-var:nth-child(-n+2) { border-top: 0; }
.pool-var:nth-child(odd):not(:last-child) { border-right: 1px solid var(--hairline); }
.pool-var .idx {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  flex: none;
}

/* ============================================================
   REVEAL & COUNTERS
   ============================================================ */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-count] { font-variant-numeric: tabular-nums; }

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

/* a deliberate off-beat: the middle card sits a step lower */
@media (min-width: 769px) {
  .steps3 .step:nth-child(2),
  .principles .principle:nth-child(2) { margin-top: 1.6rem; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .flow-card-wrap { max-width: 520px; margin-inline: auto; }
  .hero-art { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
  .flow4 { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(3) { border-left: 0; }
  .flow-step:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--gutter) 1.2rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.7rem 0; font-size: 1rem; }
  .nav-links .btn { margin-top: 0.8rem; }

  /* without JS the toggle is dead — show a plain static nav instead */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 1.1rem;
    padding: 0;
    border: 0;
    background: none;
  }
  html:not(.js) .nav-links a { padding: 0.2rem 0; font-size: 0.9rem; }
  html:not(.js) .nav-links .btn { margin-top: 0; }
}

@media (max-width: 768px) {
  .claims, .steps3, .paths, .facts, .principles { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .role + .role { border-left: 0; border-top: 1px solid var(--hairline); }
  .flow-card-foot { grid-template-columns: 1fr; }
  .flow-card-foot .cell + .cell { border-left: 0; border-top: 1px solid var(--hairline); }
  .chain-split { grid-template-columns: 1fr; }
  .chain-split > div + div { border-left: 0; border-top: 1px solid var(--hairline); }
  .pool-vars { grid-template-columns: 1fr; }
  .pool-var:nth-child(odd):not(:last-child) { border-right: 0; }
  .pool-var:nth-child(2) { border-top: 1px solid var(--hairline); }
  .phase { grid-template-columns: 1fr; gap: 0.5rem; }
  .rank-row { grid-template-columns: 108px minmax(0, 1fr) 76px; }
}

@media (max-width: 520px) {
  .flow4 { grid-template-columns: 1fr; }
  .flow-step + .flow-step { border-left: 0; border-top: 1px solid var(--hairline); }
  .hero h1.headline { font-size: clamp(2rem, 8vw, 2.4rem); }
  h2.headline { font-size: clamp(1.6rem, 6.4vw, 1.85rem); }
  .btn { width: 100%; }
  .nav-links .btn, .section-more .btn { width: auto; }
  .hero-ctas { gap: 0.7rem; }
  .chain { padding-left: 38px; }
  .chain-stop .dot { left: -38px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .js .share-bar .bar-you,
  .js .rank-row .rank-bar,
  .js .flow-step .tick { transform: scaleX(1); }

  .fline .fpulse { display: none; }
  .js .pill .dot { animation: none; }
}
