/* ============================================================
   lucafefx · editorial.css
   Shared design language for secondary pages (legal + proof).
   Mirrors the homepage's editorial-quant aesthetic without the
   heavy atmospheric layers (HLS video, glass card, 3D) — these
   pages are reading pages and the chrome should support content,
   not compete with it.
============================================================ */

:root {
  --ink:        #0a0810;
  --ink-2:      #100c18;
  --ink-3:      #161220;
  --vellum:     #f0e8d8;
  --vellum-mute:#a89f8e;
  --vellum-low: #5a5448;
  --phos:       #4ade80;
  --phos-bright:#86efac;
  --phos-glow:  rgba(74,222,128,0.4);
  --rouge:      #f97373;
  --rouge-mute: #d97757;
  --gold:       #d4af6d;
  --hair:       rgba(240,232,216,0.08);
  --hair-2:     rgba(240,232,216,0.14);
  --hair-3:     rgba(240,232,216,0.22);
  --body-stack: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --accent-serif: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ─────────────── reset + base ─────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--ink);
  color: var(--vellum);
  font-family: var(--body-stack);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--phos); color: var(--ink); }

/* ─────────────── atmospheric (minimal for reading pages) ─────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 15% 0%, rgba(74,222,128,0.10), transparent 62%),
    radial-gradient(ellipse 70% 50% at 100% 5%, rgba(212,175,109,0.06), transparent 68%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(249,115,115,0.03), transparent 70%);
}
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.grid-lines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  display: none;
}
@media (min-width: 900px) { .grid-lines { display: block; } }
.grid-lines > .gl {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.grid-lines > .gl.l { left: 25%; }
.grid-lines > .gl.m { left: 50%; }
.grid-lines > .gl.r { left: 75%; }

main, nav, footer, .marquee-bar { position: relative; z-index: 3; }
.col { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .col { padding: 0 22px; } }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap-narrow { padding: 0 22px; } }

/* ─────────────── typographic primitives ─────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  color: var(--phos);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 400;
  color: var(--vellum-low);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ─────────────── top marquee bar ─────────────── */
.marquee-bar {
  border-bottom: 1px solid var(--hair);
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vellum-low);
  overflow: hidden;
  background: rgba(10,8,16,0.6);
  backdrop-filter: blur(6px);
}
.marquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; }
.marquee-track .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 6px var(--phos-glow); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────────── masthead nav (matches homepage) ─────────────── */
nav.masthead {
  border-bottom: 1px solid var(--hair);
  background: rgba(10,8,16,0.55);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  position: sticky; top: 0; z-index: 40;
}
.masthead-inner {
  max-width: 1280px; margin: 0 auto; padding: 18px 32px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 200; font-style: italic;
  font-size: 28px; letter-spacing: -0.04em;
  color: var(--vellum); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.wordmark::before {
  content: ''; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--phos); box-shadow: 0 0 10px var(--phos-glow);
  transform: translateY(-7px);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; transform: translateY(-7px) scale(1); } 50% { opacity: 0.55; transform: translateY(-7px) scale(0.8); } }
.nav-mid {
  display: flex; justify-content: center; align-items: baseline; gap: 28px;
  counter-reset: navIdx;
}
.nav-mid a {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 400;
  color: var(--vellum-mute); text-decoration: none;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 200ms ease;
}
.nav-mid a::before {
  content: counter(navIdx, decimal-leading-zero) ' / ';
  counter-increment: navIdx;
  color: var(--vellum-low);
  margin-right: 6px;
}
.nav-mid a:hover { color: var(--vellum); }
.nav-cta {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: #ffffff;
  background: var(--phos);
  text-decoration: none;
  border: none;
  padding: 11px 18px 11px 22px;
  border-radius: 999px;
  position: relative; overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 0 0 1px rgba(74,222,128,0.55), 0 0 24px rgba(74,222,128,0.30);
  animation: navPulse 2.6s ease-in-out infinite;
}
.nav-cta::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-220%) skewX(-22deg);
  animation: navShine 4.5s cubic-bezier(0.35, 0, 0.25, 1) infinite;
  pointer-events: none;
}
.nav-cta::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 0 8px rgba(255,255,255,0.7);
  animation: pulseDot 1.8s ease-in-out infinite;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(74,222,128,0.75), 0 0 36px rgba(74,222,128,0.5); animation-play-state: paused; }
