/* SFURO marketing — one shared stylesheet. Dark is the default theme; light
   is supported via prefers-color-scheme and a [data-theme] override. All
   colors flow through custom properties so the two themes stay in sync. */

:root {
  /* Brand constants */
  --red: #E22B2B;
  --red-tint: rgba(226, 43, 43, 0.10);
  --green: #46B078;

  /* Dark theme (default) */
  --bg: #0A0A0A;
  --bg-alt: #0D0D11;
  --card: #111116;
  --card-2: #16161c;
  --text: #ECEAE3;
  --muted: #8A8880;
  --border: rgba(236, 234, 227, 0.12);
  --border-strong: rgba(236, 234, 227, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  --display: 'Bebas Neue', 'Oswald', 'Anton', 'Haettenschweiler', 'Impact', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1120px;
  --radius: 14px;
}

:root[data-theme='light'] {
  --bg: #F5F3EE;
  --bg-alt: #EEEBE3;
  --card: #FFFFFF;
  --card-2: #FBFAF7;
  --text: #0A0A0A;
  --muted: #6B6A63;
  --border: rgba(10, 10, 10, 0.12);
  --border-strong: rgba(10, 10, 10, 0.22);
  --shadow: 0 18px 50px rgba(10, 10, 10, 0.10);
  --red-tint: rgba(226, 43, 43, 0.07);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #F5F3EE;
    --bg-alt: #EEEBE3;
    --card: #FFFFFF;
    --card-2: #FBFAF7;
    --text: #0A0A0A;
    --muted: #6B6A63;
    --border: rgba(10, 10, 10, 0.12);
    --border-strong: rgba(10, 10, 10, 0.22);
    --shadow: 0 18px 50px rgba(10, 10, 10, 0.10);
    --red-tint: rgba(226, 43, 43, 0.07);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* Display headings — the SFURO signature */
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-family: var(--body); font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--red);
  margin: 0 0 14px;
}

.mono, .plan-base, .plan-price, .plan-unit, .compare td, .compare th {
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* --- Nav ------------------------------------------------------------------ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 18px;
}
.brand {
  font-family: var(--display); font-size: 1.7rem; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.brand-mark { display: none; }
.brand-mark-tri { color: var(--red); font-size: 1.1rem; transform: rotate(0deg); }
/* CSS-only mobile menu: a visually-hidden checkbox toggled by the label. No JS, so it stays
   inside a strict script-src 'self' CSP. Hidden entirely on desktop (no phantom tab-stop);
   the media query re-enables it as a focusable, visually-hidden control on mobile. */
.nav-toggle-cb { display: none; }
.nav-toggle {
  margin-left: auto; background: none; border: 1px solid var(--border-strong);
  color: var(--text); font-size: 1.2rem; line-height: 1; border-radius: 8px; padding: 6px 12px;
  cursor: pointer; display: none;
}
.nav-links {
  margin-left: auto; display: flex; align-items: center; gap: 22px;
}
.nav-link {
  text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500;
}
.nav-link:hover, .nav-link[aria-current='page'] { color: var(--text); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem;
  padding: 12px 22px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; margin-top: auto; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c81f1f; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  background:
    radial-gradient(1200px 500px at 15% -10%, var(--red-tint), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--card) 60%, transparent), transparent 55%);
}
.hero-inner { max-width: 900px; }
.hero h1 { margin: 0 0 20px; }
.subhead {
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted);
  max-width: 640px; margin: 0 0 30px;
}

