/* ─────────────────────────────────────────────────────────────────────────────
   REVEAL Landing — Shared Base
   shared-base.css

   Included by: /  /features  /pricing  /use-cases  /signal-providers  /invite

   Provides:
     1. CSS reset
     2. CSS custom properties (:root)
     3. html / body defaults
     4. body noise-texture overlay
     5. shared keyframes
     6. Canonical reusable component classes
   ───────────────────────────────────────────────────────────────────────────── */

/* ── 1. Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── 2. Design tokens ── */
:root {
  /* Warm neutrals */
  --ivory:       #F5F0E6;
  --eggshell:    #F2EDE0;
  --linen:       #EDE6D6;
  --warm-white:  #f7f7f7;
  --parchment:   #E8DEC8;
  --taupe:       #B8A898;
  --stone:       #D4C4B0;

  /* Brand earth tones */
  --cognac:      #8C4A2F;
  --cognac-dim:  rgba(140,74,47,0.1);
  --botanical:   #2e382b;

  /* Dark surfaces */
  --slate-deep:  #1E2A38;
  --slate-mid:   #2A3545;
  --charcoal:    #2C2824;
  --slate:       #4A5568;

  /* Gold — canonical value across all REVEAL pages */
  --gold:        #B8860B;
  --gold-light:  rgba(184,134,11,0.15);
  --gold-rule:   rgba(184,134,11,0.3);
}

/* ── 3. Base element defaults ── */
html { scroll-behavior: smooth; }

body {
  background: var(--eggshell);
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── 4. Noise texture overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 200;
}

/* ── 5. Shared keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. Canonical component classes
   Use these instead of per-page bespoke names. Existing bespoke class names
   remain valid on pages that already define them — these are additive aliases
   for new markup and future normalization passes.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Eyebrow labels ──
   JetBrains Mono · 9px · uppercase · gold
   Replace: .eyebrow, .sec-eye, .origin-eye, .feat-eyebrow, .page-eye, etc. */
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

/* Large variant — 11px (matches .sec-eye on signal-providers/invite) */
.section-eyebrow--lg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Section headings ──
   Playfair Display · 600 · responsive
   Replace: .feat-h2, .integrity-h2, .page-title, .sec-h2, etc. */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.18;
  color: var(--charcoal);
}

/* Hero / page H1 level
   Replace: .hero-h1, .hero-title on individual pages */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--charcoal);
}

/* ── Section shell container ──
   Centred content wrapper. Replace: .proof-inner, .clarity-inner, etc. */
.section-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 760px) {
  .section-shell { padding: 0 24px; }
}

/* ── Primary CTA button — gold fill ──
   Replace: .btn-gold (features), .cta-primary (use-cases), .analyst-cta, etc. */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  text-align: center;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn-primary:hover {
  background: #A07508;
  border-color: #A07508;
  transform: translateY(-1px);
}

/* ── Outline CTA button — transparent, gold border ──
   Replace: .btn-outline (features), .cta-secondary (use-cases) */
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--charcoal);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  text-align: center;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-1px);
}

/* ── Pull quote — Lora italic with gold left rule ──
   Replace: .pull (index), .proof-pull, etc. */
.pull-quote {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.75;
  color: var(--slate);
  padding-left: 22px;
  border-left: 2px solid var(--gold-rule);
}

/* ── Label chips — small inline taxonomy tags ──
   Replace: .pillar-tag, .lns-chip, .context-chip, .analyst-feature-chip */
.label-chip {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cognac);
  border: 1px solid var(--cognac-dim);
  border-radius: 2px;
  padding: 3px 8px;
  background: var(--cognac-dim);
  white-space: nowrap;
}

/* Muted variant — slate text, stone border (features.html .alongside-chip) */
.label-chip--muted {
  color: var(--slate);
  border-color: var(--stone);
  background: transparent;
}
