/* lagnet.io — one stylesheet for every page. No external requests. */

@font-face {
  font-family: "Exo 2";
  src: url("/assets/fonts/exo2.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060A07;
  --surface: #0E150F;
  --surface-2: #0B110C;
  --border: #1E2A1F;
  --border-soft: #172117;
  --raised: #16211A;
  --raised-border: #2A3A2C;
  --text: #ECFBE9;
  --text-2: #9FB3A0;
  --text-2-light: #C3D6C4;
  --lime: #B6FF3B;
  --lime-08: rgba(182, 255, 59, 0.08);
  --lime-14: rgba(182, 255, 59, 0.14);
  --lime-30: rgba(182, 255, 59, 0.30);
  --on-lime: #0B1406;
  --on-lime-2: #2B4410;
  --warn: #FDE047;
  --direct: #56655A;

  --display: "Exo 2", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;
  --radius: 20px;
  --header-h: 64px;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--lime); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--lime); color: var(--on-lime); }

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .dot, .dot { color: var(--lime); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 7, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav .nav-page { display: none; }
.site-nav a[aria-current="page"] { color: var(--text); }
.lang-switch {
  border: 1px solid var(--raised-border);
  font-family: var(--display);
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  font-size: 13px !important;
}
.lang-switch:hover { border-color: var(--lime); }

@media (min-width: 720px) {
  .site-nav .nav-page { display: inline-flex; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 24px;
  border-radius: 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.btn svg { flex: none; }
.btn-play {
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 10px 40px -12px rgba(182, 255, 59, 0.55);
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px -12px rgba(182, 255, 59, 0.7);
  text-decoration: none;
}
.btn-play .btn-lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-play .btn-small {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--on-lime-2);
}
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--raised-border);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--lime); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  /* faint scoreboard grid, fading out from the centre */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(182, 255, 59, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(182, 255, 59, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  right: -180px;
  top: -120px;
  background: radial-gradient(circle, rgba(182, 255, 59, 0.14) 0%, rgba(182, 255, 59, 0.04) 40%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-14);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(46px, 8.2vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero .lead {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-2-light);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23B6FF3B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.reveal { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal-1 { animation-delay: 60ms; }
.reveal-2 { animation-delay: 160ms; }
.reveal-3 { animation-delay: 260ms; }
.reveal-4 { animation-delay: 360ms; }
.reveal-5 { animation-delay: 480ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Phone mock (drawn, not a screenshot: no made-up numbers) ---------- */

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: min(320px, 86vw);
  aspect-ratio: 9 / 18.6;
  padding: 18px 14px 14px;
  border-radius: 46px;
  background: var(--bg);
  border: 1px solid var(--raised-border);
  box-shadow:
    0 0 0 8px #0A100B,
    0 0 0 9px var(--border),
    0 40px 120px -30px rgba(182, 255, 59, 0.28),
    0 30px 60px -20px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--body);
  overflow: hidden;
}
.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 0;
}
.phone-top .wordmark { font-size: 20px; }
.chip-pro {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 800;
  font-size: 11px;
}
.boost {
  position: relative;
  align-self: center;
  width: 78%;
  aspect-ratio: 1;
  margin-top: 6px;
  display: grid;
  place-items: center;
}
.boost .ring {
  position: absolute;
  border-radius: 50%;
}
.boost .ring-outer {
  inset: 0;
  border: 1.5px dashed rgba(182, 255, 59, 0.28);
  animation: spin 40s linear infinite;
}
.boost .ring-inner {
  inset: 9%;
  border: 1.5px dashed rgba(182, 255, 59, 0.18);
  animation: spin 28s linear infinite reverse;
}
.boost .core {
  position: relative;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--lime);
  background: radial-gradient(circle at 50% 35%, rgba(182, 255, 59, 0.10), transparent 70%), var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  animation: breathe 3.2s ease-in-out infinite;
}
.boost .core svg { width: 26px; height: 26px; margin-bottom: 4px; }
.boost .core b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.boost .core b.long { font-size: 19px; letter-spacing: 0.02em; }
.boost .core small { max-width: 76%; font-size: 11px; line-height: 1.25; text-align: center; color: var(--text-2); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182, 255, 59, 0), 0 0 32px -6px rgba(182, 255, 59, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(182, 255, 59, 0.06), 0 0 48px -4px rgba(182, 255, 59, 0.35); }
}
.phone-caption {
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-2);
}
.phone-card {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px;
}
.phone-card .pc-title { font-size: 11.5px; font-weight: 700; color: var(--text-2-light); margin: 0 0 8px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pc-stat {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  padding: 6px 8px;
}
.pc-stat span { display: block; font-size: 9.5px; color: var(--text-2); }
.pc-stat b { font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--text); }
.pc-btn {
  margin-top: 9px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--lime);
  border: 1px solid var(--lime-30);
  border-radius: 10px;
  padding: 7px;
}
.thumb-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.thumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
}
.thumb .tile {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--lime-14);
  color: var(--lime);
  font-family: var(--display);
  font-weight: 900;
  font-size: 11px;
}
.thumb .tile.round { border-radius: 50%; background: var(--raised); border: 1px solid var(--raised-border); color: var(--text); }
.thumb span { display: block; font-size: 9px; color: var(--text-2); line-height: 1.2; }
.thumb b { display: block; font-size: 11.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tabbar span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  padding: 7px 0;
  border-radius: 15px;
}
.tabbar span.on { background: var(--lime); color: var(--on-lime); }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--border-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}
.section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head p.sub {
  margin: 18px 0 0;
  color: var(--text-2-light);
  font-size: 18px;
}

