/* ── Fonts ─────────────────────────────────── */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/PlusJakartaSans.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/JetBrainsMono.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2");
}

/* ── Tokens ────────────────────────────────── */
:root {
  --bg: #070b12;
  --surface: #0c1220;
  --surface-2: #111827;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --fg: #e2e8f5;
  --muted: #6b7a99;
  --faint: #3a4a63;
  --faintest: #2a3a52;
  --emerald: #00e5a0;
  --emerald-dim: rgba(0, 229, 160, 0.12);
  --emerald-glow: rgba(0, 229, 160, 0.25);
  --cyan: #00c4ff;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 16px;
}

/* ── Base ──────────────────────────────────── */
* { box-sizing: border-box; }
/* [hidden] must win over layout rules like `.dash-layout { display: grid }`,
   otherwise the empty dashboard shell paints before JS gates it on auth. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.6em; }
a { color: inherit; }
code { font-family: var(--font-mono); font-size: 0.9em; }
::selection { background: rgba(0, 229, 160, 0.25); color: var(--fg); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }

.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--emerald);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: rgba(0, 229, 160, 0.4); }

.btn-primary {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--emerald); color: #050d0a;
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s; text-decoration: none;
}
.btn-primary:hover { background: #00f5ad; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.25; cursor: not-allowed; }
.btn-secondary {
  display: inline-block; cursor: pointer; background: transparent;
  border: 1px solid rgba(0, 229, 160, 0.25); color: var(--emerald);
  font-size: 0.875rem; padding: 0.65rem 1.25rem; border-radius: var(--radius);
  transition: background 0.2s; text-decoration: none;
}
.btn-secondary:hover { background: var(--emerald-dim); }
.btn-ghost {
  cursor: pointer; background: transparent; border: 1px solid var(--border-strong);
  color: var(--muted); font-size: 0.875rem; padding: 0.4rem 0.9rem;
  border-radius: 8px; text-decoration: none; transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.25); }

.pill {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); background: rgba(255, 255, 255, 0.04);
}
.pill-active { color: var(--emerald); background: var(--emerald-dim); border-color: rgba(0, 229, 160, 0.2); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ── Reveal (scroll-reveal.js) ─────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Older scroll-reveal API (public/js/scroll-reveal.js still drives this in parallel
   with .reveal above — the homepage FAQ accordion's <details data-reveal> items use
   this system specifically and were deliberately not migrated). */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity 400ms ease-out, transform 400ms ease-out; }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* Global reduced-motion kill-switch: neutralizes every animation/transition
   site-wide, incl. the Protocol journey's chapter fade-up and the dissolve-grid's
   cell-transition (public/index.html #how, driven by public/js/journey.js). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ── Header ────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 11, 18, 0.9); backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.site-header .wrap { height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.logo-mark {
  width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center;
  background: rgba(0, 229, 160, 0.1); border: 1px solid rgba(0, 229, 160, 0.3);
}
.logo em { font-style: normal; color: var(--emerald); }
.logo small { font-size: inherit; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
#menu-btn { display: none; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0.25rem; }
#mobile-menu { display: none; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  #menu-btn { display: block; }
  #mobile-menu.open {
    display: flex; flex-direction: column; gap: 0.25rem;
    background: rgba(7, 11, 18, 0.95); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 1rem 1.25rem;
  }
  #mobile-menu a { padding: 0.5rem 0; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
}

/* ── Footer ────────────────────────────────── */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.05); background: var(--bg); margin-top: 6rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 3rem 0; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); font-size: 0.875rem; max-width: 20rem; }
.footer-brand .mono-note { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(107, 122, 153, 0.5); }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 1.5rem 0;
  font-size: 0.75rem; color: rgba(107, 122, 153, 0.6);
}

