/* =========================================================
   SoliChess — Landing styles
   Palette proportion target: 70% ébano/caoba · 20% marfil/madera · 10% dorado
   ========================================================= */

:root {
  /* Backgrounds (ébano / caoba) */
  --ebony-900: #120a05;
  --ebony-800: #1b1109;
  --ebony-700: #23160c;
  --mahogany:  #38200e;
  --mahogany-line: rgba(142, 97, 41, 0.28);

  /* Marfil (lectura) + madera */
  --ivory:      #efe4cd;
  --ivory-soft: rgba(239, 228, 205, 0.72);
  --ivory-dim:  rgba(239, 228, 205, 0.5);
  --wood:       #a47335;
  --wood-light: #d2a560;

  /* Dorado */
  --gold-base:  #d2a560;   /* plano, para uso funcional */
  --gold-hi:    #f0cf84;
  --gold-lo:    #8e6129;

  --gradient-hero:
    radial-gradient(circle at 50% 30%, #38200e 0%, #1b1109 42%, #120a05 100%);
  --gradient-gold:
    linear-gradient(135deg, #8e6129 0%, #d2a560 45%, #f0cf84 70%, #a47335 100%);
  --gradient-card:
    linear-gradient(180deg, rgba(69, 37, 10, 0.45) 0%, rgba(27, 17, 9, 0.9) 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --glow-gold: 0 0 40px -8px rgba(240, 207, 132, 0.35);

  --font-display: "Cinzel", Georgia, serif;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ivory);
  background: var(--ebony-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-base);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.01em;
}
.section-lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--ivory-soft);
  font-size: 1.06rem;
}

.gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-hi); /* fallback */
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--gold {
  background: var(--gradient-gold);
  color: #2a1808;
  box-shadow: var(--glow-gold);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 0 48px -6px rgba(240, 207, 132, 0.55); }
.btn--ghost {
  background: rgba(239, 228, 205, 0.04);
  border-color: var(--mahogany-line);
  color: var(--ivory);
}
.btn--ghost:hover { border-color: var(--gold-base); color: var(--gold-hi); }
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }

/* Official store badges */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-link { display: inline-block; transition: transform 0.18s ease, opacity 0.18s ease; }
.store-link:hover { transform: translateY(-2px); opacity: 0.92; }
.store-link img { display: block; width: auto; }
/* Heights tuned so both pills read the same size (Google badge ships with padding) */
.store-link--apple img { height: 48px; }
.store-link--google img { height: 60px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(18, 10, 5, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--mahogany-line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  object-fit: cover; display: block;
  box-shadow: var(--glow-gold);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--ivory);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--ivory-soft);
  transition: color 0.16s ease;
}
.nav-links a:hover { color: var(--gold-hi); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--mahogany-line); border-radius: 999px; padding: 3px;
}
.lang-switch a {
  font-size: 0.72rem; letter-spacing: 0.05em; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; color: var(--ivory-dim);
  transition: color 0.16s ease;
}
.lang-switch a.active { background: var(--gradient-gold); color: #2a1808; }
.lang-switch a:not(.active):hover { color: var(--gold-hi); }
/* Language switch inside the mobile drawer (cloned there by main.js) */
.nav-mobile .lang-switch { align-self: flex-start; margin-top: 16px; gap: 6px; padding: 4px; }
.nav-mobile .lang-switch a { padding: 9px 20px; font-size: 0.82rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ivory); margin: 5px 0; transition: 0.2s; }

