/* GladOS — marketing site
   Visual idea: every dot is a member. Chalk paper, spruce ink, pink for threats.
   Light and dark themes share one token set. */

:root {
  color-scheme: light;
  --paper: #E8EBE6;
  --paper-hi: #F5F7F3;
  --paper-lo: #DCE2DB;
  --line: #C3CCC4;
  --ink: #0F1D18;
  --ink-2: #44554D;
  --ink-3: #66756E;
  --spruce: #0F5C48;
  --spruce-hi: #16795F;
  --spruce-soft: #8FB5A6;
  --mint: #8BE3BF;
  --pink: #E2366F;
  --pink-ink: #C42659;
  --pink-wash: #FDEAF0;
  --ash: #A3ADA7;
  --gold: #E2A23A;
  --night: #0E211B;
  --night-2: #16302A;
  --night-line: #2A4840;
  --on-night: #E3EBE6;
  --on-night-2: #9FB3AA;
  --btn-ink: #F5F7F3;

  --tg-bg: #CFD9D1;
  --tg-dot: rgba(15, 92, 72, .13);
  --tg-bubble: #FFFFFF;
  --tg-out: #E2F5D9;
  --tg-kb: rgba(255, 255, 255, .62);
  --tg-kb-hover: rgba(255, 255, 255, .92);
  --tg-link: #2A6FB0;
  --tg-text: #0F1D18;
  --tg-sub: #6B7A73;
  --shadow: 0 30px 60px -40px rgba(15, 29, 24, .35);

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --text: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --tgfont: "Twemoji Flags", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
}

@font-face {
  /* Флаги стран на Windows: системный шрифт рисует их буквами */
  font-family: "Twemoji Flags";
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0B1512; --paper-hi: #12201B; --paper-lo: #0F1B17; --line: #22352E;
    --ink: #E3ECE7; --ink-2: #A7B8B0; --ink-3: #849790;
    --spruce: #3DB389; --spruce-hi: #55C79D; --spruce-soft: #2F5C4D;
    --mint: #8BE3BF; --pink: #F0508A; --pink-ink: #FF6E9F; --pink-wash: rgba(240, 80, 138, .14);
    --ash: #5F7069; --gold: #E8AE4A;
    --night: #050C0A; --night-2: #0E1A16; --night-line: #1F332C; --on-night: #E3EBE6; --on-night-2: #93A79E;
    --btn-ink: #0B1512;
    --tg-bg: #0F1B17; --tg-dot: rgba(139, 227, 191, .07); --tg-bubble: #1A2823; --tg-out: #1E3A2F;
    --tg-kb: rgba(255, 255, 255, .08); --tg-kb-hover: rgba(255, 255, 255, .16); --tg-link: #6AB3F3;
    --tg-text: #E3ECE7; --tg-sub: #849790; --shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0B1512; --paper-hi: #12201B; --paper-lo: #0F1B17; --line: #22352E;
  --ink: #E3ECE7; --ink-2: #A7B8B0; --ink-3: #849790;
  --spruce: #3DB389; --spruce-hi: #55C79D; --spruce-soft: #2F5C4D;
  --mint: #8BE3BF; --pink: #F0508A; --pink-ink: #FF6E9F; --pink-wash: rgba(240, 80, 138, .14);
  --ash: #5F7069; --gold: #E8AE4A;
  --night: #050C0A; --night-2: #0E1A16; --night-line: #1F332C; --on-night: #E3EBE6; --on-night-2: #93A79E;
  --btn-ink: #0B1512;
  --tg-bg: #0F1B17; --tg-dot: rgba(139, 227, 191, .07); --tg-bubble: #1A2823; --tg-out: #1E3A2F;
  --tg-kb: rgba(255, 255, 255, .08); --tg-kb-hover: rgba(255, 255, 255, .16); --tg-link: #6AB3F3;
  --tg-text: #E3ECE7; --tg-sub: #849790; --shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
b, strong { font-weight: 600; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
.num, .pc, .cnt, .r, .c { font-variant-numeric: tabular-nums; white-space: nowrap; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, .display { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.3vw, 66px); }
@media (max-width: 980px) { h1 { font-size: clamp(34px, 8.6vw, 66px); } }
h2 { font-size: clamp(30px, 3.9vw, 56px); font-weight: 600; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; line-height: 1.45; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 17px; text-decoration: none; text-align: center; line-height: 1.2;
  transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 18px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-main { background: var(--ink); color: var(--btn-ink); }
.btn-main:hover { background: var(--spruce); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--btn-ink); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-ink); }
.btn-night { background: var(--mint); color: #08130F; min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn-night:hover { background: #fff; }
.btn-night.btn-lg { min-height: 58px; font-size: 18px; padding: 0 28px; }
.btn .tg { width: 20px; height: 20px; flex: none; }
.linkbtn { background: none; border: 0; padding: 4px 2px; color: var(--ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; flex: none; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.04em; margin-right: auto; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 999px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--paper-lo); }
.top-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 1100px) { .nav-doc { display: none; } }
@media (max-width: 980px) {
  .menu-btn { display: grid; align-content: center; justify-items: center; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; font-size: 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav .nav-doc { display: block; }
}
@media (max-width: 520px) { .top-cta span { display: none; } .top-cta { width: 42px; padding: 0; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 span { display: block; }
.hero h1 .keep { color: var(--spruce); }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--spruce); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hero-cta .btn { width: 100%; } .hero-points { flex-direction: column; } }

/* Population field */
.field { background: var(--paper-hi); border-radius: var(--r-l); padding: 20px; box-shadow: 0 1px 0 var(--line), var(--shadow); }
.field-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: #0F5C48; flex: none; font-size: 15px; }
.field-title { font-weight: 600; line-height: 1.2; }
.field-sub { font-size: 13px; color: var(--ink-3); }
.field-count { margin-left: auto; text-align: right; }
.field-count b { white-space: nowrap; font-family: var(--display); font-size: 26px; letter-spacing: -0.04em; font-weight: 600; display: block; line-height: 1; }
.field-count small { font-size: 12px; color: var(--ink-3); }
.field canvas { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-m); background: var(--paper); }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0; }
.legend button { display: flex; align-items: center; gap: 10px; text-align: left; border: 1.5px solid var(--line); background: transparent; border-radius: var(--r-s); padding: 8px 10px; font-size: 14px; line-height: 1.25; }
.legend button[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.legend button[disabled] { opacity: .55; cursor: default; }
.legend .sw { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.legend .cnt { margin-left: auto; font-weight: 600; }
.legend .box { width: 16px; height: 16px; border: 1.5px solid var(--ink-3); border-radius: 4px; flex: none; display: grid; place-items: center; }
.legend button[aria-pressed="true"] .box { background: var(--ink); border-color: var(--ink); }
.legend button[aria-pressed="true"] .box::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--paper-hi); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.legend .lbl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.field-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--paper-lo); border-radius: 999px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--paper-hi); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.field-act .btn { min-height: 44px; padding: 0 18px; font-size: 15px; margin-left: auto; }
.field-msg { font-size: 13px; color: var(--ink-3); margin-top: 10px; min-height: 2.6em; }
@media (max-width: 520px) {
  .legend { grid-template-columns: 1fr; }
  .field { padding: 14px; }
  .field-act .btn { margin-left: 0; width: 100%; }
}

/* Facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 22px 24px 22px 0; font-size: 16px; color: var(--ink-2); line-height: 1.4; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { color: var(--ink); font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: 20px; }
@media (max-width: 760px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 9vw, 136px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { margin: 0; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }
.marker { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--spruce); margin-bottom: 18px; }
.marker i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 14px 0 0 currentColor, 28px 0 0 currentColor; margin-right: 28px; }
.marker.pink { color: var(--pink); }

.dark { background: var(--night); color: var(--on-night); }
.dark .lead, .dark .muted { color: var(--on-night-2); }
.dark .marker { color: var(--mint); }
.dark .seg { background: rgba(255,255,255,.08); }
.dark .seg button { color: var(--on-night-2); }
.dark .seg button[aria-pressed="true"] { background: var(--mint); color: #08130F; }

.cta-strip { margin-top: clamp(40px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r-l); background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--line); }
.cta-strip p { max-width: 62ch; color: var(--ink-2); }
.cta-strip b { color: var(--ink); }
.cta-strip.on-dark { background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); }
.cta-strip.on-dark p { color: var(--on-night-2); }
.cta-strip.on-dark b { color: #fff; }
@media (max-width: 560px) { .cta-strip .btn { width: 100%; } }

/* ---------- Manual vs GladOS ledger ---------- */
.ledger { border-top: 1.5px solid var(--ink); }
.ledger-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 28px; padding: 12px 0; font-size: 14px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.lrow h3 { font-size: 18px; }
.lrow > div { position: relative; padding-top: 14px; }
.lrow > div i { position: absolute; top: 0; left: 0; height: 6px; border-radius: 3px; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.ledger.on .lrow > div i { width: var(--w); }
.lrow .man i { background: var(--pink); }
.lrow .bot i { background: var(--spruce); min-width: 6px; }
.lrow b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; margin-bottom: 4px; }
.lrow .man b { color: var(--pink); }
.lrow .bot b { color: var(--spruce); }
.lrow span { font-size: 15px; color: var(--ink-2); display: block; }
@media (max-width: 820px) {
  .ledger-head { display: none; }
  .lrow { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .lrow h3 { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .lrow { grid-template-columns: 1fr; } }

/* ---------- Telegram mocks ---------- */
.phone { max-width: 480px; width: 100%; }
.tg-pane {
  background-color: var(--tg-bg);
  background-image: radial-gradient(circle at 1px 1px, var(--tg-dot) 1px, transparent 1.4px);
  background-size: 14px 14px;
  border-radius: var(--r-l); padding: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--tg-text);
}
.tg-top { display: flex; align-items: center; gap: 10px; background: var(--tg-bubble); margin: -18px -18px 10px; padding: 12px 16px; border-radius: var(--r-l) var(--r-l) 0 0; }
.tg-top .ava { width: 34px; height: 34px; font-size: 13px; }
.tg-top b { display: block; font-size: 15px; line-height: 1.2; }
.tg-top span { font-size: 12px; color: var(--tg-sub); }
.msg {
  background: var(--tg-bubble); color: var(--tg-text); border-radius: 14px 14px 14px 4px;
  padding: 10px 12px 8px; max-width: 100%; font-size: 14.5px; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12); font-family: var(--tgfont);
}
.msg .t { font-weight: 700; display: block; margin-bottom: 4px; }
.msg .row { display: block; }
.msg time { display: block; text-align: right; font-size: 11px; color: var(--tg-sub); margin-top: 2px; }
.msg.out { align-self: flex-end; background: var(--tg-out); border-radius: 14px 14px 4px 14px; }
.msg .q { display: block; border-left: 3px solid var(--spruce); padding-left: 8px; margin: 4px 0; color: var(--tg-sub); }
.tgtext { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.tgtext a, .tgtext .tl { color: var(--tg-link); text-decoration: none; }
.tgtext a[href]:hover { text-decoration: underline; }
.tgtext b { font-weight: 700; }
.kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.kb span, .kb button {
  background: var(--tg-kb); backdrop-filter: blur(4px); border: 0; border-radius: 10px; padding: 9px 6px; text-align: center;
  font-size: 13.5px; font-weight: 500; line-height: 1.2; color: var(--tg-text); font-family: var(--tgfont);
}
.kb .w { grid-column: 1 / -1; }
.kb-live button { transition: background-color .12s, transform .12s; }
.kb-live button:hover { background: var(--tg-kb-hover); }
.kb-live button:active { transform: scale(.98); }
.dark .tg-pane { --tg-bg: #13302A; --tg-dot: rgba(139, 227, 191, .1); }
.dark .kb span, .dark .kb button { background: rgba(255,255,255,.12); color: #fff; }
.dark .tg-top { background: var(--night-2); color: var(--on-night); }
.dark .tg-top span { color: var(--on-night-2); }

/* ---------- Audience ---------- */
.aud-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (max-width: 980px) { .aud-grid { grid-template-columns: minmax(0, 1fr); } }
.aud-side { display: grid; gap: clamp(20px, 3vw, 28px); }
.panel { background: var(--paper-hi); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 28px); }
.panel h3 { margin-bottom: 4px; }
.explain h3 { margin-bottom: 14px; }
.defs > div { padding: 12px 0; border-top: 1px solid var(--line); }
.defs dt { font-weight: 600; }
.defs dd { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { background: color-mix(in srgb, var(--spruce) 30%, transparent); } 100% { background: transparent; } }

/* Geo */
.geo-block { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
@media (max-width: 980px) { .geo-block { grid-template-columns: minmax(0, 1fr); } }
.geo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.map-wrap { position: relative; background: var(--paper-hi); border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 9; }
#geoMap { width: 100%; height: 100%; }
#geoMap path.c { stroke: var(--paper-hi); stroke-width: .5; cursor: pointer; transition: fill .2s, opacity .2s; vector-effect: non-scaling-stroke; }
#geoMap path.c:hover, #geoMap path.c.hl { stroke: var(--ink); stroke-width: 1.4; }
#geoMap path.c.sel { stroke: var(--pink); stroke-width: 2; }
#geoMap .sphere { fill: var(--paper-hi); }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.map-fallback[hidden] { display: none; }
.map-scale { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.map-scale i { width: 140px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--paper-lo), var(--spruce-soft), var(--spruce)); }
.geo-pick { margin-top: 14px; min-height: 92px; padding: 16px 18px; border-radius: var(--r-m); background: var(--paper-hi); }
.geo-pick h4 { font-size: 18px; margin-bottom: 4px; }
.geo-pick .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.geo-pick .acts a { font-size: 14px; padding: 7px 12px; border-radius: 999px; background: var(--paper-lo); text-decoration: none; }
.geo-pick .acts a:hover { background: var(--ink); color: var(--btn-ink); }
.geo-msg-pane .msg { max-height: 640px; overflow: auto; }
.gl { cursor: pointer; border-radius: 4px; }
.gl:hover, .gl.hl { background: color-mix(in srgb, var(--spruce) 18%, transparent); }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper-hi); padding: 8px 10px; border-radius: var(--r-s); font-size: 13px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .12s; z-index: 5; font-family: var(--tgfont); }
.tip.on { opacity: 1; }

