:root {
  --bg: #07080b;
  --surface: #0e1015;
  --surface-2: #151820;
  --surface-3: #1c2029;
  --line: #242832;
  --line-soft: #171a21;
  --text: #eef0f4;
  --muted: #9aa1ae;
  --dim: #7d8594;      /* the quietest text; still 4.5:1 on every surface here */
  --good: #3fdd97;
  --warn: #f7b955;
  --bad: #ff6b60;
  --accent: #7c6cff;
  --accent-soft: #a99eff;
  --teal: #3ddcc4;
  --before: #6b7280;   /* the chart's de-emphasis grey */
  --radius: 16px;
  --maxw: 1120px;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }  /* land below the sticky nav, not under it */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* a faint dot grid under everything, fading out towards the edges */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(90% 70% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000 20%, transparent 75%);
}

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; margin: 0; font-weight: 650; }
p { margin: 0; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.02em; }
.logo .mark {
  width: 27px; height: 27px; border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--teal));
  display: grid; place-items: center;
  box-shadow: 0 0 22px -4px rgba(124, 108, 255, .7);
}
.logo .mark svg { width: 15px; height: 15px; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 14px; color: var(--muted); }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* ---------------------------------------------------------------- hero */

/* the glows are wider than a phone: clip them, or they widen the whole page sideways */
.hero { position: relative; padding: 64px 0 36px; text-align: center; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: -1; border-radius: 50%;
}
.hero::before {  /* violet glow behind the headline */
  width: 860px; height: 520px; left: 50%; top: -170px; transform: translateX(-62%);
  background: radial-gradient(closest-side, rgba(124, 108, 255, 0.30), transparent);
}
.hero::after {   /* and a teal one, off to the side */
  width: 620px; height: 420px; left: 50%; top: -60px; transform: translateX(-2%);
  background: radial-gradient(closest-side, rgba(61, 220, 196, 0.14), transparent);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; background: rgba(14, 16, 21, .7);
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 rgba(63, 221, 151, 0.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(63, 221, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 221, 151, 0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  margin: 26px auto 0; font-weight: 800; letter-spacing: -0.045em; line-height: 1.02;
}
.grad {
  background: linear-gradient(95deg, #c9c2ff 0%, var(--accent-soft) 30%, var(--accent) 55%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline {
  margin: 22px auto 0; font-size: clamp(1.15rem, 2.1vw, 1.5rem); font-weight: 600;
  letter-spacing: -0.02em; color: var(--text);
}
.lede {
  margin: 14px auto 0; max-width: 60ch; font-size: clamp(1rem, 1.6vw, 1.17rem);
  color: var(--muted);
}
.cta-row { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--dim); }

.chips {
  list-style: none; margin: 30px auto 0; padding: 0; display: flex; justify-content: center;
  flex-wrap: wrap; gap: 10px 0;
}
.chips li {
  display: flex; align-items: baseline; gap: 8px; padding: 0 22px;
  font-size: 13.5px; color: var(--muted);
}
.chips li + li { border-left: 1px solid var(--line); }
.chips b { color: var(--text); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 560px) {
  .chips { flex-direction: column; align-items: center; gap: 8px; }
  .chips li + li { border-left: 0; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 14.5px; font-weight: 500;
  padding: 11px 20px; border-radius: 11px; cursor: pointer; display: inline-block;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, opacity .16s, box-shadow .16s;
}
.btn:hover { background: var(--surface-3); border-color: #323744; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.btn.primary {
  background: linear-gradient(180deg, #8a7bff, #6252f0);
  border-color: rgba(255, 255, 255, .08); color: #fff; font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(124, 108, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .22);
  padding: 13px 26px;
}
.btn.primary:hover { filter: brightness(1.08); background: linear-gradient(180deg, #8a7bff, #6252f0); }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 13px; font-size: 13px; border-radius: 9px; }

/* ---------------------------------------------------------------- app panel */

.app { padding: 26px 0 48px; }
.panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-radius: 24px; overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(124, 108, 255, .6), rgba(61, 220, 196, .22) 38%, var(--line) 62%) border-box;
  box-shadow: 0 50px 110px -50px rgba(0, 0, 0, 1), 0 0 90px -40px rgba(124, 108, 255, .45);
}
@media (max-width: 880px) { .panel { grid-template-columns: minmax(0, 1fr); } }

.stage {
  position: relative; overflow: hidden; min-height: 440px;
  background:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(90% 80% at 50% 42%, #10132a 0%, #07080d 62%, #040509 100%);
}
@media (max-width: 880px) { .stage { min-height: 0; aspect-ratio: 4 / 3; } }
.stage::after {  /* vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(120% 95% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55));
}
#figure { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The camera picture is off unless you ask for it, and then it's a small mirror in the corner;
   the model reads the full frame either way. Transparent rather than display: none, so the
   browser keeps decoding frames for it. */
.stage video {
  position: absolute; top: 62px; right: 16px; z-index: 5;
  width: 30%; max-width: 200px; aspect-ratio: 4 / 3; object-fit: cover; transform: scaleX(-1);
  border-radius: 10px; border: 1px solid var(--line); background: #000;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.stage.live.cam video { opacity: 1; }

.vf {  /* viewfinder corners */
  position: absolute; inset: 16px; z-index: 3; pointer-events: none;
  --c: rgba(237, 239, 243, .32); --l: 20px; --t: 1.5px;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) top right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top right / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
}

.stage-tag, .badge {
  position: absolute; top: 26px; z-index: 4;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line);
  background: rgba(7, 8, 11, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stage-tag {
  left: 28px; display: flex; align-items: center; gap: 7px;
  text-transform: uppercase; color: var(--text); font-weight: 500;
}
.stage-tag .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); }
.stage.live .stage-tag .pip { background: var(--bad); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.badge {
  right: 28px; color: var(--muted); font-variant-numeric: tabular-nums;
  max-width: calc(100% - 150px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stage-note {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 4; padding: 0 40px;
  text-align: center; font-size: 12.5px; color: var(--muted); transition: opacity .4s;
}
.stage.live .stage-note { opacity: 0; }
@media (max-width: 560px) {
  .stage-note { display: none; }  /* no room beside the figure; the privacy section says it anyway */
  .stage-tag, .badge { top: 22px; }
  .stage-tag { left: 22px; }
  .badge { right: 22px; }
  .vf { inset: 12px; }
  .stage video { top: 56px; }
}

/* Calibration: the three steps over the stage until you press Ready, then a countdown pill. */
.setup {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 6, 10, .55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.setup[hidden], .count[hidden] { display: none; }
.setup-card {
  width: min(340px, 100%); padding: 22px 24px 16px; border-radius: 16px;
  background: rgba(21, 24, 32, .94); border: 1px solid #353a48;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .95);
}
.setup-card h3 { font-size: 1.25rem; font-weight: 700; }
.setup-steps { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 11px; counter-reset: step; }
.setup-steps li {
  counter-increment: step; display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  align-items: center; font-size: 15px; line-height: 1.35; color: var(--text);
}
.setup-steps li::before {
  content: counter(step); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-soft);
}
#readyBtn { width: 100%; }
.setup-see { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--dim); }
.setup-see.seen { color: var(--good); }
/* phones: the 4:3 stage is too short for the card, so let it grow while the card is up */
@media (max-width: 880px) { .stage:has(.setup:not([hidden])) { aspect-ratio: auto; min-height: 330px; } }

.count {
  position: absolute; left: 50%; bottom: 22px; z-index: 5; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 10px; padding: 9px 20px 11px; overflow: hidden;
  border-radius: 999px; background: rgba(21, 24, 32, .9); border: 1px solid #353a48; white-space: nowrap;
}
.count b {
  min-width: 1ch; text-align: center; font-size: 1.5rem; font-weight: 750; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--accent-soft);
}
.count span { font-size: 14px; color: var(--text); }
.count-bar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--accent);
  transform-origin: left; transform: scaleX(0); transition: transform .25s linear;
}
.count.done b { color: var(--good); }
.count.done .count-bar { background: var(--good); }

/* V1 / V2 method switch in the panel */
.seg {
  grid-column: span 2; justify-self: start; display: inline-flex; gap: 3px; padding: 3px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
}
.seg button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 7px;
  transition: background .16s ease, color .16s ease;
}
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px #353a48; }
.seg button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 1px; }
.seg button:disabled { opacity: .5; cursor: progress; }
.method-note { margin-top: -7px; font-size: 12.5px; color: var(--dim); }

.readout { padding: 30px 30px 26px; display: flex; flex-direction: column; border-left: 1px solid var(--line-soft); }
@media (max-width: 880px) { .readout { border-left: 0; border-top: 1px solid var(--line-soft); } }

.status { display: flex; align-items: center; gap: 12px; }
.status .dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--dim);
  transition: background .3s ease, box-shadow .3s ease; flex: none;
}
.status h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.035em; }
.hint { color: var(--muted); font-size: 14px; margin-top: 10px; min-height: 44px; }

