/* ============================================================
   GasLight — getgaslight.app
   Shared stylesheet
   Palette derived from the app flame: purple #985CE3, pink #FC83D0
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");

:root {
  /* surfaces */
  --void:      #0b0711;
  --void-2:    #120a1c;
  --surface:   #170d25;
  --surface-2: #20142f;
  --line:      rgba(152, 90, 227, 0.18);
  --line-soft: rgba(152, 90, 227, 0.10);

  /* brand */
  --ember:        #985ce3;
  --ember-bright: #b483f2;
  --flare:        #fc83d0;
  --flare-soft:   #ffaee0;

  /* text */
  --ghost:   #f4ecfb;
  --ash:     #c3b6d4;
  --ash-dim: #8a7c9e;

  /* receipt */
  --paper: #f6f1e7;
  --paper-2: #ece4d4;
  --ink:   #20181b;
  --ink-dim: #6b5f57;

  --grad: linear-gradient(135deg, var(--ember) 0%, var(--flare) 100%);
  --grad-text: linear-gradient(100deg, var(--ember-bright) 0%, var(--flare) 60%, var(--flare-soft) 100%);

  --font-display: "Clash Display", "General Sans", system-ui, -apple-system, sans-serif;
  --font-body: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1120px;
  --radius: 18px;
}

@font-face {
  font-family: "Clash Display"; font-display: swap; font-weight: 700;
  src: local("Clash Display");
}

/* fontshare faces (loaded via <link> in each page) */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--ash);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient flame glow fixed in the backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(152, 90, 227, 0.22), transparent 60%),
    radial-gradient(45% 40% at 92% 30%, rgba(252, 131, 208, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--flare-soft); text-decoration: none; }
a:hover { color: var(--flare); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--ghost); line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--ember);
  display: inline-block;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.85em 1.5em; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
}
.btn-primary {
  background: var(--grad); color: #1a0a22;
  box-shadow: 0 8px 30px -8px rgba(252, 131, 208, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); color: #1a0a22; box-shadow: 0 14px 40px -10px rgba(252, 131, 208, 0.65); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--ghost); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ghost); }

/* store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 18px 11px 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--ghost); min-width: 188px;
  transition: border-color .2s ease, transform .15s ease, background .2s ease;
}
.store-badge:hover { border-color: var(--ember); transform: translateY(-2px); color: var(--ghost); background: rgba(152,90,227,0.08); }
.store-badge svg { width: 26px; height: 26px; flex: none; fill: var(--ghost); }
.store-badge > span { display: flex; flex-direction: column; line-height: 1.12; }
.store-badge .sb-top { font-size: 0.62rem; letter-spacing: 0.08em; color: var(--ash-dim); text-transform: uppercase; }
.store-badge .sb-main { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.15; }
.store-badge .pill {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em;
  color: var(--flare); border: 1px solid rgba(252,131,208,0.4); border-radius: 999px; padding: 2px 7px;
}

/* ---------- coming-soon placeholder (pre-launch, before official store badges) ---------- */
.coming-soon { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 440px; }
.coming-soon--center { align-items: center; text-align: center; margin: 0 auto; }
.cs-pill {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--flare); border: 1px solid rgba(252,131,208,0.45); border-radius: 999px; padding: 5px 13px;
  background: rgba(252,131,208,0.06);
}
.cs-text { color: var(--ash); font-size: 0.98rem; line-height: 1.5; margin: 0; }
.cs-text strong { color: var(--ghost); font-weight: 600; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 7, 17, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--ghost); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ash); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ghost); }
.nav-cta { padding: 0.6em 1.2em; font-size: 0.92rem; }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; padding: 78px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-flame {
  width: 84px; height: 84px; border-radius: 22px; margin-bottom: 26px;
  filter: drop-shadow(0 0 28px rgba(252,131,208,0.45));
  animation: flamePulse 4.5s ease-in-out infinite;
}
@keyframes flamePulse {
  0%,100% { filter: drop-shadow(0 0 22px rgba(152,90,227,0.40)); transform: translateY(0); }
  50%     { filter: drop-shadow(0 0 38px rgba(252,131,208,0.6)); transform: translateY(-4px); }
}
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.35rem); margin-bottom: 6px; }
.tagline {
  font-family: var(--font-mono); font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--flare); letter-spacing: 0.01em; margin-bottom: 28px;
}
.hero .hook { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem,2.6vw,1.5rem); color: var(--ghost); margin-bottom: 14px; letter-spacing: -0.01em; }
.hero .lead { font-size: 1.08rem; max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.trust-row { display: flex; align-items: center; gap: 18px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ash-dim); text-transform: uppercase; flex-wrap: wrap; }
.trust-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ember); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 52px 0 64px; }
}

