/* =========================================================
   Texbies — site styles (plain CSS, no build step)
   Edit colors / fonts / spacing in :root below.
   ========================================================= */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Creepster";
  src: url("/assets/fonts/creepster-400-sub.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-sub.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --border: #2c2c2c;
  --text: #f5f5f5;
  --muted: #c9c9c9;          /* secondary text, still AA on --bg */
  --lime: #a3e635;           /* brand green */
  --lime-dark: #84cc16;
  --red: #f05252;            /* horror accent */
  --radius: 18px;
  --max: 1120px;
  --section-y: clamp(56px, 8vw, 88px);
  --font-display: "Creepster", "Impact", fantasy;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); }
a:hover { color: #c5f56b; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--lime); color: #000; padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--alt { background: #111; border-block: 1px solid #1c1c1c; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }
.grid-2 { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Type ---------- */
h1, h2, .display {
  font-family: var(--font-display); font-weight: 400; letter-spacing: .02em;
  line-height: 1.05; margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.h1-long { font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 22ch; }
h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 .4em; font-weight: 800; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: .8em; }
.accent { color: var(--lime); }
.blood { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-align: center;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--lime); color: #000; }
.btn--primary:hover { background: #bef264; color: #000; }
.btn--ghost { background: transparent; color: var(--text); border-color: #4a4a4a; }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--lg { font-size: 1.1rem; padding: 1em 1.8em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 600px) { .hero .btn-row .btn, .btn-row--stack .btn { width: 100%; padding-inline: 12px; } .hero .btn-row .btn--lg { font-size: 1rem; } }
@media (max-width: 359px) { .hero .btn-row .btn--lg { font-size: .9rem; padding-inline: 8px; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f1f1f;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: block; line-height: 0; }
.logo img { width: 172px; height: auto; display: block; }
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { width: 180px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a:not(.btn) {
  display: block; padding: .55em .8em; border-radius: 10px; color: var(--text);
  text-decoration: none; font-weight: 600; font-size: .98rem;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--lime); background: #171717; }
.nav .btn { margin-left: 10px; padding: .7em 1.2em; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .logo img { width: 142px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); cursor: pointer;
  }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0d0d0d; border-bottom: 1px solid var(--border); padding: 8px 20px 20px;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid #1c1c1c; border-radius: 0; background: none !important; }
  .nav .btn { margin: 16px 0 0; width: 100%; padding: 1em; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 8vw, 96px);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(163,230,53,.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(240,82,82,.10), transparent 60%),
    var(--bg);
}
.hero h1 { max-width: 11ch; }
/* "Texting" in blood red: same Creepster font, size and weight as the rest of the headline. */
.blood-word {
  color: #b00000;
  background: linear-gradient(180deg, #c80a0a 0%, #b00000 45%, #8a0303 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #2a0000) drop-shadow(0 0 10px rgba(200, 10, 10, .35));
}
.hero .lead { margin-bottom: 1.6em; }
.hero-art { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(163,230,53,.12); }
@media (max-width: 859px) { .hero-art { max-width: 420px; margin-inline: auto; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.step-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--lime); line-height: 1; margin-bottom: .2em; }
.art-card { background: #fff; border-radius: var(--radius); overflow: hidden; }
.figure { margin: 0; }
.figure > img, .figure > picture { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.figure > picture img { border: 0; border-radius: 0; }
.figure figcaption {
  margin-top: .75em; padding: 0 2px;
  font-size: .95rem; line-height: 1.45; color: var(--muted); font-style: italic;
  max-width: 48em;
}
.art-teaser {
  display: flex; align-items: center; gap: 14px;
  margin-top: 1.2em; padding: 10px 12px 10px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: inherit; max-width: 420px;
  transition: border-color .15s, box-shadow .15s;
}
.art-teaser:hover { border-color: rgba(163,230,53,.45); box-shadow: 0 0 24px rgba(163,230,53,.08); }
.art-teaser img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.art-teaser span { font-size: .92rem; color: var(--muted); line-height: 1.35; }
.art-teaser strong { display: block; color: var(--text); font-style: normal; font-size: .95rem; }
.art-teaser:hover strong { color: var(--lime); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat-num { font-size: clamp(2.2rem, 5vw, 2.8rem); font-weight: 900; line-height: 1; color: var(--lime); letter-spacing: -.02em; }
.stat-num.blood { color: var(--red); }
.stat p { margin: .6em 0 .5em; color: var(--text); }
.source { font-size: .85rem; color: var(--muted); }
.source a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.source a:hover { color: var(--lime); }

/* ---------- VIP / offer ---------- */
.offer {
  border: 1px solid rgba(163,230,53,.35); border-radius: 26px; padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(140deg, rgba(163,230,53,.10), rgba(10,10,10,0) 55%), var(--surface);
}
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: .7em; }
.checklist li { padding-left: 2em; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--lime); color: #000; font-weight: 900; font-size: .85em; display: grid; place-items: center; margin-top: .15em; }
.price-tag { font-size: 3rem; font-weight: 900; line-height: 1; }
.badge { display: inline-block; padding: .35em .8em; border-radius: 999px; font-size: .82rem; font-weight: 800; background: rgba(240,82,82,.15); color: #ff8a8a; border: 1px solid rgba(240,82,82,.4); margin-bottom: 1em; }
.buy-box { background: #0f0f0f; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.buy-box .shopify-mount { min-height: 64px; }
.buy-fallback { margin-top: .8em; font-size: .9rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 6px; }
input[type=email], input[type=text], select {
  width: 100%; padding: .85em 1em; border-radius: 12px; border: 1px solid #3a3a3a;
  background: #0f0f0f; color: var(--text); font: inherit;
}
input:focus, select:focus { border-color: var(--lime); outline: none; box-shadow: 0 0 0 3px rgba(163,230,53,.25); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--lime); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 240px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-weight: 600; margin: 0; }
.form-msg.ok { color: var(--lime); }
.form-msg.err { color: #ff8a8a; }

/* ---------- Kickstarter facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.4em 0; }
.fact { background: #0f0f0f; border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; }
.fact strong { display: block; font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--lime); }
.fact span { font-size: .85rem; color: var(--muted); }

/* ---------- Shop ---------- */
.products { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product img { background: #fff; aspect-ratio: 1; object-fit: contain; width: 100%; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-price { font-weight: 900; font-size: 1.3rem; }
.product .btn { margin-top: auto; }

/* ---------- Video (click-to-load) ---------- */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .play { position: absolute; width: 76px; height: 76px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.video .play svg { width: 30px; height: 30px; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Squads ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 700; padding: .7em 1.2em; border-radius: 999px; border: 1px solid #3a3a3a; background: transparent; color: var(--text); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--lime); color: #000; border-color: var(--lime); }
.result { border: 1px solid rgba(163,230,53,.4); border-radius: var(--radius); padding: 22px; background: rgba(163,230,53,.06); }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; font-weight: 800; color: var(--lime); letter-spacing: .06em; }
.rules { counter-reset: r; list-style: none; padding: 0; display: grid; gap: 10px; }
.rules li { counter-increment: r; padding-left: 2.4em; position: relative; }
.rules li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800; color: var(--lime); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #1f1f1f; padding-block: 48px 32px; background: #070707; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #1a1a1a; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted); font-size: .9rem; }

/* ---------- Misc ---------- */
.page-hero { padding-block: clamp(44px, 7vw, 80px) clamp(24px, 4vw, 40px); background: radial-gradient(800px 400px at 80% 0%, rgba(163,230,53,.10), transparent 60%); }
.page-hero .lead { margin-bottom: 0; }
.notice { border-left: 4px solid var(--lime); background: var(--surface); padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1em; } .mt-2 { margin-top: 2em; } .mb-0 { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- $1 VIP countdown (driven by sprintEndISO in config.js) ---------- */
.countdown { margin: 1.1em 0 1.4em; }
.countdown-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.countdown-unit {
  min-width: 74px; padding: 10px 12px 8px; text-align: center;
  background: #0f0f0f; border: 1px solid rgba(240,82,82,.45); border-radius: 14px;
  box-shadow: 0 0 22px rgba(200,10,10,.18), inset 0 0 18px rgba(138,3,3,.25);
}
.countdown-num {
  display: block; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1;
  color: var(--red); text-shadow: 0 2px 0 #5a0000, 0 0 12px rgba(200,10,10,.45);
  font-variant-numeric: tabular-nums;
}
.countdown-label { display: block; margin-top: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.countdown-ended { margin: 0; font-weight: 700; color: var(--text); border-left: 4px solid var(--red); padding: 10px 14px; background: var(--surface); border-radius: 0 12px 12px 0; }
@media (max-width: 420px) {
  .countdown-grid { gap: 8px; }
  .countdown-unit { min-width: 0; flex: 1 1 0; padding: 8px 4px 6px; }
  .countdown-label { font-size: .64rem; letter-spacing: .08em; }
}

/* /vip hero: same-tab $1 checkout link right under the countdown (keeps Buy above the fold on phones) */
.hero-buy { margin: 0 0 .4em; }
@media (max-width: 640px) { .hero-buy .btn { width: 100%; } }
