/* Multi-SFM website. One file, no framework.
   Colours: near-black, charcoal, white, one red accent (used sparingly).
   Contrast: body text and buttons meet WCAG AA on their backgrounds. */

:root {
  --bg: #0b0b0d;
  --bg-2: #101013;
  --surface: #151519;
  --surface-2: #1b1b20;
  --surface-3: #222228;
  --border: #25252c;
  --border-strong: #33333c;
  --text: #f4f4f5;
  --muted: #a6a6b0;
  --faint: #81818c;
  --red: #d1262b;          /* buttons (white text on it: 5.2:1) */
  --red-hover: #e0353a;
  --red-text: #ff5a5f;     /* red text on the dark background (6:1) */
  --red-soft: rgba(209, 38, 43, 0.12);
  --green: #4ade80;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
          Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui,
                  -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas, ui-monospace, monospace;
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
/* Classes such as .btn set display, which would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(244, 244, 245, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
ul, ol { padding: 0; margin: 0; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }
code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  word-break: break-word;
}
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* --- header ---------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(37, 37, 44, 0.7);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em;
}
.brand-dash { color: var(--red-text); margin: 0 1px; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; list-style: none; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px;
  background: var(--red);
}
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 16px var(--gutter) 22px;
    background: rgba(11, 11, 13, 0.97); border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a:not(.btn) { padding: 12px 10px; font-size: 17px; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { background: var(--surface); }
  .nav-cta { justify-content: center; }
}
.no-js .site-nav { display: flex; }

/* --- buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
              transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-3); border-color: #44444e; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 13px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--surface-2); color: var(--faint); border-color: var(--border);
  cursor: not-allowed; transform: none;
}
.btn-meta { font-weight: 500; opacity: 0.75; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- sections ----------------------------------------------------------------- */

.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.6) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  color: var(--red-text); font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -0.035em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

.page-hero { padding: clamp(64px, 9vw, 112px) 0 clamp(36px, 5vw, 56px); position: relative; }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -0.04em; }
.page-hero p.lead { margin-top: 18px; max-width: 680px; color: var(--muted); font-size: 19px; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 260px at 15% 0%, rgba(209, 38, 43, 0.12), transparent 70%);
}

/* --- home hero ---------------------------------------------------------------- */

.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 380px at 82% 18%, rgba(209, 38, 43, 0.16), transparent 70%),
    radial-gradient(520px 320px at 8% 92%, rgba(255, 255, 255, 0.04), transparent 70%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-size: clamp(48px, 8.4vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.98;
}
.hero h1 .accent { color: var(--red-text); }
.hero .lead { margin: 26px 0 34px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--faint); }
.hero-visual { position: relative; }
.figure-label {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 12.5px; color: var(--faint); letter-spacing: 0.02em;
}
.figure-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .lead { max-width: none; }
}

/* the viewport illustration */
.viewport {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #121216, #0c0c0f);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.viewport-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: #111115;
  font-size: 12px; color: var(--faint);
}
.viewport-bar .dots { display: flex; gap: 6px; }
.viewport-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: #2c2c33; }
.viewport-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.viewport-bar .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}
.viewport svg { width: 100%; height: auto; }
.playhead { animation: playhead 9s linear infinite; }
.playhead.p2 { animation-duration: 13s; animation-delay: -4s; }
.cam-drift { animation: drift 7s ease-in-out infinite alternate; }
.cam-drift.d2 { animation-duration: 9s; animation-delay: -3s; }
@keyframes playhead { from { transform: translateX(0); } to { transform: translateX(var(--travel, 300px)); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(8px, -5px); } }

/* --- cards and features -------------------------------------------------------------- */

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #131317);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.015em; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card .icon {
  width: 44px; height: 44px; margin-bottom: 20px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text);
}
.card .icon svg { width: 22px; height: 22px; }
.card .icon.red { background: var(--red-soft); border-color: rgba(209, 38, 43, 0.35); color: var(--red-text); }
.tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; vertical-align: middle;
  background: var(--surface-3); color: var(--muted); border: 1px solid var(--border-strong);
}
.tag-red { background: var(--red-soft); color: var(--red-text); border-color: rgba(209, 38, 43, 0.35); }

.feature-block {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px);
  align-items: start; padding: 56px 0; border-top: 1px solid var(--border);
}
.feature-block:first-of-type { border-top: 0; padding-top: 8px; }
.feature-block h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.feature-block .intro { margin-top: 14px; color: var(--muted); font-size: 17px; }
@media (max-width: 860px) { .feature-block { grid-template-columns: minmax(0, 1fr); } }