.bars { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 13px; }
.bar-row {
  display: grid; grid-template-columns: 100px 1fr 46px; align-items: center; gap: 14px;
  --c: var(--good);
}
.bar-row span { font-size: 13px; color: var(--muted); }
.bar-row .val {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text);
  text-align: right; font-variant-numeric: tabular-nums;
}
.track {
  position: relative; height: 8px; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 15%, var(--surface-2));
  transition: background .28s ease;
}
.track::after {  /* the warning line: past here, it's counting */
  content: ""; position: absolute; left: 60%; top: -2px; bottom: -2px; width: 2px;
  background: var(--surface); z-index: 2;
}
.fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: 999px; background: var(--c);
  transition: width .28s cubic-bezier(.4, 0, .2, 1), background .28s ease;
}

.controls { display: flex; gap: 9px; margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .controls .btn { flex: 1 1 0; padding-left: 8px; padding-right: 8px; }
  .readout { padding: 24px 20px 22px; }
}

.knobs { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: grid; gap: 15px; }
.knob { display: grid; grid-template-columns: 100px 1fr 46px; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.knob output { text-align: right; color: var(--text); font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
input[type="range"] {
  --p: 50%;
  appearance: none; -webkit-appearance: none; height: 4px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) 0 var(--p), var(--surface-3) var(--p) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--text); cursor: pointer; border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px -2px rgba(124, 108, 255, .9);
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--text);
  cursor: pointer; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--accent);
}
input[type="range"]:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 6px; }
.checks { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.checks label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checks input { accent-color: var(--accent); width: 15px; height: 15px; }

.stats {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- sections */

section.band { padding: 92px 0; border-top: 1px solid var(--line-soft); }
.sec-head { max-width: 64ch; }
.sec-head .kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-soft); font-weight: 500;
}
.sec-head .kicker::before { content: "// "; color: var(--dim); }
.sec-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin-top: 14px; font-weight: 700; letter-spacing: -0.04em; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 1.03rem; }