/* ── Hero ──────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 0; }
#cipher-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent, rgba(7,11,18,0.6) 60%, #070b12); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 440px;
  gap: 4rem; align-items: center; width: 100%; padding-top: 6rem; padding-bottom: 4rem; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }
.hero-copy h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; line-height: 0.98;
  letter-spacing: -0.02em; margin: 1.5rem 0; }
.hero-copy .accent { background: linear-gradient(90deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .sub { color: var(--muted); font-size: 1.125rem; max-width: 28rem; }
.hero-claims { list-style: none; margin: 2.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2rem; }
.hero-claims strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.hero-claims span { font-size: 0.75rem; color: var(--faint); }

/* terminal panel */
.terminal { overflow: hidden; background: rgba(7, 15, 28, 0.9); backdrop-filter: blur(12px);
  box-shadow: 0 0 60px rgba(0, 229, 160, 0.06); }
.terminal-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.02); }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; }
.tl-red { background: #ff5f57; } .tl-yellow { background: #febc2e; } .tl-green { background: #28c840; }
.terminal-title { margin-left: 0.75rem; flex: 1; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.terminal-live { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.terminal-body { padding: 1.25rem; }
.prompt-line { font-family: var(--font-mono); font-size: 11px; color: rgba(0, 229, 160, 0.6); margin: 0 0 0.75rem; }
#secret-input { width: 100%; background: transparent; border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 0.75rem 1rem; color: #c8d8f0; font-family: var(--font-mono);
  font-size: 0.875rem; resize: none; }
#secret-input::placeholder { color: var(--faintest); }
#secret-input:focus { outline: none; border-color: rgba(0, 229, 160, 0.3); }
.ttl-row { display: flex; gap: 0.5rem; align-items: center; margin: 0.75rem 0 0.4rem; flex-wrap: wrap; }
.ttl-chip { font-family: var(--font-mono); font-size: 0.75rem; padding: 0.35rem 0.7rem;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.06); background: none;
  color: var(--faint); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.ttl-chip:hover:not(:disabled) { border-color: var(--border-strong); color: var(--muted); }
.ttl-chip.selected { border-color: rgba(0, 229, 160, 0.4); color: var(--emerald); background: rgba(0, 229, 160, 0.08); }
.ttl-chip:disabled { opacity: 0.35; cursor: not-allowed; }
.char-count { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--faintest); }
.ttl-hint { font-size: 0.7rem; color: var(--faint); margin: 0 0 1rem; }
.ttl-hint a { color: var(--muted); }
.btn-block { width: 100%; }
.terminal-note { font-family: var(--font-mono); font-size: 10px; color: var(--faintest); text-align: center; margin: 0.75rem 0 0; }
.result-ok { font-size: 0.75rem; font-weight: 500; color: var(--emerald); margin: 0 0 1rem; }
.link-box { background: #050a10; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius);
  padding: 0.75rem; margin-bottom: 0.75rem; }
#share-link-display { margin: 0; font-family: var(--font-mono); font-size: 11px; word-break: break-all; line-height: 1.7; }
.link-base, .link-hash { color: var(--faint); }
.link-id { color: #9ca8bf; }
.link-key { color: rgba(0, 229, 160, 0.7); }
.share-warning { margin-top: 0.75rem; padding: 0.75rem; font-size: 11px; color: rgba(251, 191, 36, 0.7);
  background: rgba(245, 158, 11, 0.05); border: 1px solid rgba(245, 158, 11, 0.12); border-radius: var(--radius); }
.link-btn { background: none; border: 0; cursor: pointer; font-size: 0.75rem; color: var(--faint); margin-top: 0.75rem; padding: 0; }
.link-btn:hover { color: var(--muted); }

/* ── View secret page ──────────────────────── */
.view-page { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px; }
.view-main { width: 100%; max-width: 28rem; padding: 1.25rem; }
.view-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.back-link { font-size: 0.75rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: #9ca8bf; }
.view-card { padding: 2rem; text-align: center; }
.view-card h1 { font-size: 1.25rem; }
.view-card p { font-size: 0.875rem; color: var(--muted); }
.fine { font-size: 0.75rem; color: var(--faint); }
.warn-text { color: var(--amber); }
.state-icon { width: 4rem; height: 4rem; margin: 0 auto 1.5rem; border-radius: var(--radius-lg);
  display: grid; place-items: center; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); }
.state-icon.ok, .state-icon:not(.warn) { background: var(--emerald-dim); border-color: rgba(0,229,160,0.25); }
.state-icon.warn { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0,229,160,0.2);
  border-top-color: var(--emerald); animation: spin 0.8s linear infinite; }
.state-title { font-family: var(--font-display); font-weight: 500; color: var(--fg); }
.revealed { border-color: rgba(0,229,160,0.2); box-shadow: 0 0 30px rgba(0,229,160,0.15), 0 0 60px rgba(0,229,160,0.05); text-align: left; }
.revealed-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.revealed-head #countdown { margin-left: auto; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); animation: pulse 2s infinite; }
.mono-note { font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint); }
.mono-note.em { color: var(--emerald); }
#secret-output { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; font-family: var(--font-mono); font-size: 0.875rem; white-space: pre-wrap;
  word-break: break-all; user-select: all; margin: 0 0 1rem; }