/* ---------- Growth emulator ---------- */
.growth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: start; }
@media (max-width: 980px) { .growth-grid { grid-template-columns: minmax(0, 1fr); } }
.growth-side { display: grid; gap: 22px; }
.photo-msg { padding: 4px 4px 8px; }
.card-img { border-radius: 11px; overflow: hidden; background: #0B0A26; aspect-ratio: 4 / 5; }
.card-img svg { width: 100%; height: auto; display: block; }
.card-img.loading { opacity: .6; transition: opacity .2s; }
.photo-msg .cap { padding: 8px 8px 0; }
.photo-msg time { padding-right: 8px; }
.emu-note { font-size: 13px; color: var(--tg-sub); text-align: center; min-height: 1.4em; }
.guide { counter-reset: g; display: grid; gap: 14px; }
.guide li { counter-increment: g; position: relative; padding-left: 40px; color: var(--ink-2); font-size: 16px; }
.guide li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink); }
.guide b { color: var(--ink); }

/* ---------- Cleanup ---------- */
.clean { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); background: var(--paper-hi); border-radius: var(--r-l); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 900px) { .clean { grid-template-columns: minmax(0, 1fr); } }
.methods { border-right: 1px solid var(--line); padding: 10px; }
@media (max-width: 900px) {
  .methods { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: 6px; padding: 12px; scrollbar-width: thin; }
  .methods button { flex: none; width: auto !important; }
}
.methods button { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; background: transparent; border: 0; border-radius: var(--r-s); padding: 10px 12px; font-size: 15px; }
.methods button:hover { background: var(--paper); }
.methods button[aria-selected="true"] { background: var(--ink); color: var(--btn-ink); }
.methods .e { width: 22px; text-align: center; }
.methods .c { margin-left: auto; font-size: 13px; opacity: .7; padding-left: 10px; }
.mpane { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.mhead { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.mhead h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; }
.mhead p { color: var(--ink-2); max-width: 46ch; margin-top: 6px; font-size: 16px; }
.mcount { text-align: right; }
.mcount b { font-family: var(--display); font-size: clamp(36px, 4vw, 56px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--pink); display: block; }
.mcount span { font-size: 13px; color: var(--ink-3); }
.mvis { min-height: 120px; }
.dotrow { display: flex; flex-wrap: wrap; gap: 3px; }
.dotrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--spruce); transition: background-color .3s, opacity .3s, transform .3s; }
.dotrow i.hit { background: var(--pink); }
.dotrow i.spare { background: var(--gold); }
.dotrow i.gone { transform: scale(0); opacity: 0; }
.filters h4 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.flist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.tri { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px 6px 6px 12px; font-size: 14px; }
.tri .seg { padding: 2px; }
.tri .seg button { padding: 4px 9px; font-size: 12.5px; }
.mact { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mact .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
.mpane .note { font-size: 14px; color: var(--ink-3); }
.runbar { border-radius: var(--r-m); background: var(--paper); padding: 12px 14px; }
.runbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.runbar-track { height: 8px; border-radius: 4px; background: var(--paper-lo); overflow: hidden; }
.runbar-track i { display: block; height: 100%; width: 0; background: var(--pink); border-radius: 4px; }
.post-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 560px) { .post-demo { grid-template-columns: 1fr; } }
.ovl li { display: grid; grid-template-columns: minmax(0,1fr) 120px 44px; gap: 10px; align-items: center; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ovl .bar { height: 6px; background: var(--paper-lo); border-radius: 3px; overflow: hidden; }
.ovl .bar i { display: block; height: 100%; background: var(--spruce); }
.ovl li.gift .bar i { background: var(--pink); }
.ovl .pc { text-align: right; font-weight: 600; }
.recipes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: clamp(36px, 5vw, 56px); }
.recipes div { padding: 18px 0; border-top: 1px solid var(--line); }
.recipes h3 { font-size: 17px; margin-bottom: 4px; }
.recipes p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .recipes { grid-template-columns: 1fr; } }
.cmd { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--paper-lo); border-radius: 5px; padding: 1px 6px; }

