/* Pat Host - www.pathost.xyz
   Plain CSS, no build step. Tokens first, then layout, components, pages. Dark theme only. */

:root {
  color-scheme: dark;
  --bg: #0a0f0c;
  --bg-2: #0d1410;
  --surface: #111a15;
  --surface-2: #16221b;
  --surface-3: #1c2b22;
  --line: #22322a;
  --line-2: #2f463a;
  --text: #e9f2ec;
  --muted: #a6baad;
  --faint: #839a8c;
  --green: #3ddc6b;
  --green-2: #2fbf59;
  --green-ink: #04210d;
  --green-soft: rgba(61, 220, 107, 0.12);
  --amber: #f2b84b;
  --amber-soft: rgba(242, 184, 75, 0.12);
  --red: #ff8080;
  --red-soft: rgba(255, 128, 128, 0.12);
  --java: #f5a35c;
  --bedrock: #62d2f0;
  --discord: #5865f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", var(--font-body);
  --font-pixel: "Silkscreen", ui-monospace, monospace;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: 16px;
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* pixel grid + glow behind everything, very faint */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(61, 220, 107, 0.13), transparent 70%),
    radial-gradient(700px 420px at 100% 0%, rgba(98, 210, 240, 0.06), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
}

main { flex: 1; }
section[id], [id="server-browser"] { scroll-margin-top: 80px; }

img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #7ff0a0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
code, .mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

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

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--green); color: var(--green-ink); font-weight: 800;
  padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip:focus { top: 8px; }

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

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-family: var(--font-display);
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 9px; display: block; }
.brand span b { color: var(--green); font-weight: 800; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--green-soft); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--green-ink); background: var(--green); }

.menu-btn {
  display: none; margin-left: auto;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; font: inherit; font-weight: 700;
  align-items: center; gap: 8px;
}
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 859px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10, 15, 12, 0.97); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: var(--radius-sm); }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  --b: var(--surface-3);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 0.95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  color: var(--text); background: var(--b);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 13px 18px;
  /* blocky "pressed" edge */
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:hover { color: var(--text); filter: brightness(1.12); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green); border-color: #59e683; color: var(--green-ink); }
.btn-primary:hover { color: var(--green-ink); }
.btn-discord { background: var(--discord); border-color: #7984ff; color: #fff; }
.btn-discord:hover { color: #fff; }
.btn-sm { padding: 9px 13px; font-size: 0.88rem; }
.btn-ghost { background: transparent; }

.link-arrow { font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ type helpers */
.eyebrow {
  font-family: var(--font-pixel); font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--green); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; background: var(--green);
  box-shadow: 8px 0 0 rgba(61, 220, 107, 0.45), 16px 0 0 rgba(61, 220, 107, 0.2);
  margin-right: 16px;
}
.lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-head { display: grid; gap: 12px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; text-wrap: balance; }
.section-head.center { text-align: center; justify-items: center; }
.section-head.center .lede { margin: 0 auto; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 32px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
}
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); font-weight: 800; margin: 14px 0 16px; text-wrap: balance; }
.hero h1 .accent { color: var(--green); }

