/* ---------------------------------------------------------------------- */
/* Tokens — dark neutral base, warning red/amber as the only accent pair,   */
/* same subtle-border/translucent-card language as the reference sites.    */
/* ---------------------------------------------------------------------- */
:root {
  --bg: #17181a;
  --card: rgba(33, 30, 30, 0.55);
  --card-solid: #211d1d;
  --row-hover: #2a2424;

  --text: #ffffff;
  --text-dim: #a3a09e;
  --text-faint: #726c6a;

  --red: #ef4444;
  --red-bright: #f87171;
  --amber: #f59e0b;
  --green: #22c55e;

  --outline: rgba(255, 255, 255, 0.10);
  --outline-bright: rgba(255, 255, 255, 0.18);

  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
code { font-family: var(--mono); background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
.icon-inline { width: 12px; height: 12px; vertical-align: -1.5px; margin-right: 1px; color: var(--text-faint); }
kbd { font-family: var(--mono); background: var(--card-solid); border: 1px solid var(--outline-bright); border-radius: 5px; padding: 1px 6px; font-size: 0.85em; }

.accent-text { color: var(--red-bright); }

/* ------------------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(23, 24, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--outline);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; }
.brand-mark { display: flex; color: var(--red-bright); }
.brand-mark svg { width: 21px; height: 21px; }
.brand-word { color: var(--text); }

.nav-tabs { display: flex; gap: 4px; flex: 1; }
.nav-tab {
  background: none; border: none; color: var(--text-dim);
  font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-tab:hover { color: var(--text); background: var(--row-hover); }
.nav-tab.is-active { color: var(--bg); background: var(--red-bright); font-weight: 600; }

.nav-cta {
  background: var(--red); color: #fff;
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  transition: background 0.15s ease, transform 0.1s ease;
}
.nav-cta:hover { background: var(--red-bright); }
.nav-cta:active { transform: scale(0.97); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ------------------------------------------------------------------------------- panels */
main { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.panel { display: none; }
.panel.is-active { display: block; }

/* ------------------------------------------------------------------------------- hero */
.hero { padding: 88px 0 56px; max-width: 680px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red-bright); font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero-eyebrow svg { width: 13px; height: 13px; flex-shrink: 0; }
.hero h1 { font-size: 52px; line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.02em; font-weight: 800; }
.hero-sub { font-size: 16.5px; color: var(--text-dim); line-height: 1.6; margin: 0 0 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: none; transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); }
.btn-ghost { background: var(--card-solid); color: var(--text); border: 1px solid var(--outline-bright); }
.btn-ghost:hover { background: var(--row-hover); border-color: rgba(255,255,255,0.3); }
.btn:active { transform: scale(0.97); }

/* ------------------------------------------------------------------------------- sections */
.section { padding: 48px 0; border-top: 1px solid var(--outline); }
.eyebrow {
  color: var(--red-bright); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.section h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -0.015em; }
.section-lead { color: var(--text-dim); font-size: 15px; margin: 0 0 36px; max-width: 520px; }

/* ------------------------------------------------------------------------------- animated flow */
.flow { display: flex; align-items: flex-start; gap: 0; }
.flow-step {
  flex: 1; min-width: 0; text-align: center; padding: 0 14px;
  opacity: 0.35; transform: translateY(4px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.flow-step.is-active { opacity: 1; transform: translateY(0); }
.flow-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); border-radius: 16px;
  background: var(--card-solid); border: 1px solid var(--outline);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.flow-icon svg { width: 24px; height: 24px; }
.flow-step.is-active .flow-icon {
  border-color: rgba(239,68,68,0.55);
  background: rgba(239,68,68,0.08);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.08);
  color: var(--red-bright);
}
.flow-step h3 { font-size: 15px; margin: 0 0 6px; }
.flow-step p { font-size: 12.5px; color: var(--text-faint); line-height: 1.55; margin: 0; }
.flow-line {
  flex-shrink: 0; width: 60px; height: 1px; margin-top: 28px;
  background: linear-gradient(90deg, var(--outline), var(--outline-bright), var(--outline));
  position: relative; overflow: hidden;
}
.flow-line::after {
  content: ""; position: absolute; inset: 0; width: 30%;
  background: var(--red-bright); opacity: 0;
  animation: travel 4.8s ease-in-out infinite;
}
@keyframes travel {
  0%, 8% { opacity: 0; left: -30%; }
  12% { opacity: 1; }
  38% { opacity: 1; left: 100%; }
  42%, 100% { opacity: 0; left: 100%; }
}

@media (max-width: 780px) {
  .flow { flex-direction: column; align-items: stretch; gap: 20px; }
  .flow-line { width: 1px; height: 24px; margin: 0 0 0 27px; }
}

/* ------------------------------------------------------------------------------- cards */
.card {
  background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 22px 24px;
}
.cta-section { border-top: none; padding-top: 0; }
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(239,68,68,0.1), var(--card-solid));
  border: 1px solid rgba(239,68,68,0.25); border-radius: var(--radius);
  padding: 30px 32px; margin: 20px 0;
}
.cta-card h2 { font-size: 21px; margin: 0 0 6px; }
.cta-card p { font-size: 13.5px; color: var(--text-dim); margin: 0; }