/* ---------- Protection (dark) ---------- */
.attack { background: var(--night-2); border-radius: var(--r-l); padding: clamp(18px, 2.6vw, 30px); }
.attack-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.attack .key { color: var(--on-night-2); }
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; overflow: visible; }
.attack-log { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--night-line); border-radius: var(--r-m); overflow: hidden; margin-top: 18px; }
.attack-log div { background: var(--night-2); padding: 12px 14px; }
.attack-log b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; color: #fff; }
.attack-log span { font-size: 13px; color: var(--on-night-2); }
@media (max-width: 640px) { .attack-log { grid-template-columns: 1fr 1fr; } }
.prot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 980px) { .prot-grid { grid-template-columns: minmax(0, 1fr); } }
.actions-tbl { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); }
.actions-tbl div { padding: 22px 22px 22px 0; }
.actions-tbl div + div { padding-left: 22px; border-left: 1px solid var(--night-line); }
.actions-tbl h3 { font-size: 18px; margin-bottom: 6px; color: #fff; }
.actions-tbl p { font-size: 15px; color: var(--on-night-2); }
.actions-tbl .rec { color: var(--mint); font-size: 13px; font-weight: 600; display: block; margin-top: 8px; }
@media (max-width: 900px) {
  .actions-tbl { grid-template-columns: 1fr 1fr; }
  .actions-tbl div, .actions-tbl div + div { padding: 18px 16px 18px 0; border-left: 0; border-bottom: 1px solid var(--night-line); }
}
@media (max-width: 520px) { .actions-tbl { grid-template-columns: 1fr; } }
.shield { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(48px, 6vw, 88px); }
@media (max-width: 900px) { .shield { grid-template-columns: 1fr; } }
.shield > div > h3 { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; font-weight: 600; margin-bottom: 14px; color: #fff; }
.flt { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.flt li { padding: 12px 0; border-top: 1px solid var(--night-line); font-size: 15px; color: var(--on-night-2); }
.flt b { color: #fff; display: block; font-size: 16px; }
@media (max-width: 560px) { .flt { grid-template-columns: 1fr; } }
.captcha { background: var(--night-2); border-radius: var(--r-l); padding: 22px; }
.captcha h3 { color: #fff; }
.captcha .modes { margin-bottom: 16px; }
.cap-msg { background: #fff; color: #0F1D18; border-radius: 14px; padding: 14px; font-size: 15px; font-family: var(--tgfont); }
.cap-msg p { margin-bottom: 10px; }
.cap-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.cap-opts button { flex: 1 1 0; min-width: 72px; border: 0; border-radius: 10px; padding: 12px 8px; font-weight: 600; background: #E8EBE6; color: #0F1D18; font-size: 14px; }
.cap-opts button.color { height: 46px; }
.cap-opts button:hover { outline: 2px solid #0F1D18; }
.cap-res { margin-top: 10px; font-size: 14px; min-height: 1.5em; color: var(--on-night-2); }
.cap-note { color: var(--on-night-2); margin-top: 10px; }
.alias { margin-top: 20px; font-size: 15px; color: var(--on-night-2); }
.alias b { color: #fff; }

/* ---------- Requests ---------- */
.req-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 980px) { .req-grid { grid-template-columns: minmax(0, 1fr); } }
.req-chart { margin: 16px 0 8px; }
.req-chart svg { width: 100%; height: auto; }
.req-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.req-foot p { max-width: 44ch; color: var(--ink-2); }
.req-foot .btn { min-height: 44px; font-size: 15px; }
.req-flow { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.req-flow ol { counter-reset: s; display: grid; gap: 8px; }
.req-flow li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-s); background: var(--paper); font-size: 15px; }
.req-flow li::before { counter-increment: s; content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--btn-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.req-flow .r { margin-left: auto; font-weight: 600; }
.req-flow .ok { color: var(--spruce); }
.req-flow .no { color: var(--pink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--paper); font-size: 14px; border: 1px solid var(--line); }
.chip.on { background: var(--ink); color: var(--btn-ink); border-color: var(--ink); }
.req-side { display: grid; gap: 18px; }
.req-side h3 { margin-bottom: 8px; }
.req-side p { color: var(--ink-2); font-size: 15px; }

/* ---------- Similar + Export ---------- */
.dual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.dual > * { min-width: 0; }
@media (max-width: 980px) { .dual { grid-template-columns: minmax(0, 1fr); } }
.dual h2 { font-size: clamp(26px, 2.8vw, 40px); margin-bottom: 14px; }
.dual .lead { font-size: 17px; margin-bottom: 24px; }
.sim li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 54px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sim .ava { width: 34px; height: 34px; font-size: 12px; }
.sim .nm { font-size: 15px; font-weight: 500; display: flex; gap: 6px; align-items: center; min-width: 0; }
.sim .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim .sub { font-size: 12.5px; color: var(--ink-3); }
.sim .bar { height: 5px; background: var(--paper-lo); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.sim .bar i { display: block; height: 100%; background: var(--spruce); }
.sim li.gift .bar i { background: var(--pink); }
.sim .pc { font-family: var(--display); font-weight: 600; font-size: 17px; text-align: right; letter-spacing: -0.03em; }
.gift-note { font-size: 14px; color: var(--ink-2); margin-top: 14px; }
.gift-note b { color: var(--pink); }
.exp-cols { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.exp-cols button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 11px; font-size: 13.5px; }
.exp-cols button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--btn-ink); }
.file { background: var(--night); color: var(--on-night); border-radius: var(--r-m); padding: 16px; font-size: 13px; line-height: 1.6; overflow: auto; max-height: 260px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre; margin: 0; }
.file-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-name { font-size: 14px; color: var(--ink-2); }

/* ---------- Groups ---------- */
.grp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 980px) { .grp-grid { grid-template-columns: minmax(0, 1fr); } }
.chat-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chat { min-height: 0; }
.chat .msg { max-width: 92%; position: relative; transition: opacity .35s, transform .35s, max-height .4s, margin .4s, padding .4s; }
.chat .who { font-weight: 600; font-size: 13.5px; display: block; }
.chat .flag { display: none; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--pink-ink); background: var(--pink-wash); border-radius: 6px; padding: 4px 8px; width: fit-content; }
.chat.admin .msg.bad.hit { opacity: .8; }
.chat.admin .msg.bad.hit .body { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.chat.admin .msg.bad.hit .flag { display: block; animation: pop .3s ease-out; }
.chat.member .msg.bad.hit { display: none; }
.chat .sys { align-self: center; background: rgba(0, 0, 0, .35); color: #fff; font-size: 12.5px; border-radius: 999px; padding: 4px 12px; text-align: center; transition: opacity .35s; }
.chat.member .adm { display: none; }
.chat .pending { opacity: 0; transform: translateY(8px); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.topics h3 { margin-bottom: 12px; }
.tlist { display: flex; flex-wrap: wrap; gap: 6px; }
.tlist button { border: 1px solid var(--line); border-radius: 999px; background: var(--paper-hi); padding: 7px 12px; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.tlist button .st { width: 8px; height: 8px; border-radius: 50%; background: var(--spruce); }
.tlist button[aria-pressed="true"] .st { background: var(--pink); }
.tlist button[aria-pressed="true"] { border-color: var(--pink); }
.sens { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.modlist { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.modlist div { padding: 16px 0; border-top: 1px solid var(--line); }
.modlist h3 { font-size: 17px; margin-bottom: 4px; }
.modlist p { font-size: 15px; color: var(--ink-2); }
.modlist code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--paper-hi); border-radius: 5px; padding: 1px 6px; }
@media (max-width: 900px) { .modlist { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .modlist { grid-template-columns: 1fr; } }
.logpane { margin-top: 20px; }
.log-topics { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.log-topics span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--tg-kb); white-space: nowrap; }
.log-topics span.on { background: var(--ink); color: var(--btn-ink); }

/* ---------- Ecosystem ---------- */
.eco { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.eco > div { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); }
.eco > div:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.eco h3 { font-size: 18px; margin-bottom: 6px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.eco p { font-size: 15px; color: var(--ink-2); }
.eco .tag { font-size: 12px; font-weight: 600; color: var(--spruce); background: color-mix(in srgb, var(--spruce) 14%, transparent); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 900px) {
  .eco { grid-template-columns: 1fr 1fr; }
  .eco > div, .eco > div:not(:nth-child(3n+1)) { padding: 22px 20px 24px 0; border-left: 0; }
  .eco > div:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) { .eco { grid-template-columns: 1fr; } .eco > div:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* ---------- Time calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-in { display: grid; gap: 22px; }
.calc-in label { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline; }
.calc-in span { color: var(--on-night-2); font-size: 15px; }
.calc-in output { font-family: var(--display); font-weight: 600; font-size: 20px; color: #fff; letter-spacing: -0.03em; }
.calc-in input { grid-column: 1 / -1; width: 100%; accent-color: var(--mint); height: 28px; }
.calc-out { background: var(--night-2); border-radius: var(--r-l); padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; }
.calc-big { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.calc-big span { display: block; color: var(--on-night-2); font-size: 14px; }
.calc-big b { white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.04em; line-height: 1.05; display: block; }
.calc-big div:first-child b { color: var(--pink); }
.calc-big div:last-child b { color: var(--mint); }
.calc-big .arrow { color: var(--on-night-2); font-size: 28px; }
.calc-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; color: var(--on-night-2); padding: 7px 0; }
.calc-bars li b { color: #fff; font-weight: 600; }
.calc-bars .t { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--night-line); overflow: hidden; }
.calc-bars .t i { display: block; height: 100%; background: var(--pink); border-radius: 3px; transition: width .35s; }
.calc-how { color: var(--on-night-2); font-size: 14px; }
.calc-how summary { cursor: pointer; color: #fff; font-weight: 600; }
.calc-how ul { margin: 10px 0; display: grid; gap: 4px; list-style: disc; padding-left: 18px; }
.calc-out .btn { justify-self: start; }
@media (max-width: 560px) { .calc-out .btn { justify-self: stretch; } .calc-big { grid-template-columns: 1fr; } .calc-big .arrow { display: none; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: st; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--ink); font-family: var(--display); font-weight: 600; font-size: 20px; margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* ---------- Pricing ---------- */
.price-scroll { overflow-x: auto; border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); }
.price { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--paper-hi); }
.price th, .price td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
.price thead th { vertical-align: bottom; padding-top: 24px; padding-bottom: 18px; }
.price thead th b { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; display: block; }
.price thead th span { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.price td:not(:first-child), .price th:not(:first-child) { text-align: center; width: 19%; }
.price .pro { background: var(--night); color: var(--on-night); }
.price thead .pro span { color: var(--on-night-2); }
.price tfoot td { border-bottom: 0; padding: 18px; }
.price .y { color: var(--spruce); font-weight: 700; }
.price td.pro.y { color: var(--mint); }
.price .n { color: var(--ash); }
.price td.pro { border-bottom-color: var(--night-line); }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.pay h3 { font-size: 17px; margin-bottom: 4px; }
.pay p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 820px) { .pay { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 66ch; }
.faq a { color: var(--spruce); }

/* ---------- Final ---------- */
.final { padding: clamp(72px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.final canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.final .wrap { position: relative; }
.final h2 { font-size: clamp(36px, 5.6vw, 84px); max-width: 14ch; margin-bottom: 24px; color: #fff; }
.final .lead { margin-bottom: 32px; color: var(--on-night-2); }
.final .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.final .btn-ghost:hover { background: #fff; color: #08130F; }

.foot { padding: 40px 0 56px; font-size: 14px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .brand { color: var(--ink); font-size: 18px; margin-right: 0; }
.foot .copy { margin-left: auto; }

/* Mobile sticky CTA */
.mcta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; transform: translateY(140%); transition: transform .3s; display: none; }
.mcta .btn { width: 100%; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.mcta.on { transform: none; }
@media (max-width: 760px) { .mcta { display: block; } .foot { padding-bottom: 96px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ===================== v3: findings from visitor agents ===================== */
.hero-note { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; max-width: 56ch; }
.hero-note b { color: var(--ink); }
.routes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.routes span { color: var(--ink-3); margin-right: 2px; }
.routes a { text-decoration: none; padding: 7px 12px; border-radius: 999px; background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--line); }
.routes a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.facts-src { font-size: 12.5px; color: var(--ink-3); padding: 0 0 16px; max-width: 110ch; }

.term { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.pop { position: absolute; z-index: 70; max-width: 300px; background: var(--ink); color: var(--paper-hi); font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: var(--r-s); box-shadow: var(--shadow); }

.atk-note { margin-top: 14px; font-size: 14px; color: var(--on-night-2); }
.atk-note b { color: #fff; }
.dark .emu-note { color: var(--on-night-2); }
.kb-out:empty, .emu-note:empty { display: none; }
.emu-note { padding: 6px 4px 0; }
.dotk { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--spruce); vertical-align: 1px; }
.dotk.pink { background: var(--pink); }
.log-topics button { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--tg-kb); border: 0; white-space: nowrap; color: var(--tg-text); }
.log-topics button.on { background: var(--ink); color: var(--btn-ink); }

.grp-more { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(32px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .grp-more { grid-template-columns: minmax(0, 1fr); } }
.cmds { background: var(--paper-hi); border-radius: var(--r-l); padding: 18px 22px; }
.cmds summary, .rights summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.cmds[open] summary { margin-bottom: 10px; }
.tbl-scroll { overflow-x: auto; margin-top: 10px; }
.cmd-tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.cmd-tbl th, .cmd-tbl td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmd-tbl th { color: var(--ink-3); font-weight: 500; }
.cmd-tbl code, .cmds code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--paper-lo); border-radius: 5px; padding: 1px 5px; }
.diff h3 { margin-bottom: 12px; }
.diff ul { display: grid; gap: 10px; }
.diff li { font-size: 15px; color: var(--ink-2); padding-left: 18px; position: relative; }
.diff li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--spruce); }
.diff b { color: var(--ink); }

.rights { margin-top: 10px; font-size: 14px; }
.rights summary { font-size: 14px; color: var(--spruce); }
.rights ul { margin: 10px 0; display: grid; gap: 4px; }
.rights li { color: var(--ink-2); padding-left: 14px; position: relative; }
.rights li::before { content: "·"; position: absolute; left: 2px; font-weight: 700; }
.rights p { color: var(--ink-2); }
.flagd { font-size: 11px; font-weight: 600; color: var(--pink-ink); background: var(--pink-wash); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }

.tracks { margin-bottom: 28px; flex-wrap: wrap; border-radius: 22px; }
.tracks button { padding: 10px 16px; font-size: 15px; }
.track[hidden] { display: none; }
.steps-5 { grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); }
.steps-5 li::before { width: 44px; height: 44px; font-size: 17px; margin-bottom: 14px; }
.steps-5 h3 { font-size: 17px; }
.steps-5 p { font-size: 15px; }
@media (max-width: 1100px) { .steps-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .steps-5 { grid-template-columns: 1fr; } }
.track-tip { margin-top: 26px; padding: 16px 20px; border-radius: var(--r-m); background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); max-width: 90ch; }
.track-tip b { color: var(--ink); }

.perm { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.perm-row { padding: 22px 22px 24px 0; }
.perm-row + .perm-row { padding-left: 22px; border-left: 1px solid var(--line); }
.perm-row h3 { font-size: 17px; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.perm-row p { font-size: 15px; color: var(--ink-2); }
.perm .tag { font-size: 12px; font-weight: 600; color: var(--spruce); background: color-mix(in srgb, var(--spruce) 14%, transparent); padding: 2px 8px; border-radius: 999px; }
@media (max-width: 900px) {
  .perm { grid-template-columns: 1fr 1fr; }
  .perm-row, .perm-row + .perm-row { padding: 18px 16px 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .perm { grid-template-columns: 1fr; } }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(32px, 4vw, 48px); }
.trust-grid h3 { font-size: 17px; margin-bottom: 6px; }
.trust-grid p { font-size: 15px; color: var(--ink-2); }
.trust-grid a { color: var(--spruce); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

.price-period { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.price .pp { display: block; font-style: normal; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.03em; margin-top: 6px; }
.price tbody th { font-weight: 400; text-align: left; }
.price tbody th, .price thead th:first-child, .price tfoot td:first-child { position: sticky; left: 0; background: var(--paper-hi); z-index: 1; }
.scroll-hint { display: none; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
@media (max-width: 700px) {
  .scroll-hint { display: block; }
  .price tbody th, .price thead th:first-child { min-width: 150px; max-width: 150px; box-shadow: 1px 0 0 var(--line); }
}
.price-note { font-size: 14px; color: var(--ink-3); margin-top: 14px; max-width: 100ch; }
.price-note a { color: var(--spruce); }
.calc-plan { color: var(--on-night-2); font-size: 15px; }
.calc-plan b { color: #fff; }

/* ---------- v4: mobile pricing without sideways scroll, routes, links ---------- */
.inline-link { color: var(--spruce); }
@media (max-width: 700px) {
  .routes { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .routes a { padding: 11px 14px; }
  .price-period .seg { width: 100%; }
  .price-period .seg button { flex: 1 0 auto; padding: 8px 10px; }
  .scroll-hint { display: none; }
  .price-scroll { overflow: visible; box-shadow: none; border-radius: 0; }
  .price { min-width: 0; display: block; background: transparent; }
  .price thead, .price tbody, .price tfoot { display: block; }
  .price tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price thead tr { position: sticky; top: 68px; z-index: 2; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
  .price thead th:first-child, .price tfoot td:first-child { display: none; }
  .price tbody th { grid-column: 1 / -1; position: static; min-width: 0; max-width: none; box-shadow: none; background: transparent; padding: 14px 0 4px; border-bottom: 0; font-weight: 600; text-align: left; }
  .price td, .price thead th { padding: 8px 6px; text-align: center; font-size: 14px; background: var(--paper-hi); }
  .price thead th { padding: 12px 6px; }
  .price thead th b { font-size: 17px; }
  .price .pp { font-size: 15px; }
  .price tfoot tr { gap: 6px; margin-top: 14px; }
  .price tfoot td { padding: 0; background: transparent; }
  .price tfoot .btn { width: 100%; padding: 0 8px; font-size: 13px; }
  .price td.pro, .price th.pro { background: var(--night); }
}
@media (max-width: 700px) {
  .price td, .price th, .price td:not(:first-child), .price th:not(:first-child) { width: auto; }
  .price thead tr { gap: 0; }
  .price thead th b, .price thead th .pp, .price thead th span { overflow-wrap: anywhere; }
  .price thead th.pro, .price thead th.pro b, .price thead th.pro .pp, .price td.pro { color: var(--on-night); }
  .price thead th.pro span { color: var(--on-night-2); }
  .price td.pro.y { color: var(--mint); }
}
@media (max-width: 700px) { .price thead th b { font-size: 15px; overflow-wrap: normal; letter-spacing: -0.04em; } }
.top-cta { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 981px) { .nav a { padding: 8px 7px; font-size: 14px; } .top .wrap { gap: 10px; } }

/* ---------- Reviews ---------- */
.revs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 22px; align-items: start; }
.rev { margin: 0; }
.rev .msg { height: 100%; }
.rev .fwd { display: block; font-size: 13px; color: var(--tg-link); margin-bottom: 6px; }
.rev .fwd b { font-weight: 600; }
.rev blockquote { margin: 0; font-size: 15px; line-height: 1.5; }
@media (max-width: 560px) { .revs { padding: 12px; } }