.grid { display: grid; gap: 14px; margin-top: 40px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .grid.c4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: #353a48; transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .9); }
.card h3 { font-size: 1.04rem; font-weight: 650; }
.card p { margin-top: 9px; font-size: 13.6px; color: var(--muted); line-height: 1.58; }
.card .num {
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  display: block; margin-bottom: 10px;
}
.sig-card { padding: 12px 12px 20px; }
.sig-card .num, .sig-card h3, .sig-card p { padding: 0 10px; }
.sig {
  display: block; width: 100%; height: 150px; margin-bottom: 16px; border-radius: 11px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(80% 90% at 50% 45%, #10132a, #06070b 75%);
}

.note {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; margin-top: 32px;
  color: var(--muted); font-size: 14.5px; max-width: 66ch;
}

/* ---------------------------------------------------------------- neck load */

.weights-title { margin-top: 40px; font-size: 14px; color: var(--muted); }
.weights {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 860px) { .weights { grid-template-columns: repeat(2, 1fr); } }
.weight {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 2px 12px;
  padding: 18px 20px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--line);
}
.weight .deg { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.weight .tilt {  /* a head on a neck, tipped forward by the tile's angle */
  grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; overflow: visible;
  fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round;
}
.weight .tilt g { transform: rotate(var(--a)); transform-origin: 24px 44px; }
.weight .kg { grid-column: 1; font-size: 2.3rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap; }
@media (max-width: 560px) {  /* two tiles side by side on a phone: shrink the glyph, not the number's line */
  .weight { padding: 16px; column-gap: 8px; }
  .weight .tilt { width: 30px; height: 30px; }
  .weight .kg { font-size: 1.8rem; }
}
.weight .meter {
  grid-column: 1 / -1; margin-top: 12px; height: 6px; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 14%, var(--surface-2));
}
.weight .meter i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--c); }
.weight .what { grid-column: 1 / -1; margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.source { margin-top: 12px; font-size: 12px; color: var(--dim); }

/* ---------------------------------------------------------------- privacy promises */

.promise .icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(63, 221, 151, .12); color: var(--good);
}
.promise .icon svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.net-lead { margin-top: 48px; max-width: 66ch; color: var(--muted); font-size: 15px; }
.net-lead b { color: var(--text); font-weight: 600; }
.net-lead + .netpanel { margin-top: 18px; }

