/* =========================================================================
   ¡Que Buena Rola! — Landing page styles (v4, aligned to physical brand
   identity designed by Laura. Cobalt blue dominates; multi-color confetti
   appears as accent moments only.)

   Register: brand. Design IS the product.
   Color strategy: Committed (cobalt carries identity) with Full-palette
   accent moments on card backs and decorative flourishes. The cards/box
   do the loud visual work; the site keeps generous white space.
   ========================================================================= */

:root {
  /* Brand — cobalt primary */
  --cobalt:      #396AB3;        /* matches her logo + box artwork */
  --cobalt-deep: #2D5290;        /* pressed/hover state */
  --cobalt-soft: #D7E2F0;        /* tinted background wash */

  /* Confetti accent palette (use sparingly — these are her card-back colors) */
  --magenta:     #C7388E;
  --green:       #008545;
  --teal:        #00A2B2;
  --orange:      #DE5A26;
  --yellow:      #D7AE29;
  --red:         #EE2524;
  --red-deep:    #BC1F25;

  /* Tinted neutrals (now tinted toward cobalt, very subtle) */
  --bg:          #FAFBFC;        /* warm-white with a hint of cool */
  --bg-card:     #FFFFFFE6;
  --bg-soft:     #EEF2F8;        /* faintly cobalt-tinted soft section bg */
  --bg-dark:     #0F1828;        /* deep cobalt-tinted near-black */
  --text:        #141A28;        /* cool-tinted near-black */
  --text-soft:   #4A5263;
  --text-dim:    #8C92A0;
  --border:      #DDE3EC;
  --border-d:    rgba(255, 255, 255, 0.10);

  /* Legacy aliases for backward-compat with existing rules */
  --pink:        var(--cobalt);
  --pink-press:  var(--cobalt-deep);
  --aqua:        var(--magenta);     /* old "aqua" accent → magenta */

  /* System */
  --max: 1120px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  /* Typography — Geist replaces Inter (Inter is banned per design-taste-frontend) */
  --font-display: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
  --font-body: 'Geist', 'Geist Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Card fonts — match the printed product (House Easter for years, Poppins for labels) */
  --font-card-year: 'House Easter', 'Bebas Neue', Impact, sans-serif;
  --font-card-label: 'Poppins', 'Geist', system-ui, sans-serif;

  /* Motion — Emil's stronger custom curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --quick: 140ms;
  --base: 220ms;
  --slow: 360ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Self-hosted display font for the card year — Laura's choice on the printed cards */
@font-face {
  font-family: 'House Easter';
  src: url('/assets/fonts/HouseEaster.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color var(--quick) var(--ease-out); }
a:hover { color: var(--pink); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0.85rem max(1.5rem, calc((100vw - var(--max)) / 2));
  position: sticky; top: 0;
  width: 100%;
  background: rgba(250, 249, 248, 0.78);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(20, 26, 40, 0.06);
  z-index: 50;
}
/* .logo / .nav-logo / .logo-gt removed — nav no longer has a logo element */
.nav nav { display: flex; gap: 1.75rem; align-items: center; }
.nav nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
}
.nav nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--base) var(--ease-out), transform var(--quick) var(--ease-out);
}
.nav-cta:hover { background: var(--pink); color: var(--bg) !important; }
.nav-cta:active { transform: scale(0.97); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  background: transparent; border: none; padding: 0;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 100%; height: 2px; background: var(--text);
  transition: transform var(--base) var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 760px) {
  .nav nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  .nav nav.is-open { display: flex; }
  .nav nav a {
    padding: 0.9rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav nav a:last-child { border-bottom: none; }
  .nav-cta { padding: 0.5rem 1rem; }
  .nav-toggle { display: inline-flex; margin-left: 0.5rem; }
}

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.2px;
  line-height: 1.0;
  font-weight: 400;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 0.85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.8px;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none !important;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--quick) var(--ease-out),
              background var(--base) var(--ease-out),
              color var(--base) var(--ease-out);
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--pink); color: var(--bg); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); transform: translateY(-1px); }
.btn-ghost:active { transform: scale(0.97); }

