/* ============================================================
   Ricochet Rips - ricochetrips.com
   Brand: near-black field, electric blue, gold accent, Anton
   display type. Matches the store-agent app so the public site
   and the back office read as one brand.
   ============================================================ */

:root {
  --bg: #04060a;
  --bg-2: #070b12;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-solid: #0b1220;
  --line: rgba(255, 255, 255, 0.09);
  --line-hot: rgba(59, 141, 255, 0.55);

  --blue: #2563eb;
  --blue-bright: #3b8dff;
  --blue-pale: #9fc8ff;
  --gold: #f7b500;
  --gold-pale: #ffd970;

  --white: #f2f7ff;
  --muted: #93a3b8;
  --dim: #64748b;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky nav is 68px tall; keep anchor targets clear of it. */
  scroll-padding-top: 84px;
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--white);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px circle at 15% -10%, rgba(37, 99, 235, 0.26), transparent 55%),
    radial-gradient(700px circle at 95% 8%, rgba(59, 141, 255, 0.12), transparent 50%),
    radial-gradient(800px circle at 50% 100%, rgba(247, 181, 0, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(var(--maxw), calc(100% - 40px)); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

.display {
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.blue { color: var(--blue-bright); }
.gold { color: var(--gold); }

/* Section furniture -------------------------------------------------- */

section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-pale);
  background: rgba(37, 99, 235, 0.13);
  border: 1px solid rgba(59, 141, 255, 0.3);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow.is-gold {
  color: var(--gold-pale);
  background: rgba(247, 181, 0, 0.11);
  border-color: rgba(247, 181, 0, 0.32);
}

h2.display { font-size: clamp(34px, 5.2vw, 58px); margin: 0 0 16px; }
h3.display { font-size: clamp(20px, 2.4vw, 25px); margin: 0 0 8px; }

.lede {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 62ch;
  margin: 0;
}

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  box-shadow: 0 10px 34px rgba(37, 99, 235, 0.42);
}
.btn-primary:hover { box-shadow: 0 16px 46px rgba(37, 99, 235, 0.58); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-pale), var(--gold));
  color: #241900;
  box-shadow: 0 10px 34px rgba(247, 181, 0, 0.34);
}
.btn-gold:hover { box-shadow: 0 16px 46px rgba(247, 181, 0, 0.5); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--line-hot); background: rgba(59, 141, 255, 0.1); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* Nav ----------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(59, 141, 255, 0.4);
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.45);
}
.brand-text { font-size: 19px; line-height: 1; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: #b8c6d6;
}
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--gold));
  transition: width 0.22s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 8px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* Hero ---------------------------------------------------------------- */

.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(52px, 7vw, 90px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(46px, 8.4vw, 96px);
  margin: 0 0 22px;
  text-shadow: 0 0 60px rgba(37, 99, 235, 0.35);
}
.hero h1 span { display: block; }
.hero p.lede { margin-bottom: 30px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 13px;
  color: var(--dim);
  align-items: center;
}
.trust b { color: var(--white); font-size: 15px; }
.trust span { display: inline-flex; align-items: baseline; gap: 6px; }

/* Hero pack card ------------------------------------------------------ */

.pack-card {
  position: relative;
  border-radius: var(--radius);
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(59, 141, 255, 0.16), rgba(255, 255, 255, 0.02) 46%),
    var(--panel-solid);
  border: 1px solid var(--line-hot);
  box-shadow: var(--shadow);
}
.pack-badge {
  position: absolute;
  top: -14px;
  right: 22px;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold));
  color: #241900;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(247, 181, 0, 0.42);
}
/* 4/5 matches the pack render (760x950) exactly, so cover crops nothing. */
.pack-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #05070c;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.pack-media img { width: 100%; height: 100%; object-fit: cover; }
.pack-title { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.pack-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.pack-price .amt { font-size: 34px; }
.pack-price .note { font-size: 13px; color: var(--dim); }

/* Stats --------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.stat:hover { border-color: var(--line-hot); transform: translateY(-3px); }
.stat .num { font-size: clamp(30px, 4vw, 42px); color: var(--blue-bright); }
.stat .num.is-gold { color: var(--gold); }
.stat .lbl {
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
}

/* Feature cards ------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--line-hot);
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.16);
}
.card .ico {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 141, 255, 0.3);
  margin-bottom: 18px;
}
.card.is-gold .ico { background: rgba(247, 181, 0, 0.14); border-color: rgba(247, 181, 0, 0.32); }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* God Pack ------------------------------------------------------------ */

.godpack {
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 60px);
  background:
    radial-gradient(700px circle at 88% 15%, rgba(247, 181, 0, 0.15), transparent 58%),
    linear-gradient(150deg, rgba(247, 181, 0, 0.07), rgba(255, 255, 255, 0.015)),
    var(--panel-solid);
  border: 1px solid rgba(247, 181, 0, 0.3);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .godpack { grid-template-columns: 1fr; } }


/* Shop / live listings ------------------------------------------------ */

.shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}



input[type="email"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
}
input[type="email"]::placeholder { color: var(--dim); }
input:focus { border-color: var(--line-hot); outline: none; }

