/* Layout: product site in the Apple manner. Sticky local nav, centered heroes,
   full-bleed alternating bands, one black "stage" surface reused for the routing story. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --tile: #ffffff;
  --card: #f5f5f7;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --btn-fg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --menu-bg: #ffffff;
  --stage-bg: #000000;
  --stage-fg: #f5f5f7;
  --stage-fg-2: #86868b;
  --stage-line: rgba(255, 255, 255, 0.16);
  --stage-edge: rgba(255, 255, 255, 0);
  --stage-accent: #2997ff;
  --stage-on-accent: #ffffff;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Onest", "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Onest", "Segoe UI", system-ui, sans-serif;
  --r-xl: 28px;
  --r-l: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #0f0f10; --tile: #1c1c1e; --card: #1c1c1e; --fg: #f5f5f7; --fg-2: #a1a1a6;
    --line: #3a3a3c; --link: #2997ff; --btn: #0071e3; --btn-hover: #0a7cf0; --btn-fg: #ffffff;
    --nav-bg: rgba(22, 22, 23, 0.78); --menu-bg: #161617; --stage-edge: rgba(255, 255, 255, 0.1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #0f0f10; --tile: #1c1c1e; --card: #1c1c1e; --fg: #f5f5f7; --fg-2: #a1a1a6;
  --line: #3a3a3c; --link: #2997ff; --btn: #0071e3; --btn-hover: #0a7cf0; --btn-fg: #ffffff;
  --nav-bg: rgba(22, 22, 23, 0.78); --menu-bg: #161617; --stage-edge: rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, summary, .btn { touch-action: manipulation; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 22px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Navigation */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 52px; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; margin-right: auto; white-space: nowrap; }
.nav-links { display: flex; gap: 24px; font-size: 13px; color: var(--fg-2); }
.nav-links a { white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; background: none;
  color: var(--fg); cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 14px; width: 16px; height: 1.5px; border-radius: 1px; background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav.open .nav-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn); color: var(--btn-fg);
  border-radius: 980px; padding: 11px 22px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--btn-hover); }
.btn-small { padding: 5px 13px; font-size: 13px; }
.link { color: var(--link); font-size: 17px; }
.link:hover { text-decoration: underline; }
.link::after { content: "\00a0\203A"; }

/* Heroes */
.hero { padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 88px); text-align: center; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--fg-2); letter-spacing: -0.01em; }
.hero-title {
  font-size: clamp(56px, 12vw, 128px); font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  margin-top: 10px;
}
.hero-lead {
  font-family: var(--display); font-size: clamp(24px, 3.6vw, 34px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; margin-top: 18px; color: var(--fg);
}
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.hero-price { margin-top: 18px; font-size: 15px; color: var(--fg-2); font-variant-numeric: tabular-nums; }

.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); text-align: center; }
.page-title {
  font-size: clamp(44px, 8vw, 84px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04;
  margin: 10px auto 0; max-width: 14em;
}
.page-lead {
  font-family: var(--display); font-size: clamp(19px, 2.4vw, 24px); font-weight: 500; letter-spacing: -0.012em;
  line-height: 1.35; color: var(--fg-2); margin: 22px auto 0; max-width: 34em;
}
.page-jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }

.stage {
  position: relative; margin-top: clamp(44px, 6vw, 72px);
  height: clamp(320px, 42vw, 460px);
  background: var(--stage-bg); color: var(--stage-fg);
  border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--stage-edge);
  overflow: hidden; text-align: left;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lbl { position: absolute; display: flex; flex-direction: column; gap: 1px; white-space: nowrap; pointer-events: none; }
.lbl-t { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--stage-fg); }
.lbl-s { font-size: 12px; color: var(--stage-fg-2); }
.lbl.below { transform: translate(-50%, 16px); align-items: center; text-align: center; }
.lbl.above { transform: translate(-50%, calc(-100% - 16px)); align-items: center; text-align: center; }
.lbl.below-end { transform: translate(calc(-100% + 10px), 16px); align-items: flex-end; text-align: right; }
.lbl.above-end { transform: translate(calc(-100% + 10px), calc(-100% - 16px)); align-items: flex-end; text-align: right; }
.lbl.below-start { transform: translate(-10px, 16px); align-items: flex-start; }
.lbl.right { transform: translate(18px, -50%); align-items: flex-start; }
.lbl.left { transform: translate(calc(-100% - 18px), -50%); align-items: flex-end; text-align: right; }
.stage-caption { max-width: 640px; margin: 22px auto 0; font-size: 15px; color: var(--fg-2); text-align: center; }