/* ---------- Hero — committed cobalt panel ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  background: var(--cobalt);
  color: #FFFFFF;
  padding: 2.75rem max(1.5rem, calc((100vw - var(--max)) / 2)) 3.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero > * { max-width: calc(var(--max) / 2); }
.hero-text, .hero-cards {
  position: relative; z-index: 2;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 2rem 1.5rem 3rem; gap: 2rem; }
}

/* Brand mark above headline — Laura's logo SVG with tight-cropped viewBox.
   The original Illustrator export had 76% whitespace around the artwork,
   so a smaller container now renders a much bigger visible logo without
   bloating the hero panel. */
.brand-mark {
  width: clamp(240px, 28vw, 340px);
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
  transform: rotate(-4deg);
  transition: transform var(--slow) var(--ease-out);
  transform-origin: left center;
}
.brand-mark:hover { transform: rotate(-2deg) translateY(-2px); }

@media (max-width: 800px) {
  .brand-mark { width: clamp(200px, 50vw, 280px); margin-bottom: 1.25rem; }
}

.hero .eyebrow { color: var(--yellow); }

.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  line-height: 0.98;
  color: #FFFFFF;
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}
.hero .lede {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 50ch;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.reassurance {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.reassurance::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Hero CTAs need to invert for the cobalt background */
.hero .btn-primary {
  background: var(--yellow);
  color: var(--cobalt-deep);
}
.hero .btn-primary:hover { background: #FFFFFF; color: var(--cobalt-deep); transform: translateY(-1px); }
.hero .btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}
.hero .btn-ghost:hover { background: #FFFFFF; color: var(--cobalt); border-color: #FFFFFF; }

/* Two cards stacked: white face card in front (the "show me how it plays" view),
   colorful back peeks behind */
.hero-cards {
  display: grid;
  place-items: center;
  min-height: 340px;
  position: relative;
}
.hero-card-back, .hero-card-face {
  grid-area: 1 / 1;
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(15, 24, 40, 0.45));
  transition: transform var(--slow) var(--ease-out);
}
.hero-card-face {
  z-index: 2;
  max-width: 240px;
  transform: rotate(-6deg) translateX(-15%);
}
.hero-card-back {
  z-index: 1;
  max-width: 215px;
  transform: rotate(12deg) translateX(40%);
}
.hero-cards:hover .hero-card-face { transform: rotate(-3deg) translateX(-17%) translateY(-6px); }
.hero-cards:hover .hero-card-back { transform: rotate(15deg) translateX(43%) translateY(-3px); }

@media (max-width: 800px) {
  .hero-cards { min-height: 280px; margin-top: 0.5rem; }
  .hero-card-face { max-width: 200px; transform: rotate(-6deg) translateX(-10%); }
  .hero-card-back { max-width: 175px; transform: rotate(12deg) translateX(30%); }
}

/* Card-back wrap: white substrate + Laura's pattern + QR overlay.
   Mimics the printed card structure where artwork sits on a white card
   stock and the QR is rendered on top of a small white pad. */
.card-back {
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 178.58 / 249.45;  /* matches Laura's SVG aspect ratio (63×88mm card) */
}
.card-back .card-pattern {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.card-back .card-qr {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52%;
  background: #FFFFFF;
  padding: 1.5%;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(15, 24, 40, 0.12);
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }

/* Product section: committed cobalt panel — gives the white face cards real
   contrast and lets the colorful back card sit inside a brand-color frame */
.section-alt {
  background: var(--cobalt);
  color: #FFFFFF;
}
.section-alt h2, .section-alt h3, .section-alt h4 { color: #FFFFFF; }
.section-alt .section-lede { color: rgba(255, 255, 255, 0.78); }
.section-alt p { color: rgba(255, 255, 255, 0.82); }
.section-alt .features li {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.section-alt .features li::before { background: var(--yellow); }
.section-alt .features li strong { color: #FFFFFF; }
.section-alt .price { color: #FFFFFF; }
.section-alt .price-note { color: rgba(255, 255, 255, 0.65); }
.section-alt .btn-primary { background: var(--yellow); color: var(--cobalt-deep); }
.section-alt .btn-primary:hover { background: #FFFFFF; color: var(--cobalt-deep); transform: translateY(-1px); }

/* Deeper shadow on cards over cobalt section so they read as elevated */
.section-alt .art-stack svg,
.section-alt .art-stack img {
  filter: drop-shadow(0 22px 36px rgba(15, 24, 40, 0.45));
}

.section-buy {
  background: var(--bg-dark);
  color: var(--bg);
  border-top: 1px solid var(--border-d);
}
.section-buy h2,
.section-buy .section-lede { color: var(--bg); }
.section-buy .section-lede { color: rgba(255, 255, 255, 0.58); }

.section h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.3px;
}
.section-lede {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* ---------- Steps (editorial numbered list, no cards) ---------- */
.steps {
  list-style: none;
  max-width: 820px;
  margin: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 600ms var(--ease-out) forwards;
}
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps li:nth-child(1) { animation-delay: 0ms; }
.steps li:nth-child(2) { animation-delay: 60ms; }
.steps li:nth-child(3) { animation-delay: 120ms; }
.steps li:nth-child(4) { animation-delay: 180ms; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.step-num {
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}
.step-body h3 {
  font-size: 1.6rem;
  margin-bottom: 0.45rem;
  letter-spacing: -0.2px;
}
.step-body p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 52ch;
}

@media (max-width: 600px) {
  .steps li { grid-template-columns: 64px 1fr; gap: 1.25rem; padding: 1.75rem 0; }
  .step-num { font-size: 2.5rem; }
  .step-body h3 { font-size: 1.35rem; }
}

.steps-more {
  margin-top: 2rem;
  font-size: 1rem;
}
.steps-more-link {
  color: var(--text);
  font-weight: 500;
  border-bottom: 1.5px solid var(--pink);
  padding-bottom: 2px;
  transition: color var(--quick) var(--ease-out), border-color var(--quick) var(--ease-out);
}
.steps-more-link:hover {
  color: var(--pink);
  border-bottom-color: var(--text);
}

/* ---------- Product ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 800px) {
  .product-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.features {
  list-style: none;
  margin: 1.5rem 0 2rem;
}
.features li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.features li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--pink);
  border-radius: 50%;
  flex-shrink: 0;
}
.features li strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.25rem;
}
.price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.price-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 400;
  display: block;
  margin: 0.5rem 0 1.5rem;
}

/* ---------- Card stack art ---------- */
.art-stack {
  position: relative;
  height: 440px;
  max-width: 360px;
  margin: 0 auto;
  perspective: 1200px;
}
.art-stack > svg,
.art-stack > img,
.art-stack > div {
  position: absolute;
  width: 240px;
  height: auto;
  top: 60px; left: 50%;
  transform-origin: center center;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.12));
  transition: transform var(--slow) var(--ease-out);
}
.card-stack-1 { transform: translateX(-95%) rotate(-10deg); }
.card-stack-2 { transform: translateX(-50%) rotate(0deg); z-index: 2; }
.card-stack-3 { transform: translateX(5%) rotate(10deg); }
.art-stack:hover .card-stack-1 { transform: translateX(-110%) rotate(-14deg); }
.art-stack:hover .card-stack-2 { transform: translateX(-50%) rotate(0deg) translateY(-8px); }
.art-stack:hover .card-stack-3 { transform: translateX(20%) rotate(14deg); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 12px; height: 2px;
  background: var(--text);
  transition: transform var(--base) var(--ease-out);
}
.faq summary::before {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 12px; height: 2px;
  background: var(--text);
  transform: rotate(90deg);
  transition: opacity var(--base) var(--ease-out), transform var(--base) var(--ease-out);
}
.faq details[open] summary::before { opacity: 0; transform: rotate(0deg); }
.faq details p {
  margin-top: 0.9rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Buy (asymmetric layout: WhatsApp 2-wide, others stacked) ---------- */
.buy-options {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 760px) {
  .buy-options { grid-template-columns: 1fr; }
}
.buy-primary {
  grid-row: span 2;
  background: rgba(57, 106, 179, 0.10);
  border: 1px solid rgba(57, 106, 179, 0.40);
  border-radius: var(--r-md);
  padding: 2.5rem;
  color: var(--bg) !important;
  text-decoration: none !important;
  transition: transform var(--base) var(--ease-out),
              background var(--base) var(--ease-out),
              border-color var(--base) var(--ease-out);
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}
.buy-primary:hover {
  transform: translateY(-3px);
  background: rgba(57, 106, 179, 0.16);
  border-color: var(--pink);
}
.buy-primary:active { transform: scale(0.99) translateY(-1px); }
.buy-primary h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
  color: var(--bg);
}
.buy-primary p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 40ch;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.buy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-d);
  border-radius: var(--r-md);
  padding: 1.5rem 1.75rem;
  color: var(--bg) !important;
  text-decoration: none !important;
  transition: transform var(--base) var(--ease-out),
              background var(--base) var(--ease-out),
              border-color var(--base) var(--ease-out);
  display: flex; flex-direction: column;
  min-height: 130px;
  justify-content: space-between;
}
.buy-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}
.buy-card:active { transform: scale(0.985) translateY(-1px); }
.buy-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--bg);
  letter-spacing: -0.2px;
}
.buy-card p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.5;
}
.buy-pill {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: var(--bg);
  align-self: flex-start;
  border-bottom: 1.5px solid var(--bg);
  padding-bottom: 2px;
  transition: color var(--quick) var(--ease-out), border-color var(--quick) var(--ease-out);
}
.buy-primary .buy-pill { font-size: 1.15rem; }
.buy-primary:hover .buy-pill,
.buy-card:hover .buy-pill { color: var(--pink); border-color: var(--pink); }

