/* Дубна VPN — сайт по VPN App UI Kit (VPN App.fig).
   Sage / charcoal / gold, Gilroy-метрики через системный геометрический sans.
   Без клиентского JS: только CSS-компоненты кита. */

:root {
  --kit-sage: #4b7367;
  --kit-sage-deep: #4a685f;
  --kit-sage-chip: #49665d;
  --kit-sage-node: #527369;
  --kit-disconnected: #3b3a48;
  --kit-disconnected-chip: #2e2e38;
  --kit-canvas: #111014;
  --kit-surface: #202020;
  --kit-surface-alt: #333240;
  --kit-gold: #ecb534;
  --kit-ink: #111014;
  --kit-muted: #8f8996;
  --kit-light: #f3f5f8;
  --kit-white: #ffffff;
  --kit-line: #dcdcdc;
  --kit-danger: #ff3b30;
  --kit-navy: #1a2662;
  --kit-navy-deep: #121f5e;
  --kit-navy-muted: #919bcc;
  --kit-connected-sub: #e4f1ed;
  --kit-ip: #bfd3cd;
  --kit-blob: #f9f9f9;
  --radius-btn: 16px;
  --radius-card: 16px;
  --radius-field: 14px;
  --radius-pill: 100px;
  --pad: 24px;
  --cta-h: 60px;
  --field-h: 54px;
  --max: 1120px;
  --phone: 375px;
  font-family: "Segoe UI Variable", "Segoe UI", "Avenir Next", "Century Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  color: var(--kit-ink);
  background: var(--kit-white);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--kit-white);
  color: var(--kit-ink);
  padding: 10px 16px;
  z-index: 400;
}
.skip-link:focus { left: 12px; top: 12px; }

a { color: var(--kit-sage); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
label:focus-within {
  outline: 3px solid var(--kit-gold);
  outline-offset: 2px;
}

/* ==== Header / Menu (экран Menu) ==== */
.nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site-header {
  background: var(--kit-canvas);
  color: var(--kit-white);
  position: relative;
  z-index: 30;
}
.theme-home .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
}
.theme-light .site-header {
  background: var(--kit-white);
  color: var(--kit-ink);
  border-bottom: 1px solid var(--kit-line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}
.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.brand-wordmark { height: 32px; width: auto; display: block; }
.wordmark-dark { display: none; }
.theme-light .wordmark-light { display: none; }
.theme-light .wordmark-dark { display: block; }

.nav-burger {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: none;
  place-items: center;
  cursor: pointer;
  color: inherit;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

.site-nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: #d5e0d0;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.theme-home .site-nav a { color: rgba(255,255,255,0.86); }
.theme-light .site-nav a { color: var(--kit-muted); }
.site-nav a[aria-current="page"],
.site-nav a:hover { color: var(--kit-white); }
.theme-light .site-nav a[aria-current="page"],
.theme-light .site-nav a:hover { color: var(--kit-ink); }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--kit-white);
  z-index: 200;
  padding: 24px 36px;
}
.menu-overlay .menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--kit-ink);
  font-size: 28px;
  line-height: 1;
}
.menu-overlay nav {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.menu-overlay a {
  color: var(--kit-ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
}
.menu-overlay a.is-danger { color: var(--kit-danger); }
.nav-toggle:checked ~ .menu-overlay { display: block; }
.nav-toggle:checked ~ .site-header .nav-burger { visibility: hidden; }

/* ==== Buttons (327×60) ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cta-h);
  padding: 0 28px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  max-width: 327px;
}
.btn-primary { background: var(--kit-sage); color: var(--kit-white); }
.btn-primary:hover { background: var(--kit-sage-deep); }
.btn-dark {
  background: var(--kit-ink);
  color: var(--kit-white);
  border-radius: var(--radius-pill);
}
.btn-on-sage { background: var(--kit-white); color: var(--kit-ink); }
.btn-on-sage:hover { background: var(--kit-light); }
.btn-ghost-on-sage {
  background: transparent;
  color: var(--kit-white);
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-danger { background: var(--kit-danger); color: var(--kit-white); }
.btn-small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  width: auto;
  max-width: none;
  border-radius: var(--radius-pill);
}
.btn-disabled {
  background: #cfd6cb;
  color: #7a857a;
  cursor: not-allowed;
  pointer-events: none;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-row .btn { width: auto; min-width: 180px; }

/* ==== Fields (327×54) ==== */
.field, .auth-form input, .otp-field {
  width: 100%;
  max-width: 327px;
  min-height: var(--field-h);
  padding: 0 16px;
  border: 1px solid var(--kit-line);
  border-radius: var(--radius-field);
  font-size: 16px;
  font-family: inherit;
  background: var(--kit-light);
  color: var(--kit-ink);
}
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.auth-form label { font-size: 12px; color: var(--kit-muted); font-weight: 600; }
.otp-field {
  letter-spacing: 0.55em;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  max-width: 327px;
}

/* ==== Chips / icon buttons ==== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--kit-sage-chip);
  color: var(--kit-white);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.chip-gold {
  background: var(--kit-gold);
  color: var(--kit-ink);
  height: auto;
  padding: 6px 12px;
  font-size: 12px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--kit-white);
  display: grid;
  place-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.icon-btn-light {
  background: var(--kit-light);
  color: var(--kit-ink);
  border: 1px solid var(--kit-line);
}

/* ==== Hero = Home Connected + Splash ==== */
.hero-kit {
  position: relative;
  background: var(--kit-sage);
  color: var(--kit-white);
  overflow: hidden;
  padding: 88px 0 0;
}
.hero-map {
  position: absolute;
  left: 50%;
  top: 48px;
  width: min(418px, 110%);
  transform: translateX(-42%);
  opacity: 0.95;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.blob-1 { width: 279px; height: 279px; top: -40px; right: -60px; }
.blob-2 { width: 180px; height: 180px; left: -50px; top: 38%; }
.blob-3 { width: 20px; height: 20px; right: 18%; bottom: 28%; background: rgba(255,255,255,0.35); }
.blob-4 { width: 10px; height: 10px; right: 14%; bottom: 24%; background: rgba(255,255,255,0.35); }
.blob-5 { width: 6px; height: 6px; right: 12%; bottom: 22%; background: rgba(255,255,255,0.35); }

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 375px);
  gap: 40px;
  align-items: center;
  padding-bottom: 48px;
}
.hero-copy { max-width: 560px; }
.hero-kicker {
  color: #c5d4ce;
  font-size: 14px;
  margin-bottom: 6px;
}
.hero-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 14px;
}
.lede {
  color: var(--kit-connected-sub);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 520px;
}
.theme-light .lede, .page-section .lede { color: var(--kit-muted); }
.oak-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  margin-bottom: 16px;
}

