/* ============================================================
   AIAROD — cinematic design system (shared across all pages)
   Fonts loaded per-page: Space Grotesk (display), Inter (body),
   JetBrains Mono (labels). This file owns tokens + components.
   ============================================================ */

:root {
  /* base surfaces */
  --bg: #0a0908;
  --surface: #131110;
  --surface-2: #1a1714;
  --surface-3: #221e19;
  --line: rgba(233, 222, 199, 0.10);
  --line-2: rgba(233, 222, 199, 0.18);

  /* text */
  --text: #f5f1e8;
  --text-2: #b3ac9d;
  --text-3: #857f70;

  /* brass accent */
  --brass: #c9a24b;
  --brass-2: #eacb7d;
  --brass-3: #9c7a30;
  --brass-glow: rgba(201, 162, 75, 0.35);

  --ok: #74d7a0;
  --danger: #e8837a;

  --r-sm: 9px;
  --r: 14px;
  --r-lg: 22px;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 30px -12px rgba(0,0,0,0.6);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.05) inset, 0 40px 80px -28px rgba(0,0,0,0.75);
  --ease: cubic-bezier(.2,.7,.2,1);
  --maxw: 1120px;

  /* backward-compat aliases (used by a few inline styles) */
  --ink: var(--text);
  --paper: var(--bg);
  --card: var(--surface);
  --muted: var(--text-2);
  --brass-dark: var(--brass-3);
  --radius: var(--r);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* cinematic lighting — fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(201,162,75,0.16), transparent 62%),
    radial-gradient(900px 700px at 12% 8%, rgba(201,162,75,0.06), transparent 60%),
    radial-gradient(1000px 800px at 100% 40%, rgba(120,90,40,0.07), transparent 60%),
    linear-gradient(180deg, #0b0a09 0%, #0a0908 40%, #080706 100%);
}
/* vignette + film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 50% 50%, transparent 58%, rgba(0,0,0,0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: cover, 220px 220px;
  opacity: 0.5;
  mix-blend-mode: soft-light;
}

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
a { color: inherit; }
.mono, .kicker, .eyebrow, .badge, .count-pill, .sub-label, .dlhead, .l, .promo, .back, .brand, .topbar .tag {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.grad {
  background: linear-gradient(96deg, var(--brass-2), var(--brass) 45%, var(--brass-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- shell ---------- */