.nav-cta:hover::before, .nav-cta:hover::after { animation-play-state: paused; }
@keyframes navPulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(74,222,128,0.55), 0 0 24px rgba(74,222,128,0.30); }
  50%     { box-shadow: 0 0 0 1px rgba(74,222,128,0.80), 0 0 40px rgba(74,222,128,0.6); }
}
@keyframes navShine {
  0%, 70% { transform: translateX(-220%) skewX(-22deg); }
  100%    { transform: translateX(320%) skewX(-22deg); }
}
@media (max-width: 760px) {
  .masthead-inner {
    grid-template-columns: auto auto;
    row-gap: 14px; padding: 14px 24px;
  }
  .wordmark { font-size: 24px; }
  .wordmark::before { width: 6px; height: 6px; transform: translateY(-6px); }
  @keyframes pulseDot { 0%,100% { opacity: 1; transform: translateY(-6px) scale(1); } 50% { opacity: 0.55; transform: translateY(-6px) scale(0.8); } }
  .nav-mid {
    display: flex; grid-column: 1 / -1;
    justify-content: space-between; gap: 8px;
    padding-top: 12px; border-top: 1px solid var(--hair); width: 100%;
  }
  .nav-mid a { font-size: 10.5px; letter-spacing: 0.10em; }
  .nav-mid a::before { display: none; }
  .nav-cta { padding: 9px 13px 9px 16px; font-size: 10.5px; gap: 8px; }
  .nav-cta::after { width: 5px; height: 5px; }
  html { scroll-padding-top: 132px; }
}

/* ─────────────── page hero (for secondary pages) ─────────────── */
section.page-hero {
  position: relative;
  padding: 70px 0 40px;
}
.page-hero-folio-bar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 18px; border-bottom: 1px solid var(--hair);
  margin-bottom: 36px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--vellum-low);
}
.page-hero-folio-bar .right { color: var(--vellum-mute); }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 200; font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: clamp(48px, 8vw, 112px);
  letter-spacing: -0.045em; line-height: 0.9;
  color: var(--vellum);
  max-width: 16ch;
  margin-bottom: 18px;
}
.page-hero h1 em {
  font-style: italic; color: var(--phos);
}
.page-hero h1 .period { color: var(--phos); }
.page-hero .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--vellum-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ─────────────── document body ─────────────── */
section.doc {
  padding: 40px 0 90px;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 300; font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--vellum);
  margin: 60px 0 18px;
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.doc h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.doc h2::before {
  /* Folio-style section index */
  content: counter(docSection, lower-roman) '.';
  font-family: var(--mono);
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phos);
  display: block;
  margin-bottom: 14px;
  counter-increment: docSection;
}
.doc { counter-reset: docSection; }
.doc h3 {
  font-family: var(--body-stack);
  font-size: 16px; font-weight: 600;
  color: var(--vellum);
  margin: 26px 0 10px;
  letter-spacing: -0.01em;
}
.doc p, .doc li {
  font-family: var(--body-stack);
  font-size: 16px;
  line-height: 1.72;
  color: var(--vellum-mute);
  margin-bottom: 16px;
}
.doc ul { padding-left: 22px; margin-bottom: 18px; }
.doc ul li { margin-bottom: 8px; }
.doc strong {
  color: var(--vellum); font-weight: 500;
}
.doc em {
  font-family: var(--accent-serif);
  font-style: italic;
  color: var(--vellum);
  letter-spacing: -0.005em;
}
.doc a {
  color: var(--phos);
  text-decoration: none;
  border-bottom: 1px dotted rgba(74,222,128,0.5);
  transition: border-color 200ms ease, color 200ms ease;
}
.doc a:hover { color: var(--phos-bright); border-bottom-color: var(--phos-bright); }
.doc .callout {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--ink-2);
  border: 1px solid var(--hair-2);
  border-left: 3px solid var(--phos);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 26px 0;
  backdrop-filter: blur(10px);
}
.doc .callout p { font-family: var(--body-stack); font-size: 15.5px; color: var(--vellum); line-height: 1.7; margin: 0; }
.doc .callout p strong { color: var(--phos); }
.doc .callout.amber { border-left-color: var(--rouge-mute); }
.doc .callout.amber p strong { color: var(--rouge-mute); }
.doc .callout.rouge { border-left-color: var(--rouge); }
.doc .callout.rouge p strong { color: var(--rouge); }