.highlight-card {
  border-left: 3px solid var(--amber);
  color: var(--text-dim); font-size: 13.5px; line-height: 1.65;
  margin: 20px 0;
}
.note-card { margin: 20px 0; }
.note-card h3 { font-size: 15px; margin: 0 0 10px; }
.note-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.65; margin: 0 0 10px; }
.note-card p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------------------- page hero (sub-pages) */
.page-hero { padding: 56px 0 40px; }
.page-hero h1 { font-size: 36px; margin: 8px 0 10px; letter-spacing: -0.015em; }
.page-hero p { font-size: 14.5px; color: var(--text-dim); margin: 0; }

/* ------------------------------------------------------------------------------- check-a-user */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.method-card h3 { font-size: 17px; margin: 10px 0 16px; }
.method-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--red-bright); background: rgba(239,68,68,0.1);
  padding: 3px 10px; border-radius: 999px;
}
.method-block { margin-bottom: 18px; }
.method-block:last-child { margin-bottom: 0; }
.method-block h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin: 0 0 10px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps li { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

.command-box {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  background: var(--card-solid); border: 1px solid var(--outline);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 6px;
}
.command-label { font-size: 12px; color: var(--text-faint); }
.command-box code { font-size: 14px; background: rgba(239,68,68,0.1); color: var(--red-bright); }

@media (max-width: 780px) {
  .method-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------------------- policy toggle + grid */
.policy-toggle { display: flex; gap: 10px; margin-bottom: 28px; }
.policy-btn {
  background: var(--card-solid); border: 1px solid var(--outline); color: var(--text-dim);
  font-size: 13.5px; font-weight: 600; padding: 10px 20px; border-radius: 999px;
  transition: all 0.15s ease;
}
.policy-btn:hover { border-color: var(--outline-bright); color: var(--text); }
.policy-btn.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.policy-set { display: none; }
.policy-set.is-active { display: block; }

.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.policy-card h4 { font-size: 14.5px; margin: 0 0 8px; }
.policy-card p { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin: 0; }
.policy-card .example {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--outline);
  font-size: 12px; color: var(--text-faint); font-style: italic; line-height: 1.5;
}
.policy-card.is-invalid { border-color: rgba(239,68,68,0.18); }
.policy-card.is-invalid h4::before { content: "✕  "; color: var(--red-bright); font-style: normal; }
.policy-card:not(.is-invalid) h4::before { content: "✓  "; color: var(--green); font-style: normal; }

.tag {
  display: inline-block; font-size: 10.5px; font-weight: 600; color: var(--amber);
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25);
  padding: 1px 7px; border-radius: 999px; margin-left: 4px; vertical-align: middle;
}

@media (max-width: 980px) { .policy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .policy-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--outline); margin-top: 40px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 48px 24px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .brand-mark { font-size: 20px; }
.footer-brand .brand-word { font-size: 16px; font-weight: 700; }
.footer-tag { color: var(--text-faint); font-size: 13px; margin: 4px 0 0; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 10px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-disclaimer { font-size: 11.5px; color: var(--text-faint); line-height: 1.5; margin: 2px 0 0; max-width: 220px; }
.footer-bottom { border-top: 1px solid var(--outline); padding: 18px 24px; text-align: center; }
.footer-bottom p { color: var(--text-faint); font-size: 12px; margin: 0; }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------------------- reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------------------------- responsive nav */
@media (max-width: 900px) {
  .nav-tabs { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--card-solid); border-bottom: 1px solid var(--outline);
    padding: 8px; gap: 2px; }
  .nav-tabs.is-open { display: flex; }
  .nav-tab { text-align: left; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero h1 { font-size: 38px; }
}