/* Mobile fixed download button */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 70;
}
.mobile-cta .btn { width: 100%; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--gradient-hero);
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero::after { /* subtle vignette */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(240,207,132,0.06), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: 0.005em;
  margin: 20px 0 22px;
}
.hero p.lead { font-size: 1.15rem; color: var(--ivory-soft); max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 18px; }
.hero-sub {
  font-size: 0.92rem;
  color: var(--gold-base);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-sub::before { content: "◆"; font-size: 0.6rem; }

/* Phone mockup */
.phone {
  position: relative;
  width: 300px;
  margin: 0 auto;
  aspect-ratio: 300 / 620;
  border-radius: 42px;
  background: linear-gradient(160deg, #2a1a0d, #0d0805);
  border: 1px solid rgba(210, 165, 96, 0.25);
  box-shadow: var(--shadow), var(--glow-gold);
  padding: 14px;
}
.phone::before { /* notch */
  content: "";
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.14);
}
.phone-shot {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  display: block;
}
.phone-screen {
  height: 100%;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 25%, #33200f, #150c06 75%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 16px 16px;
  gap: 14px;
}
.phone-top {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.15em;
  color: var(--gold-base);
}
.phone-top .dot { width: 26px; height: 26px; border-radius: 8px; background: rgba(210,165,96,0.12); display: grid; place-items: center; color: var(--gold-base); font-size: 0.8rem; }
.puzzle-count { text-align: center; font-size: 0.7rem; color: var(--ivory-dim); letter-spacing: 0.1em; }

/* Chess board (reusable) */
/* Objetivo card (matches the in-app "carta objetivo") */
.target-card {
  position: relative;
  width: 156px;
  margin: 0 auto;
  padding: 11px;
  border-radius: 16px;
  background: linear-gradient(158deg, #efe4c8 0%, #e2d0a6 100%);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
/* Gold hairline frame + edge diamonds, drawn as a crisp scalable SVG overlay */
.target-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><rect x='1' y='1' width='98' height='98' rx='7' fill='none' stroke='%23966c2d' stroke-width='0.8'/><g fill='%23966c2d'><path d='M50 0 L53 3 L50 6 L47 3 Z'/><path d='M97 47 L100 50 L97 53 L94 50 Z'/><path d='M50 94 L53 97 L50 100 L47 97 Z'/><path d='M3 47 L6 50 L3 53 L0 50 Z'/></g></svg>") center / 100% 100% no-repeat;
}

/* 3×3 board — equal columns AND equal rows = casillas del mismo tamaño */
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  aspect-ratio: 1;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.cell {
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  line-height: 1;
}
.cell.light { background: #e7d3a4; }
.cell.dark  { background: #6d4a24; }
.cell .wp {
  color: #f7edd6;
  -webkit-text-stroke: 1px rgba(58, 34, 10, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.cell .bp {
  color: #241608;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.18);
}

.board-stage {
  position: relative;
  border-radius: 14px;
  padding: 22px;
  background: var(--gradient-card);
  border: 1px solid var(--mahogany-line);
  box-shadow: 0 -2px 30px -6px rgba(240,207,132,0.25);
}
.board-stage::after { /* glow rim reference */
  content: "";
  position: absolute; left: 12%; right: 12%; bottom: 6px; height: 14px;
  background: radial-gradient(ellipse at center, rgba(255,115,20,0.55), transparent 70%);
  filter: blur(4px);
}
.moves-bar {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(0,0,0,0.35); border: 1px solid var(--mahogany-line);
  font-size: 0.72rem; letter-spacing: 0.05em;
}
.moves-bar .val { color: var(--gold-hi); font-weight: 700; }

/* =========================================================
   Benefits band
   ========================================================= */
.benefits {
  background: var(--ebony-800);
  border-top: 1px solid var(--mahogany-line);
  border-bottom: 1px solid var(--mahogany-line);
}
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit .icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(210,165,96,0.1); border: 1px solid var(--mahogany-line);
  color: var(--gold-base);
}
.benefit .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.benefit h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--ivory); }
.benefit p { font-size: 0.92rem; color: var(--ivory-soft); margin: 4px 0 0; }

/* =========================================================
   Cards / generic grid
   ========================================================= */
.cards { display: grid; gap: 24px; margin-top: 56px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--gradient-card);
  border: 1px solid var(--mahogany-line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(210,165,96,0.45); }
.card .step-num {
  font-family: var(--font-display);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-gold); color: #2a1808;
  font-size: 1rem; margin-bottom: 18px;
}
.card h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 8px; }
.card p { color: var(--ivory-soft); font-size: 0.95rem; }

/* How to play mini boards */
.how-visual { margin-top: 20px; }
.transform-arrows { display: flex; justify-content: center; gap: 10px; font-size: 1.6rem; color: var(--gold-base); margin: 14px 0; }

/* =========================================================
   Pieces
   ========================================================= */
.pieces {
  background:
    linear-gradient(180deg, var(--ebony-900), var(--ebony-800));
}
.pieces-row {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 30px; margin-top: 48px;
}
.piece-item { text-align: center; width: 150px; }
.piece-glyph {
  font-size: 4.4rem; line-height: 1;
  color: #fbf4e2;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.piece-item:nth-child(even) .piece-glyph { color: #2a1a0e; text-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 1px rgba(255,255,255,0.4); }
.piece-name {
  font-family: var(--font-display);
  font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--gold-base); margin-top: 12px;
}

/* =========================================================
   Ranking / competitive mockups
   ========================================================= */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split--reverse .split-visual { order: -1; }

.rank-panel {
  background: var(--gradient-card);
  border: 1px solid var(--mahogany-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.rank-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.3rem; color: var(--ivory);
  padding-bottom: 16px; border-bottom: 1px solid var(--mahogany-line); margin-bottom: 8px;
}
.rank-head svg { width: 22px; height: 22px; stroke: var(--gold-base); fill: none; stroke-width: 1.5; }
.rank-row {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center;
  gap: 12px; padding: 12px 6px; border-bottom: 1px solid rgba(142,97,41,0.14);
  font-size: 0.95rem;
}
.rank-row .pos { color: var(--ivory-dim); font-variant-numeric: tabular-nums; }
.rank-row .who { display: flex; align-items: center; gap: 10px; }
.rank-row .who .av { width: 26px; height: 26px; border-radius: 50%; background: rgba(210,165,96,0.18); display: grid; place-items: center; font-size: 0.7rem; color: var(--gold-base); }
.rank-row .score { font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.rank-row.you { background: rgba(210,165,96,0.1); border-radius: 10px; border-bottom-color: transparent; }
.rank-sep { text-align: center; color: var(--ivory-dim); padding: 6px 0; letter-spacing: 0.3em; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  font-size: 0.78rem; padding: 7px 14px; border-radius: 999px;
  background: rgba(210,165,96,0.08); border: 1px solid var(--mahogany-line);
  color: var(--ivory-soft);
}
.chip strong { color: var(--gold-hi); }

.feature-list { margin-top: 22px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--ivory-soft); }
.feature-list li::before {
  content: "◆"; color: var(--gold-base); font-size: 0.6rem; margin-top: 7px; flex: none;
}
.feature-list li strong { color: var(--ivory); font-weight: 600; }

/* Challenge (retos) mockup: two players */
.duel {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: var(--gradient-card); border: 1px solid var(--mahogany-line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.duel-player { text-align: center; }
.duel-player .av {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 12px;
  background: radial-gradient(circle at 40% 30%, #4a3016, #241407);
  border: 2px solid var(--gold-base); display: grid; place-items: center;
  font-size: 1.4rem; color: var(--gold-hi);
}
.duel-player .name { font-family: var(--font-head); font-size: 1.2rem; color: var(--ivory); }
.duel-player .moves { font-size: 2.4rem; font-weight: 700; color: var(--gold-hi); line-height: 1.1; margin-top: 6px; }
.duel-player .unit { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-dim); }
.duel-vs {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--gold-base);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--mahogany-line); display: grid; place-items: center;
}
.duel-result {
  grid-column: 1 / -1; text-align: center; margin-top: 20px;
  padding-top: 18px; border-top: 1px solid var(--mahogany-line);
}
.duel-result .label { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-dim); }
.duel-result .win { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-hi); }