/* --- Sections ------------------------------------------------------------- */
.section { padding: clamp(48px, 7vw, 90px) 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { margin-bottom: 10px; }
.section-lead { color: var(--muted); max-width: 640px; margin: 6px 0 34px; }

/* --- Comparison table ----------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.95rem; }
.compare th, .compare td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare thead th { font-family: var(--body); font-weight: 700; font-size: 0.9rem; }
.compare tbody th { font-weight: 600; color: var(--text); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.feat-col { min-width: 180px; }
.sfuro-col { background: var(--red-tint); }
.compare thead .sfuro-col { color: var(--red); }
.cell-good { color: var(--green); font-weight: 600; }
.adv { color: var(--green); font-weight: 700; }
.footnote { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

/* --- Features ------------------------------------------------------------- */
.feature-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* --- Pricing -------------------------------------------------------------- */
.plan-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.plan-featured { border-color: var(--red); }
.plan-badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 12px; border-radius: 999px;
}
.plan-name { font-family: var(--display); font-size: 2rem; text-transform: uppercase; margin: 6px 0 2px; }
.plan-audience { color: var(--muted); font-size: 0.9rem; margin: 0 0 16px; }
.plan-price { margin: 0; }
.plan-base { font-family: var(--mono); font-size: 2.1rem; font-weight: 500; }
.plan-unit { font-family: var(--mono); color: var(--red); font-size: 0.95rem; margin: 4px 0 16px; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.plan-meta span {
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}
.plan-transfers { color: var(--text) !important; }
.plan-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.mod-chip {
  font-size: 0.74rem; background: var(--card-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 9px; color: var(--text);
}
.plan-bullets { list-style: none; padding: 0; margin: 0 0 22px; }
.plan-bullets li { position: relative; padding-left: 24px; margin-bottom: 9px; color: var(--muted); font-size: 0.94rem; }
.plan-bullets li::before {
  content: '\2713'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700;
}
.plan-common {
  list-style: none; padding: 18px 0 0; margin: 28px 0 0; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 26px;
}
.plan-common li { position: relative; padding-left: 20px; color: var(--muted); font-size: 0.9rem; }
.plan-common li::before { content: '\2022'; position: absolute; left: 4px; color: var(--red); }

/* --- Related strip -------------------------------------------------------- */
.related-strip {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.related-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; text-decoration: none; color: var(--text); font-weight: 600;
  transition: border-color 0.12s ease;
}
.related-card:hover { border-color: var(--red); }
.related-arrow { color: var(--red); font-size: 1.3rem; }

/* --- FAQ ------------------------------------------------------------------ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-a { padding: 0 0 18px; color: var(--muted); }
.faq-a p { margin: 0; }

/* --- Closing -------------------------------------------------------------- */
.closing {
  padding: clamp(56px, 8vw, 100px) 0;
  background:
    radial-gradient(900px 400px at 50% 120%, var(--red-tint), transparent 60%),
    var(--bg-alt);
  text-align: center;
}
.closing-inner { max-width: 720px; }
.closing h2 { margin-bottom: 14px; }
.closing p { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }
.closing .cta-row { justify-content: center; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--bg); }
.foot-top { display: grid; gap: 40px; grid-template-columns: 1.2fr 2fr; }
.foot-brand .brand { font-size: 1.6rem; text-decoration: none; }
.foot-tag { color: var(--muted); margin: 10px 0 18px; }
.foot-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.foot-col h4 {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; color: var(--muted); margin: 0 0 12px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { color: var(--text); text-decoration: none; font-size: 0.94rem; }
.foot-col a:hover { color: var(--red); }
.foot-legal {
  margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.86rem;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 820px) {
  .nav-toggle-cb {
    display: block; position: absolute; width: 1px; height: 1px; margin: -1px;
    padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
  }
  .nav-toggle { display: inline-block; }
  .nav-toggle-cb:focus-visible + .nav-toggle { outline: 2px solid var(--red); outline-offset: 2px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 24px; display: none;
  }
  .nav-toggle-cb:checked ~ .nav-links { display: flex; }
  .foot-top { grid-template-columns: 1fr; }
}

/* Prose documents (privacy, terms) — plain readable text, no marketing furniture. */
.prose-page { padding: 3rem 0 4rem; }
.prose-page h1 { margin-bottom: 0.5rem; }
.prose-page .prose-meta { color: var(--stone, #8A8880); font-size: 0.9rem; margin-bottom: 2rem; }
.prose-page h2 { margin-top: 2.25rem; margin-bottom: 0.75rem; font-size: 1.15rem; }
.prose-page p { margin-bottom: 0.9rem; line-height: 1.7; max-width: 42rem; }

/* ---- Status board (ADR 0562) ---- */
.status-page { --amber: #D9A441; }
.status-banner {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; margin-bottom: 1.5rem; font-weight: 600;
}
.status-banner--operational { border-color: var(--green); color: var(--green); }
.status-banner--degraded { border-color: var(--amber); color: var(--amber); }
.status-banner--down { border-color: var(--red); color: var(--red); background: var(--red-tint); }
.status-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.status-row {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; margin-bottom: 0.6rem;
}
.status-row > div { flex: 1; }
.status-dot {
  width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block;
  background: var(--muted);
}
.status-dot--operational { background: var(--green); }
.status-dot--degraded { background: var(--amber, #D9A441); }
.status-dot--down { background: var(--red); }
.status-name { margin: 0; font-weight: 600; }
.status-desc { margin: 0; color: var(--muted); font-size: 0.9rem; }
.status-state { font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.status-state--operational { color: var(--green); }
.status-state--degraded { color: var(--amber, #D9A441); }
.status-state--down { color: var(--red); }
.status-note { color: var(--muted); font-size: 0.85rem; }
.status-legend { margin-left: 0.5rem; }
.status-legend .status-dot { width: 9px; height: 9px; margin: 0 0.2rem 0 0.6rem; }