/* ---------------------------------------------------------------- headline figures */

.figures {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 720px) { .figures { grid-template-columns: 1fr; } }
.figures li {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.figures b { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1.1; }
.figures span { font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------- the before/after chart */

.chart {
  position: relative; margin: 40px 0 0; padding: 22px 24px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.chart-head { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.chart-title { font-weight: 600; font-size: 15px; margin-right: auto; }
.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); }
.legend .key { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-before { background: var(--before); }
.dot-now { background: var(--accent); }

.dumbbell { list-style: none; margin: 18px 0 0; padding: 0; }
.db-row {
  display: grid; grid-template-columns: 190px 1fr 108px; align-items: center; gap: 18px;
  padding: 11px 8px; margin: 0 -8px; border-radius: 10px; outline: none; cursor: default;
}
.db-row:hover, .db-row:focus-visible { background: var(--surface-2); }
.db-row:focus-visible { box-shadow: 0 0 0 2px var(--accent-soft) inset; }
.db-label { font-size: 14px; color: var(--text); }
.db-track {
  position: relative; height: 24px;
  background:  /* hairline gridlines at 0, 50 and 100% */
    linear-gradient(var(--line), var(--line)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 100% 0 / 1px 100% no-repeat;
}
.db-link {
  position: absolute; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
  background: linear-gradient(90deg, var(--before), var(--accent));
}
.db-dot {
  position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface);  /* the surface ring */
}
.db-row:hover .db-dot, .db-row:focus-visible .db-dot { box-shadow: 0 0 0 2px var(--surface-2); }
.db-dot.before { background: var(--before); }
.db-dot.now { background: var(--accent); }
.db-vals { font-family: var(--mono); font-size: 12.5px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.db-vals .v-before { color: var(--muted); }
.db-vals .v-now { color: var(--text); font-weight: 500; }
.db-vals .arrow { color: var(--dim); margin: 0 6px; }
.axis {
  display: grid; grid-template-columns: 190px 1fr 108px; gap: 18px; margin-top: 4px;
  font-family: var(--mono); font-size: 11px; color: var(--dim);
}
.axis span:nth-child(1) { grid-column: 2; grid-row: 1; justify-self: start; transform: translateX(-50%); }
.axis span:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: center; }
.axis span:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; transform: translateX(50%); }
@media (max-width: 640px) {
  .db-row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .db-track { grid-column: 1 / -1; grid-row: 2; }
  .axis { grid-template-columns: 1fr; }
  .axis span:nth-child(n) { grid-column: 1; }
}
.chart.as-table .dumbbell, .chart.as-table .axis { display: none; }
.proof-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
.proof-table th, .proof-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-soft); }
.proof-table th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.proof-table td + td, .proof-table th + th { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--surface-3); border: 1px solid #343a48; border-radius: 10px;
  padding: 8px 11px; font-size: 12.5px; color: var(--muted); white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .9);
}
.tip b { color: var(--text); font-weight: 600; font-size: 14px; }
.tip .k { display: inline-block; width: 12px; height: 2px; vertical-align: middle; margin-right: 6px; }