.transfer-details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-d);
  border-radius: var(--r-md);
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.transfer-details h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--bg);
  letter-spacing: -0.2px;
}
.transfer-details dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.transfer-details dt { color: rgba(255, 255, 255, 0.5); }
.transfer-details dd {
  font-weight: 500;
  color: var(--bg);
  font-variant-numeric: tabular-nums;
}
.transfer-note {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}
.transfer-note a { color: var(--aqua); }
.transfer-note a:hover { color: var(--pink); }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 1.75rem;
  border-top: 1px solid var(--border-d);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}
.footer-grid h4 {
  font-size: 1rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.85rem;
  color: var(--bg);
  text-transform: uppercase;
  font-weight: 500;
}
.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  padding: 0.15rem 0;
}
.footer-grid a:hover { color: var(--pink); }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--bg);
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  margin-top: 0.25rem;
  line-height: 1.55;
}
.footer-fineprint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}
.footer-copy {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-d);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* =========================================================================
   Rules page (/reglas)
   Editorial layout, longer-form reading, mobile-first since this page is
   reached primarily via QR code on someone's phone mid-game.
   ========================================================================= */

/* Active nav state */
.nav nav a[aria-current="page"] {
  color: var(--text);
  position: relative;
}
.nav nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--pink);
  border-radius: 1px;
}