.checks { list-style: none; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 28px; color: #d9d9de; font-size: 15.5px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red-soft); border: 1px solid rgba(209, 38, 43, 0.5);
}
.checks li::after {
  content: ""; position: absolute; left: 6.5px; top: calc(0.42em + 3.5px); width: 4px; height: 7px;
  border: solid var(--red-text); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}

.role-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.role-list li {
  padding: 14px 16px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border);
}
.role-list strong { display: block; font-size: 15px; }
.role-list span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
@media (max-width: 560px) { .role-list { grid-template-columns: minmax(0, 1fr); } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; }
.steps li {
  counter-increment: step; position: relative; padding: 26px 24px 24px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 13px; color: var(--red-text); letter-spacing: 0.08em;
}
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* --- interface preview (illustration) ------------------------------------------------ */

.mock {
  border-radius: 16px; background: #121216; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); overflow: hidden; font-size: 14px;
}
.mock-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.mock-head strong { font-size: 16px; }
.mock-head strong, .mock-sync { white-space: nowrap; }
@media (max-width: 420px) { .mock-id { display: none; } }
.mock-id { font-family: var(--font-mono); color: var(--muted); font-size: 13px; }
.mock-sync {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px;
  border-radius: 999px; background: rgba(74, 222, 128, 0.08); color: #86efac; font-size: 12.5px; font-weight: 600;
}
.mock-sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.mock-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.mock-players { padding: 10px; border-right: 1px solid var(--border); }
.mock-player { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.mock-player + .mock-player { margin-top: 2px; }
.mock-player:nth-child(odd) { background: #16161b; }
.avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff;
}
.mock-player .who { min-width: 0; }
.mock-player .who b { display: block; font-size: 14px; }
.mock-player .who span { display: block; color: var(--muted); font-size: 12.5px; }
.mock-player .ping { margin-left: auto; color: var(--faint); font-family: var(--font-mono); font-size: 12px; }
.mock-chat { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { padding: 9px 12px; border-radius: 10px; background: #18181d; border: 1px solid var(--border); font-size: 13px; color: #d4d4d8; }
.bubble b { color: var(--text); font-weight: 600; margin-right: 4px; }
.mock-note { color: var(--faint); font-size: 12.5px; margin-top: auto; }
@media (max-width: 640px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-players { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* --- pricing --------------------------------------------------------------------------- */

.billing {
  display: inline-flex; padding: 4px; border-radius: 12px; gap: 4px; margin-bottom: 36px;
  background: var(--surface); border: 1px solid var(--border-strong);
}
.billing-option {
  min-height: 40px; padding: 8px 18px; border-radius: 9px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600;
}
.billing-option[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.no-js .billing { display: none; }
/* The key check runs only in the browser; without JavaScript it could not work. */
.no-js .checker-block { display: none; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 28px;
  border-radius: 18px; background: linear-gradient(180deg, var(--surface), #121216);
  border: 1px solid var(--border);
}
.plan-pro { border-color: rgba(209, 38, 43, 0.55); box-shadow: 0 0 0 1px rgba(209, 38, 43, 0.18), var(--shadow); }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan-summary { color: var(--muted); margin: 0; font-size: 15px; min-height: 2.9em; }
.plan-players { margin: 0; font-weight: 600; font-size: 15px; }
.plan .checks { margin: 4px 0 8px; flex: 1; align-content: start; }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -0.04em; }
.price .unit { color: var(--muted); font-size: 15px; }
.price-soon { font-size: 18px; font-weight: 700; color: var(--muted); min-height: 63px; align-items: center; }
.plan-badge {
  position: absolute; top: 18px; right: 18px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--muted);
  border: 1px solid var(--border-strong);
}
.buy-note { margin: 0; font-size: 13px; color: var(--faint); text-align: center; }
/* Without JavaScript there is no switch, so both prices and buttons stay readable. */
.no-js .plans [data-period][hidden] { display: flex !important; }
.pricing-foot { margin-top: 28px; color: var(--muted); font-size: 15px; text-align: center; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table-hint { display: none; margin: 0 0 10px; color: var(--faint); font-size: 14px; }
@media (max-width: 700px) { .table-hint { display: block; } }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--surface-2); font-size: 14px; color: var(--muted); font-weight: 600; }
.compare tbody th { font-weight: 500; color: #d9d9de; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td.yes::before { content: "Yes"; color: var(--text); font-weight: 600; }
.compare td.no::before { content: "\2014"; color: var(--faint); }
.compare tbody tr:nth-child(even) { background: #121216; }

/* --- download, docs, FAQ ------------------------------------------------------------- */

.download-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 32px; border-radius: 18px; background: linear-gradient(135deg, #18181d, #121215);
  border: 1px solid var(--border-strong);
}
.download-panel dl { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 16px 0 0; }
.download-panel dt { font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.download-panel dd { margin: 2px 0 0; font-weight: 600; }
.download-panel .note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--faint); }
@media (max-width: 720px) { .download-panel { grid-template-columns: minmax(0, 1fr); } }

.instructions { counter-reset: ins; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.instructions > li {
  counter-increment: ins; position: relative; padding: 18px 20px 18px 64px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.instructions > li::before {
  content: counter(ins); position: absolute; left: 20px; top: 18px; width: 28px; height: 28px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--red-soft); color: var(--red-text); border: 1px solid rgba(209, 38, 43, 0.4);
}
.instructions h3 { font-size: 17px; margin-bottom: 6px; }
.instructions p { margin: 0; color: var(--muted); }
.path {
  display: block; margin-top: 10px; padding: 12px 14px; border-radius: 10px; overflow-x: auto;
  background: #0e0e11; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 13.5px;
  color: #e4e4e7; white-space: nowrap;
}

.release { padding: 24px 0; border-top: 1px solid var(--border); }
.release:first-child { border-top: 0; padding-top: 0; }
.release h3 { font-size: 20px; display: flex; gap: 12px; align-items: baseline; }
.release time { font-size: 14px; color: var(--faint); font-weight: 500; }
.release-title { margin: 4px 0 10px; color: var(--muted); }
.release ul { padding-left: 20px; color: #d4d4d8; }
.release li { margin: 4px 0; }

.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc-toc { position: sticky; top: 92px; display: grid; gap: 2px; font-size: 15px; }
.doc-toc a { padding: 7px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.doc-toc a:hover { background: var(--surface); color: var(--text); }
.doc-section { padding-bottom: 48px; }
.doc-section + .doc-section { border-top: 1px solid var(--border); padding-top: 48px; }
.doc-section h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-bottom: 18px; letter-spacing: -0.025em; }
.doc-section h3 { font-size: 18px; margin: 26px 0 8px; }
.doc-section p, .doc-section li { color: #cfcfd5; }
.doc-section ul, .doc-section ol { padding-left: 22px; }
.doc-section li { margin: 6px 0; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } .doc-toc { position: static; display: flex; flex-wrap: wrap; } }

.callout {
  padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong);
  border-left: 3px solid var(--red); color: #d4d4d8; margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* the key format checker (support page) */
.checker { display: grid; gap: 10px; max-width: 560px; }
.checker label { font-weight: 600; }
.checker .row { display: flex; gap: 10px; flex-wrap: wrap; }
.checker input {
  flex: 1 1 260px; min-height: 46px; padding: 10px 14px; border-radius: 10px;
  background: #0e0e11; border: 1px solid var(--border-strong); color: var(--text);
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.04em;
}
.checker input:focus { outline: none; border-color: var(--red-text); box-shadow: 0 0 0 3px var(--red-soft); }
.checker input[aria-invalid="true"] { border-color: #f87171; }
.checker-result { min-height: 1.6em; margin: 0; font-size: 15px; }
.checker-result.ok { color: #86efac; }
.checker-result.bad { color: #fca5a5; }
.hint { font-size: 14px; color: var(--faint); margin: 0; }

/* --- legal ------------------------------------------------------------------------------- */

.legal { max-width: 780px; }
.legal h2 { font-size: 24px; margin: 44px 0 14px; letter-spacing: -0.02em; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: #cfcfd5; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
mark.required {
  background: rgba(217, 166, 43, 0.15); color: #fcd34d; border: 1px dashed rgba(252, 211, 77, 0.55);
  border-radius: 5px; padding: 0 5px; font-weight: 600;
}
.draft-banner {
  margin: 0 0 32px; padding: 16px 18px; border-radius: 12px;
  background: rgba(217, 166, 43, 0.08); border: 1px solid rgba(252, 211, 77, 0.35); color: #fde68a;
}

/* --- final CTA, footer -------------------------------------------------------------- */

.cta-band {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 64px); border-radius: 22px;
  background: linear-gradient(135deg, #17171c 0%, #111114 100%); border: 1px solid var(--border-strong);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 220px at 100% 0%, rgba(209, 38, 43, 0.16), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.035em; }
.cta-band p { margin: 12px 0 0; color: var(--muted); }
@media (max-width: 760px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

.site-footer { margin-top: var(--section); border-top: 1px solid var(--border); background: #09090b; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 36px;
  padding-top: 56px; padding-bottom: 40px;
}
.footer-about p { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer-col h2 { font-size: 13px; font-family: var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: #c9c9cf; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-col li.muted { font-size: 14px; }
.footer-bottom { padding-bottom: 32px; color: var(--faint); font-size: 13.5px; }
.footer-bottom p { margin: 0; padding-top: 22px; border-top: 1px solid var(--border); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- reveal on scroll (only with JavaScript and without reduced motion) ----------------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