/* ---------------------------------------------------------------- network panel */

.netpanel {
  margin-top: 32px; background: #090a0e; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 1);
}
.net-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--text);
}
.net-bar .rec { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.net-filter { margin-left: auto; color: var(--dim); font-size: 11.5px; }
.net-row { display: grid; grid-template-columns: 1fr 64px 66px 76px; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); }
.net-row span:nth-child(n+2) { text-align: right; }
.net-th { color: var(--dim); font-size: 11.5px; background: #0b0c10; }
.net-row .ok { color: var(--good); }
.net-row .name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px; color: var(--dim); font-size: 11.5px; }
.net-quiet::before { content: "— "; }
@media (max-width: 560px) { .net-row { grid-template-columns: 1fr 44px 70px; } .net-row span:nth-child(3) { display: none; } }

/* ---------------------------------------------------------------- testimonials */

.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.quote blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.quote blockquote::before {
  content: "\201C"; display: block; height: 30px; font-size: 3rem; line-height: 1;
  color: var(--accent-soft); font-weight: 700;
}
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote .avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--teal)); color: #08090b;
  font-size: 13px; font-weight: 700;
}
.quote .who { display: flex; flex-direction: column; line-height: 1.35; }
.quote .name { font-size: 14px; font-weight: 600; }
.quote .ctx { font-size: 12.5px; color: var(--dim); }

/* ---------------------------------------------------------------- FAQ */

.faq { margin-top: 32px; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--accent-soft); font-weight: 500; font-size: 18px;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-soft); }
.faq summary:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 6px; }
.faq details p { padding: 0 2px 22px; max-width: 64ch; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- closing call */

.final { position: relative; overflow: hidden; text-align: center; padding: 110px 0 116px; }
.final::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  width: 820px; height: 460px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(124, 108, 255, 0.22), transparent);
}
.final h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; }
.final h2 + p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.final .btn { margin-top: 30px; }

footer {
  border-top: 1px solid var(--line-soft); padding: 40px 0 60px;
  color: var(--dim); font-size: 13.5px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- toast */

#toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: min(350px, calc(100vw - 44px));
  background: rgba(21, 24, 32, .86); border: 1px solid #353a48; border-radius: 16px;
  padding: 16px 18px 15px; overflow: hidden;
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 107, 96, .08);
  transform: translateY(18px) scale(.98); opacity: 0; pointer-events: none;
  transition: opacity .28s ease, transform .32s cubic-bezier(.2, .8, .3, 1);
}
#toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast-body { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.toast-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 107, 96, .14); color: var(--bad);
}
.toast-icon svg { width: 18px; height: 18px; }
#toast h4 { margin: 2px 0 0; font-size: 15px; font-weight: 650; }
#toast ul { margin: 6px 0 0; padding-left: 16px; color: var(--muted); font-size: 13.4px; }
#toast .row { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }
.toast-timer {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--bad), var(--warn)); transform-origin: left;
  transform: scaleX(0);
}
#toast.show .toast-timer { animation: drain 9s linear forwards; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- background verdict */