.revealed-actions { display: flex; gap: 0.5rem; }
.revealed-actions .btn-secondary { flex: 1; }

/* ── Sections shared ───────────────────────── */
section { position: relative; padding: 96px 0; }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin: 1rem 0 3rem; }
.dim-title { color: var(--faint); }
.trust-section, .pro-section, .faq { padding: 7rem 0; border-top: 1px solid rgba(255,255,255,0.05); }

/* ── Journey ───────────────────────────────── */
.journey { position: relative; }
.js-sticky .journey { height: 500vh; }
.js-sticky .journey-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.journey-head { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; padding-bottom: 1rem; width: 100%; }
.journey-dots { display: flex; gap: 0.5rem; }
.journey-dots .dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); transition: all 0.5s; }
.journey-dots .dot.active { width: 20px; background: var(--emerald); }
.journey-dots .dot.done { background: rgba(0,229,160,0.35); }
.journey-track { flex: 1; display: flex; align-items: center; width: 100%; }
.chapter { display: none; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; width: 100%; animation: fade-up 0.4s ease both; }
.js-sticky .chapter.current { display: grid; }
@media (max-width: 900px) { .chapter { grid-template-columns: 1fr; gap: 2rem; } }
.chapter-num { font-family: var(--font-display); font-size: 80px; font-weight: 800; line-height: 1; color: rgba(0,229,160,0.08); display: block; user-select: none; }
.chapter-text h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
.chapter-text p { color: var(--muted); font-size: 1.1rem; max-width: 28rem; }
.chapter-detail { margin-top: 1.5rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); white-space: pre-line; }
.journey-progressbar { height: 1px; background: rgba(255,255,255,0.04); margin: 0 1.25rem 2rem; }
.journey-progress { height: 100%; width: 0; background: var(--emerald); }
/* no-JS / reduced-motion fallback: stacked chapters */
.journey-section:not(.js-sticky) .chapter { display: grid; margin: 5rem 0; }
.journey-section:not(.js-sticky) .journey-dots, .journey-section:not(.js-sticky) .journey-progressbar { display: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.mono-line { font-family: var(--font-mono); font-size: 0.8rem; margin: 0 0 0.4rem; }
.mono-line .dim, .mono-line.dim, .dim { color: var(--faintest); }
.mono-line .em { color: var(--emerald); }
.mono-line .amber { color: #fbbf24; }
.mini-terminal { max-width: 24rem; }
.mini-terminal-body { padding: 1.25rem; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--emerald); vertical-align: text-bottom; animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rings { position: relative; width: 16rem; height: 16rem; margin: 0 auto; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(0,229,160,0.1); }
.r1 { inset: 0; animation: spin 12s linear infinite; border-top-color: rgba(0,229,160,0.4); }
.r2 { inset: 2rem; animation: spin 8s linear infinite reverse; border-bottom-color: rgba(0,196,255,0.4); }
.r3 { inset: 4rem; }
.ring-core { width: 5rem; height: 5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid rgba(0,229,160,0.25); display: grid; place-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring, .caret, .terminal-live { animation: none; } }
.url-anatomy { padding: 1.5rem; max-width: 24rem; }
.hl-id { color: #9ca8bf; background: rgba(255,255,255,0.04); padding: 0 4px; border-radius: 4px; }
.hl-key { color: var(--emerald); background: rgba(0,229,160,0.08); padding: 0 4px; border-radius: 4px; }
.url-note { font-size: 10px; color: var(--faint); margin: 0.5rem 0 0; }
.dissolve-grid { display: grid; grid-template-columns: repeat(8, 1.25rem); gap: 4px; justify-content: center; }
.dissolve-grid span { width: 1.25rem; height: 1.25rem; border-radius: 3px; background: rgba(0,229,160,0.15); transition: all 0.3s; }
.dissolve-grid span.off { background: rgba(255,255,255,0.03); transform: scale(0.6); }
.dissolve-grid span.bright { background: rgba(0,229,160,0.6); }
.dot-rose { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); margin-right: 6px; animation: pulse 2s infinite; }
.destroy-note { text-align: center; margin-top: 1.5rem; }

/* ── Trust ─────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.04); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { background: var(--bg); padding: 1.5rem; transition: background 0.2s; }
.trust-card:hover { background: var(--surface); }
.trust-card h3 { font-size: 0.875rem; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.75rem; color: var(--muted); margin: 0; }

/* ── FAQ ───────────────────────────────────── */
.faq-list { border-top: 1px solid rgba(255,255,255,0.04); max-width: 48rem; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.04); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 0.875rem; font-weight: 500; color: #9ca8bf; margin: 0; transition: color 0.2s; }
.faq-item summary:hover h3 { color: var(--fg); }
.faq-item summary::after { content: "+"; flex-shrink: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1); display: grid; place-items: center; color: var(--muted);
  font-size: 0.75rem; transition: transform 0.2s, color 0.2s, border-color 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); border-color: rgba(0,229,160,0.3); color: var(--emerald); }