/* Steps for challenge */
.steps-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }

/* Combined compete block */
.compete-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.compete-col {
  background: var(--gradient-card); border: 1px solid var(--mahogany-line);
  border-radius: var(--radius); padding: 34px; text-align: center;
}
.compete-col h3 { font-family: var(--font-head); font-size: 1.7rem; margin-bottom: 12px; }
.compete-col p { color: var(--ivory-soft); margin-bottom: 22px; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px;
}
.shot {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 300 / 620;
  background: radial-gradient(circle at 50% 25%, #33200f, #150c06 75%);
  border: 1px solid var(--mahogany-line);
  padding: 22px 12px 12px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.shot:hover { transform: translateY(-5px); border-color: rgba(210,165,96,0.5); }

/* Photo (real screenshot) variant */
.shot--photo { padding: 0; overflow: hidden; }
.shot--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot--photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  margin: 0; padding: 26px 12px 12px;
  font-size: 0.72rem; color: var(--ivory); text-align: center;
  background: linear-gradient(180deg, transparent, rgba(9, 5, 3, 0.9));
}

.shot .shot-label {
  font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.14em;
  color: var(--gold-base); text-align: center;
}
.shot .caption {
  margin-top: auto; font-size: 0.72rem; color: var(--ivory-dim); text-align: center;
}

/* =========================================================
   Final download CTA
   ========================================================= */
.download {
  background: var(--gradient-hero);
  border-top: 1px solid var(--mahogany-line);
  text-align: center;
}
.download h2 { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.6rem); }
.download .stores { justify-content: center; margin-top: 32px; }
.download .fine { margin-top: 20px; font-size: 0.85rem; color: var(--ivory-dim); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 780px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--mahogany-line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-head); font-size: 1.3rem; color: var(--ivory);
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--gold-base); font-size: 1.5rem; transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--ivory-soft); font-size: 0.98rem;
}
.faq-item.open .faq-a { max-height: 260px; padding-bottom: 22px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ebony-900);
  border-top: 1px solid var(--mahogany-line);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand p { color: var(--ivory-dim); font-size: 0.9rem; max-width: 260px; margin-top: 14px; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--gold-base); text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 0.9rem; color: var(--ivory-soft); padding: 6px 0; }