.banner {
  position: relative; margin-top: 18px; padding: 13px 34px 13px 15px;
  border-radius: 11px; font-size: 13.2px; line-height: 1.5;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  border-left: 3px solid var(--dim);
}
.banner strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.banner.ok { border-left-color: var(--good); }
.banner.slow { border-left-color: var(--warn); }
.banner.dead { border-left-color: var(--bad); }
.banner-x {
  position: absolute; top: 8px; right: 9px; background: none; border: 0; cursor: pointer;
  color: var(--dim); font-size: 17px; line-height: 1; padding: 3px 6px;
}
.banner-x:hover { color: var(--text); }
.linklike {
  background: none; border: 0; padding: 8px 0 0; margin: 0; cursor: pointer;
  color: var(--accent-soft); font: inherit; font-size: 12.5px; text-align: left;
}
.linklike:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- plan line in the panel */

.plan-line {
  margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.9;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px;
}
.plan-line:empty { display: none; }
.pill {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--accent-soft);
}
.pill.pro { background: linear-gradient(145deg, var(--accent), #5b4de0); border-color: transparent; color: #fff; }
.pill.over { color: var(--warn); }
.inline-link {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: var(--accent-soft);
}
.inline-link:hover { text-decoration: underline; }
.inline-link:disabled { opacity: .5; cursor: progress; }
.inline-link:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 3px; }

/* ---------------------------------------------------------------- pricing */

.promo {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 36px; padding: 12px 16px; border-radius: 13px; font-size: 14.5px; color: var(--text);
  border: 1px solid rgba(124, 108, 255, .38);
  background: linear-gradient(90deg, rgba(124, 108, 255, .16), rgba(61, 220, 196, .06));
}
.promo[hidden] { display: none; }
.promo-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 6px;
}
.promo-clock {
  margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) { .promo-clock { margin-left: 0; } }

.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin-top: 26px; align-items: stretch;
}
.promo:not([hidden]) + .plans { margin-top: 26px; }
@media (max-width: 720px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .plan-card.best { order: -1; }  /* one column: the best deal first, not after two others */
  .plan-note { min-height: 0; }   /* the reserved line only lines cards up side by side */
}

