/* RPOW Gateway site v3. Dark, restrained. */
:root {
  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --surface: #12151a;
  --line: #22262d;
  --line-2: #2d323b;
  --text: #eef0f3;
  --dim: #aab0ba;
  --accent: #4cc38a;
  --accent-ink: #06130c;
  --deny: #ee7b72;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 4rem;
  --gutter: clamp(1.25rem, 5vw, 2rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, figure { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .75rem 1rem; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 46rem); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,11,13,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; letter-spacing: -.01em; min-height: 44px; white-space: nowrap; }
.brand-mark { width: 1.75rem; height: 1.75rem; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-links { display: flex; gap: .25rem; margin-inline: auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; color: var(--dim); text-decoration: none; font-size: .92rem; border-radius: 8px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: .6rem; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.1rem; border-radius: 10px; font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 4px 16px rgba(76,195,138,.18); }
.btn-primary:hover { background: #62d09d; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: #444b57; background: rgba(255,255,255,.04); }

/* Type */
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; max-width: 18ch; margin-inline: auto; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; max-width: 24ch; }
h3 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.lede { color: var(--dim); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40rem; margin: 1.5rem auto 0; }
.fine { color: var(--dim); font-size: .85rem; }

/* Hero */
.hero { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 4.5rem); text-align: center; background: radial-gradient(60rem 28rem at 50% -10%, rgba(76,195,138,.12), transparent 70%); }
.flow { margin-top: clamp(2.5rem, 6vw, 4rem); }
.flow-row { display: flex; align-items: stretch; justify-content: center; gap: .5rem; text-align: left; }
.flow-node { flex: 1 1 0; max-width: 15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; display: flex; flex-direction: column; gap: .35rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.flow-node.gate { border-color: rgba(76,195,138,.5); }
.flow-node svg { width: 2.25rem; height: 2.25rem; margin-bottom: .5rem; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-node strong { font-size: .98rem; }
.flow-node span { color: var(--dim); font-size: .85rem; line-height: 1.5; }
.flow-arrow { display: grid; place-items: center; width: 1.5rem; flex: none; }
.flow-arrow svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.tinted { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-intro { color: var(--dim); max-width: 42rem; margin-top: 1.1rem; font-size: 1.05rem; }
.tech-note { margin-top: 2rem; padding: .9rem 1.1rem; border-left: 2px solid var(--line-2); color: var(--dim); font-size: .85rem; max-width: 46rem; }
.tech-note b { color: var(--text); font-weight: 600; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.card p { color: var(--dim); font-size: .95rem; }
.icon { width: 2.75rem; height: 2.75rem; border-radius: 10px; background: rgba(76,195,138,.1); border: 1px solid rgba(76,195,138,.25); display: grid; place-items: center; margin-bottom: .6rem; }
.icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step-num { font-size: .75rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-family: var(--mono); }
.link-card { text-decoration: none; transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: rgba(76,195,138,.5); transform: translateY(-2px); }
.more { margin-top: auto; padding-top: .5rem; color: var(--accent); font-size: .9rem; font-weight: 600; }
.more::after { content: " \2192"; }

/* Gate lanes */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; }
.lane-allow { border-color: rgba(76,195,138,.4); }
.lane-title { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 1.25rem; }
.lane-path { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-height: 3rem; }
.pill { padding: .4rem .85rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; background: var(--bg-2); }
.gate-pill { border-color: rgba(76,195,138,.5); }
.pill.ok { background: rgba(76,195,138,.14); border-color: rgba(76,195,138,.5); color: var(--accent); }
.line { width: 2.5rem; height: .75rem; fill: none; stroke: var(--line-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.x { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--deny); stroke-width: 2; stroke-linecap: round; }
.lane-result { margin-top: 1.25rem; color: var(--dim); font-size: .95rem; }
.lane-result strong { color: var(--text); }

/* Prose / FAQ */
.prose { display: grid; gap: 1.1rem; color: var(--dim); font-size: 1.05rem; }
.source { font-size: .82rem; color: var(--dim); padding-top: .75rem; border-top: 1px solid var(--line); }
.faq { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; padding: .9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--dim); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.foot { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot .fine { max-width: 28rem; margin-top: .75rem; }
.foot-links { display: flex; gap: .25rem; flex-wrap: wrap; align-items: flex-start; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; color: var(--dim); text-decoration: none; font-size: .92rem; }
.foot-links a:hover { color: var(--text); }
.copy { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; }

/* Responsive */
@media (max-width: 960px) {
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .flow-row { flex-direction: column; align-items: stretch; }
  .flow-node { max-width: none; }
  .flow-arrow { width: auto; height: 1.5rem; }
  .flow-arrow svg { transform: rotate(90deg); }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .menu { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.5rem; background: rgba(10,11,13,.97); border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .nav-links { flex-direction: column; margin: 0; }
  .nav-actions { flex-direction: column; margin-top: .75rem; }
  .grid, .lanes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* v3.1: cost-imposition hero + comparison */
h1.mega{font-size:clamp(2.8rem,8vw,6rem);line-height:1;max-width:14ch;font-weight:700;letter-spacing:-.045em}
h1.mega .hl{color:var(--accent);display:inline-block}
.section-sub{color:var(--muted,#9aa3ad);max-width:62ch;margin-top:.75rem}
.cmp{margin-top:2rem;border:1px solid rgba(255,255,255,.08);border-radius:14px;overflow:hidden}
.cmp-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1.3fr);gap:1rem;padding:.9rem 1.1rem;border-top:1px solid rgba(255,255,255,.06);align-items:start}
.cmp-row:first-child{border-top:0}
.cmp-head{background:rgba(255,255,255,.03);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted,#9aa3ad);font-weight:600}
.cmp-row [role=rowheader]{font-weight:600}
.cmp .no{color:#c9a3a3}.cmp .no::before{content:"✕ ";color:#ff6b6b}
.cmp .yes{color:#d7f5e6}.cmp .yes::before{content:"✓ ";color:var(--accent)}
.cost-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.25rem}
.cost-strip div{border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:1.1rem 1.2rem;display:grid;gap:.35rem;background:rgba(255,255,255,.02)}
.cost-strip b{font-size:1.05rem}.cost-strip span{color:var(--muted,#9aa3ad)}
.cost-strip em{font-style:normal;font-weight:700;color:var(--accent)}
.cost-strip div:last-child em{color:#ff8a6b}
@media(max-width:760px){.cmp-head{display:none}.cmp-row{grid-template-columns:1fr;gap:.35rem}.cost-strip{grid-template-columns:1fr}}