/* Feature cards */
.features {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.feature {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}
.feature:hover { border-color: var(--raised-border); transform: translateY(-2px); }
.feature .num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  /* filled, not outlined: the variable font's overlapping contours show through a stroke */
  color: var(--raised);
}
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--raised);
  border: 1px solid var(--raised-border);
  color: var(--lime);
  margin-bottom: 22px;
}
.feature h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
}
.feature p { margin: 0; color: var(--text-2-light); }
.feature .note { margin-top: 12px; font-size: 14px; color: var(--text-2); }

.mini-chart {
  margin-top: 22px;
  padding: 14px 14px 10px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
}
.mini-chart svg { width: 100%; height: auto; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend .l-lagnet { background: var(--lime); }
.legend .l-direct { background: var(--direct); }
.legend .caption { margin-left: auto; font-weight: 600; font-style: italic; }

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  counter-increment: step;
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--lime);
}
.step h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.2;
}
.step p { margin: 0; font-size: 15.5px; color: var(--text-2-light); }

.straight {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--raised-border);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(182, 255, 59, 0.06), transparent 60%),
    var(--surface);
}
@media (min-width: 860px) {
  .straight { grid-template-columns: 0.9fr 1fr 1fr; gap: 32px; }
}
.straight h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
}
.straight .intro { margin: 10px 0 0; color: var(--text-2-light); font-size: 15.5px; }
.straight h4 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.checks, .crosses { margin: 0; padding: 0; list-style: none; }
.checks li, .crosses li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 10px;
  font-size: 15.5px;
  color: var(--text-2-light);
}
.checks li::before, .crosses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background: no-repeat center / contain;
}
.checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23B6FF3B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.crosses li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' fill='none' stroke='%239FB3A0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Plans */
.plans {
  display: grid;
  gap: 16px;
}
@media (min-width: 820px) {
  .plans { grid-template-columns: 1fr 1.2fr; }
}
.plan {
  padding: clamp(26px, 3.5vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.plan.pro {
  border-color: var(--lime-30);
  background:
    linear-gradient(180deg, rgba(182, 255, 59, 0.07), rgba(182, 255, 59, 0.015) 60%),
    var(--surface);
}
.plan .tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--raised-border);
  color: var(--text-2-light);
}
.plan.pro .tag { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.plan h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
}
.plan .plan-sub { margin: 0 0 20px; color: var(--text-2-light); }
.plan .fine { margin: 18px 0 0; font-size: 14px; color: var(--text-2); }

/* FAQ */
.faq { max-width: 860px; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--raised-border);
  background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23B6FF3B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--lime); }
.faq .answer { padding: 0 4px 24px; color: var(--text-2-light); max-width: 46em; }
.faq .answer p { margin: 0 0 10px; }