/* ---------- Rules Hero ---------- */
.rules-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.rules-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .rules-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.rules-hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  line-height: 0.98;
}
.rules-hero .lede {
  font-size: 1.06rem;
  color: var(--text-soft);
  max-width: 52ch;
  line-height: 1.6;
}

/* TOC */
.rules-toc {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
}
.rules-toc-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}
.rules-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.rules-toc li {
  counter-increment: toc;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.rules-toc li:last-child { border-bottom: none; }
.rules-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--pink);
  margin-right: 0.85rem;
  font-weight: 500;
}
.rules-toc a {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  transition: color var(--quick) var(--ease-out);
}
.rules-toc a:hover { color: var(--pink); }

/* ---------- Rules Sections ---------- */
.rules-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}
.rules-section-alt { background: var(--bg-soft); }
.rules-section:last-of-type { border-bottom: none; }

.rules-container {
  max-width: 880px;
}
.rules-section-head {
  margin-bottom: 2.5rem;
}
.rules-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--pink);
  margin-bottom: 0.65rem;
  font-weight: 500;
}
.rules-section h2 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.3px;
}
.rules-subhead {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  line-height: 1.6;
}

/* Prose */
.rules-prose h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.2px;
  margin: 2.25rem 0 1rem;
  color: var(--text);
}
.rules-prose h3:first-child { margin-top: 0; }
.rules-prose p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 1rem;
  max-width: 68ch;
}
.rules-prose p strong, .rules-prose li strong {
  color: var(--text);
  font-weight: 600;
}
.rules-prose em { font-style: italic; color: var(--text); }
.rules-prose a { color: var(--pink); border-bottom: 1px solid currentColor; }
.rules-prose a:hover { color: var(--pink-press); }

/* Lists */
.rules-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.rules-list li {
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 68ch;
}
.rules-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
}

.rules-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 1.5rem;
}
.rules-steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 0 1.1rem 64px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 68ch;
}
.rules-steps li:last-child { border-bottom: 1px solid var(--border); }
.rules-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--pink);
  letter-spacing: 0.3px;
}
.rules-steps-compact li {
  padding: 0.75rem 0 0.75rem 48px;
}
.rules-steps-compact li::before {
  font-size: 1.2rem;
  top: 0.85rem;
}