.join-card {
  margin-top: 26px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  max-width: 560px;
}
.join-label { font-size: 0.85rem; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.join-addr {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 6px 0 14px; flex-wrap: wrap;
}
.join-addr .mono { font-size: clamp(1.35rem, 5vw, 1.9rem); font-weight: 700; color: var(--text); word-break: break-all; }
.ports { display: grid; gap: 10px; }
@media (min-width: 520px) { .ports { grid-template-columns: 1fr 1fr; } }
.port {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 10px 10px 12px;
}
.port small { display: block; color: var(--faint); font-size: 0.78rem; font-weight: 700; }
.port .mono { font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* copy button */
.copy {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 7px 10px; font: 800 0.82rem/1 var(--font-body); cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}
.copy:hover { border-color: var(--green); }
.copy svg { width: 15px; height: 15px; }
.copy.done { background: var(--green); color: var(--green-ink); border-color: var(--green); }

/* hub menu mock (right side of the hero) */
.hub-visual {
  position: relative; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
}
.hub-visual-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hub-visual-top svg { width: 40px; height: 40px; flex: none; }
.hub-visual-top strong { font-family: var(--font-display); display: block; }
.hub-visual-top span { color: var(--faint); font-size: 0.88rem; }
.slots {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px;
  background: #2b2f2d; padding: 6px; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #444a47;
}
.slot {
  aspect-ratio: 1; background: #1a1e1c; border-radius: 2px;
  box-shadow: inset 2px 2px 0 #121514, inset -2px -2px 0 #2d3330;
  display: grid; place-items: center;
}
.slot i { width: 58%; height: 58%; display: block; border-radius: 2px; }
.slot .g { background: linear-gradient(#4fb35a 0 35%, #7a4f2c 35%); }
.slot .s { background: radial-gradient(circle, #fff 0 20%, #d9b8ff 21% 45%, transparent 46%); }
.slot .e { background: radial-gradient(circle, #9fe7ff 0 30%, #2aa1c4 31% 55%, transparent 56%); }
.slot .b { background: #444; box-shadow: inset 3px 3px 0 #666, inset -3px -3px 0 #222; }
.slot.hl { box-shadow: inset 0 0 0 2px var(--green); background: #20302a; }
.hub-caption { margin-top: 12px; font-size: 0.88rem; color: var(--faint); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hub-caption b { color: var(--text); }

/* steps */
.steps { display: grid; gap: 12px; counter-reset: step; margin-top: 8px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; position: relative;
}
.step-num {
  font-family: var(--font-pixel); color: var(--green-ink); background: var(--green);
  width: 30px; height: 30px; display: grid; place-items: center; font-size: 0.95rem;
  border-radius: 4px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.step h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }
.note-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--muted);
}
.chip .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.chip .dot.java { background: var(--java); }
.chip .dot.bedrock { background: var(--bedrock); }

/* ------------------------------------------------------------------ server browser */
.browser-bar {
  display: grid; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 16px;
}
@media (min-width: 900px) { .browser-bar { grid-template-columns: 1fr auto auto; } }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 12px;
}
.search:focus-within { border-color: var(--green); }
.search svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.search input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text);
  font: 600 1rem var(--font-body); padding: 11px 0;
}
.search input:focus { outline: none; }
.search input::placeholder { color: var(--faint); }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 3px; }
.seg button {
  background: transparent; border: 0; color: var(--muted); font: 800 0.9rem var(--font-body);
  padding: 8px 12px; border-radius: 6px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 rgba(0,0,0,.3); }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.browser-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  color: var(--faint); font-size: 0.9rem; margin: 0 2px 14px;
}
.browser-meta b { color: var(--text); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; }
.live-dot.stale { background: var(--amber); }

.server-grid { display: grid; gap: 12px; }
@media (min-width: 680px) { .server-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .server-grid { grid-template-columns: repeat(3, 1fr); } }

.server {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.server.featured { border-color: rgba(242, 184, 75, 0.45); background: linear-gradient(180deg, rgba(242,184,75,0.06), transparent 60%), var(--surface); }
.server-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.server h3 { font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.server h3 .star { color: var(--amber); margin-right: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted);
}
.badge.java { color: var(--java); border-color: rgba(245, 163, 92, 0.4); }
.badge.bedrock { color: var(--bedrock); border-color: rgba(98, 210, 240, 0.4); }
.badge.feat { color: var(--amber); border-color: rgba(242, 184, 75, 0.45); }
.status {
  flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 0.82rem; font-weight: 800; padding: 4px 9px; border-radius: 999px;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.online { color: var(--green); background: var(--green-soft); }
.status.sleeping { color: var(--amber); background: var(--amber-soft); }
.status.offline { color: var(--red); background: var(--red-soft); }
.status.unknown { color: var(--bedrock); background: rgba(98, 210, 240, 0.1); }
.motd { color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.addr-list { display: grid; gap: 6px; margin-top: auto; }
.addr {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 7px 7px 10px;
}
.addr .mono { font-size: 0.9rem; overflow-wrap: anywhere; min-width: 0; }
.addr small { color: var(--faint); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; display: block; letter-spacing: .04em; }
.hint { font-size: 0.82rem; color: var(--faint); }
.hint b { color: var(--muted); font-family: var(--font-mono); font-weight: 600; }

.browser-empty, .browser-error {
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--muted);
}
.browser-error h3 { color: var(--text); margin-bottom: 8px; font-size: 1.15rem; }
.browser-more { display: flex; justify-content: center; margin-top: 16px; }
.skeleton { height: 158px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ feature panels */
.split { display: grid; gap: 20px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
@media (min-width: 720px) { .panel { padding: 32px; } }
.panel h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; margin: 10px 0 10px; }
.panel.green { background: linear-gradient(160deg, rgba(61,220,107,0.14), rgba(61,220,107,0.02) 60%), var(--surface); border-color: rgba(61,220,107,0.35); }
.panel.discord { background: linear-gradient(160deg, rgba(88,101,242,0.22), rgba(88,101,242,0.04) 60%), var(--surface); border-color: rgba(121,132,255,0.4); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.ticks li::before {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; background: var(--green);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}
.ticks li span { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.stat span { color: var(--faint); font-size: 0.82rem; font-weight: 700; }
.panel .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.cards { display: grid; gap: 12px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.link-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.link-card:hover { color: var(--text); border-color: var(--green); transform: translateY(-2px); }
.link-card h3 { font-size: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.link-card h3 svg { width: 18px; height: 18px; color: var(--green); }
.link-card p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }

/* ------------------------------------------------------------------ pricing */
.page-hero { padding: 48px 0 8px; }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 800; margin: 12px 0 12px; }
.fx-note { font-size: 0.88rem; color: var(--faint); margin-top: 12px; }

.plans { display: grid; gap: 14px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
}
.plan.hot { border-color: rgba(61, 220, 107, 0.55); box-shadow: 0 12px 36px rgba(61, 220, 107, 0.08); }
.plan-tag {
  position: absolute; top: 14px; right: 14px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 4px 8px; border-radius: 4px; background: var(--surface-3); color: var(--text);
}
.plan.hot .plan-tag { background: var(--green); color: var(--green-ink); }
.plan-art { width: 92px; height: 92px; margin: 4px 0 10px; }
.plan h3 { font-size: 1.45rem; font-weight: 800; }
.plan .note { color: var(--faint); font-size: 0.92rem; margin-top: 2px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.price b { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.price span { color: var(--faint); font-weight: 700; }
.plan .ticks { margin: 12px 0 20px; flex: 1; }
.plan .btn { width: 100%; }

.builder { display: grid; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
@media (min-width: 960px) { .builder { grid-template-columns: 1.15fr 0.85fr; } }
.builder-controls { padding: 22px; display: grid; gap: 26px; align-content: start; }
@media (min-width: 720px) { .builder-controls { padding: 32px; } }
.builder-summary { padding: 22px; background: var(--bg-2); border-top: 1px solid var(--line); display: flex; flex-direction: column; }
@media (min-width: 720px) { .builder-summary { padding: 32px; } }
@media (min-width: 960px) { .builder-summary { border-top: 0; border-left: 1px solid var(--line); } }
.slider-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.slider-head label { font-weight: 800; }
.slider-val { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 800; }
.slider-val input {
  width: 84px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--text); font: 700 1rem var(--font-body); padding: 6px 8px; text-align: right;
}
.slider-val input:focus { border-color: var(--green); outline: none; }
.slider-val small { color: var(--faint); font-weight: 700; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green) var(--fill, 50%), var(--surface-3) var(--fill, 50%));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 4px; background: #f4fff7;
  border: 3px solid var(--green-2); box-shadow: 0 2px 0 rgba(0,0,0,.4);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 4px; background: #f4fff7; border: 3px solid var(--green-2);
}
.range-ends { display: flex; justify-content: space-between; color: var(--faint); font-size: 0.8rem; margin-top: 6px; font-weight: 700; }
.region-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.region-pick button {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted);
  font: 800 0.92rem var(--font-body); padding: 9px 14px; border-radius: 999px;
}
.region-pick button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.flag { width: 24px; height: 16px; border-radius: 2px; flex: none; display: block; }
.summary-list { margin: 18px 0 0; display: grid; gap: 10px; }
.summary-list div { display: flex; justify-content: space-between; gap: 12px; }
.summary-list dt { color: var(--faint); }
.summary-list dd { margin: 0; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.total { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.total b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.builder-summary .btn { margin-top: 20px; }

.regions { display: grid; gap: 14px; }
@media (min-width: 760px) { .regions { grid-template-columns: 1fr 1fr; } }
.region { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.region-head { display: flex; align-items: center; gap: 14px; }
.region-head .flag { width: 48px; height: 32px; }
.region-head small { font-family: var(--font-pixel); color: var(--green); font-size: 0.8rem; display: block; }
.region-head h3 { font-size: 1.35rem; }
.region-head .badge { white-space: nowrap; }
.region p { color: var(--muted); margin-top: 12px; }
.region p.ping { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; margin-top: 14px; color: var(--text); }
.region p.ping-note { color: var(--faint); font-size: 0.88rem; margin-top: 0; }

.order-steps { display: grid; gap: 12px; }
@media (min-width: 640px) { .order-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .order-steps { grid-template-columns: repeat(4, 1fr); } }

.faq { display: grid; gap: 10px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; align-items: start; } }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 800;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-family: var(--font-pixel); }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

.reviews { display: grid; gap: 12px; }
@media (min-width: 800px) { .reviews { grid-template-columns: 1fr 1fr; } }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; }
.review blockquote { margin: 0; color: var(--text); }
.review figcaption { margin-top: 14px; color: var(--faint); font-size: 0.88rem; }
.review figcaption b { color: var(--text); }

/* ------------------------------------------------------------------ legal */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 0 72px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin-top: 12px; }
.legal-date { color: var(--faint); margin-top: 8px; font-weight: 700; }
.legal-intro { color: var(--muted); font-size: 1.1rem; margin-top: 18px; }
.doc .meta { color: var(--faint); font-size: .9rem; margin: 6px 0 0; }   /* 2026-11-28: guide dates */
.legal-toc {
  margin: 28px 0 8px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.legal-toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2 220px; column-gap: 28px; }
.legal-toc li { margin: 3px 0; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--green); }
.legal section { margin-top: 34px; scroll-margin-top: 84px; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.legal section p { color: #d3e0d7; margin-top: 10px; }
.legal-back { margin-top: 40px; }

/* ------------------------------------------------------------------ 404 */
.notfound { text-align: center; padding: 80px 0 96px; display: grid; justify-items: center; gap: 16px; }
.notfound .code { font-family: var(--font-pixel); color: var(--green); font-size: clamp(3.5rem, 14vw, 6rem); line-height: 1; }
.notfound h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(13, 20, 16, 0.7); margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; padding: 40px 0 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid p { color: var(--faint); font-size: 0.92rem; margin-top: 12px; max-width: 36ch; }
.footer-grid h2 { font-family: var(--font-pixel); font-size: 0.8rem; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-grid a:hover { color: var(--green); }
.footer-base {
  border-top: 1px solid var(--line); padding: 16px 0 28px; color: var(--faint); font-size: 0.85rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
}

/* toast for copy feedback (screen readers get the live region) */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--green); color: var(--green-ink); font-weight: 800; padding: 10px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); transition: opacity 0.2s ease, transform 0.2s ease; z-index: 90; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

noscript .browser-error { margin-top: 0; }

/* ------------------------------------------------------------------ content pages: about, contact, faq, guides */
@media (max-width: 1099px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10, 15, 12, 0.97); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: var(--radius-sm); }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
.crumbs { font-size: 0.9rem; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.doc ul, .doc ol { color: #d3e0d7; margin: 10px 0 0; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc h3 { font-size: 1.05rem; font-weight: 700; margin-top: 22px; }
.doc code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; }
.doc .tip { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: var(--radius-sm); color: #d3e0d7; }
.doc .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.faq-group { margin-top: 34px; }
.faq-group h2 { font-size: 1.3rem; margin-bottom: 12px; }