.plan-card {
  position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px;
  border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 70%);
}
.plan-card.best {
  border-color: transparent;
  background:
    linear-gradient(180deg, #17172a, var(--surface) 70%) padding-box,
    linear-gradient(150deg, rgba(124, 108, 255, .9), rgba(61, 220, 196, .45) 45%, var(--line) 80%) border-box;
  box-shadow: 0 30px 70px -40px rgba(124, 108, 255, .8);
}
.plan-card .ribbon {
  position: absolute; top: -11px; left: 22px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: #fff;
  background: linear-gradient(90deg, var(--accent), #5b4de0);
  box-shadow: 0 6px 18px -6px rgba(124, 108, 255, .9);
}
.plan-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 650; color: var(--text); }
.plan-card .save {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
  padding: 2px 7px; border-radius: 6px; color: var(--good); background: rgba(63, 221, 151, .12);
}
.price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 2.9rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { font-size: 14px; color: var(--muted); }
.plan-note { margin-top: 10px; font-size: 13.8px; color: var(--muted); min-height: 2.9em; }
.perks { list-style: none; margin: 16px 0 24px; padding: 16px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 9px; }
.perks li { position: relative; padding-left: 24px; font-size: 13.8px; color: var(--text); line-height: 1.45; }
.perks li::before {
  content: ""; position: absolute; left: 2px; top: 4px; width: 11px; height: 6px;
  border: solid var(--good); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.plan-card .btn { margin-top: auto; width: 100%; text-align: center; }
.plan-card.mine { border-color: rgba(63, 221, 151, .45); }

.includes {
  list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 13.5px; color: var(--muted);
}
.includes li { display: flex; align-items: center; gap: 8px; }
.includes li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.pricing-foot { margin-top: 16px; font-size: 13px; color: var(--dim); }

.dlg-msg { margin-top: 12px; font-size: 13.5px; color: var(--warn); }
.dlg-msg:empty { display: none; }
.dlg-msg.ok { color: var(--good); }

/* ---------------------------------------------------------------- dialogs: paywall, login, notices */

dialog.dlg {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border-radius: 20px; border: 1px solid #353a48; color: var(--text);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2) 45%);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 1), 0 0 80px -40px rgba(124, 108, 255, .6);
}
dialog.dlg::backdrop { background: rgba(3, 4, 7, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.dlg[open] { animation: dlg-in .22s cubic-bezier(.2, .8, .3, 1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dlg-body { position: relative; padding: 28px 26px 24px; }
.dlg h3 { font-size: 1.35rem; font-weight: 700; padding-right: 30px; }
.dlg-body > p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.dlg-x {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 19px; line-height: 1; cursor: pointer;
}
.dlg-x:hover { color: var(--text); border-color: #3a4050; }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.dlg-actions[hidden] { display: none; }
.dlg-foot { margin-top: 16px; font-size: 13px; color: var(--dim); }

.mini-plans { display: grid; gap: 9px; margin-top: 20px; }
.mini-plan {
  appearance: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  width: 100%; padding: 13px 16px; border-radius: 13px; cursor: pointer; text-align: left;
  font: inherit; color: var(--text); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.mini-plan:hover { border-color: #3a4050; background: var(--surface-2); }
.mini-plan:active { transform: translateY(1px); }
.mini-plan:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.mini-plan:disabled { opacity: .6; cursor: progress; }
.mini-plan.best { border-color: rgba(124, 108, 255, .7); background: rgba(124, 108, 255, .12); }
.mini-plan b { display: block; font-size: 15px; font-weight: 650; }
.mini-plan small { display: block; font-size: 12.5px; color: var(--muted); }
.mini-price { text-align: right; font-size: 1.35rem; font-weight: 750; letter-spacing: -0.03em; white-space: nowrap; }
.mini-price small { font-weight: 400; letter-spacing: 0; }

.field {
  display: block; width: 100%; margin: 18px 0 12px; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 15px;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 108, 255, .25); }
#loginSend { width: 100%; }

/* ---------------------------------------------------------------- gifts, on the main page */

.gift-strip {
  display: flex; align-items: center; gap: 14px; margin-top: 30px; padding: 14px 18px;
  border-radius: 14px; border: 1px dashed rgba(247, 185, 85, .45); color: var(--muted); font-size: 14.5px;
  background: linear-gradient(90deg, rgba(247, 185, 85, .08), transparent 70%);
  transition: border-color .16s ease, background .16s ease;
}
.gift-strip:hover { text-decoration: none; border-color: rgba(247, 185, 85, .8); background: linear-gradient(90deg, rgba(247, 185, 85, .14), transparent 80%); }
.gift-strip b { color: var(--text); font-weight: 600; }
.gift-strip-icon, .gift-badge {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(247, 185, 85, .14); color: var(--warn);
}
.gift-strip-icon svg, .gift-badge svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.gift-strip-go { margin-left: auto; color: var(--warn); font-size: 18px; }
footer .inline-link { font-size: inherit; }
footer a, footer .inline-link { color: var(--muted); }

.gift-dlg .gift-badge { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px; }
.gift-dlg .gift-badge svg { width: 24px; height: 24px; }
.gift-note {
  margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.55;
  color: var(--text); background: rgba(247, 185, 85, .08); border-left: 3px solid var(--warn);
}
.gift-note[hidden] { display: none; }
.gift-note cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--muted); }
.gift-note cite::before { content: "— "; }
.field-label { display: block; margin-top: 16px; font-size: 13px; color: var(--muted); }
.field-label[hidden] { display: none; }
.field-label .field { margin: 6px 0 0; }
.field.code { font-family: var(--mono); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.dlg-body > .field-hint { margin-top: 8px; font-size: 12.5px; color: var(--dim); }
#giftSend { width: 100%; margin-top: 18px; }