.footer-col a:hover { color: var(--gold-hi); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--mahogany-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--ivory-dim);
}
.footer-legal { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--ivory-dim); }
.footer-legal a:hover { color: var(--gold-hi); }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 88px; }
.legal .container { max-width: 820px; }
.legal .eyebrow { text-align: left; }
.legal h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 6px;
}
.legal .updated { color: var(--ivory-dim); font-size: 0.85rem; margin-bottom: 28px; }
.legal h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--gold-hi);
  margin: 36px 0 10px;
}
.legal h2 .num { color: var(--gold-base); margin-right: 8px; }
.legal p, .legal li { color: var(--ivory-soft); font-size: 0.98rem; line-height: 1.72; }
.legal p { margin: 0 0 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 12px 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold-base); }
.legal a:hover { color: var(--gold-hi); }
.legal .lead { color: var(--ivory); font-size: 1.05rem; }

/* ---------- Reveal animation (progressive enhancement) ---------- */
/* Content is visible by default; only hidden once JS marks the doc as capable. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .split, .compete-two { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split-visual { order: 0; }
  .cards-3, .cards-4, .benefits-grid, .steps-inline { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Collapse nav to hamburger before links start wrapping */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn, .nav-cta .lang-switch { display: none; }
  .nav-toggle { display: block; }
  .mobile-cta { display: block; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .cards-3, .cards-4, .benefits-grid, .cards-2, .steps-inline { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .duel { grid-template-columns: 1fr auto 1fr; padding: 20px; }
  .duel-player .moves { font-size: 1.8rem; }
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  background: rgba(18,10,5,0.98);
  border-bottom: 1px solid var(--mahogany-line);
}
.nav-mobile a { padding: 12px 0; color: var(--ivory-soft); border-bottom: 1px solid rgba(142,97,41,0.14); }
.nav-mobile.show { display: flex; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
