/* ---------- Tokens ---------- */
:root {
  --bg: #f2efe6;
  --surface: #fffdf7;
  --ink: #191b18;
  --muted: #4f544c;
  --line: #d6cfbf;
  --line-strong: #8f8775;
  --accent: #a8360a;
  --accent-ink: #ffffff;
  --accent-soft: #f6dccb;
  --ok: #1c6236;
  --error: #a3161a;
  --focus: #0b57d0;
  --slot: #e4ddcc;
  --code-bg: #1d211e;
  --code-ink: #e9e5da;
  --code-dim: #a9b0a5;
  --code-accent: #ffab7a;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 4px;
  --wrap: 72rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111513;
    --surface: #181d1a;
    --ink: #ebe8df;
    --muted: #a9aea5;
    --line: #2c3430;
    --line-strong: #59625c;
    --accent: #ff9a62;
    --accent-ink: #1a0b03;
    --accent-soft: #3a2116;
    --ok: #74d39a;
    --error: #ff8f8a;
    --focus: #8ab4ff;
    --slot: #232a26;
    --code-bg: #0b0e0c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111513;
  --surface: #181d1a;
  --ink: #ebe8df;
  --muted: #a9aea5;
  --line: #2c3430;
  --line-strong: #59625c;
  --accent: #ff9a62;
  --accent-ink: #1a0b03;
  --accent-soft: #3a2116;
  --ok: #74d39a;
  --error: #ff8f8a;
  --focus: #8ab4ff;
  --slot: #232a26;
  --code-bg: #0b0e0c;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 1.6rem; height: 1.6rem; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 0.5rem 0; }
.nav a:hover { text-decoration: underline; }
.nav .nav-hide { display: none; }
@media (min-width: 52rem) { .nav .nav-hide { display: inline; } }
.theme-toggle {
  font: inherit; font-size: 0.85rem; color: var(--ink); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.4rem 0.8rem; cursor: pointer;
  min-height: 2.5rem;
}
.theme-toggle:hover { background: var(--surface); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent); border-radius: var(--radius);
  padding: 0.75rem 1.25rem; min-height: 3rem;
}
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: center; } .hero { padding: 4.5rem 0; } }
.eyebrow { font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 7.5vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.price-tag { font-family: var(--font-mono); font-size: 0.95rem; color: var(--muted); }
.price-tag strong { color: var(--ink); font-size: 1.25rem; }

/* Terminal card */
.term { background: var(--code-bg); color: var(--code-ink); border-radius: 6px; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7; overflow: hidden; border: 1px solid var(--line); }
.term-bar { display: flex; gap: 0.4rem; padding: 0.6rem 0.8rem; border-bottom: 1px solid #2b322e; color: var(--code-dim); font-size: 0.75rem; }
.term pre { margin: 0; padding: 1rem; white-space: pre-wrap; word-break: break-word; }
.term .p { color: var(--code-accent); }
.term .d { color: var(--code-dim); }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
@media (min-width: 60rem) { section { padding: 5rem 0; } }
.section-head { display: grid; gap: 0.25rem; margin-bottom: 2rem; max-width: 46rem; }
.section-head .num { font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; }
.section-head p { color: var(--muted); margin: 0; }

/* Spec sheet */
.specs { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .specs { grid-template-columns: 1fr 1fr; } }
.sheet { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.sheet h3 { font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line-strong); }
.sheet dl { margin: 0; }
.sheet .row { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px dashed var(--line); }
.sheet .row:last-child { border-bottom: 0; }
.sheet dt { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); padding-top: 0.15rem; }
.sheet dd { margin: 0; }
.sheet .big { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }

/* Fit lists */
.fit { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .fit { grid-template-columns: 1fr 1fr; } }
.fit-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ok); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem; }
.fit-card.not { border-top-color: var(--error); }
.fit-card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.fit-card li { padding: 0.5rem 0 0.5rem 1.6rem; position: relative; border-bottom: 1px dashed var(--line); }
.fit-card li:last-child { border-bottom: 0; }
.fit-card li::before { content: "+"; position: absolute; left: 0.2rem; font-family: var(--font-mono); font-weight: 700; color: var(--ok); }
.fit-card.not li::before { content: "\2212"; color: var(--error); }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-mono); color: var(--accent); font-weight: 700; margin-bottom: 0.4rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Slot map */
.server { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .server { grid-template-columns: 1fr 1fr; align-items: start; } }
.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
@media (min-width: 30rem) { .slots { grid-template-columns: repeat(10, 1fr); } }
.slots span { aspect-ratio: 1; background: var(--slot); border: 1px solid var(--line); border-radius: 2px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); }
.slots-caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9rem; font-family: var(--font-mono); font-size: 1.2rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Form ---------- */
.signup { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .signup { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.25rem; }
@media (min-width: 48rem) { .form-card { padding: 2rem; } }
.field { margin-bottom: 1.25rem; }
.field label, .field legend { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.field .hint { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.req { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
input[type=email], input[type=text], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.7rem 0.8rem; min-height: 3rem;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - 0.8rem) 1.3rem; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.2rem; }
[aria-invalid=true] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
fieldset[aria-invalid=true] { box-shadow: none; }
.choices { display: grid; gap: 0.5rem; }
@media (min-width: 30rem) { .choices { grid-template-columns: 1fr 1fr; } }
.field .choice { font-weight: 500; margin: 0; }
.choice { display: flex; align-items: center; gap: 0.6rem; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.6rem 0.8rem; cursor: pointer; min-height: 3rem; background: var(--bg); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input, .consent input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; margin: 0; }
fieldset[aria-invalid=true] .choice { border-color: var(--error); }
.two { display: grid; gap: 0 1rem; }
@media (min-width: 30rem) { .two { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400 !important; }
.consent input { margin-top: 0.3rem; }
.error-msg { display: block; color: var(--error); font-size: 0.92rem; font-weight: 600; margin-top: 0.35rem; }
.error-msg::before { content: "! "; font-family: var(--font-mono); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-strong); }
.form-status.is-error { border-color: var(--error); color: var(--error); font-weight: 600; }
.notice { border: 1px dashed var(--line-strong); border-left: 4px solid var(--accent); padding: 0.75rem 1rem; margin-bottom: 1.25rem; font-size: 0.95rem; }
.thanks h3 { font-size: 1.5rem; }
.thanks .row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- Prose (privacy page) ---------- */
.prose { max-width: 46rem; padding: 3rem 0 4rem; }
.prose h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; border: 1px solid var(--line); padding: 0.5rem 0.6rem; vertical-align: top; }

/* ---------- Footer ---------- */
.site-footer { padding: 2rem 0 3rem; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--ink); }