/* Phone frame = Home Connected 375×812 */
.phone {
  width: 100%;
  max-width: var(--phone);
  margin: 0 auto;
  background: var(--kit-sage);
  border-radius: 36px;
  border: 10px solid #1a1a1a;
  box-shadow: 0 30px 60px rgba(17,16,20,0.35);
  overflow: hidden;
  min-height: 640px;
  position: relative;
  padding: 18px 24px 28px;
  display: flex;
  flex-direction: column;
}
.phone-map {
  position: absolute;
  inset: 20px -20px auto;
  height: 220px;
  background: url("/static/kit/map.svg") center / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
}
.phone-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}
.phone-main {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 28px 0 8px;
}
.phone-timer {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.phone-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--kit-connected-sub);
}
.power-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 8px auto 18px;
  display: grid;
  place-items: center;
}
.power-ring,
.power-ring-2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.14);
}
.power-ring-2 { inset: 28px; border-width: 2px; border-color: rgba(255,255,255,0.07); }
.power-core {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: var(--kit-white);
  color: var(--kit-sage);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 1;
}
.power-core svg { width: 42px; height: 42px; }
@keyframes kit-pulse {
  50% { transform: scale(1.04); opacity: 0.7; }
}
.power-ring { animation: kit-pulse 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .power-ring { animation: none; }
}

.stat-pair {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.stat-pair article { flex: 1; }
.stat-pair .label {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}
.stat-pair strong { font-size: 18px; font-weight: 700; }

.node-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.22);
  border-radius: var(--radius-card);
  padding: 16px;
  position: relative;
  z-index: 1;
  color: var(--kit-white);
  text-decoration: none;
}
.node-card .flag {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--kit-sage-node);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.node-card .flag svg { width: 18px; height: 18px; }
.node-card p { flex: 1; }
.node-card .ip { display: block; font-size: 12px; color: var(--kit-ip); }
.node-card strong { font-size: 16px; }

/* ==== Onboarding band ==== */
.onboard {
  background: var(--kit-canvas);
  color: var(--kit-white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.onboard .wrap { max-width: 720px; }
.onboard h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 16ch; margin-bottom: 12px; }
.onboard .lede { color: var(--kit-muted); margin-bottom: 28px; }
.watch-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kit-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}
.watch-link svg { width: 18px; height: 18px; }