/* Closing band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 50% 90% at 90% 50%, rgba(182, 255, 59, 0.16), transparent 70%),
    var(--surface);
  border: 1px solid var(--raised-border);
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 860px) {
  .cta-band { grid-template-columns: 1fr auto; }
}
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); }
.cta-band p { margin: 12px 0 0; color: var(--text-2-light); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 48px;
  color: var(--text-2);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-links li + li::before { content: "·"; margin-right: 4px; color: var(--raised-border); }
.foot-links a {
  color: var(--text-2-light);
  text-decoration: none;
  padding: 6px 4px;
}
.foot-links a:hover { color: var(--lime); text-decoration: underline; }
.foot-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-brand .wordmark { font-size: 22px; }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(ellipse 50% 100% at 85% 0%, rgba(182, 255, 59, 0.07), transparent 70%);
}
.legal-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal-hero .meta {
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 15px;
}
.legal-layout {
  display: grid;
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 72px;
}
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
}
.toc {
  font-size: 14px;
}
.toc h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid var(--border);
  color: var(--text-2-light);
  text-decoration: none;
  line-height: 1.35;
}
.toc a:hover { color: var(--lime); border-left-color: var(--lime); }
@media (max-width: 999px) {
  .toc {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface-2);
  }
  .toc ol { columns: 2 180px; column-gap: 16px; }
  .toc a { border-left: 0; padding: 5px 0; }
}

.legal { max-width: 760px; font-size: 16.5px; }
.legal .intro {
  margin: 0 0 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--lime-08);
  border: 1px solid rgba(182, 255, 59, 0.22);
  color: var(--text);
}
.legal section { margin-top: 40px; }
.legal h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
}
.legal h3 {
  margin: 26px 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
}
.legal p { margin: 0 0 12px; color: var(--text-2-light); }
.legal ul { margin: 0 0 14px; padding-left: 1.2rem; color: var(--text-2-light); }
.legal li { margin: 5px 0; }
.legal li::marker { color: var(--lime); }
.legal strong { color: var(--text); font-weight: 700; }
.legal a { overflow-wrap: anywhere; }

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100vh - var(--header-h) - 140px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.notfound .code {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(96px, 20vw, 180px);
  line-height: 0.9;
  color: var(--lime);
  text-shadow: 0 0 60px rgba(182, 255, 59, 0.35);
  margin: 0;
}
.notfound h1 {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
}
.notfound p { margin: 0 0 6px; color: var(--text-2-light); }
.notfound .links { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Payment pages (checkout, subscription) ---------- */

/* The payment pages switch states with the hidden attribute; keep it
   stronger than any display rule below. */
[hidden] { display: none !important; }

.pay-main {
  padding: clamp(28px, 6vw, 64px) 0 clamp(56px, 8vw, 96px);
  background: radial-gradient(ellipse 60% 40% at 90% 0%, rgba(182, 255, 59, 0.08), transparent 70%);
}
.pay-wrap { max-width: 640px; }
.pay-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pay-lead { margin: 12px 0 0; color: var(--text-2-light); font-size: 16px; }
.pay-panel {
  margin-top: 24px;
  padding: clamp(16px, 4vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice + .choice { margin-top: 24px; }
.choice legend {
  padding: 0;
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.options { display: grid; gap: 8px; }

/* A radio button drawn as a card. The input stays in the page (and in the
   tab order) but invisible; the card after it shows its state. */
.opt { position: relative; display: block; cursor: pointer; }
.opt-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.opt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.opt:hover .opt-card { border-color: var(--raised-border); }
.opt-input:checked + .opt-card {
  border-color: var(--lime);
  background: linear-gradient(180deg, rgba(182, 255, 59, 0.10), rgba(182, 255, 59, 0.03)), var(--surface);
}
.opt-input:focus-visible + .opt-card { outline: 3px solid var(--lime); outline-offset: 3px; }
.opt-input:disabled + .opt-card { cursor: progress; }
.opt-dot {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--raised-border);
}
.opt-input:checked + .opt-card .opt-dot {
  border-color: var(--lime);
  background: radial-gradient(circle, var(--lime) 0 4px, transparent 4.5px);
}

.plan-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
}
.plan-save {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lime-14);
  color: var(--lime);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 800;
}
.plan-total { font-size: 13.5px; line-height: 1.35; color: var(--text-2-light); }
.plan-total s { margin-left: 4px; color: var(--text-2); white-space: nowrap; }
.plan-per {
  flex: none;
  text-align: right;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
}
.plan-per .approx { margin-right: 2px; font-size: 14px; color: var(--text-2); }
.plan-per small { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--text-2); }
.opt-input:checked + .opt-card .plan-per { color: var(--lime); }
.plan-hero { margin: 10px 0 4px; }
.plan-hero .opt-card { min-height: 84px; padding-top: 18px; }
.plan-hero .plan-per { font-size: 26px; }
.plan-flag {
  position: absolute;
  top: -10px;
  left: 16px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.method-mark { flex: none; width: 36px; height: 36px; border-radius: 50%; }
.method-text { display: flex; flex-direction: column; min-width: 0; }
.method-name { font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--text); }
.method-meta { font-size: 13px; line-height: 1.3; color: var(--text-2); }
@media (min-width: 600px) {
  .methods { grid-template-columns: repeat(3, 1fr); }
  .methods .opt-card { flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding-right: 40px; }
  .methods .opt-dot { position: absolute; top: 14px; right: 14px; }
}