/* ---------- the receipt (signature element) ---------- */
.receipt-stage { display: flex; justify-content: center; perspective: 1200px; }
.receipt {
  --zw: 16px; --zh: 9px;
  width: min(360px, 92%);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 30px 26px 26px;
  position: relative;
  box-shadow: 0 40px 80px -28px rgba(0,0,0,0.85), 0 0 60px -20px rgba(252,131,208,0.35);
  transform: rotate(-1.4deg);
  background-image:
    linear-gradient(var(--paper), var(--paper)),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.015) 0 2px, transparent 2px 4px);
  /* torn top + bottom edges */
  -webkit-mask:
    linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--zh)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zw) var(--zh) repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zw) var(--zh) repeat-x;
          mask:
    linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--zh)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zw) var(--zh) repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zw) var(--zh) repeat-x;
  animation: printIn .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes printIn {
  from { opacity: 0; transform: rotate(-1.4deg) translateY(26px); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: rotate(-1.4deg) translateY(0);    clip-path: inset(0 0 0 0); }
}
.receipt .r-head { text-align: center; margin-bottom: 6px; }
.receipt .r-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; color: var(--ink); }
.receipt .r-sub { font-size: 0.66rem; letter-spacing: 0.34em; color: var(--ink-dim); text-transform: uppercase; }
.receipt .r-rule { border: 0; border-top: 1.5px dashed rgba(32,24,27,0.4); margin: 12px 0; }
.receipt .r-meta { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--ink-dim); }
.receipt .r-line { display: flex; justify-content: space-between; gap: 12px; }
.receipt .r-line .q { color: var(--ink); }
.receipt .r-quote { font-size: 0.78rem; color: #3a2f33; padding: 2px 0; }
.receipt .r-quote b { color: var(--ink); }
.receipt .r-score {
  text-align: center; margin: 6px 0;
}
.receipt .r-score .num { font-family: var(--font-display); font-weight: 700; font-size: 3.1rem; line-height: 1; color: #c0307a; }
.receipt .r-score .num small { font-size: 1.2rem; color: var(--ink-dim); font-weight: 600; }
.receipt .r-score .label { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim); }
.receipt .r-pat { display: flex; justify-content: space-between; font-size: 0.74rem; }
.receipt .r-pat .x { color: #c0307a; }
.receipt .r-foot { text-align: center; font-size: 0.66rem; letter-spacing: 0.14em; color: var(--ink-dim); margin-top: 4px; }
.receipt .r-barcode {
  height: 34px; margin-top: 12px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px, var(--ink) 7px 10px, transparent 10px 12px);
  opacity: 0.82;
}

@media (prefers-reduced-motion: reduce) {
  .receipt, .hero-flame { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- sections ---------- */
section { position: relative; z-index: 1; }
.section { padding: 84px 0; }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 14px 0 14px; }
.section-head p { font-size: 1.08rem; color: var(--ash); }

/* steps (a real sequence -> numbered) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: linear-gradient(180deg, var(--surface), var(--void-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; position: relative; overflow: hidden;
}
.step::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); opacity: 0.7; }
.step .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ember-bright); letter-spacing: 0.2em; }
.step h3 { font-size: 1.3rem; margin: 16px 0 8px; }
.step p { font-size: 0.98rem; color: var(--ash); }
.step .chip { display:inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--flare); border:1px solid rgba(252,131,208,0.35); border-radius:999px; padding: 4px 11px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: rgba(255,255,255,0.022);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.feature:hover { border-color: var(--line); transform: translateY(-3px); background: rgba(152,90,227,0.06); }
.feature .ic { width: 42px; height: 42px; display:grid; place-items:center; border-radius: 11px; background: var(--grad); margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; stroke: #14081a; fill: none; stroke-width: 1.9; }
.feature h3 { font-size: 1.12rem; margin-bottom: 7px; }
.feature p { font-size: 0.95rem; color: var(--ash); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* trust / safety strip */
.safety {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(152,90,227,0.10), rgba(252,131,208,0.06));
  padding: 36px 34px; display: grid; grid-template-columns: 1fr; gap: 14px;
}
.safety h3 { font-size: 1.45rem; }
.safety p { color: var(--ash); max-width: 56em; }

/* CTA band */
.cta-band { text-align: center; padding: 90px 0 96px; }
.cta-band h2 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 14px; }
.cta-band p { color: var(--ash); font-size: 1.1rem; margin-bottom: 30px; }
.cta-band .badges { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 44px; position: relative; z-index: 1; background: var(--void-2); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { max-width: 24em; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; color: var(--ash-dim); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash-dim); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: var(--ash); font-size: 0.95rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--flare); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: var(--ash-dim); }

/* ---------- legal / content pages ---------- */
.doc { position: relative; z-index: 1; padding: 56px 0 90px; }
.doc-wrap { max-width: 760px; }
.doc .eyebrow { margin-bottom: 16px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 10px; }
.doc .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ash-dim); margin-bottom: 40px; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 12px; color: var(--ghost); }
.doc h3 { font-size: 1.08rem; margin: 24px 0 8px; color: var(--ghost); font-family: var(--font-body); font-weight: 600; }
.doc p, .doc li { color: var(--ash); font-size: 1.0rem; margin-bottom: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ghost); }
.doc .doc-sign { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--ash-dim); }
.doc .callout {
  border: 1px solid var(--line); border-left: 3px solid var(--flare);
  background: rgba(252,131,208,0.06); border-radius: 12px; padding: 18px 20px; margin: 24px 0;
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc .toc { border:1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 0 0 40px; background: rgba(255,255,255,0.02); }
.doc .toc h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash-dim); margin-bottom: 12px; }
.doc .toc a { display:block; margin-bottom: 8px; font-size: 0.95rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 0.94rem; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border: 1px solid var(--line); vertical-align: top; }
.doc th { background: rgba(152,90,227,0.10); color: var(--ghost); font-family: var(--font-body); }

/* support page */
.support-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 8px 0 40px; }
.support-card { border:1px solid var(--line); border-radius: var(--radius); padding: 26px; background: rgba(255,255,255,0.022); }
.support-card h3 { font-family: var(--font-body); font-weight:600; font-size: 1.1rem; margin-bottom: 8px; color: var(--ghost); }
.support-card a.big { font-family: var(--font-mono); font-size: 1.05rem; color: var(--flare); }
@media (max-width: 700px){ .support-grid { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--ghost); font-size: 1.05rem; display:flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content: "+"; color: var(--ember-bright); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ash); }

/* reveal on scroll (only hides when JS is active) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* focus visibility */
:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; border-radius: 4px; }

/* back link */
.back-link { display:inline-flex; align-items:center; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--ash-dim); margin-bottom: 28px; }
.back-link:hover { color: var(--flare); }