/* ==== Feature cards / Settings rows ==== */
.sheet {
  background: var(--kit-white);
  border-radius: 24px 24px 0 0;
  margin-top: -28px;
  position: relative;
  z-index: 2;
  padding: 40px 0 8px;
}
.section { padding: 56px 0; }
.section h2 { font-size: 22px; margin-bottom: 8px; }
.section-lead { color: var(--kit-muted); margin-bottom: 24px; max-width: 36em; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.feature-card {
  background: var(--kit-white);
  border: 1px solid var(--kit-line);
  border-radius: var(--radius-card);
  padding: 20px;
}
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { color: var(--kit-muted); font-size: 14px; }

.check-list { display: grid; gap: 12px; margin: 20px 0 28px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--kit-muted);
  font-size: 15px;
}
.check-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--kit-sage);
  flex-shrink: 0;
  position: relative;
}
.check-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 6px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ==== Subscriptions rows (327×78) ==== */
.plan-list { display: grid; gap: 12px; margin: 24px 0; }
.plan-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  width: 100%;
  max-width: 327px;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid var(--kit-line);
  border-radius: var(--radius-card);
  background: var(--kit-white);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.plan-row:hover,
.plan-card:hover { border-color: var(--kit-sage); }
.plan-row:first-child,
.plan-card:first-child {
  border-color: var(--kit-sage);
  background: rgba(75, 115, 103, 0.08);
}
.plan-row h2, .plan-row strong { font-size: 18px; }
.plan-row .plan-price { font-size: 18px; font-weight: 700; }
.plan-row .meta, .plan-row .per { font-size: 13px; color: var(--kit-muted); }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.plan-card {
  border: 1px solid var(--kit-line);
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--kit-white);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-card .plan-price { font-size: 28px; font-weight: 700; }
.plan-meta { color: var(--kit-muted); font-size: 14px; }
.plan-card .btn { margin-top: auto; max-width: none; width: 100%; }

/* ==== Speed Test / Download navy ==== */
.navy-band {
  background: var(--kit-navy);
  color: var(--kit-white);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.navy-band h2 { margin-bottom: 8px; }
.navy-band .lede { color: var(--kit-navy-muted); }
.go-dial {
  width: 226px;
  height: 226px;
  margin: 28px auto;
  border-radius: 50%;
  background: var(--kit-navy-deep);
  border: 18px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.navy-metrics {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #dfdfdf;
  margin-bottom: 28px;
}
.platform-row { display: flex; gap: 16px; flex-wrap: wrap; }
.platform-card, .download-card {
  flex: 1 1 240px;
  background: rgba(255,255,255,0.06);
  color: var(--kit-white);
  border-radius: var(--radius-card);
  padding: 24px;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(255,255,255,0.12);
}
.platform-card strong, .download-card h2 { display: block; font-size: 18px; margin-bottom: 6px; }
.platform-card span, .download-card p { color: var(--kit-navy-muted); }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.page-navy .download-card { background: rgba(255,255,255,0.06); }
.changelog { color: var(--kit-navy-muted); white-space: pre-wrap; margin: 12px 0 20px; }
.page-navy .btn-primary { background: var(--kit-white); color: var(--kit-navy); }
.page-navy .btn-disabled { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }

/* ==== Auth / Verification / Settings pages ==== */
.kit-screen {
  width: 100%;
  max-width: 423px;
  margin: 0 auto;
  padding: 32px var(--pad) 64px;
}
.kit-screen--wide { max-width: 800px; }
.theme-home.page-navy .navy-band { padding-top: 96px; }
.page-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.page-heading h1 { font-size: 16px; font-weight: 700; }
.kit-title { font-size: 24px; margin-bottom: 8px; }
.kit-sub { color: var(--kit-muted); font-size: 14px; margin-bottom: 24px; }

.auth-tabs {
  display: flex;
  gap: 28px;
  margin: 28px 0 8px;
  font-weight: 700;
  font-size: 16px;
}
.auth-tab { color: var(--kit-muted); text-decoration: none; }
.auth-tab.is-active { color: var(--kit-ink); }
.auth-or {
  color: var(--kit-muted);
  font-size: 12px;
  margin: 18px 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 327px;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--kit-line);
}
.forget { font-size: 14px; font-weight: 700; color: var(--kit-ink); text-decoration: none; }

.otp-boxes {
  display: flex;
  gap: 8px;
  max-width: 327px;
  margin-bottom: 8px;
}
.otp-boxes span {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-field);
  border: 1px solid var(--kit-line);
  background: var(--kit-light);
}