.topbar {
  position: relative; z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.28em; font-size: 14px; color: var(--text);
  text-decoration: none;
}
.brand .mark {
  width: 20px; height: 20px; display: inline-block; color: var(--brass-2);
  filter: drop-shadow(0 0 8px var(--brass-glow));
}
.topbar .tag { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.back {
  font-size: 12px; letter-spacing: 0.04em; color: var(--text-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; transition: color .2s var(--ease);
}
.back:hover { color: var(--text); }

footer {
  position: relative; z-index: 2;
  text-align: center; padding: 40px 20px 30px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
  font-family: "JetBrains Mono", monospace;
}

/* eyebrow pill with live dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--brass-2);
  border: 1px solid rgba(201,162,75,0.28);
  background: rgba(201,162,75,0.07);
  padding: 7px 15px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brass-2);
  box-shadow: 0 0 0 0 rgba(201,162,75,0.6); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,162,75,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(201,162,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,75,0); }
}

/* ---------- buttons ---------- */
.btn, a.btn, button.btn {
  font-family: "Inter", sans-serif; cursor: pointer; border: 1px solid transparent;
  border-radius: var(--r-sm); font-weight: 600; font-size: 14px;
  padding: 12px 20px; text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  transition: transform .12s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-dl, .btn-submit {
  color: #17130a;
  background: linear-gradient(180deg, var(--brass-2), var(--brass));
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 10px 26px -8px var(--brass-glow);
}
.btn-primary:hover, .btn-dl:hover, .btn-submit:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost, .btn-refresh {
  color: var(--text); background: var(--surface-2); border-color: var(--line-2);
}
.btn-ghost:hover, .btn-refresh:hover { background: var(--surface-3); border-color: var(--brass-3); }
.btn-clear { color: var(--danger); background: transparent; border-color: rgba(232,131,122,0.3); }
.btn-clear:hover { background: rgba(232,131,122,0.10); }
button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- generic surface card ---------- */
.surface {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

/* ============================================================
   HERO / HOME
   ============================================================ */
main { position: relative; z-index: 2; }
.hero-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 28px 40px;
  min-height: calc(100vh - 210px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.hero-wrap h1 {
  font-size: clamp(44px, 8.5vw, 92px);
  margin: 26px 0 20px;
  max-width: 15ch;
}
.lede {
  font-size: clamp(16px, 1.8vw, 20px); color: var(--text-2);
  max-width: 56ch; margin: 0 auto 46px;
}
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 760px; }
.cta {
  position: relative; overflow: hidden; text-align: left; text-decoration: none; color: inherit;
  padding: 28px 26px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .18s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.cta::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 180px at 20% -10%, rgba(201,162,75,0.14), transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.cta:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.cta:hover::before { opacity: 1; }
.cta .ic {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--brass-2); background: rgba(201,162,75,0.10); border: 1px solid rgba(201,162,75,0.22);
  margin-bottom: 18px;
}
.cta .ic svg { width: 22px; height: 22px; }
.cta h3 { font-size: 21px; margin: 0 0 7px; }
.cta p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.cta .arrow { position: absolute; top: 26px; right: 24px; color: var(--brass-2); opacity: 0; transform: translateX(-4px); transition: .25s var(--ease); }
.cta:hover .arrow { opacity: 1; transform: translateX(0); }
.cta.primary {
  grid-column: 1 / -1;
  background:
    linear-gradient(120deg, rgba(201,162,75,0.16), rgba(201,162,75,0.04) 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: rgba(201,162,75,0.34);
}
.cta.primary .ic { color: #17130a; background: linear-gradient(180deg, var(--brass-2), var(--brass)); border-color: transparent; box-shadow: 0 8px 20px -8px var(--brass-glow); }
.promo {
  align-self: flex-start; margin-top: 15px; font-size: 11px; letter-spacing: 0.06em; font-weight: 600;
  color: var(--ok); background: rgba(116,215,160,0.12); border: 1px solid rgba(116,215,160,0.3);
  padding: 5px 12px; border-radius: 999px;
}
.promo b { color: #a9ecc6; letter-spacing: 0.1em; }

/* ============================================================
   RETAILER CHOOSER
   ============================================================ */
.page-wrap { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 30px 28px 60px; }
.center { text-align: center; }
.page-wrap h1 { font-size: clamp(30px, 5vw, 50px); margin: 16px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.retailer {
  position: relative; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 190px; padding: 30px 18px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform .18s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.retailer .halo { position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.retailer.active:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.retailer.active:hover .halo { opacity: 1; }
.retailer.soon { opacity: .5; cursor: not-allowed; }
.retailer .logo { font-family: "Space Grotesk", sans-serif; font-size: 23px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.retailer .rname { font-size: 13px; color: var(--text-2); font-family: "JetBrains Mono", monospace; letter-spacing: 0.04em; }
.logo.target { color: #ff5b64; }
.logo.walmart { color: #ffc733; }
.logo.pkmn { color: #ffd23e; }
.retailer.active.t-target .halo { background: radial-gradient(300px 160px at 50% -10%, rgba(255,91,100,0.16), transparent 70%); }
.retailer.active.t-pkmn .halo { background: radial-gradient(300px 160px at 50% -10%, rgba(255,210,62,0.16), transparent 70%); }
.badge {
  margin-top: 14px; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
}
.badge.go { color: var(--ok); background: rgba(116,215,160,0.12); border: 1px solid rgba(116,215,160,0.32); }
.badge.wait { color: var(--text-3); background: rgba(255,255,255,0.05); border: 1px solid var(--line); }

/* ============================================================
   FORMS (Target / Pokemon) — Operate
   ============================================================ */
.wrap { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; padding: 26px 24px 150px; }
header.masthead { border-bottom: 1px solid var(--line-2); padding-bottom: 20px; margin-bottom: 26px; }
.kicker { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-2); font-weight: 500; }
.wrap h1 { font-size: clamp(26px, 4vw, 38px); margin: 8px 0 6px; }
.sub { color: var(--text-2); font-size: 15px; margin: 0; }
.steps {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin: 22px 0 30px;
  font-size: 14px; color: var(--text-2);
}
.steps b { color: var(--text); }
.steps ol { margin: 8px 0 0; padding-left: 20px; }
.steps li { margin: 3px 0; }
.field-group {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 30px;
}
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.hint { font-weight: 400; color: var(--text-3); font-size: 12px; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: rgba(10,9,8,0.6); color: var(--text);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
input::placeholder, textarea::placeholder { color: #6a6456; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brass); background: rgba(10,9,8,0.85);
  box-shadow: 0 0 0 3px rgba(201,162,75,0.16);
}
textarea { resize: vertical; min-height: 74px; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.row { margin-bottom: 13px; }
section.block { margin-bottom: 42px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.block-head h2 { font-size: 20px; }
.count-pill { font-size: 12px; color: var(--brass-2); background: rgba(201,162,75,0.10); border: 1px solid rgba(201,162,75,0.24); padding: 2px 11px; border-radius: 999px; margin-left: 4px; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow-1);
}
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title .idx { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-2); font-weight: 600; font-family: "JetBrains Mono", monospace; }
.sub-label {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 600;
  margin: 20px 0 9px; padding-top: 14px; border-top: 1px solid var(--line);
}
.sub-label:first-of-type { border-top: none; padding-top: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--brass); }
.btn-add { background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: .2s var(--ease); font-family: "Inter", sans-serif; }
.btn-add:hover { border-color: var(--brass-3); background: #2a251d; }
.btn-remove { background: transparent; color: var(--danger); border: 1px solid rgba(232,131,122,0.28); padding: 5px 12px; font-size: 12px; border-radius: 7px; cursor: pointer; font-family: "Inter", sans-serif; font-weight: 600; }
.btn-remove:hover { background: rgba(232,131,122,0.10); }
.btn-dup { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); padding: 5px 12px; font-size: 12px; border-radius: 7px; cursor: pointer; font-family: "Inter", sans-serif; font-weight: 600; }
.btn-dup:hover { background: var(--surface-3); color: var(--text); }
.card-remove-wrap { display: flex; justify-content: flex-end; margin-top: 12px; }
.actionbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: linear-gradient(180deg, rgba(12,11,10,0.4), rgba(10,9,8,0.92));
  backdrop-filter: blur(12px); border-top: 1px solid var(--line-2);
  padding: 15px 20px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.actionbar .btn-submit { padding: 13px 34px; font-size: 15px; }
.status { font-size: 13px; color: var(--ok); font-weight: 600; min-height: 18px; font-family: "JetBrains Mono", monospace; }
.status.err { color: var(--danger); }
.empty { color: var(--text-3); font-size: 14px; font-style: italic; padding: 10px 0 16px; }
.thankyou { position: relative; z-index: 2; text-align: center; padding: 90px 20px; max-width: 560px; margin: 0 auto; }
.thankyou h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; }
.thankyou .check-circle {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px;
  background: linear-gradient(180deg, var(--brass-2), var(--brass)); color: #17130a;
  font-size: 36px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px -12px var(--brass-glow);
}
.thankyou button { margin-top: 26px; }

/* ============================================================
   ADMIN — Operate dashboard
   ============================================================ */
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 22px; }
.stat {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-1);
}
.stat .n { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; font-family: "Space Grotesk", sans-serif; color: var(--text); }
.stat .l { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.dlgroup {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-1);
}
.dlhead { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.dlhead .muted { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-3); font-family: "Inter", sans-serif; }
.downloads { display: flex; gap: 12px; flex-wrap: wrap; }
.bar { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 12px; flex-wrap: wrap; gap: 10px; }
.bar h2 { font-size: 18px; }
table {
  width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1);
}
th, td { text-align: left; padding: 12px 15px; font-size: 14px; border-bottom: 1px solid var(--line); }
th { background: rgba(255,255,255,0.02); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-family: "JetBrains Mono", monospace; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s var(--ease); }
tbody tr:hover { background: rgba(201,162,75,0.04); }
.muted { color: var(--text-3); }
.del { background: transparent; border: 1px solid var(--line-2); color: var(--danger); border-radius: 7px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: "Inter", sans-serif; font-weight: 600; }
.del:hover { background: rgba(232,131,122,0.10); }
.locked { text-align: center; padding: 90px 20px; color: var(--danger); font-family: "JetBrains Mono", monospace; }

/* ============================================================
   COMING SOON
   ============================================================ */
.cs-wrap { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.cs-box { max-width: 520px; }
.cs-box h1 { font-size: clamp(30px, 5vw, 46px); margin: 20px 0 12px; }
.cs-box p { color: var(--text-2); font-size: 16px; margin: 0 0 30px; }

/* ============================================================
   MOTION — entrance
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { opacity: 0; animation: rise .8s var(--ease) forwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .15s; }
.d3 { animation-delay: .27s; }
.d4 { animation-delay: .39s; }
.d5 { animation-delay: .51s; }
.d6 { animation-delay: .63s; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; }
  .eyebrow .dot { animation: none; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .totals { grid-template-columns: 1fr; }
  .topbar { padding: 18px 20px; }
}