/* Bands */
.band { padding-block: clamp(72px, 10vw, 120px); }
.band-alt { background: var(--bg-alt); }
.band-flush, .page-hero + .band:not(.band-alt):not(.band-dark) { padding-top: 0; }
.band-dark { background: var(--stage-bg); color: var(--stage-fg); }
.band-dark .eyebrow, .band-dark .lede, .band-dark .fact p { color: var(--stage-fg-2); }
.band-dark .fact { border-color: var(--stage-line); }
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-top: 8px; }
.lede { margin-top: 20px; font-size: clamp(19px, 2vw, 21px); line-height: 1.42; color: var(--fg-2); max-width: 40em; }
.after { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; }
.note { color: var(--fg-2); font-size: 15px; max-width: 640px; }

/* Setup steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; padding: 0; list-style: none; }
.step { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.step-n { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.step p { color: var(--fg-2); }

/* Figures */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.band-dark .stat { border-color: var(--stage-line); }
.stat-n {
  font-family: var(--display); font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.045em;
  line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat-n small { font-size: 0.4em; letter-spacing: -0.01em; font-weight: 600; color: var(--fg-2); margin-left: 4px; }
.stat p:not(.stat-n) { color: var(--fg-2); font-size: 15px; }
.band-dark .stat p:not(.stat-n), .band-dark .stat-n small { color: var(--stage-fg-2); }

/* Feature tiles */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  background: var(--card); border-radius: var(--r-l); padding: 34px 32px 36px;
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.band-alt .tile { background: var(--tile); }
.tile-wide { grid-column: span 2; }
.tile h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
.tile p { color: var(--fg-2); max-width: 46ch; }
.tile .link { margin-top: auto; padding-top: 6px; font-size: 15px; }
.ico { width: 30px; height: 30px; color: var(--fg); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.chip { border: 1px solid var(--line); border-radius: 980px; padding: 5px 12px; font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.tile-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.tile-split > div { display: grid; gap: 12px; min-width: 0; }
.figure { font-family: var(--display); font-size: clamp(64px, 9vw, 104px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.figure small { font-size: 0.32em; letter-spacing: -0.01em; font-weight: 600; color: var(--fg-2); margin-left: 6px; }

/* Fact lists: hairline-topped text blocks, no cards */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin-top: 56px; }
.facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.fact h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.2; }
.fact p { color: var(--fg-2); }

/* Direct vs tunnel */
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.route {
  background: var(--card); border-radius: var(--r-xl); padding: 36px 34px 32px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.route-tunnel { background: var(--stage-bg); color: var(--stage-fg); box-shadow: inset 0 0 0 1px var(--stage-edge); }
.route-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.route-tunnel .route-head { color: var(--stage-accent); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.route h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; }
.names { list-style: none; padding: 0; margin: 18px 0 0; columns: 2; column-gap: 28px; }
.names li { padding-block: 10px; border-top: 1px solid var(--line); break-inside: avoid; font-weight: 500; }
.route-tunnel .names li { border-color: var(--stage-line); }
.route-foot { margin-top: auto; padding-top: 18px; font-size: 15px; color: var(--fg-2); }
.route-tunnel .route-foot { color: var(--stage-fg-2); }

/* Decision flow (how it works) */
.flow {
  margin-top: 56px; background: var(--stage-bg); color: var(--stage-fg);
  border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--stage-edge);
  padding: clamp(40px, 6vw, 72px) clamp(12px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.flow-node {
  border: 1px solid var(--stage-line); border-radius: 980px; padding: 12px 22px; max-width: 100%;
  font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
}
.flow-key { background: var(--stage-fg); color: var(--stage-bg); border-color: var(--stage-fg); }
.flow-v { width: 1px; height: 36px; background: var(--stage-line); }
.flow-branch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 760px; padding-top: 36px; }
.flow-out { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-inline: clamp(6px, 2vw, 24px); min-width: 0; }
.flow-out::before { content: ""; position: absolute; top: -36px; left: 50%; width: 1px; height: 36px; background: var(--stage-line); }
.flow-out::after { content: ""; position: absolute; top: -36px; height: 1px; background: var(--stage-line); }
.flow-out:first-child::after { left: 50%; right: 0; }
.flow-out:last-child::after { left: 0; right: 50%; }
.flow-tunnel::before, .flow-tunnel::after { background: var(--stage-accent); }
.flow-cond { font-size: 13px; color: var(--stage-fg-2); }
.flow-dest {
  border-radius: 980px; padding: 10px 18px; max-width: 100%;
  font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
}
.flow-tunnel .flow-dest { background: var(--stage-accent); color: var(--stage-on-accent); }
.flow-direct .flow-dest { border: 1px solid var(--stage-fg-2); }
.flow-ex { font-size: 14px; color: var(--stage-fg-2); max-width: 28ch; }

/* Tables: comparison and price ledger */
.table-wrap { margin-top: 48px; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 17px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; padding-top: 0; }
.compare tbody th { font-weight: 600; width: 30%; }
.compare td { width: 35%; color: var(--fg-2); }
.compare td.ours { color: var(--fg); }
.compare .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare tr.total th, .compare tr.total td { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--fg); }

/* Tech specs */
.specs { border-bottom: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 20px 40px; padding-block: 40px; border-top: 1px solid var(--line); }
.spec > h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.spec-body { display: grid; gap: 24px; min-width: 0; }
.spec-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.spec-body h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.spec-body p, .spec-list li { color: var(--fg-2); }
.spec-body h3 + p { margin-top: 4px; }
.spec-body .spec-big { font-family: var(--display); font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: var(--fg); font-variant-numeric: tabular-nums; }
.spec-big + p { margin-top: 8px; }
.spec-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.spec-list li { padding-left: 18px; position: relative; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 1.5px; background: var(--fg-2); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.plan {
  background: var(--tile); border-radius: var(--r-xl); padding: 40px 36px;
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.band:not(.band-alt) .plan:not(.plan-featured) { background: var(--card); }
.plans-top { margin-top: 0; }
.plan-featured { background: var(--stage-bg); color: var(--stage-fg); box-shadow: inset 0 0 0 1px var(--stage-edge); }
.plan-tag { font-size: 13px; font-weight: 600; color: var(--stage-accent); }
.plan-tag-empty { visibility: hidden; }
.plan h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.plan-price { font-family: var(--display); font-size: clamp(44px, 6vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-top: 10px; font-variant-numeric: tabular-nums; }
.plan-note { color: var(--fg-2); }
.plan-note strong { color: var(--fg); font-weight: 600; }
.plan-featured .plan-note strong { color: var(--stage-fg); }
.plan-price small { font-size: 0.42em; font-weight: 600; letter-spacing: -0.01em; color: var(--fg-2); margin-left: 4px; }
.plan-featured .plan-price small { color: var(--stage-fg-2); }
.plan-featured .plan-note { color: var(--stage-fg-2); }
.plan ul { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 15px; }
.plan li svg { width: 14px; height: 14px; transform: translateY(2px); color: var(--fg-2); }
.plan-featured li svg { color: var(--stage-accent); }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Support: setup cards with numbered instructions */
.setup-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.setup-cols-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.setup-card { background: var(--tile); border-radius: var(--r-xl); padding: 38px 34px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.setup-card h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.022em; }
.setup-card > p { color: var(--fg-2); }
.howto { list-style: none; counter-reset: s; padding: 0; margin: 22px 0 0; display: grid; gap: 18px; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.howto li::before { content: counter(s); font-family: var(--display); font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.howto strong { display: block; font-weight: 600; }
.howto span { display: block; color: var(--fg-2); font-size: 15px; margin-top: 2px; }

/* FAQ and troubleshooting */
.faq { margin-top: 48px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 22px; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details > p { padding-bottom: 24px; color: var(--fg-2); max-width: 64ch; }
.fix { margin: 0; padding: 0 0 26px 1.3em; display: grid; gap: 8px; color: var(--fg-2); max-width: 64ch; }
.fix li::marker { font-variant-numeric: tabular-nums; color: var(--fg-2); }

/* Closing, next page, footer */
.closing { background: var(--stage-bg); color: var(--stage-fg); text-align: center; padding-block: clamp(80px, 11vw, 132px); }
.closing h2 { font-size: clamp(44px, 8vw, 88px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
.closing p { margin: 16px auto 0; font-size: 21px; color: var(--stage-fg-2); max-width: 30em; }
.closing .btn { margin-top: 32px; }
.handle { display: block; margin-top: 14px; font-size: 14px; color: var(--stage-fg-2); user-select: all; }

.next { padding-block: 44px; border-top: 1px solid var(--line); }
.next a { display: inline-grid; gap: 4px; }
.next-label { font-size: 13px; color: var(--fg-2); }
.next-title { font-family: var(--display); font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.025em; color: var(--link); }
.next-title::after { content: "\00a0\203A"; }
.next a:hover .next-title { text-decoration: underline; }

.foot { background: var(--bg-alt); padding-block: 40px 36px; font-size: 12px; line-height: 1.4; color: var(--fg-2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols > div { display: grid; gap: 9px; align-content: start; min-width: 0; }
.foot-cols h4 { font-family: var(--text); font-size: 12px; font-weight: 600; color: var(--fg); }
.foot-cols a:hover { color: var(--fg); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Entrance: visible at rest, a short rise on load only. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero-title, .hero-lead, .hero-cta, .hero-price,
.page-hero .eyebrow, .page-title, .page-lead { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-title, .page-title { animation-delay: 0.06s; }
.hero-lead, .page-lead { animation-delay: 0.14s; }
.hero-cta { animation-delay: 0.22s; }
.hero-price { animation-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .eyebrow, .hero-title, .hero-lead, .hero-cta, .hero-price,
  .page-hero .eyebrow, .page-title, .page-lead { animation: none; }
  .nav-toggle span { transition: none; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .nav-links {
    display: none; position: absolute; top: 52px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 22px 24px;
    background: var(--menu-bg); border-bottom: 1px solid var(--line);
    font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg);
    max-height: calc(100vh - 52px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-links a { padding-block: 9px; }
  .nav-links a[aria-current="page"] { color: var(--fg-2); }
  .nav.open .nav-links { display: flex; }
  .nav .wrap { gap: 16px; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .plans, .routes, .setup-cols, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
  .facts-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding-inline: max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px)); }
  .btn-small { padding: 7px 15px; font-size: 14px; }

  /* Rhythm: tighter bands, heads and gaps */
  .band { padding-block: 64px; }
  .band-flush, .page-hero + .band:not(.band-alt):not(.band-dark) { padding-top: 0; }
  .hero { padding-block: 40px 48px; }
  .page-hero { padding-block: 44px 40px; }
  .page-title { font-size: clamp(36px, 10.5vw, 48px); }
  .page-lead { font-size: 18px; margin-top: 16px; }
  .section-head h2 { font-size: clamp(32px, 9vw, 40px); }
  .lede { font-size: 18px; margin-top: 14px; }
  .grid, .stats, .facts, .routes, .plans, .setup-cols, .steps, .flow { margin-top: 36px; }
  .plans-top { margin-top: 0; }
  .table-wrap, .faq { margin-top: 28px; }
  .after { margin-top: 24px; }
  .grid, .plans, .routes, .setup-cols { gap: 14px; }
  .stage-caption { font-size: 14px; }

  /* Cards */
  .tile { padding: 28px 22px 30px; }
  .tile h3 { font-size: 22px; }
  .tile-wide { grid-column: auto; }
  .tile-split { grid-template-columns: minmax(0, 1fr); }
  .plan, .route, .setup-card { padding: 30px 22px; }
  .plan h3, .route h3 { font-size: 24px; }
  .setup-card h3 { font-size: 22px; }
  .names { column-gap: 18px; }
  .names li { font-size: 16px; padding-block: 9px; }

  /* Facts, figures, steps */
  .grid, .facts, .stats-3 { grid-template-columns: minmax(0, 1fr); }
  .facts { gap: 28px; }
  .fact h3 { font-size: 19px; }
  .stats { gap: 28px 20px; }
  .stat p:not(.stat-n) { font-size: 14px; }
  .steps { gap: 24px; }
  .step h3 { font-size: 21px; }

  /* Flow diagram */
  .flow { padding: 32px 8px; }
  .flow-node, .flow-dest { font-size: 15px; padding: 9px 14px; border-radius: 18px; }
  .flow-v { height: 28px; }
  .flow-branch { padding-top: 28px; }
  .flow-out::before { top: -28px; height: 28px; }
  .flow-out::after { top: -28px; }
  .flow-ex { font-size: 13px; }

  /* Specs */
  .spec { padding-block: 28px; gap: 16px; }
  .spec > h2 { font-size: 21px; }
  .spec-pair { gap: 16px; }

  /* FAQ and troubleshooting */
  .faq summary { font-size: 18px; padding-block: 18px; gap: 16px; }
  .faq details > p, .fix { padding-bottom: 20px; }

  /* Tables stack into labelled rows */
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { display: none; }
  .compare tr { padding-block: 16px; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { border: 0; padding: 0; }
  .compare tbody th { margin-bottom: 6px; }
  .compare td::before { content: attr(data-label); display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--fg-2); }
  .compare tr.total th, .compare tr.total td { font-size: 19px; }

  /* Closing, next page, footer */
  .closing { padding-block: 72px; }
  .closing p { font-size: 18px; }
  .next { padding-block: 36px; }
  .page-jump { gap: 6px 22px; }
  .foot { font-size: 13px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot-cols > div { gap: 2px; }
  .foot-cols h4 { font-size: 13px; margin-bottom: 6px; }
  .foot-cols a { padding-block: 6px; }
}
@media (max-width: 559px) {
  .stage { height: 540px; }
}
@media (max-width: 359px) {
  .stats, .spec-pair { grid-template-columns: minmax(0, 1fr); }
  .names { columns: 1; }
  .wordmark { font-size: 17px; }
}

/* Phone audit fixes (verified at 320, 375 and 414 px) */
.lbl.right-up { transform: translate(16px, calc(-100% + 2px)); align-items: flex-start; }
.route h3, .plan h3, .step h3, .setup-card h3 { line-height: 1.15; }
.faq summary::after { margin-right: 3px; transform: translateY(-3px) rotate(45deg); }
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.spec-list li::before { height: 2px; top: calc(0.68em - 0.25px); }
.setup-card .spec-list { margin-top: 22px; }
.specs { border-bottom: 0; }
.band-flush { padding-bottom: 0; }
.page-lead, .hero .eyebrow, .flow-node, .flow-cond { text-wrap: balance; }
@media (max-width: 760px) {
  .plan-tag-empty { display: none; }
}
@media (max-width: 600px) {
  .compare tbody th { width: auto; }
  .names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; columns: auto; }
  .flow-branch { grid-template-rows: auto auto auto; }
  .flow-out { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px; justify-items: center; align-content: start; }
  .flow-dest { align-self: stretch; justify-self: stretch; display: flex; align-items: center; justify-content: center; text-wrap: balance; }
  .flow-ex { align-self: start; }
  .flow-node { max-width: calc(100% - 24px); }
  .page-title { font-size: clamp(32px, 10.5vw, 48px); }
  .page-jump { flex-direction: column; align-items: center; gap: 0; margin-top: 20px; }
  .page-jump .link { padding-block: 8px; }
  .lede, .note, .tile p, .fact p, .step p, .stat p, .plan li span, .spec-list li, .spec-body p,
  .howto strong, .howto span, .faq summary, .faq details > p, .fix li { text-wrap: pretty; }
  .figure, .stat-n, .compare .num { font-variant-numeric: proportional-nums; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .stats-3 .stat p:not(.stat-n) { font-size: 15px; }
  .closing h2 { font-size: clamp(36px, 11vw, 48px); }
  .howto, .setup-card .spec-list { margin-top: 14px; }
  .howto li { grid-template-columns: 18px minmax(0, 1fr); gap: 0; }
  .after .link, .tile .link { display: inline-block; padding-block: 6px; margin-block: -6px; }
  .foot-cols a { padding-block: 8px; }
}
@media (max-width: 559px) {
  .lbl.left { width: 128px; }
  .lbl.left .lbl-s { white-space: normal; }
}
@media (max-width: 409px) {
  .spec-pair { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 359px) {
  .names { grid-template-columns: minmax(0, 1fr); }
}

/* Hero routing diagram (static). Scoped under .stage-diagram. */
.stage.stage-diagram {
  height: auto;
  padding: 44px 32px;
  background:
    radial-gradient(34% 62% at 38% 50%, rgba(41, 151, 255, 0.14), rgba(41, 151, 255, 0) 72%),
    var(--stage-bg);
}
.stage-diagram .sd {
  display: grid;
  grid-template-columns:
    minmax(0, 0.86fr) 36px minmax(0, 0.92fr) 72px minmax(0, 1.06fr) 26px minmax(0, 1.06fr);
  grid-template-rows: 1fr 1fr;
  min-height: 352px;
}

/* Node cards */
.stage-diagram .sd-node {
  position: relative; align-self: center; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
  padding: 18px 16px 17px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  --port: rgba(245, 245, 247, 0.55);
}
.stage-diagram .sd-ico {
  display: flex; align-items: flex-end; gap: 9px;
  height: 28px; margin-bottom: 13px; color: #f5f5f7;
}
.stage-diagram .sd-ico svg { display: block; height: 26px; width: auto; flex: none; }
.stage-diagram .sd-t {
  font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -0.012em;
  line-height: 1.2; color: var(--stage-fg); text-wrap: balance;
}
.stage-diagram .sd-s {
  font-family: var(--text); font-size: 13px; line-height: 1.32; color: var(--stage-fg-2); text-wrap: balance;
}

/* The router: the centre of the story */
.stage-diagram .sd-hub {
  padding: 22px 20px 20px;
  background: linear-gradient(180deg, #2a2a2d 0%, #1c1c1e 100%);
  border-color: rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.035), 0 20px 70px rgba(41, 151, 255, 0.2);
}
.stage-diagram .sd-hub .sd-t { font-size: 19px; letter-spacing: -0.02em; }
.stage-diagram .sd-hub .sd-ico svg { height: 28px; }

/* Branches */
.stage-diagram .sd-tun {
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.1) 0%, rgba(41, 151, 255, 0) 60%), #1c1c1e;
  border-color: rgba(41, 151, 255, 0.42);
  --port: #2997ff;
}
.stage-diagram .sd-tun .sd-ico { color: #2997ff; }
.stage-diagram .sd-dir { border-color: rgba(255, 255, 255, 0.24); --port: #f5f5f7; }
.stage-diagram .sd-server, .stage-diagram .sd-world, .stage-diagram .sd-direct { min-height: 134px; }

/* Ports: small beads where a line meets a card */
.stage-diagram .p-in::before, .stage-diagram .p-out::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--port); box-shadow: 0 0 0 3px #000;
}
.stage-diagram .p-in::before { left: -5px; }
.stage-diagram .p-out::after { right: -5px; }
.stage-diagram .sd-hub::after { background: linear-gradient(180deg, #2997ff 50%, #f5f5f7 50%); }
.stage-diagram .sd-home::after { background: rgba(245, 245, 247, 0.55); }
.stage-diagram .sd-hub::before { background: rgba(245, 245, 247, 0.55); }

/* Wires: grid cells holding a stretched SVG (strokes keep their width) */
.stage-diagram .sd-wire { position: relative; min-width: 0; }
.stage-diagram .sd-wire svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.stage-diagram .sd-wire .v { display: none; }

/* Grid placement: horizontal flow */
.stage-diagram .sd-home   { grid-column: 1; grid-row: 1 / 3; }
.stage-diagram .sd-w-in   { grid-column: 2; grid-row: 1 / 3; }
.stage-diagram .sd-hub    { grid-column: 3; grid-row: 1 / 3; }
.stage-diagram .sd-w-fork { grid-column: 4; grid-row: 1 / 3; }
.stage-diagram .sd-server { grid-column: 5; grid-row: 1; }
.stage-diagram .sd-w-tun  { grid-column: 6; grid-row: 1; }
.stage-diagram .sd-world  { grid-column: 7; grid-row: 1; }
.stage-diagram .sd-w-dir  { grid-column: 5 / 7; grid-row: 2; }
.stage-diagram .sd-direct { grid-column: 7; grid-row: 2; }

@media (max-width: 1000px) {
  .stage.stage-diagram { padding: 36px 20px; }
  .stage-diagram .sd { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 60px minmax(0, 1fr) 20px minmax(0, 1fr); }
  .stage-diagram .sd-node { padding: 16px 13px 15px; }
  .stage-diagram .sd-t { font-size: 15px; }
  .stage-diagram .sd-hub .sd-t { font-size: 17px; }
}

/* Vertical tree */
@media (max-width: 799px) {
  .stage.stage-diagram {
    padding: 24px 16px 26px;
    background:
      radial-gradient(70% 30% at 50% 24%, rgba(41, 151, 255, 0.16), rgba(41, 151, 255, 0) 72%),
      var(--stage-bg);
  }
  .stage-diagram .sd {
    max-width: 420px; margin-inline: auto; min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 26px auto 48px auto 26px auto;
  }
  .stage-diagram .sd-wire .h { display: none; }
  .stage-diagram .sd-wire .v { display: inline; }
  .stage-diagram .sd-node { padding: 15px 14px 14px; border-radius: 16px; }
  .stage-diagram .sd-ico { height: 24px; margin-bottom: 11px; gap: 7px; }
  .stage-diagram .sd-ico svg { height: 22px; }
  .stage-diagram .sd-t { font-size: 15px; }

  .stage-diagram .sd-home, .stage-diagram .sd-hub {
    grid-column: 1 / 3; justify-self: center; max-width: 100%;
    display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
    column-gap: 14px; row-gap: 2px; align-items: center; padding: 13px 18px 13px 16px;
  }
  .stage-diagram .sd-home .sd-ico, .stage-diagram .sd-hub .sd-ico { grid-row: 1 / 3; margin: 0; height: auto; align-items: center; }
  .stage-diagram .sd-home .sd-t, .stage-diagram .sd-hub .sd-t { align-self: end; }
  .stage-diagram .sd-home .sd-s, .stage-diagram .sd-hub .sd-s { align-self: start; }
  .stage-diagram .sd-hub .sd-t { font-size: 17px; }
  .stage-diagram .sd-hub .sd-ico svg { height: 26px; }

  .stage-diagram .sd-home   { grid-row: 1; }
  .stage-diagram .sd-w-in   { grid-column: 1 / 3; grid-row: 2; }
  .stage-diagram .sd-hub    { grid-row: 3; }
  .stage-diagram .sd-w-fork { grid-column: 1 / 3; grid-row: 4; }
  .stage-diagram .sd-server { grid-column: 1; grid-row: 5; }
  .stage-diagram .sd-w-tun  { grid-column: 1; grid-row: 6; }
  .stage-diagram .sd-world  { grid-column: 1; grid-row: 7; }
  .stage-diagram .sd-w-dir  { grid-column: 2; grid-row: 5 / 7; }
  .stage-diagram .sd-direct { grid-column: 2; grid-row: 7; }
  .stage-diagram .sd-server, .stage-diagram .sd-world, .stage-diagram .sd-direct {
    align-self: stretch; margin-inline: 5px; min-height: 0;
  }

  .stage-diagram .p-in::before, .stage-diagram .p-out::after { top: auto; left: 50%; margin: 0 0 0 -4px; }
  .stage-diagram .p-in::before { top: -5px; }
  .stage-diagram .p-out::after { right: auto; bottom: -5px; }
  .stage-diagram .sd-hub::after { background: linear-gradient(90deg, #2997ff 50%, #f5f5f7 50%); }
}
/* Phones: one column, like a metro map. Two rails drop from Project Zeus on the left:
   the blue one serves "Сервер в Европе" and "Зарубежные сервисы", the white one goes on to "Напрямую".
   Rails are drawn piece by piece by the wire rows and the branch cards (x = 12px white, 26px blue). */
@media (max-width: 559px) {
  .stage.stage-diagram { padding: 20px 14px 22px; }
  .stage-diagram .sd {
    max-width: 460px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    --rail-w: linear-gradient(rgba(245, 245, 247, 0.72), rgba(245, 245, 247, 0.72)) 0 0 / 1.5px 100% no-repeat;
    --rail-w-half: linear-gradient(rgba(245, 245, 247, 0.72), rgba(245, 245, 247, 0.72)) 0 0 / 1.5px 50% no-repeat;
    --rail-b: linear-gradient(#2997ff, #2997ff) 14px 0 / 2px 100% no-repeat;
    --rail-b-half: linear-gradient(#2997ff, #2997ff) 14px 0 / 2px 50% no-repeat;
  }
  .stage-diagram .sd-home, .stage-diagram .sd-w-in, .stage-diagram .sd-hub, .stage-diagram .sd-w-fork,
  .stage-diagram .sd-server, .stage-diagram .sd-w-tun, .stage-diagram .sd-world, .stage-diagram .sd-w-dir,
  .stage-diagram .sd-direct { grid-column: 1; grid-row: auto; }
  .stage-diagram .sd-home, .stage-diagram .sd-hub { justify-self: stretch; grid-template-columns: auto minmax(0, 1fr); }
  .stage-diagram .sd-w-in { height: 18px; }
  .stage-diagram .sd-w-fork { height: 20px; }
  .stage-diagram .sd-w-tun, .stage-diagram .sd-w-dir { height: 10px; }
  .stage-diagram .sd-w-fork svg, .stage-diagram .sd-w-tun svg, .stage-diagram .sd-w-dir svg { display: none; }

  /* branch cards: full width after the rails, icon beside the text */
  .stage-diagram .sd-node.sd-server, .stage-diagram .sd-node.sd-world, .stage-diagram .sd-node.sd-direct {
    margin: 0 0 0 42px; align-self: stretch; min-height: 0;
    display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto auto;
    column-gap: 12px; row-gap: 1px; align-items: center; padding: 12px 14px; border-radius: 14px;
  }
  .stage-diagram .sd-server .sd-ico, .stage-diagram .sd-world .sd-ico, .stage-diagram .sd-direct .sd-ico {
    grid-row: 1 / 3; margin: 0; height: auto; align-items: center;
  }
  .stage-diagram .sd-server .sd-t, .stage-diagram .sd-world .sd-t, .stage-diagram .sd-direct .sd-t { align-self: end; }
  .stage-diagram .sd-server .sd-s, .stage-diagram .sd-world .sd-s, .stage-diagram .sd-direct .sd-s { align-self: start; }

  /* rails */
  .stage-diagram .sd-w-fork::before, .stage-diagram .sd-w-tun::before, .stage-diagram .sd-w-dir::before,
  .stage-diagram .sd-node.sd-server::before, .stage-diagram .sd-node.sd-world::before, .stage-diagram .sd-node.sd-direct::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 12px; right: auto;
    width: 17px; height: auto; margin: 0; border-radius: 0; box-shadow: none;
  }
  .stage-diagram .sd-node.sd-server::before, .stage-diagram .sd-node.sd-world::before,
  .stage-diagram .sd-node.sd-direct::before { left: -31px; }
  .stage-diagram .sd-w-fork::before, .stage-diagram .sd-w-tun::before,
  .stage-diagram .sd-node.sd-server::before { background: var(--rail-w), var(--rail-b); }
  .stage-diagram .sd-node.sd-world::before { background: var(--rail-w), var(--rail-b-half); }
  .stage-diagram .sd-w-dir::before { background: var(--rail-w); }
  .stage-diagram .sd-node.sd-direct::before { background: var(--rail-w-half); }

  /* where a rail turns into a card */
  .stage-diagram .sd-node.sd-server::after, .stage-diagram .sd-node.sd-world::after, .stage-diagram .sd-node.sd-direct::after {
    content: ""; position: absolute; top: 50%; bottom: auto; right: auto; left: -17px;
    width: 17px; height: 2px; margin: -1px 0 0; border-radius: 0; box-shadow: none; background: #2997ff;
  }
  .stage-diagram .sd-node.sd-direct::after { left: -31px; width: 31px; height: 1.5px; background: rgba(245, 245, 247, 0.72); }

  /* the rails leave Project Zeus on its left, so its own bottom port gives way to two beads */
  .stage-diagram .sd-node.sd-hub::after { display: none; }
  .stage-diagram .sd-w-fork::after {
    content: ""; position: absolute; top: -4px; left: 9px; width: 24px; height: 8px;
    background: radial-gradient(circle at 4px 4px, #f5f5f7 3px, rgba(0, 0, 0, 0) 3.6px),
                radial-gradient(circle at 18px 4px, #2997ff 3px, rgba(0, 0, 0, 0) 3.6px);
  }
}
@media (max-width: 359px) {
  .stage-diagram .sd-home, .stage-diagram .sd-hub { column-gap: 12px; padding-inline: 14px; }
  .stage-diagram .sd-home .sd-ico { gap: 6px; }
  .stage-diagram .sd-home .sd-ico svg { height: 20px; }
  .stage-diagram .sd-server, .stage-diagram .sd-world, .stage-diagram .sd-direct { padding-inline: 12px; }
}

/* Telegram channel: a quiet second button in the nav (icon only on phones) and a link in closings */
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.nav-channel { gap: 6px; }
.nav-channel svg { width: 15px; height: 15px; flex: none; }
.closing .closing-channel { display: inline-block; margin-top: 18px; color: var(--stage-accent); font-size: 17px; }
@media (max-width: 600px) {
  .nav-channel { padding: 7px 9px; }
  .nav-channel-t { display: none; }
}
@media (max-width: 400px) {
  .nav .wrap { gap: 10px; }
}