.faq-item > p { font-size: 0.875rem; color: var(--muted); padding-bottom: 1.25rem; margin: 0; max-width: 44rem; }
.faq-item .chev { display: none; }

/* ── Pro ───────────────────────────────────── */
.pro-panel { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; padding: 3rem; border-color: rgba(0,229,160,0.12); }
@media (max-width: 800px) { .pro-panel { grid-template-columns: 1fr; padding: 2rem; } }
.pro-main h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: 0 0 1rem; }
.pro-lead { color: var(--muted); max-width: 28rem; }
.pro-features { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.pro-features li::before { content: "✓ "; color: var(--emerald); }
.side-title { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--faint); }
.coming-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }

/* ── Dashboard ─────────────────────────────── */
/* Dashboard sections manage their own spacing via .dash-layout; don't double up
   on the generic `section { padding: 96px 0; }` above. */
.dash-layout section, #signed-out { padding: 0; }
/* Sections stack in .dash-main; give each clear separation and a right-sized
   heading so they don't read as one cropped-together block. */
.dash-main > section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.dash-main > section h1 { font-size: 1.125rem; margin-bottom: 1.25rem; }
.dash-page main { padding-top: 6rem; padding-bottom: 6rem; }
/* Center in the space left by main's 6rem top+bottom padding instead of
   stacking fixed 4rem margins on top — those compounded past 100vh and
   triggered a scrollbar on a page that otherwise fits. */
.signin-wrap { max-width: 24rem; margin: 0 auto; text-align: center;
  min-height: calc(100vh - 12rem); display: flex; flex-direction: column; justify-content: center; }