/* Fixed column counts, not auto-fill: the grid always holds exactly 12 cards,
   and 12 divides evenly by 4, 3 and 2 - so every breakpoint fills its last row
   instead of leaving an orphan. */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: repeat(2, 1fr); } }

.tile {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover {
  transform: translateY(-5px);
  border-color: var(--line-hot);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.2);
}
.tile-img {
  aspect-ratio: 1;
  background: #05070c;
  overflow: hidden;
  padding: 8px;
}
/* Cards are portrait - contain shows the whole card instead of cropping
   the top and bottom off it the way cover would. */
.tile-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-title {
  font-size: 13px;
  line-height: 1.4;
  color: #d7e3f2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-price {
  font-size: 18px;
  font-family: Anton, Impact, sans-serif;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(59, 141, 255, 0.16);
  color: var(--blue-pale);
  border: 1px solid rgba(59, 141, 255, 0.26);
}
.tag.is-offer {
  background: rgba(247, 181, 0, 0.14);
  color: var(--gold-pale);
  border-color: rgba(247, 181, 0, 0.28);
}

.skeleton {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  height: 300px;
  overflow: hidden;
  position: relative;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.shop-msg { text-align: center; padding: 46px 20px; color: var(--muted); }
.shop-foot {
  text-align: center;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.updated { font-size: 12px; color: var(--dim); }

/* Story --------------------------------------------------------------- */

.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }
.story-grid p { color: var(--muted); font-size: 17px; }

.mantra {
  display: grid;
  gap: 12px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.mantra div {
  font-family: Anton, Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1;
}
.mantra div:nth-child(1) { color: var(--white); }
.mantra div:nth-child(2) { color: var(--blue-bright); }
.mantra div:nth-child(3) { color: var(--gold); }

/* Signup -------------------------------------------------------------- */

.signup {
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 58px);
  text-align: center;
  background:
    radial-gradient(600px circle at 50% 0%, rgba(37, 99, 235, 0.2), transparent 60%),
    var(--panel-solid);
  border: 1px solid var(--line-hot);
}
.signup .lede { margin-inline: auto; }
.signup-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 26px auto 12px;
  flex-wrap: wrap;
}
.signup-form input[type="email"] { flex: 1; min-width: 220px; padding: 14px 16px; border-radius: 999px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 12.5px; color: var(--dim); }
.form-msg { font-size: 14px; font-weight: 600; min-height: 20px; margin-top: 10px; }
.form-msg.ok { color: #4ade80; }
.form-msg.err { color: #f87171; }

/* Footer -------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  color: var(--dim);
  font-size: 13px;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; color: var(--muted); }
.foot-links a:hover { color: #fff; }
.disclaimer { max-width: 78ch; line-height: 1.65; font-size: 12px; }

/* Motion -------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Shuffle ------------------------------------------------------------- */

/* Each redraw fades its tiles in on a short stagger, so hitting Shuffle
   reads as the grid dealing a new hand rather than snapping. */
.tile {
  animation: deal 0.4s ease backwards;
}
.tile:nth-child(1)  { animation-delay: 0.00s; }
.tile:nth-child(2)  { animation-delay: 0.03s; }
.tile:nth-child(3)  { animation-delay: 0.06s; }
.tile:nth-child(4)  { animation-delay: 0.09s; }
.tile:nth-child(5)  { animation-delay: 0.12s; }
.tile:nth-child(6)  { animation-delay: 0.15s; }
.tile:nth-child(7)  { animation-delay: 0.18s; }
.tile:nth-child(8)  { animation-delay: 0.21s; }
.tile:nth-child(9)  { animation-delay: 0.24s; }
.tile:nth-child(10) { animation-delay: 0.27s; }
.tile:nth-child(11) { animation-delay: 0.30s; }
.tile:nth-child(12) { animation-delay: 0.33s; }

@keyframes deal {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

#shuffle span { font-size: 17px; line-height: 1; }
.shop-foot .btn { min-width: 260px; }

/* God Pack artwork ---------------------------------------------------- */

.godpack-art {
  width: min(340px, 100%);
  height: auto;
  border-radius: var(--radius-sm);
  justify-self: center;
  filter: drop-shadow(0 18px 44px rgba(247, 181, 0, 0.22));
}

/* Storefront tiles ---------------------------------------------------- */

.stores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 720px) { .stores { grid-template-columns: 1fr; } }

.store {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.store:hover {
  transform: translateY(-4px);
  border-color: var(--line-hot);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
}
.store img { width: 100%; height: auto; }

.store-cta {
  padding: 16px 20px;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--blue-pale);
}
.store:hover .store-cta { color: #fff; }

/* H1 kicker ----------------------------------------------------------- */

/* Carries the search term inside the H1 without competing with the slogan. */
.h1-kicker {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-pale);
  margin-bottom: 14px;
}

/* FAQ ----------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}
.faq details:hover { border-color: var(--line-hot); }
.faq details[open] { border-color: var(--line-hot); }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--white);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: Anton, Impact, sans-serif;
  font-size: 22px;
  color: var(--blue-bright);
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2212"; }

.faq p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 12px 0 0;
}
