:root {
  --bg: #0b0d12;
  --bg-2: #10141c;
  --surface: #151a24;
  --surface-2: #1b2130;
  --line: #262e3f;
  --text: #eef1f6;
  --muted: #9aa4b6;
  --gold: #f5c518;
  --gold-ink: #17130a;
  --blue: #6cb2ff;
  --ok: #3ccf8e;
  --warn: #ffb547;
  --bad: #ff6b6b;
  --radius: 16px;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.todo { color: var(--warn); font-weight: 600; }

/* Header / footer */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11,13,18,.82); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; gap: 8px; align-items: center; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.bolt { color: var(--gold); }
.header-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.header-link:hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 48px; color: var(--muted); font-size: .92rem; }
.site-footer p { margin: 0 0 .5em; }
.fine { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* Hero */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(108,178,255,.18), transparent 60%),
    radial-gradient(700px 380px at 0% 0%, rgba(245,197,24,.10), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: #cfd6e3; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); margin-bottom: 20px; }
.pill-preorder { border-color: rgba(245,197,24,.45); color: var(--gold); background: rgba(245,197,24,.08); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  background: var(--text); color: var(--bg); font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #3a455c; }
.btn-block { width: 100%; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
form { margin: 0; }

/* Sections */
.section { padding: 72px 0 0; }
.section-sub { color: var(--muted); margin-top: -.4em; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 24px; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.module p { color: var(--muted); margin: 0; font-size: .98rem; }
.num { font-family: var(--display); color: var(--gold); font-weight: 800; font-size: .95rem; display: block; margin-bottom: 10px; }

/* Package cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 28px; align-items: stretch; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; }
.card > form, .card > .btn { margin-top: auto; }
.card-vip { background: linear-gradient(180deg, rgba(245,197,24,.07), transparent 40%), var(--surface-2); border-color: rgba(245,197,24,.45); }
.card-flag { position: absolute; top: -12px; right: 20px; background: var(--gold); color: var(--gold-ink); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.card-tag { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 18px; }
.amount { font-family: var(--display); font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; }
.once { color: var(--muted); font-size: .9rem; }
.list { list-style: none; padding: 0; margin: 0 0 18px; }
.list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.list li.muted { color: var(--muted); }
.ic { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; fill: var(--ok); }
.ic-x { fill: var(--muted); }
.detail { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .93rem; color: #cfd6e3; margin-bottom: 14px; }
.detail.left { text-align: left; }
.terms-note { color: var(--muted); font-size: .9rem; margin-top: 20px; text-align: center; }

.honest { border: 1px solid rgba(245,197,24,.28); border-radius: var(--radius); padding: 24px; background: var(--bg-2); }
.honest h2::before { content: "⚠ "; color: var(--gold); font-size: .8em; }
.honest p { color: #cfd6e3; margin: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: #cfd6e3; padding-bottom: 8px; }

/* Buy / success pages */
.buy { padding-top: 40px; }
.buy-action { margin: 24px 0 18px; }
.secure { text-align: center; font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
.notice { background: rgba(108,178,255,.1); border: 1px solid rgba(108,178,255,.35); border-radius: 12px; padding: 12px 14px; margin: 18px 0; }
.notice-warn { background: rgba(255,181,71,.08); border-color: rgba(255,181,71,.4); }
.notice-warn summary { cursor: pointer; font-weight: 600; color: var(--warn); }
.success-mark { width: 64px; height: 64px; border-radius: 50%; margin: 10px auto 18px; display: grid; place-items: center; font-size: 2rem; font-weight: 800; background: rgba(60,207,142,.14); color: var(--ok); }

.prose { padding-top: 40px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose li { margin-bottom: .5em; color: #cfd6e3; }
.prose p { color: #cfd6e3; }

/* Admin */
.admin { padding-top: 24px; }
.mode { text-decoration: none; font-size: .75rem; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.mode-live { background: rgba(60,207,142,.15); color: var(--ok); }
.mode-test { background: rgba(255,181,71,.15); color: var(--warn); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat-label { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat-value { font-family: var(--display); font-size: 1.7rem; font-weight: 800; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.panel h2 { font-size: 1.25rem; }
.panel-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
input, select, textarea { font: 400 1rem var(--body); color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 44px; width: 100%; }
.access-form { display: grid; gap: 14px; max-width: 640px; }
.access-form .btn { justify-self: start; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 8px; border-bottom: 1px solid var(--line); }
td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.row-actions { white-space: nowrap; }
.row-actions a, .linkish { display: block; font-size: .85rem; }
.linkish { background: none; border: 0; padding: 0; margin-top: 4px; color: var(--blue); cursor: pointer; font: inherit; font-size: .85rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.b-paid, .c-sent { background: rgba(60,207,142,.14); color: var(--ok); }
.b-processing, .c-pending, .c-sending, .c-not_configured { background: rgba(255,181,71,.14); color: var(--warn); }
.b-failed, .c-failed { background: rgba(255,107,107,.14); color: var(--bad); }
.b-refunded, .b-partially_refunded { background: rgba(154,164,182,.16); color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .br-desk { display: none; }
  .hero { padding: 48px 0 44px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section { padding-top: 56px; }
  .card { padding: 24px 18px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input { grid-column: 1 / -1; }
  /* Stack the purchases table into cards on phones */
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; margin-bottom: 10px; }
  td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  td::before { content: attr(data-l); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: left; }
  td.row-actions { justify-content: flex-start; gap: 16px; }
  td.row-actions::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ── Big Crump merch ─────────────────────────────────────────────── */
.crump-body { --gold: #e8b84a; --gold-ink: #16110a; background: #0a0a0b; }
.crump-header { position: sticky; top: 0; z-index: 10; background: rgba(10,10,11,.85); backdrop-filter: blur(12px); border-bottom: 1px solid #23222a; }
.crump-mark { font-family: 'UnifrakturMaguntia', Georgia, serif; font-size: 1.7rem; color: var(--gold); text-decoration: none; line-height: 1; }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; padding-top: 28px; align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; aspect-ratio: 1; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buybox { position: sticky; top: 84px; }
.tagline { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .82rem; color: var(--gold); margin-bottom: 6px; }
.buybox h1 { font-family: 'UnifrakturMaguntia', Georgia, serif; font-weight: 400; letter-spacing: 0; font-size: clamp(2.6rem, 6vw, 3.6rem);
  background: linear-gradient(180deg, #ffffff 0%, #c9ced6 45%, #8d939c 55%, #eef1f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blurb { color: #cfcabf; }
.size-form fieldset { border: 0; padding: 0; margin: 18px 0 16px; }
.size-form legend { font-weight: 700; margin-bottom: 10px; width: 100%; display: flex; justify-content: space-between; }
.chart-link { font-weight: 500; font-size: .9rem; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size { position: relative; display: block; color: var(--text); font-size: 1rem; }
.size input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.size span { display: grid; place-items: center; min-height: 48px; border: 1px solid #35343c; border-radius: 10px; font-weight: 700; background: #141418; transition: border-color .12s, background .12s; }
.size input:hover + span { border-color: #5a5862; }
.size input:checked + span { border-color: var(--gold); background: rgba(232,184,74,.14); color: #fff; box-shadow: inset 0 0 0 1px var(--gold); }
.size input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: .93rem; }
.facts li { padding: 8px 0; border-top: 1px solid #23222a; }
.policy li { margin-bottom: .6em; color: #cfcabf; }

@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
  .wrap.product { padding: 0; }
  .buybox { position: static; padding: 0 16px; }
  /* Swipeable gallery on phones (no JavaScript needed) */
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 88%; scroll-snap-align: center; border-radius: 0; margin-right: 6px; }
  .gallery figure:first-child { flex-basis: 88%; }
}

/* Big Crump home */
.crump-nav { display: flex; gap: 20px; }
.crump-nav a { color: #cfcabf; text-decoration: none; font-weight: 600; font-size: .95rem; }
.crump-nav a:hover { color: #fff; }
.crump-hero { padding: 48px 0 24px; background: radial-gradient(700px 420px at 80% 10%, rgba(232,184,74,.16), transparent 65%); border-bottom: 1px solid #1d1c22; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.crump-title { font-family: 'UnifrakturMaguntia', Georgia, serif; font-weight: 400; letter-spacing: 0; line-height: .95; margin: 0 0 16px;
  font-size: clamp(4rem, 13vw, 8.5rem);
  background: linear-gradient(180deg, #fff6dc 0%, #e8b84a 48%, #a8771f 52%, #f4d58a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: #d9d4c8; max-width: 520px; }
.hero-portrait { margin: 0; justify-self: center; width: min(100%, 420px); aspect-ratio: 598 / 879; border-radius: 24px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(232,184,74,.5), 0 30px 80px rgba(0,0,0,.6), 0 0 120px rgba(232,184,74,.12); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.socials-center { justify-content: center; }
.socials-footer { margin: 0 0 18px; }
.social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #35343c; color: var(--text); text-decoration: none; font-weight: 600; background: #141418; }
.social:hover { border-color: var(--gold); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.clip { margin: 0; }
.clip video { width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; background: #000; display: block; object-fit: cover; border: 1px solid #23222a; }
.clip figcaption { margin-top: 8px; font-weight: 700; }
.product-title { font-family: 'UnifrakturMaguntia', Georgia, serif; font-weight: 400; letter-spacing: 0; font-size: clamp(2.4rem, 6vw, 3.4rem);
  background: linear-gradient(180deg, #ffffff 0%, #c9ced6 45%, #8d939c 55%, #eef1f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.follow h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

@media (max-width: 820px) {
  .crump-hero { padding: 28px 0 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-portrait { order: -1; width: 72%; }
  .hero-copy { text-align: center; }
  .hero-copy .socials, .hero-cta { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .crump-nav { gap: 14px; }
  /* Swipe through clips on phones */
  .clips { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .clips::-webkit-scrollbar { display: none; }
  .clip { flex: 0 0 62%; scroll-snap-align: start; }
  #shop > .wrap.product { padding: 0; }
}

/* Setup / Stripe connection */
.setup { padding-top: 32px; }
.setup-form { display: grid; gap: 16px; margin-top: 20px; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.help { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.help summary { cursor: pointer; font-weight: 600; }
.help ol { padding-left: 20px; margin: 10px 0; }
.help li { margin-bottom: 6px; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.admin-actions { display: flex; align-items: center; gap: 14px; }
.admin-actions .linkish { margin: 0; }