/* Callout box */
.rules-callout {
  background: var(--bg);
  border-left: none;
  border-radius: var(--r-sm);
  padding: 1.15rem 1.4rem;
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  max-width: 68ch;
}
.rules-callout p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.rules-callout-soft {
  background: var(--bg-soft);
}
.rules-section-alt .rules-callout {
  background: var(--bg);
}
.rules-callout-final {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  margin-top: 3rem;
}
.rules-callout-final p { color: rgba(255, 255, 255, 0.85); }
.rules-callout-final a { color: var(--yellow); border-bottom-color: var(--yellow); }
.rules-callout-final a:hover { color: var(--aqua); }

/* ---------- Token cards ---------- */
.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) {
  .token-grid { grid-template-columns: 1fr; }
}
.token {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem 1.6rem;
  transition: transform var(--base) var(--ease-out), border-color var(--base) var(--ease-out);
}
.token:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
}
.token-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.3px;
  color: var(--pink);
  margin-bottom: 0.85rem;
  line-height: 1;
}
.token-power {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.token-detail {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 0.85rem;
}
.token-recover {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.token-recover strong { color: var(--text); }

/* ---------- Brindis section (warm visual treatment) ---------- */
.rules-section-brindis {
  background: linear-gradient(to bottom, #FFF7E8 0%, #FFEEDC 100%);
  border-top: 1px solid rgba(57, 106, 179, 0.15);
  border-bottom: 1px solid rgba(57, 106, 179, 0.15);
}
.rules-section-brindis .rules-num { color: #C9601C; }
.rules-section-brindis h2,
.rules-section-brindis h3,
.rules-section-brindis h4 { color: #2B1810; }
.rules-section-brindis .rules-list li::before { background: #C9601C; }
.rules-section-brindis .rules-steps li::before { color: #C9601C; }
.rules-section-brindis .rules-callout {
  background: #FFF;
  border-color: rgba(201, 96, 28, 0.2);
}

.brindis-list {
  list-style: none;
  counter-reset: brindis;
  padding: 0;
  margin: 0 0 2rem;
}
.brindis-list li {
  counter-increment: brindis;
  position: relative;
  padding: 1.5rem 0 1.5rem 72px;
  border-top: 1px solid rgba(201, 96, 28, 0.18);
}
.brindis-list li:last-child { border-bottom: 1px solid rgba(201, 96, 28, 0.18); }
.brindis-list li::before {
  content: counter(brindis, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: #C9601C;
  line-height: 1;
}
.brindis-list h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.2px;
  margin-bottom: 0.35rem;
  color: #2B1810;
}
.brindis-list p {
  font-size: 1rem;
  line-height: 1.65;
  color: #4A2F22;
  margin: 0;
  max-width: 60ch;
}
.brindis-list p strong { color: #2B1810; }

/* ---------- Quick reference cards ---------- */
.quickref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 720px) {
  .quickref-grid { grid-template-columns: 1fr; }
}
.quickref-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem 1.6rem;
}
.quickref-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.2px;
  color: var(--pink);
  margin-bottom: 0.9rem;
  line-height: 1;
}
.quickref-card ol, .quickref-card ul {
  padding-left: 1.1rem;
  margin: 0;
}
.quickref-card li {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-soft);
  padding: 0.18rem 0;
}
.quickref-card p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.quickref-card p strong { color: var(--text); }
.quickref-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.92rem;
}
.quickref-card dt {
  color: var(--text);
  font-weight: 600;
}
.quickref-card dd {
  color: var(--text-soft);
}
.quickref-card-brindis {
  background: #FFF7E8;
  border-color: rgba(201, 96, 28, 0.25);
}
.quickref-card-brindis h4 { color: #C9601C; }
.quickref-card-brindis li { color: #4A2F22; }

@media (max-width: 600px) {
  .rules-section { padding: 3rem 0; }
  .rules-section-head { margin-bottom: 2rem; }
  .rules-prose h3 { font-size: 1.25rem; margin: 1.75rem 0 0.85rem; }
  .rules-steps li { padding: 1rem 0 1rem 52px; }
  .rules-steps li::before { font-size: 1.35rem; top: 1rem; }
  .rules-steps-compact li { padding: 0.75rem 0 0.75rem 42px; }
  .brindis-list li { padding: 1.2rem 0 1.2rem 56px; }
  .brindis-list li::before { font-size: 1.5rem; top: 1.2rem; }
}