.signin-logo { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: var(--radius-lg);
  background: rgba(0,229,160,0.1); border: 1px solid rgba(0,229,160,0.3); display: grid; place-items: center; }
.signin-sub { color: var(--muted); font-size: 0.875rem; }
.signin-card { padding: 2rem; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.btn-oauth { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--fg); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.btn-oauth:hover { background: #1a2540; border-color: var(--border-strong); }
.or-divider { display: flex; align-items: center; gap: 0.75rem; color: var(--faint); font-size: 0.75rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
.signin-note { margin-top: 1.5rem; padding: 0.75rem 1rem; font-size: 0.75rem; color: var(--muted);
  background: rgba(0,229,160,0.05); border: 1px solid rgba(0,229,160,0.12); border-radius: var(--radius); text-align: left; }

.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding-top: 2rem; }
@media (max-width: 800px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.dash-account { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: #9ca8bf; word-break: break-all; }
.dash-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.dash-nav a { padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.dash-nav a.active, .dash-nav a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 2rem; }
@media (max-width: 600px) { .stat-tiles { grid-template-columns: 1fr; } }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; text-align: center; display: flex; flex-direction: column; }
.stat-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--emerald); }
.stat-label { font-size: 0.75rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; font-family: var(--font-mono); font-weight: 400; font-size: 0.7rem;
  text-transform: lowercase; color: var(--faint); padding: 0.6rem 0.75rem; }
td { padding: 0.75rem; border-top: 1px solid rgba(255,255,255,0.04); color: var(--muted); }
td code { color: var(--faint); }
td button { background: none; border: 1px solid rgba(244,63,94,0.2); color: var(--rose);
  font-size: 0.75rem; padding: 0.3rem 0.75rem; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
td button:hover { background: rgba(244,63,94,0.08); }
.table-card { padding: 0.5rem 1.5rem 1.5rem; overflow-x: auto; }
.empty-state { color: var(--faint); font-size: 0.875rem; }
.upsell { margin-top: 2.5rem; padding: 1.5rem; display: flex; align-items: center; gap: 1rem;
  justify-content: space-between; border-color: rgba(0,229,160,0.1); flex-wrap: wrap; }
.upsell-title { font-family: var(--font-display); font-weight: 500; font-size: 0.875rem; margin: 0 0 0.25rem; }
.upsell-sub { font-size: 0.75rem; color: var(--muted); margin: 0; }
#new-key-reveal { padding: 0.75rem 1rem; background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.12); border-radius: var(--radius); font-size: 0.8rem; color: rgba(251,191,36,0.9); }
#new-key-form { display: flex; gap: 0.5rem; margin: 1rem 0; }
#new-key-form input { flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.6rem 0.9rem; color: var(--fg); font-size: 0.875rem; }

/* ── News ──────────────────────────────────── */
.news-main { max-width: 42rem; padding-top: 8rem; padding-bottom: 6rem; }
.news-sub { color: var(--muted); font-size: 1.1rem; }
.timeline { position: relative; margin-top: 3rem; padding-left: 2rem; display: flex; flex-direction: column; gap: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, rgba(0,229,160,0.3), rgba(255,255,255,0.08), transparent); }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -2rem; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--surface); border: 2px solid rgba(0,229,160,0.5); }
.timeline-item time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint); display: block; margin-bottom: 0.5rem; }
.news-card { padding: 1.5rem; }
.news-card h2 { font-size: 1rem; margin: 0.75rem 0; }
.news-card p { font-size: 0.875rem; color: var(--muted); margin: 0; }
.tag-feature { color: var(--cyan); background: rgba(0,196,255,0.08); border-color: rgba(0,196,255,0.2); }
.tag-product { color: #c084fc; background: rgba(192,132,252,0.08); border-color: rgba(192,132,252,0.2); }
.tag-launch { color: #fb7185; background: rgba(251,113,133,0.08); border-color: rgba(251,113,133,0.2); }