/* Refund yes/no two-up cards (used in refund.html) */
.window-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 16px;
}
@media (max-width: 720px) { .window-grid { grid-template-columns: 1fr; } }
.window-card {
  background: var(--ink-2);
  border: 1px solid var(--hair-2);
  border-radius: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.window-card .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.window-card .tag.yes { background: rgba(74,222,128,0.12); color: var(--phos); border: 1px solid rgba(74,222,128,0.3); }
.window-card .tag.no  { background: rgba(249,115,115,0.10); color: var(--rouge); border: 1px solid rgba(249,115,115,0.3); }
.window-card h4 {
  font-family: var(--display);
  font-weight: 300; font-style: italic;
  font-size: 22px; line-height: 1.1;
  color: var(--vellum);
  margin-bottom: 8px;
}
.window-card p {
  font-family: var(--body-stack);
  font-size: 14px;
  color: var(--vellum-mute);
  line-height: 1.6;
}

/* ─────────────── colophon footer (matches homepage) ─────────────── */
footer.colophon {
  border-top: 1px solid var(--hair);
  padding: 80px 0 40px;
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}
.colophon-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}
@media (max-width: 760px) { .colophon-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .colophon-grid { grid-template-columns: 1fr; } }
.colophon-grid h4 {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--vellum-low); margin-bottom: 16px;
}
.colophon-grid a {
  display: block;
  font-family: var(--body-stack);
  font-size: 14px; color: var(--vellum-mute);
  text-decoration: none; margin-bottom: 8px;
  transition: color 200ms ease;
}
.colophon-grid a:hover { color: var(--phos); }
.colophon-grid .about {
  font-family: var(--body-stack);
  font-size: 14px; color: var(--vellum-mute);
  line-height: 1.6; max-width: 38ch;
}
.colophon-about-brand {
  font-family: var(--display);
  font-style: italic; font-weight: 200;
  font-size: 28px; color: var(--vellum);
  margin-bottom: 14px;
}
.colophon-meta {
  border-top: 1px solid var(--hair);
  padding: 24px 0 0;
  display: flex; justify-content: space-between;
  align-items: baseline; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--vellum-low);
}
.risk-disclosure {
  margin-top: 26px;
  font-family: var(--body-stack); font-size: 11.5px;
  color: var(--vellum-low); line-height: 1.7;
  max-width: 100%; text-align: left;
  border-left: 2px solid var(--rouge);
  padding-left: 18px;
}
.risk-disclosure strong { color: var(--rouge); font-weight: 500; }

/* ─────────────── reveal animations ─────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 800ms cubic-bezier(0.2,0.8,0.2,1), transform 800ms cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─────────────── narrow phones ─────────────── */
@media (max-width: 520px) {
  .col { padding: 0 20px; }
  section.page-hero { padding: 50px 0 30px; }
  .page-hero h1 { font-size: clamp(38px, 11vw, 64px); }
  .page-hero-folio-bar { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 9.5px; }
  .doc h2 { font-size: 26px; margin: 44px 0 14px; padding-top: 20px; }
  .doc p, .doc li { font-size: 15.5px; }
  .colophon-grid { grid-template-columns: 1fr; gap: 28px; }
}
