/* RankOps v2 design system — dark, one accent, no framework. */
:root {
  --bg: #0a0f0d;
  --bg-raise: #111a16;
  --line: #1f2d26;
  --text: #f2f7f4;
  --text-dim: #9db3a8;
  --accent: #22c55e;
  --accent-press: #16a34a;
  --danger: #f87171;
  --warn: #fbbf24;
  --radius: 12px;
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; font-size: 17px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--space-3); }
main { display: block; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.25; margin-bottom: var(--space-2); }
h3 { font-size: 1.15rem; }
p + p { margin-top: var(--space-2); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,15,13,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: .8rem var(--space-3); }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: var(--space-3); align-items: center; }
.nav-links a { color: var(--text-dim); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-raise); padding: var(--space-3); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
}

/* buttons — ONE primary weight; it is THE cta */
.btn-primary { display: inline-block; background: var(--accent); color: #04170c; font-weight: 700; padding: .9rem 1.6rem; border-radius: var(--radius); border: 0; cursor: pointer; font-size: 1.05rem; }
.btn-primary:hover { background: var(--accent-press); text-decoration: none; }
.btn-sm { padding: .5rem 1rem; font-size: .95rem; }
.btn-ghost { display: inline-block; color: var(--text-dim); padding: .9rem 1rem; }

/* sections + components */
section { padding: var(--space-5) 0; }
.hero { padding: var(--space-5) 0 var(--space-4); }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.lead { font-size: 1.2rem; color: var(--text-dim); max-width: 46rem; margin-top: var(--space-2); }
.speakable { font-size: 1.05rem; }
.card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.grid-3 { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.proof-band { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-3); background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); }
.proof-band strong { color: var(--accent); font-size: 1.3rem; display: block; }
.price { font-size: 2.2rem; font-weight: 800; }
.price small { font-size: 1rem; color: var(--text-dim); font-weight: 500; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .4rem 0 .4rem 1.7rem; position: relative; }
.check-list li::before { content: "✓"; color: var(--accent); position: absolute; left: 0; font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--space-2) 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: var(--space-1); color: var(--text-dim); }
.note { color: var(--text-dim); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); }
th { color: var(--text-dim); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

/* forms */
input, select, textarea { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .8rem; font-size: 1rem; width: 100%; font-family: var(--font); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.code-out { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; overflow-x: auto; font-size: .8rem; max-height: 320px; white-space: pre-wrap; word-break: break-word; }
.faq-row { display: flex; gap: .5rem; margin: .5rem 0; align-items: flex-start; }
.faq-row input, .faq-row textarea { flex: 1; }
.row-del { background: none; border: 0; color: var(--danger); font-size: 1.3rem; cursor: pointer; }
.check-form { display: grid; gap: var(--space-2); max-width: 30rem; }
.nl-form { display: flex; gap: var(--space-1); margin-top: var(--space-1); }

/* score gauge + reveal (track page) */
.gauge-wrap { display: grid; place-items: center; padding: var(--space-3); }
.gauge { position: relative; width: 180px; height: 180px; }
.gauge svg { transform: rotate(-90deg); }
.gauge-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; }
.tier-badge { display: inline-block; padding: .25rem .8rem; border-radius: 99px; background: var(--bg-raise); border: 1px solid var(--accent); color: var(--accent); font-weight: 700; }
.check-row { display: flex; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.check-row.pass::before { content: "✓"; color: var(--accent); font-weight: 700; }
.check-row.gated { color: var(--text-dim); font-style: italic; }
.check-row.gated::before { content: "🔒"; }
.kpi-row { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-2); text-align: center; }
.kpi strong { display: block; font-size: 1.8rem; color: var(--accent); }
.kpi span { color: var(--text-dim); font-size: .85rem; }
.hidden { display: none !important; }
.status-cited { color: var(--accent); font-weight: 600; }
.status-miss { color: var(--danger); font-weight: 600; }
.status-retry { color: var(--warn); font-weight: 600; }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: var(--space-5); padding: var(--space-4) 0 var(--space-2); color: var(--text-dim); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-grid a { display: block; color: var(--text-dim); padding: .15rem 0; }
.footer-h { font-weight: 700; color: var(--text); margin-bottom: var(--space-1); }
.footer-legal { margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: .85rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: all .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
