:root {
  --red: #b91c1c;
  --red-hot: #dc2626;
  --red-deep: #7f1d1d;
  --red-dark: #450a0a;
  --cream: #f3e6c4;
  --cream-2: #e8d5a3;
  --paper: #fbf6ea;
  --ink: #1c1412;
  --ink-soft: #4a3b34;
  --line: rgba(185, 28, 28, 0.22);
  --shadow: 0 18px 40px rgba(69, 10, 10, 0.18);
  --radius: 18px;
  --max: 1180px;
  --display: "Bebas Neue", Impact, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Source Sans 3", "Helvetica Neue", sans-serif;
  --script: "Great Vibes", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* GATE */
.gate {
  position: fixed; inset: 0; z-index: 80;
  background:
    radial-gradient(circle at 20% 20%, #7f1d1d 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, #450a0a 0%, transparent 45%),
    var(--red-dark);
  color: var(--cream);
  display: grid;
  place-items: center;
  padding: 24px;
}
.gate-card {
  width: min(440px, 100%);
  background: var(--paper);
  color: var(--ink);
  border: 6px solid var(--red);
  border-radius: 8px;
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.gate-card img { width: 140px; margin: 0 auto 12px; }
.gate-card h1 {
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: 1px;
  margin: 0;
  color: var(--red);
}
.gate-card p { color: var(--ink-soft); margin: 8px 0 22px; font-size: 15px; }
.gate-card input {
  width: 100%;
  border: 2px solid var(--red);
  background: #fff;
  padding: 12px 14px;
  font: 16px var(--sans);
  margin-bottom: 12px;
}
.gate-error { color: var(--red); font-size: 14px; min-height: 20px; margin: 0 0 8px; }

/* TOPBAR + HEADER */
.topbar {
  background: var(--red-dark);
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.35;
}
.topbar strong { color: #fff; }
header.site {
  background: var(--red);
  color: #fff;
  border-bottom: 6px solid var(--red-dark);
  position: sticky; top: 0; z-index: 40;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand img {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cream);
}
.brand-text { line-height: 1; }
.brand-text .name {
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 0.5px;
  display: block;
}
.brand-text .tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  opacity: 0.92;
}
nav.main {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: flex-end;
}
nav.main a {
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}
nav.main a:hover, nav.main a.active { color: #fff; border-bottom: 2px solid #fff; }
.menu-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: 2px solid var(--cream);
  padding: 6px 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* TICKER */
.ticker {
  background: var(--cream);
  color: var(--red-deep);
  border-bottom: 2px solid var(--red);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding: 14px 0;
  animation: marquee 36s linear infinite;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ticker b { color: var(--red); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* HERO */
.hero {
  background:
    linear-gradient(180deg, rgba(127,29,29,0.18), rgba(251,246,234,0.2)),
    repeating-linear-gradient(-45deg, #f7edd6 0 18px, #f3e6c4 18px 36px);
  border-bottom: 8px solid var(--red);
  padding: 48px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: center;
}
.hero-seal {
  width: 420px;
  border-radius: 50%;
  background: #fff;
  border: 12px solid var(--red);
  box-shadow: var(--shadow);
}
.kicker {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 13px;
  margin: 0 0 8px;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: 0.5px; line-height: 0.95; margin: 0 0 12px; }
h1 { font-size: clamp(48px, 8vw, 92px); color: var(--red); }
h2 { font-size: clamp(32px, 5vw, 52px); color: var(--red); }
h3 { font-size: 28px; }
.lede {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 38em;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--red-dark);
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: var(--red-deep); }
.btn.ghost {
  background: transparent;
  color: var(--red) !important;
  border-color: var(--red);
}
.btn.cream {
  background: var(--cream);
  color: var(--red-deep) !important;
}
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* SECTIONS */
section { padding: 56px 0; }
section.alt { background: #fff7e8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 40em; }

.grid-3, .grid-4, .products {
  display: grid;
  gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.products { grid-template-columns: repeat(3, 1fr); }

.card, .product, .special {
  background: #fff;
  border: 2px solid var(--red-deep);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 0 var(--red-deep);
}
.special { padding: 0; }
.special img, .product img { width: 100%; height: 220px; object-fit: cover; background: var(--cream); }
.product img { height: 280px; object-fit: cover; }
.special .body, .product .body, .card .body { padding: 14px 16px 16px; }
.price {
  font-family: var(--display);
  font-size: 28px;
  color: var(--red);
}
.badge {
  display: inline-block;
  background: var(--red);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.off { color: var(--ink-soft); text-decoration: line-through; margin-right: 8px; }

/* CCCP band */
.cccp-band {
  background: var(--red);
  color: var(--cream);
  padding: 48px 0;
}
.cccp-band h2 { color: var(--cream); }
.cccp-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.cccp-grid img.card-art {
  width: 100%;
  border-radius: 16px;
  border: 3px solid var(--cream);
  box-shadow: var(--shadow);
}
.script {
  font-family: var(--script);
  font-size: 34px;
  line-height: 1;
  color: var(--cream);
}

/* FORMS */
label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 12px 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%;
  border: 2px solid var(--red);
  background: #fff;
  padding: 11px 12px;
  font: 16px var(--sans);
  color: var(--ink);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; font-size: 14px; }
.check input { margin-top: 4px; }
.note { font-size: 13px; color: var(--ink-soft); }

/* RULES */
.rules {
  background: var(--cream);
  border: 3px solid var(--red);
  padding: 8px 8px 4px;
}
.rules ol { margin: 0; padding: 16px 16px 16px 36px; }
.rules li { margin: 0 0 10px; font-family: var(--serif); color: var(--red-deep); }

/* FOOTER */
footer.site {
  background: var(--red-dark);
  color: var(--cream);
  padding: 36px 0 20px;
  font-size: 14px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer.site a { color: #fff; }
.disclaimer {
  border-top: 1px solid rgba(243,230,196,0.25);
  margin-top: 22px;
  padding-top: 14px;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.88;
}

/* PAGE HERO */
.page-hero {
  background: var(--red);
  color: var(--cream);
  padding: 36px 0 28px;
  border-bottom: 8px solid var(--red-dark);
}
.page-hero h1 { color: var(--cream); font-size: clamp(40px, 7vw, 72px); }
.page-hero p { color: var(--cream); max-width: 40em; }

/* CARD BUILDER */
.builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
canvas#cardCanvas {
  width: 100%;
  background: var(--red);
  border-radius: 14px;
  border: 3px solid var(--red-dark);
  box-shadow: var(--shadow);
}
.toast {
  display: none;
  margin-top: 12px;
  background: var(--cream);
  border: 2px solid var(--red);
  padding: 10px 12px;
  font-weight: 700;
}
.toast.show { display: block; }

/* COMING */
.soon {
  padding: 80px 0;
  text-align: center;
}
.cycle-art {
  width: min(920px, 100%);
  margin: 0 auto;
  display: block;
  background: #fff;
  border: 6px solid var(--red);
  box-shadow: var(--shadow);
}

.cccp-split { display:grid; grid-template-columns:1fr 1fr; gap:32px; }

@media (max-width: 900px) {
  .hero-grid, .cccp-grid, .builder, .foot-grid, .form-row, .cccp-split { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .products { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-seal { width: min(320px, 80vw); margin: 0 auto; }
  .menu-btn { display: block; }
  nav.main {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--red-deep);
    padding: 12px 20px 18px;
    flex-direction: column;
  }
  nav.main.open { display: flex; }
  header.site { position: sticky; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .products { grid-template-columns: 1fr; }
  .brand-text .name { font-size: 26px; }
}