.pay-notes { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--text-2-light); }
.pay-notes p { margin: 0 0 8px; }
.pay-notes p:last-child { margin-bottom: 0; }
.pay-consent {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--lime-30);
  background: var(--lime-08);
  color: var(--text);
}
.pay-fee { font-size: 13px; color: var(--text-2); }

button.btn { cursor: pointer; font-family: var(--display); }
button.btn-play { border: 0; }
.btn:disabled,
.btn-play:disabled:hover { cursor: progress; opacity: 0.7; transform: none; box-shadow: none; }
.pay-btn { width: 100%; margin-top: 20px; }

.pay-fine { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.pay-trust {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2-light);
}
.pay-trust svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--lime); }
.pay-manage { margin: 20px 0 0; text-align: center; font-size: 15px; color: var(--text-2); }
.pay-manage a { display: inline-block; padding: 10px 4px; }

.notice {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--raised-border);
  background: var(--surface);
  font-size: 15.5px;
  color: var(--text-2-light);
}
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--text); }
.notice-error { border-color: rgba(255, 122, 112, 0.5); background: rgba(255, 122, 112, 0.08); }
.notice-error strong { color: #FFB8B0; }
.notice-ok { border-color: var(--lime-30); background: var(--lime-08); }
.notice .btn { margin-top: 12px; min-height: 48px; font-size: 16px; }

.state-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: var(--lime-14);
  color: var(--lime);
}
.state-mark svg { width: 30px; height: 30px; }
.state-body { margin-top: 16px; font-size: 16.5px; color: var(--text-2-light); }
.state-body p { margin: 0 0 12px; }

.loading { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--text-2-light); }
.spinner {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--raised-border);
  border-top-color: var(--lime);
  animation: spin 0.8s linear infinite;
}
.sub-list { margin: 0; }
.sub-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.sub-row:first-child { padding-top: 0; }
.sub-row:last-child { border-bottom: 0; }
.sub-row dt { color: var(--text-2); }
.sub-row dd { margin: 0; text-align: right; font-weight: 700; color: var(--text); white-space: nowrap; }
.sub-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--text-2-light); }
.sub-cancel { width: 100%; margin-top: 20px; min-height: 52px; font-size: 16px; }

/* Offer: prices and seller details */
.price-table { width: 100%; margin: 0 0 14px; border-collapse: collapse; font-size: 16px; }
.price-table th,
.price-table td { padding: 10px 12px 10px 0; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.price-table th {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.price-table td { color: var(--text-2-light); }
.price-table td.price { color: var(--text); font-weight: 700; white-space: nowrap; }
.requisites {
  margin: 0 0 14px;
  padding: 6px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.requisites div { display: grid; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.requisites div:last-child { border-bottom: 0; }
.requisites dt { font-weight: 700; color: var(--text); }
.requisites dd { margin: 0; color: var(--text-2-light); overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .requisites div { grid-template-columns: 200px minmax(0, 1fr); }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .toc, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .legal p, .legal ul, .legal .intro { color: #000; background: none; border: 0; }
}
