:root {
  --bg: #FFFFFF;
  --panel: #F3F5F8;
  --panel-2: #EBEFF4;
  --card: #FFFFFF;
  --ink: #0B0B0C;
  --muted: #6B6B70;
  --faint: #93939A;
  --line: rgba(11, 11, 12, .10);
  --line-soft: rgba(11, 11, 12, .06);
  --accent: #2981FD;
  --dark: #0E0E10;

  --r-panel: 26px;
  --r-card: 16px;
  --pad: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 1200px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .68, .16, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400;
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(41, 129, 253, .16); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 1rem; z-index: 300; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -.022em; }
h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); line-height: 1.06; }
h2 { font-size: clamp(1.95rem, 3.1vw, 2.65rem); line-height: 1.12; }
h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: -.012em; line-height: 1.35; }
p { margin: 0; }
.eyebrow { font-size: .9rem; font-weight: 500; color: var(--muted); margin: 0 0 1.1rem; display: flex; align-items: center; gap: .55rem; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.lede { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; max-width: 34rem; }
.lede strong { color: var(--ink); font-weight: 500; }
.small { font-size: .95rem; color: var(--muted); line-height: 1.55; }
.tiny { font-size: .78rem; color: var(--faint); line-height: 1.6; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1.5rem 5vw; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head h2 { max-width: 16ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .78em 1.35em; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font: 500 .95rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: #1B6EE4; transform: translateY(-1px); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #292930; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: rgba(11, 11, 12, .04); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #ECECEC; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link { color: var(--accent); text-decoration: none; font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: .35em; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- panels & cards ---------- */
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-panel); padding: clamp(1.1rem, 2.4vw, 1.6rem); }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: clamp(1.2rem, 2vw, 1.5rem); }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.55; margin-top: .5rem; }
.card .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--panel); display: grid; place-items: center; margin-bottom: 1.1rem; color: var(--ink); }
.card .ic svg { width: 17px; height: 17px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: .85rem var(--pad); transition: background .35s var(--ease), border-color .35s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); border-bottom-color: var(--line-soft); }
.nav-in { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.nav-logo { display: block; width: clamp(150px, 16vw, 210px); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: .6rem; }
.in-menu { display: none; }
.nav-links { justify-self: center; display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 2.1rem); }
.nav-links a:not(.btn) { font-size: .95rem; font-weight: 400; color: var(--muted); text-decoration: none; transition: color .25s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: .68em 1.15em; font-size: .9rem; }
.menu-btn { display: none; position: relative; z-index: 2; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn i { position: absolute; left: .75rem; right: .75rem; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn i:first-child { top: 1.05rem; }
.menu-btn i:last-child { top: 1.45rem; }
html.menu-open .menu-btn i:first-child { top: 1.25rem; transform: rotate(45deg); }
html.menu-open .menu-btn i:last-child { top: 1.25rem; transform: rotate(-45deg); }
@media (max-width: 840px) {
  .menu-btn { display: block; }
  .nav-in { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-cta { display: none; }
  .in-menu { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 0; justify-self: stretch; width: 100vw; max-width: 100vw;
    background: var(--bg); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.2rem;
    padding: 5rem var(--pad) 3rem; transform: translateY(-101%); transition: transform .5s var(--ease); visibility: hidden;
  }
  html.menu-open .nav-links { transform: none; visibility: visible; }
  .nav-links a:not(.btn) { font-size: 1.8rem; font-weight: 300; letter-spacing: -.02em; color: var(--ink); }
  .nav-links .btn { margin-top: .8rem; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(7rem, 12vw, 9.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 2rem 5vw; align-items: end; }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero-side { padding-bottom: .35rem; }
.hero-side p { color: var(--muted); max-width: 30rem; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2rem; }

/* showcase panel with tabs */
.showcase { margin-top: clamp(2rem, 4vw, 3rem); }
.tabs { display: flex; gap: .3rem; padding: .3rem; background: var(--panel-2); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: .5rem; padding: .62em 1.15em; border: 0; background: transparent; border-radius: 999px;
  font: 400 .93rem/1 var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); transition: background .3s; }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.tab[aria-selected="true"] .dot { background: var(--accent); }
.panes { margin-top: .8rem; }
.pane[hidden] { display: none; }
.pane-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.4rem 2.5rem; align-items: center; }
.pane-copy h3 { font-size: 1.45rem; font-weight: 300; letter-spacing: -.02em; }
.pane-copy p { color: var(--muted); font-size: .98rem; margin-top: .7rem; }
.pane-copy ul { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .55rem; }
.pane-copy li { position: relative; padding-left: 1.3rem; font-size: .93rem; color: var(--muted); }
.pane-copy li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.pane-copy .link { margin-top: 1.4rem; }
.pane-visual { background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 1.1rem; min-height: 280px; display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.pane-visual.photo { padding: 0; overflow: hidden; }
.pane-visual.photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }

/* small mock UI */
.mock-row { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: .8rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; }
.mock-row + .mock-row { margin-top: .1rem; }
.mock-row .when { font-size: .78rem; color: var(--faint); }
.mock-row b { font-size: .88rem; font-weight: 500; display: block; }
.mock-row span.sub { font-size: .78rem; color: var(--muted); }
.pill { font-size: .7rem; font-weight: 500; padding: .3em .7em; border-radius: 999px; background: rgba(41, 129, 253, .10); color: var(--accent); white-space: nowrap; }
.pill.grey { background: rgba(11, 11, 12, .05); color: var(--muted); }
.mock-head { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--faint); padding: 0 .3rem .2rem; }
.bubble { max-width: 86%; padding: .65rem .85rem; border-radius: 14px; font-size: .86rem; line-height: 1.45; }
.bubble.them { background: var(--panel); border-bottom-left-radius: 5px; color: var(--ink); }
.bubble.us { background: var(--ink); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }

/* ---------- brand strip ---------- */
.strip { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 1.6rem 0; }
.strip p { font-size: .9rem; color: var(--faint); }
.brands { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.2rem); flex-wrap: wrap; }
.brands .bname { font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; color: var(--muted); }
.brands img { opacity: .62; }
.brands .thynk { height: 21px; width: auto; }
.brands .rbp { height: 19px; width: auto; }

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 2rem 5vw; align-items: start; }
.split .sticky { position: sticky; top: 6.5rem; }
.stack { display: grid; gap: .75rem; }
.stat-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 1.3rem 1.4rem; }
.stat-card .n { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.stat-card .n span { font-size: .5em; color: var(--accent); margin-left: .1em; }
.stat-card .c { font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.stat-card .was { font-size: .78rem; color: var(--faint); margin-top: .35rem; }

/* steps row */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 1.2rem; }
.step .n { font-size: .78rem; color: var(--accent); font-weight: 500; }
.step h3 { margin-top: .9rem; }
.step p { font-size: .88rem; color: var(--muted); margin-top: .45rem; line-height: 1.5; }
.step .when { display: inline-block; margin-top: .9rem; font-size: .72rem; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: .25em .6em; }

/* timeline */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; position: relative; margin-top: 1.5rem; }
.flow::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 1px; background: var(--line); }
.flow li { list-style: none; position: relative; padding-top: 1.6rem; }
.flow li::before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--faint); }
.flow li:last-child::before { background: var(--accent); border-color: var(--accent); }
.flow b { display: block; font-size: .95rem; font-weight: 500; }
.flow span { display: block; font-size: .85rem; color: var(--muted); margin-top: .3rem; line-height: 1.5; }

