/* RenewalProof apex stub — Phase 0, pre-launch.
 * Charter §4 "Blacklight — Scanline" (B2) — UV violet on ink-black, violet-cast ground.
 * Only layout classes used by index.html are defined here. */

:root {
  --ground:    #0A0812;
  --surface:   #131022;
  --ink:       #EFECF6;
  --ink-soft:  #B4ACC9;
  --ink-mute:  #7A7292;
  --accent:    #8F6FFF;
  --on-accent: #120E1E;
  --warm:      #D9CFFF;
  --line:      rgba(239,236,246,.09);
  --line-strong: rgba(143,111,255,.22);

  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-ui:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit }
.mono { font-family: var(--font-mono) }

.skip { position: absolute; left: 14px; top: -60px; z-index: 1000; background: var(--accent);
  color: var(--on-accent); padding: 10px 16px; border-radius: 9px; font-weight: 600;
  transition: top .2s var(--ease); text-decoration: none }
.skip:focus { top: 14px }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px }

/* ── Phase-0 line ── */
.phase0-line {
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  color: var(--ink-mute);
  text-align: center;
  padding: 8px clamp(16px, 5vw, 40px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  position: relative; z-index: 5;
}

/* ── Layout ── */
.stub-page { position: relative }
.stub-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(48px, 9vh, 92px) 20px;
  background:
    radial-gradient(720px 420px at 50% -8%, rgba(143,111,255,.14), transparent 62%),
    var(--ground);
}
.stub-wrap { width: min(560px, 100%); text-align: center }

/* ── Wordmark ── */
.wm { display: flex; flex-direction: column; align-items: center; margin-bottom: 22px }
.wm .word { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(1.5rem, 3.4vw, 1.9rem); line-height: 1; color: var(--ink) }
.wm .word .acc { color: var(--accent) }
.wm .rule { height: 2px; width: 68%; margin-top: 9px; border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(143,111,255,0)) }

/* ── Eyebrow ── */
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px }

/* ── Headline (verbatim, charter §4) ── */
.headline { font-family: var(--font-display); font-weight: 600; line-height: 1.08;
  letter-spacing: -.015em; font-size: clamp(2.1rem, 5.6vw, 3.1rem); color: var(--ink);
  margin-bottom: 14px }

/* ── Manifesto (signature line) ── */
.manifesto { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  color: var(--warm); text-shadow: 0 0 16px rgba(143,111,255,.35); margin-bottom: 40px }

/* ── Scan-doc — the signature element. CSS-only: no image asset. ── */
.scandoc {
  margin: 0 auto 34px;
  max-width: 380px;
  text-align: left;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, var(--surface) 0%, rgba(11,9,22,.96) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px 24px 20px;
  box-shadow: 0 26px 56px -22px rgba(0,0,0,.7), 0 6px 16px -8px rgba(0,0,0,.5);
}
.scandoc-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  background: rgba(143,111,255,.1); border: 1px solid rgba(143,111,255,.22); padding: 4px 9px;
  border-radius: 5px }
.d-line { height: 7px; border-radius: 4px; background: #221c3c; margin-top: 14px }
.d-line.w1 { width: 91%; margin-top: 16px } .d-line.w2 { width: 76% } .d-line.w3 { width: 58% }
.scandoc .band {
  position: absolute; left: 0; right: 0; top: -20%; height: 60px; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(143,111,255,.24) 28%, rgba(143,111,255,.4) 50%, rgba(143,111,255,.24) 72%, transparent);
  border-top: 1px solid rgba(143,111,255,.55); border-bottom: 1px solid rgba(143,111,255,.55);
}
.reveal-line { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .05em; color: var(--warm);
  text-shadow: 0 0 14px rgba(143,111,255,.6); opacity: 0 }
@media (prefers-reduced-motion: no-preference) {
  .scandoc .band { animation: scanSweep 2.2s cubic-bezier(.4,0,.2,1) .4s 1 forwards }
  .reveal-line { animation: revealIn .8s var(--ease) 1.6s 1 forwards }
}
@media (prefers-reduced-motion: reduce) {
  /* static-lit fallback — no sweep, verification layer already lit */
  .scandoc .band { top: 40%; opacity: .5 }
  .reveal-line { opacity: 1 }
}
@keyframes scanSweep {
  0%   { top: -20%; opacity: 0 }
  9%   { opacity: 1 }
  58%  { top: 100%; opacity: 1 }
  76%  { opacity: 0 }
  100% { top: 100%; opacity: 0 }
}
@keyframes revealIn { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }

/* ── Lede ── */
.lede { font-size: .98rem; color: var(--ink-soft); max-width: 42ch; margin: 0 auto 34px; line-height: 1.65 }

/* ── Contact ── */
.contact { font-size: .92rem; color: var(--ink-soft); font-family: var(--font-mono) }
.contact a { color: var(--warm); text-decoration: underline; text-underline-offset: 2px; opacity: .85 }
.contact a:hover { opacity: 1 }

/* ── Footer ── */
.stub-foot { padding: 28px 20px 26px; border-top: 1px solid var(--line); text-align: center;
  position: relative; z-index: 1 }
.disc-stripe { max-width: 620px; margin: 0 auto 18px; display: grid; gap: 8px }
.disc-line { font-size: 11px; color: var(--ink-mute); font-family: var(--font-mono); line-height: 1.65;
  text-align: left }
.disc-line b { color: var(--ink-soft); font-weight: 500 }
.stub-foot .dba { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  color: var(--ink-mute); margin: 0 0 6px }
.stub-foot .note { font-size: .72rem; color: var(--ink-mute); margin: 0 }

@media (max-width: 440px) {
  .stub-wrap { padding: 0 4px }
  .scandoc { padding: 18px 18px 16px }
}