/* Settings rows */
.kit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 51px;
  padding: 12px 0;
  border-bottom: 1px solid var(--kit-line);
}
.kit-row h2, .kit-row strong { font-size: 16px; font-weight: 600; }
.kit-row p, .kit-row .hint { font-size: 12px; color: var(--kit-muted); margin-top: 2px; }
.kit-row a { color: inherit; text-decoration: none; display: block; }
.section-label {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}
.toggle-look {
  width: 51px;
  height: 31px;
  border-radius: 100px;
  background: var(--kit-sage);
  position: relative;
  flex-shrink: 0;
}
.toggle-look::after {
  content: "";
  width: 27px;
  height: 27px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-look.is-off { background: #e5e5ea; }
.toggle-look.is-off::after { right: auto; left: 2px; }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 20px; }
.stat-card {
  background: var(--kit-white);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  min-width: 180px;
  border: 1px solid var(--kit-line);
  flex: 1;
}
.stat-label { display: block; color: var(--kit-muted); font-size: 12px; }
.stat-card strong { font-size: 24px; }
.stat-sub { display: block; color: var(--kit-muted); font-size: 12px; margin-top: 4px; }

.badge {
  background: var(--kit-sage);
  color: var(--kit-white);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.inline-form { display: inline-block; margin: 12px 0; }

.device-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.device-table th, .device-table td {
  text-align: left;
  padding: 14px 8px;
  border-bottom: 1px solid var(--kit-line);
}
.device-table th { color: var(--kit-muted); font-weight: 600; font-size: 12px; }

.page-section { padding: 32px 0 64px; }
.legal-body { max-width: 720px; line-height: 1.7; }
.legal-body a { color: var(--kit-sage); }

.offline-section { text-align: center; padding: 72px 20px 96px; max-width: 480px; margin: 0 auto; }
.offline-art {
  width: 220px;
  height: 180px;
  margin: 0 auto 24px;
  background: var(--kit-light);
  border-radius: 24px;
  display: grid;
  place-items: center;
  position: relative;
}
.offline-art::before,
.offline-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--kit-sage);
  opacity: 0.15;
}
.offline-art::before { width: 90px; height: 90px; top: 24px; }
.offline-art::after { width: 48px; height: 48px; bottom: 28px; right: 48px; background: var(--kit-gold); opacity: 0.4; }

.error { color: var(--kit-danger); font-size: 14px; }
.status-ok { color: var(--kit-sage); font-weight: 700; }

/* ==== Footer ==== */
.site-footer {
  background: var(--kit-canvas);
  color: #d8e4e0;
  padding: 28px var(--pad);
  margin-top: auto;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-row nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-row a { color: #d5e0d0; text-decoration: none; font-size: 14px; }
.footer-row a:hover { color: var(--kit-white); }

main { flex: 1; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-copy { text-align: left; padding-bottom: 24px; }
  .phone { border: 0; border-radius: 0; box-shadow: none; min-height: 0; max-width: none; padding-bottom: 48px; }
  .hero-kit { padding-top: 72px; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-burger { display: grid; }
}

@media (max-width: 640px) {
  .cta-row .btn { width: 100%; max-width: 327px; }
  .plan-row { max-width: none; }
  .header-row { min-height: 56px; }
}

/* ==== Landing / download: two kit tiles ==== */
.theme-download .site-footer { display: none; }
.hero-download {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 0 64px;
}
.download-stage {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--kit-white);
  padding-bottom: 48px;
}
.download-stage .oak-badge { margin-bottom: 12px; }
.download-stage h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 8px;
}
.download-stage .lede {
  margin: 0 auto 8px;
  color: var(--kit-connected-sub);
}
.download-stage .changelog {
  color: var(--kit-connected-sub);
  margin-top: 24px;
  white-space: pre-wrap;
}
.dl-pair {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 36px auto 0;
}
.dl-btn {
  width: 280px;
  min-height: 320px;
  padding: 36px 24px 28px;
  border-radius: 32px;
  background: #111014;
  color: var(--kit-white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 22px 48px rgba(17, 16, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dl-btn img { width: 168px; height: 168px; display: block; }
.dl-btn strong { font-size: 24px; }
.dl-btn span { font-size: 14px; color: var(--kit-muted); font-weight: 600; }
.dl-btn:hover { transform: translateY(-4px); background: #1a191f; }
.dl-btn-win { background: var(--kit-white); color: var(--kit-ink); }
.dl-btn-win span { color: var(--kit-muted); }
.dl-btn-win:hover { background: var(--kit-light); }
.dl-btn.is-soon {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
.theme-download .header-row { justify-content: center; }