/* comparison */
table.vs { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); overflow: hidden; }
.vs th, .vs td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.vs tr:last-child th, .vs tr:last-child td { border-bottom: 0; }
.vs thead th { font-size: .78rem; font-weight: 500; color: var(--faint); background: var(--panel); }
.vs thead th:last-child { color: var(--accent); }
.vs tbody th { font-weight: 400; color: var(--ink); width: 34%; }
.vs td { color: var(--muted); }
.vs td:last-child { color: var(--ink); }

/* photos */
.photo-pair { display: grid; grid-template-columns: 1.25fr .75fr; gap: .75rem; }
.photo-pair figure { margin: 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-soft); background: var(--card); }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo-cap { margin-top: .8rem; }

/* together */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.track { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 1.5rem; }
.track .who { font-size: .88rem; font-weight: 500; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.track .who .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.track ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.track li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; font-size: .95rem; }
.track li i { font-style: normal; font-size: .78rem; color: var(--faint); padding-top: .2em; }
.track li span { display: block; font-size: .87rem; color: var(--muted); margin-top: .15rem; }

/* ---------- contact ---------- */
.contact-panel { background: var(--dark); color: #fff; border-radius: var(--r-panel); padding: clamp(1.6rem, 4vw, 3.2rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem 4vw; align-items: start; }
.contact-panel h2 { max-width: 12ch; }
.contact-panel .lede { color: rgba(255, 255, 255, .62); margin-top: 1.2rem; }
.contact-panel .lede strong { color: #fff; }
.contact-panel .eyebrow { color: rgba(255, 255, 255, .55); }
form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .78rem; color: rgba(255, 255, 255, .6); }
.field input, .field select {
  font: 400 .98rem/1.3 var(--font); color: #fff; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16);
  padding: .78rem .9rem; border-radius: 10px; width: 100%; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: #111; }
.field input::placeholder { color: rgba(255, 255, 255, .34); }
.field input:focus, .field select:focus { outline: none; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1rem 1fr; gap: .7rem; font-size: .74rem; line-height: 1.5; color: rgba(255, 255, 255, .5); }
.consent b { display: block; margin-bottom: .25rem; font-weight: 400; font-size: .9rem; color: #fff; }
.consent a { color: inherit; text-decoration: underline; }
.consent input { width: 1rem; height: 1rem; margin: .15rem 0 0; accent-color: var(--accent); }
form.lead .btn { justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: .85rem; min-height: 1.2em; color: rgba(255, 255, 255, .8); }

/* ---------- legal pages ---------- */
.legal-page { padding-top: clamp(7rem, 12vw, 9.5rem); }
.legal-page h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.legal-page .date { margin-top: .9rem; color: var(--faint); font-size: .9rem; }
.legal-body { max-width: 46rem; margin-top: clamp(2rem, 4vw, 3rem); }
.legal-body h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 400; margin-top: 2.8rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.02rem; font-weight: 500; margin-top: 1.8rem; }
.legal-body p { color: var(--muted); margin-top: .9rem; }
.legal-body ul { color: var(--muted); margin: .9rem 0 0; padding-left: 1.15rem; }
.legal-body li { margin-top: .45rem; }
.legal-body a { color: var(--accent); }
.legal-body .callout { margin-top: 1.4rem; padding: 1.2rem 1.4rem; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-card); }
.legal-body .callout p { margin-top: .3rem; }
.legal-body .callout p:first-child { margin-top: 0; color: var(--ink); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.lead .btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- footer ---------- */
footer { padding: clamp(3rem, 6vw, 4.5rem) var(--pad) 2rem; border-top: 1px solid var(--line-soft); }
.foot-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem 3vw; }
.foot-grid img { width: 170px; }
.foot-grid > div > p { margin-top: 1.1rem; font-size: .9rem; color: var(--muted); max-width: 20rem; }
.foot-grid h4 { font-size: .8rem; font-weight: 500; color: var(--faint); margin-bottom: .9rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-grid a { font-size: .92rem; color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.legal { max-width: var(--maxw); margin: 3rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .8rem; color: var(--faint); }
.legal a { color: var(--faint); text-decoration: none; }
.legal a:hover { color: var(--muted); }

/* ---------- motion (kept light) ---------- */
[data-r] { opacity: 0; transform: translateY(14px); }
html.static [data-r], .is-in[data-r], [data-r].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .head, .split, .pane-in, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split .sticky { position: static; }
  .grid-4, .steps, .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .flow::before { display: none; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .grid-3, .grid-2, .grid-4, .steps, .steps.four, .tracks, .photo-pair, form.lead { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .pane-visual { min-height: 220px; }
  .mock-row { grid-template-columns: 3.3rem 1fr auto; gap: .5rem; padding: .65rem .7rem; }
  .mock-row b { font-size: .82rem; }
  .mock-row .when, .mock-row span.sub { font-size: .72rem; }
  .pill { font-size: .62rem; padding: .3em .55em; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 6.5rem; }
}
/* ============================================================
   THEME CONCEPTS — switch with the pill at the bottom of the page
   ============================================================ */
:root { --contact-bg: var(--dark); --glow: transparent; --logo-dark-op: 0; --logo-light-op: 1; }
.logo-dark { display: none; }
html[data-theme] .logo-dark { display: block; }
html[data-theme] .logo-light { display: none; }

/* glow wash behind the hero, so dark never reads as heavy */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% 30%; z-index: -1; pointer-events: none; background: var(--glow);
}

/* A — INK: black, white type, blue accents */
html[data-theme="ink"] {
  --bg: #08080A; --panel: #121216; --panel-2: #1B1B21; --card: #141419;
  --ink: #F6F6F7; --muted: #9B9BA4; --faint: #75757E;
  --line: rgba(255, 255, 255, .10); --line-soft: rgba(255, 255, 255, .07);
  --accent: #4A90FF; --contact-bg: #101016;
  --glow: radial-gradient(60% 55% at 22% 20%, rgba(74, 144, 255, .16), transparent 70%);
}

/* B — MIDNIGHT: deep blue-black, brighter accent, more lift */
html[data-theme="midnight"] {
  --bg: #070B14; --panel: #0E1524; --panel-2: #162034; --card: #101A2C;
  --ink: #F2F5FA; --muted: #97A3B8; --faint: #6E7B91;
  --line: rgba(160, 190, 255, .14); --line-soft: rgba(160, 190, 255, .09);
  --accent: #54A0FF; --contact-bg: linear-gradient(140deg, #16305C 0%, #0D1A30 60%);
  --glow: radial-gradient(70% 60% at 78% 12%, rgba(84, 160, 255, .22), transparent 68%);
}

/* C — DUO: dark frame, light content sections */
html[data-theme="duo"] {
  --bg: #0A0A0C; --panel: #141418; --panel-2: #1D1D23; --card: #16161B;
  --ink: #F6F6F7; --muted: #9B9BA4; --faint: #75757E;
  --line: rgba(255, 255, 255, .10); --line-soft: rgba(255, 255, 255, .07);
  --accent: #4A90FF; --contact-bg: linear-gradient(140deg, #1C3563 0%, #101016 65%);
  --glow: radial-gradient(60% 55% at 20% 18%, rgba(74, 144, 255, .17), transparent 70%);
}
html[data-theme="duo"] [data-alt] {
  --bg: #FFFFFF; --panel: #F3F5F8; --panel-2: #EBEFF4; --card: #FFFFFF;
  --ink: #0B0B0C; --muted: #6B6B70; --faint: #93939A;
  --line: rgba(11, 11, 12, .10); --line-soft: rgba(11, 11, 12, .06); --accent: #2981FD;
  background: var(--bg); color: var(--ink);
}
html[data-theme="duo"] [data-alt] .logo-dark { display: none; }
html[data-theme="duo"] [data-alt] .logo-light { display: block; }

/* D — SLATE: lifted charcoal, softer contrast, logo on a white chip */
html[data-theme="slate"] {
  --bg: #16181D; --panel: #1F222A; --panel-2: #282C36; --card: #232730;
  --ink: #F2F3F5; --muted: #A6ABB7; --faint: #7E8492;
  --line: rgba(255, 255, 255, .13); --line-soft: rgba(255, 255, 255, .09);
  --accent: #4A90FF; --contact-bg: #101219; --glow: transparent;
}

/* E — DAWN: light-struck charcoal, big soft wash, the brightest of the dark set */
html[data-theme="dawn"] {
  --bg: #1A1C22; --panel: #242831; --panel-2: #2E323D; --card: #272B35;
  --ink: #F4F5F8; --muted: #AEB4C0; --faint: #868D9C;
  --line: rgba(255, 255, 255, .16); --line-soft: rgba(255, 255, 255, .10);
  --accent: #5AA2FF; --contact-bg: linear-gradient(140deg, #24406E 0%, #1A1C22 65%); --glow: transparent;
}
html[data-theme="dawn"] body {
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(126, 178, 255, .30) 0%, rgba(126, 178, 255, .10) 38%, transparent 68%),
    radial-gradient(60% 40% at 85% 6%, rgba(255, 255, 255, .06), transparent 60%);
  background-repeat: no-repeat;
  background-size: 100% 1400px, 100% 900px;
}
html[data-theme="dawn"] .card, html[data-theme="dawn"] .stat-card, html[data-theme="dawn"] .step, html[data-theme="dawn"] .track { box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }

/* F — SPOTLIGHT: white page, black hero block, black close */
html[data-theme="spotlight"] {
  --bg: #FFFFFF; --panel: #F3F5F8; --panel-2: #EBEFF4; --card: #FFFFFF;
  --ink: #0B0B0C; --muted: #6B6B70; --faint: #93939A;
  --line: rgba(11, 11, 12, .10); --line-soft: rgba(11, 11, 12, .06);
  --accent: #2981FD; --contact-bg: #0B0B0D; --glow: transparent;
}
html[data-theme="spotlight"] .logo-dark { display: none; }
html[data-theme="spotlight"] .logo-light { display: block; }
html[data-theme="spotlight"] .hero { padding-top: 6rem; padding-bottom: 0; }
html[data-theme="spotlight"] .hero .wrap {
  --bg: #0B0B0D; --panel: #141418; --panel-2: #1D1D23; --card: #15151A;
  --ink: #F6F6F7; --muted: #A0A0A9; --faint: #7C7C86;
  --line: rgba(255, 255, 255, .12); --line-soft: rgba(255, 255, 255, .08); --accent: #4A90FF;
  background: var(--bg); color: var(--ink); border-radius: 28px; padding: clamp(1.6rem, 4vw, 3.4rem);
  max-width: calc(var(--maxw) + 2 * clamp(1.6rem, 4vw, 3.4rem));
}
html[data-theme="spotlight"] .hero .wrap .btn.ghost { border-color: rgba(255, 255, 255, .2); color: #fff; }
html[data-theme="spotlight"] .hero .wrap .tab[aria-selected="true"] { background: var(--card); }
html[data-theme="spotlight"] .hero .wrap .bubble.us { background: var(--accent); color: #06121F; }
html[data-theme="spotlight"] .hero .wrap .bubble.them { background: var(--panel-2); }
html[data-theme="spotlight"] .hero .wrap .pill { background: rgba(74, 144, 255, .18); color: #9CC4FF; }
html[data-theme="spotlight"] .hero .wrap .pill.grey { background: rgba(255, 255, 255, .08); color: var(--muted); }
html[data-theme="spotlight"] .hero .wrap .logo-light { display: none; }
html[data-theme="spotlight"] .hero .wrap .logo-dark { display: block; }

/* F — more black: whole sections marked data-dark become black blocks, plus a black footer */
html[data-theme="spotlight"] [data-dark] { padding-top: clamp(1rem, 2vw, 1.6rem); padding-bottom: clamp(1rem, 2vw, 1.6rem); }
html[data-theme="spotlight"] [data-dark] > .wrap {
  --bg: #0B0B0D; --panel: #141418; --panel-2: #1D1D23; --card: #15151A;
  --ink: #F6F6F7; --muted: #A0A0A9; --faint: #7C7C86;
  --line: rgba(255, 255, 255, .12); --line-soft: rgba(255, 255, 255, .08); --accent: #4A90FF;
  background: var(--bg); color: var(--ink); border-radius: 28px; padding: clamp(1.6rem, 4vw, 3.4rem);
  max-width: calc(var(--maxw) + 2 * clamp(1.6rem, 4vw, 3.4rem));
}
html[data-theme="spotlight"] [data-dark] .btn.ghost { border-color: rgba(255, 255, 255, .2); color: #fff; }
html[data-theme="spotlight"] [data-dark] .pill { background: rgba(74, 144, 255, .18); color: #9CC4FF; }
html[data-theme="spotlight"] [data-dark] .pill.grey { background: rgba(255, 255, 255, .08); color: var(--muted); }
html[data-theme="spotlight"] [data-dark] .logo-light { display: none; }
html[data-theme="spotlight"] [data-dark] .logo-dark { display: block; }
html[data-theme="spotlight"] footer {
  --bg: #0B0B0D; --ink: #F6F6F7; --muted: #A0A0A9; --faint: #7C7C86; --line-soft: rgba(255, 255, 255, .08);
  background: var(--bg); color: var(--ink); border-top: 0; margin-top: clamp(1rem, 2vw, 1.6rem);
}
html[data-theme="spotlight"] footer .logo-light { display: none; }
html[data-theme="spotlight"] footer .logo-dark { display: block; }
html[data-theme="spotlight"] #contact { padding-top: clamp(1rem, 2vw, 1.6rem); }

/* logo chip: keeps the full-colour mark legible on dark backgrounds */
html[data-theme="slate"] .nav-logo, html[data-theme="dawn"] .nav-logo {
  width: clamp(150px, 14vw, 182px); padding: .5rem .75rem; background: #fff; border-radius: 12px;
}
html[data-theme="slate"] .nav-logo .logo-dark, html[data-theme="dawn"] .nav-logo .logo-dark { display: none; }
html[data-theme="slate"] .nav-logo .logo-light, html[data-theme="dawn"] .nav-logo .logo-light { display: block; }
html[data-theme="slate"] .nav.scrolled, html[data-theme="dawn"] .nav.scrolled { border-bottom-color: var(--line-soft); }

/* shared dark-theme adjustments */
html[data-theme] body { background: var(--bg); color: var(--ink); }
html[data-theme] .nav.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); }
html[data-theme] .btn.ghost { border-color: var(--line); color: var(--ink); }
html[data-theme] .btn.ghost:hover { background: rgba(255, 255, 255, .06); }
html[data-theme] .tab[aria-selected="true"] { background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
html[data-theme] .pill { background: rgba(74, 144, 255, .16); }
html[data-theme] .pill.grey { background: rgba(255, 255, 255, .08); color: var(--muted); }
html[data-theme] .bubble.us { background: var(--accent); color: #06121F; }
html[data-theme] .bubble.them { background: var(--panel-2); }
html[data-theme] .mock-row { background: var(--card); }
html[data-theme] .vs thead th { background: var(--panel); }
html[data-theme] .contact-panel { background: var(--contact-bg); }
html[data-theme] ::selection { background: rgba(74, 144, 255, .3); }
html[data-theme] .card:hover { border-color: var(--line); }

/* theme switcher (remove before launch) */
.switch {
  position: fixed; z-index: 200; left: 50%; bottom: 1rem; transform: translateX(-50%); display: flex; align-items: center; gap: .25rem;
  padding: .3rem; border-radius: 999px; background: rgba(20, 20, 24, .86); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); max-width: calc(100vw - 2rem); overflow-x: auto; scrollbar-width: none;
}
.switch::-webkit-scrollbar { display: none; }
.switch span { font-size: .7rem; color: rgba(255, 255, 255, .45); padding: 0 .5rem 0 .65rem; }
.switch button {
  border: 0; background: transparent; color: rgba(255, 255, 255, .72); font: 500 .8rem/1 var(--font); padding: .5em .85em; border-radius: 999px; cursor: pointer;
  transition: background .25s, color .25s;
}
.switch button:hover { color: #fff; }
.switch button[aria-pressed="true"] { background: #fff; color: #111; }
@media (max-width: 560px) { .switch span { display: none; } .switch button { padding: .5em .6em; font-size: .74rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-r] { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
