/* Consola — landing page styles. Load consola-tokens.css FIRST (it defines every token used here). */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body { background: var(--app-bg); color: var(--app-text); font-family: Nunito, system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 80% -8%, rgb(176 108 255 / 16%), transparent 60%),
    radial-gradient(800px 500px at 5% 12%, rgb(51 207 255 / 12%), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgb(255 93 168 / 10%), transparent 60%); }

/* ── SPACE: starfield + planets ───────────────────────────── */
.starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.starfield .layer { position: absolute; inset: -8%; will-change: transform; transition: transform 0.25s cubic-bezier(.2,.6,.2,1); }
.starfield .star { position: absolute; border-radius: 50%; background: #fff; }
.starfield .star.bright { box-shadow: 0 0 4px 0.5px rgb(255 255 255 / 80%); animation: twinkle 4.5s ease-in-out infinite alternate; }

@keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }
.comet { position: fixed; top: 12%; left: -6%; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgb(255 255 255 / 90%); opacity: 0; z-index: 0; pointer-events: none; }
.comet::after { content: ""; position: absolute; right: 2px; top: 50%; width: 140px; height: 2px; transform: translateY(-50%); border-radius: 2px; background: linear-gradient(90deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 85%) 100%); }
.comet.go { animation: shoot 2.2s ease-in forwards; }

@keyframes shoot {
  0% { transform: translate(0, 0) rotate(18deg); opacity: 0; }
  8% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(72vw, 46vh) rotate(18deg); opacity: 0; }
}
.planet { position: relative; width: 66px; height: 66px; flex: none; }
.planet .body { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: inset -6px -8px 14px rgb(0 0 0 / 42%), 0 0 26px -7px var(--cc); background: radial-gradient(circle at 33% 27%, color-mix(in srgb, var(--cc) 42%, #fff), var(--cc) 52%, color-mix(in srgb, var(--cc) 58%, #000) 100%); }

/* terminator shadow on every world for sphericity */
.planet .body::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 24%, transparent 38%, rgb(0 0 0 / 28%) 100%); }

/* dashed survey orbit + moon (only on worlds that opt in) */
.planet .orbit { position: absolute; left: 50%; top: 50%; width: 124px; height: 46px; margin: -23px 0 0 -62px; border: 1px dashed color-mix(in srgb, var(--cc) 60%, transparent); border-radius: 50%; transform: rotate(var(--tilt, -20deg)); opacity: 0.7; z-index: 4; }
.planet .orbit .moon { position: absolute; left: 3px; top: 44%; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--cc) 30%, #fff); box-shadow: 0 0 8px var(--cc); }

/* ── archetype: RINGED (Saturn) — back arc behind, front arc over ── */
.planet.ringed .ring { position: absolute; left: 50%; top: 50%; width: 132%; height: 46%; transform: translate(-50%,-50%) rotate(var(--tilt, -18deg)); border-radius: 50%; border: 3px solid color-mix(in srgb, var(--cc) 42%, #fff); border-bottom-color: color-mix(in srgb, var(--cc) 45%, #000); }
.planet.ringed .ring.back { z-index: 0; }
.planet.ringed .body { z-index: 1; }
.planet.ringed .ring.front { z-index: 2; clip-path: inset(48% 0 0 0); }

/* ── archetype: CRATERED rocky world ── */
.planet.cratered .body { background:
  radial-gradient(circle at 62% 64%, color-mix(in srgb, var(--cc) 60%, #000) 0 11%, transparent 12%),
  radial-gradient(circle at 38% 72%, color-mix(in srgb, var(--cc) 60%, #000) 0 7%, transparent 8%),
  radial-gradient(circle at 72% 40%, color-mix(in srgb, var(--cc) 60%, #000) 0 5.5%, transparent 6.5%),
  radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--cc) 30%, #fff) 0 4%, transparent 5%),
  radial-gradient(circle at 33% 27%, color-mix(in srgb, var(--cc) 42%, #fff), var(--cc) 52%, color-mix(in srgb, var(--cc) 60%, #000) 100%); }

/* ── archetype: CONTINENTS lush world ── */
.planet.continents .body { background:
  radial-gradient(ellipse 30% 20% at 60% 38%, color-mix(in srgb, var(--cc) 55%, #000) 0 60%, transparent 64%),
  radial-gradient(ellipse 24% 16% at 34% 62%, color-mix(in srgb, var(--cc) 55%, #000) 0 60%, transparent 64%),
  radial-gradient(ellipse 18% 12% at 70% 70%, color-mix(in srgb, var(--cc) 50%, #000) 0 60%, transparent 64%),
  radial-gradient(ellipse 16% 10% at 26% 32%, color-mix(in srgb, var(--cc) 35%, #fff) 0 60%, transparent 64%),
  radial-gradient(circle at 33% 27%, color-mix(in srgb, var(--cc) 45%, #fff), var(--cc) 52%, color-mix(in srgb, var(--cc) 58%, #000) 100%); }

/* ── archetype: ICY world with polar caps + swirl ── */
.planet.icy .body { background:
  radial-gradient(ellipse 64% 24% at 50% 3%, rgb(255 255 255 / 92%) 0 60%, transparent 75%),
  radial-gradient(ellipse 54% 20% at 50% 99%, rgb(255 255 255 / 82%) 0 60%, transparent 78%),
  radial-gradient(ellipse 26% 10% at 42% 52%, rgb(255 255 255 / 50%) 0 60%, transparent 70%),
  radial-gradient(circle at 33% 27%, color-mix(in srgb, var(--cc) 38%, #fff), var(--cc) 52%, color-mix(in srgb, var(--cc) 60%, #000) 100%); }

/* ── archetype: BANDED gas giant + storm spot ── */
.planet.banded .body { background:
  radial-gradient(ellipse 22% 14% at 68% 60%, color-mix(in srgb, var(--cc) 30%, #fff) 0 55%, color-mix(in srgb, var(--cc) 50%, #000) 60%, transparent 64%),
  repeating-linear-gradient(2deg, color-mix(in srgb, var(--cc) 58%, #000) 0 6px, color-mix(in srgb, var(--cc) 22%, #fff) 6px 12px),
  radial-gradient(circle at 33% 27%, color-mix(in srgb, var(--cc) 40%, #fff), var(--cc) 100%); }
.planet.banded .body::before { background: radial-gradient(circle at 30% 24%, transparent 30%, rgb(0 0 0 / 32%) 100%); }

@media (width <= 600px){ .planet { transform: scale(0.92); } }

.disp { font-family: Fredoka, sans-serif; font-weight: 700; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 26px; position: relative; z-index: 1; }

@media (width <= 600px){ .wrap { padding: 0 18px; } }

/* height:auto so the width/height attributes added for CLS only set the aspect
   ratio; CSS controls the rendered size. Without it the height attribute leaks as
   a presentational hint and stretches any image sized by width alone. Images that
   set both width and height in CSS (planets, logo, ava, ship) win via specificity. */
img { max-width: 100%; height: auto; display: block; }

/* tiny pixel chip */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* HUD HEADER */
.hud { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgb(12 10 30 / 72%); border-bottom: 1px solid var(--app-border); }

/* padding-block (not the `14px 0` shorthand) so .wrap's horizontal padding is
   kept — otherwise the header content loses its side padding and hugs the edges. */
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: Fredoka, sans-serif; font-weight: 700; font-size: 28px; }
.logo .dot { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--w-math), var(--w-num)); display: grid; place-items: center; box-shadow: 0 6px 20px -6px var(--w-math); }
.logo .dot img { width: 90%; height: 90%; object-fit: contain; }
.logo .fx { color: var(--w-math); }
.hud-nav { display: flex; gap: 26px; font-weight: 700; font-size: 14px; color: var(--app-text-soft); }
.hud-nav a:hover { color: var(--app-text); }
.hud-cta { display: flex; align-items: center; gap: 12px; }

/* Language switch — segmented pill (EN/ES), left of the header CTA. Active
   segment uses the math/orange accent; inactive reads as muted text. */
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--app-surface); border: 1px solid var(--app-border-strong); }
.lang-opt { display: inline-flex; align-items: center; font-family: var(--font-body); font-weight: 800; font-size: 13px; line-height: 1; letter-spacing: .02em; color: var(--app-text-soft); text-decoration: none; padding: 8px 13px; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.lang-opt:hover { color: var(--app-text); }
.lang-opt--active, .lang-opt--active:hover { background: var(--w-math); color: #fff; }

@media (width <= 820px){ .hud-nav { display: none; } }

/* Phones: compact the bar, scale the wordmark, and lighten the header CTA so it
   doesn't dominate. Scoped to .hud-cta so the hero buttons keep their full size. */
@media (width <= 600px){
  .hud-row { padding-block: 11px; gap: 10px; }
  .logo { font-size: 24px; gap: 9px; }
  .logo .dot { width: 40px; height: 40px; border-radius: 12px; }

  /* Icon-only logo on phones so the language toggle + header CTA fit without the
     CTA overflowing the right edge. The wordmark returns at >=600px. */
  .logo .logo-name { display: none; }
  .hud-cta .btn { padding: 9px 14px; font-size: 13px; border-radius: 12px; white-space: nowrap; }
  .hud-cta .btn-play { box-shadow: 0 5px 0 #b22a5e, 0 10px 20px -8px var(--w-num); }
  .lang-switch { padding: 3px; gap: 3px; }
  .lang-opt { padding: 7px 10px; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 14px; border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.btn:active { transform: translateY(2px); }
.btn-play { background: linear-gradient(135deg, var(--w-math), var(--w-num)); color: #fff; box-shadow: 0 8px 0 #b22a5e, 0 14px 30px -8px var(--w-num); }
.btn-play:hover { filter: brightness(1.06); }
.btn-ghost { background: rgb(255 255 255 / 5%); color: var(--app-text); border: 1.5px solid var(--app-border-strong); }
.btn-ghost:hover { background: rgb(255 255 255 / 10%); }
.btn-lg { padding: 16px 30px; font-size: 18px; border-radius: 16px; }

/* HERO */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.kick { display: inline-flex; align-items: center; gap: 8px; color: var(--w-gram); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.kick .blink { width: 9px; height: 9px; border-radius: 2px; background: var(--w-word); box-shadow: 0 0 12px var(--w-word); animation: blink 1.1s steps(2) infinite; }

@keyframes blink { 50% { opacity: 0.2; } }
.hero h1 { font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(46px, 7.6vw, 104px); line-height: 0.92; letter-spacing: -0.02em; margin: 16px 0 30px; }
.hero h1 .g1 { color: var(--w-math); }
.hero h1 .g2 { background: linear-gradient(90deg, var(--w-read), var(--w-word)); background-clip: text; color: transparent; }

/* Keyword supplement inside the H1 — crawlable, and styled as the hero subhead
   (matches the former .sub paragraph: Nunito 20px, regular weight, muted). */
.hero h1 .h1-seo { display: block; font-family: Nunito, sans-serif; font-weight: 400; font-size: 20px; line-height: 1.55; letter-spacing: 0; color: var(--app-text-soft); max-width: 480px; margin: 16px 0 0; }
.hero .cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero .micro { margin-top: 16px; color: var(--app-text-muted); font-size: 13px; font-weight: 700; }

/* player card */
.player { position: relative; background: linear-gradient(180deg, var(--app-surface-2), var(--app-surface)); border: 1.5px solid var(--app-border-strong); border-radius: 26px; padding: 26px; box-shadow: 0 30px 70px -30px #000; }
.player .pc-top { display: flex; align-items: center; gap: 16px; }
.player .ava { width: 92px; height: 92px; border-radius: 20px; background: radial-gradient(circle at 50% 30%, #2a2360, #161038); border: 1.5px solid var(--app-border-strong); display: grid; place-items: center; flex: none; }
.player .ava img { width: 78px; height: 78px; filter: drop-shadow(0 6px 12px rgb(0 0 0 / 50%)); }
.player .pc-name { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 26px; line-height: 1; }
.player .pc-sub { color: var(--app-text-muted); font-size: 13px; font-weight: 700; margin-top: 4px; }
.player .lvl { margin-left: auto; text-align: center; }
.player .lvl .b { width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(var(--w-gram) 78%, rgb(255 255 255 / 8%) 0); display: grid; place-items: center; }
.player .lvl .b i { width: 44px; height: 44px; border-radius: 50%; background: var(--app-surface); display: grid; place-items: center; font-family: Fredoka, sans-serif; font-style: normal; font-weight: 700; font-size: 20px; color: var(--w-gram); }
.player .lvl .t { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: var(--app-text-muted); text-transform: uppercase; margin-top: 5px; }
.xpbar { margin-top: 22px; }
.xpbar .row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--app-text-soft); margin-bottom: 7px; letter-spacing: 0.04em; }
.xpbar .track { height: 14px; border-radius: 999px; background: rgb(0 0 0 / 35%); overflow: hidden; border: 1px solid var(--app-border); }
.xpbar .fill { height: 100%; width: 72%; border-radius: 999px; background: linear-gradient(90deg, var(--w-read), var(--w-word)); box-shadow: 0 0 16px var(--w-word); }
.player .stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 18px; }
.player .stat { background: rgb(0 0 0 / 25%); border: 1px solid var(--app-border); border-radius: 14px; padding: 12px; text-align: center; }
.player .stat .n { font-family: Fredoka, sans-serif; font-weight: 700; font-size: 24px; line-height: 1; }
.player .stat .l { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-text-muted); margin-top: 4px; }
.player .stat.flame .n { color: var(--w-math); }

@media (width <= 880px){
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 40px 0 20px; }
}

/* SECTION HEAD */
.sec { padding: 80px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head h2 { font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.015em; margin: 14px 0; }
.sec-head p { color: var(--app-text-soft); font-size: 18px; margin: 0; }

/* WORLDS GRID */
.ruta { position: relative; max-width: 880px; margin: 0 auto 56px; padding: 0 8px; }
.ruta .line { position: absolute; left: 7%; right: 7%; top: 47px; height: 2px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / 40%) 0 5px, transparent 5px 13px); }
.ruta .stops { position: relative; display: flex; justify-content: space-between; }
.ruta .stop { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: 1; }
.ruta .dot { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 65%, transparent)); }
.ruta .lab { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--app-text-soft); white-space: nowrap; }
.ruta .ship { position: absolute; top: 19px; left: 7%; z-index: 3; transform: translateX(-50%); animation: cruise 14s ease-in-out infinite; }
.ruta .ship .cap { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--app-surface); border: 1.5px solid var(--app-border-strong); box-shadow: 0 0 18px -4px var(--w-read); }
.ruta .ship .cap img { width: 30px; height: 30px; }

@keyframes cruise {
  0%   { left: 7%;  transform: translateX(-50%) perspective(420px) rotateY(0deg); }
  18% { left: 27%; } 36% { left: 46%; } 54% { left: 60%; } 72% { left: 79%; }
  90%  { left: 93%; transform: translateX(-50%) perspective(420px) rotateY(0deg); }   /* reached far end, facing right */
  93%  { left: 93%; transform: translateX(-50%) perspective(420px) rotateY(180deg); } /* turn around in place → face left */
  99%  { left: 7%;  transform: translateX(-50%) perspective(420px) rotateY(180deg); } /* race back facing left */
  100% { left: 7%;  transform: translateX(-50%) perspective(420px) rotateY(360deg); } /* flip back → face right (360≡0, seamless) */
}

@media (width <= 640px){ .ruta .lab { display: none; } .ruta { margin-bottom: 40px; } .ruta .dot { width: 52px; height: 52px; } .ruta .line { top: 25px; } .ruta .ship { top: 6px; } .ruta .ship-img[src] { width: 40px; height: 40px; } }

.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.world { position: relative; background: linear-gradient(180deg, var(--app-surface), var(--app-bg-2)); border: 1.5px solid var(--app-border); border-radius: 22px; padding: 22px; overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.world:hover { transform: translateY(-5px); border-color: var(--cc); }
.world::before { content: ""; position: absolute; top: -60px; right: -30px; width: 180px; height: 160px; background: radial-gradient(circle, var(--cc), transparent 68%); opacity: 0.16; }
.world .wtop { display: flex; align-items: flex-start; justify-content: space-between; position: relative; min-height: 72px; }
.world .wlabel { font-family: "JetBrains Mono", Fredoka, monospace; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: var(--cc); opacity: 0.85; padding-top: 6px; }
.world .wlabel small { display: block; font-size: 10px; letter-spacing: 0.16em; color: var(--app-text-muted); margin-top: 4px; }
.world .wtop .planet { margin: 4px 6px 0 0; }
.world h3 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 24px; margin: 18px 0 2px; }
.world .age { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-text-muted); }
.world p { font-size: 14.5px; color: var(--app-text-soft); margin: 12px 0 18px; min-height: 62px; }
.world .wbar { display: flex; align-items: center; gap: 10px; }
.world .wbar .t { flex: 1; height: 8px; border-radius: 999px; background: rgb(0 0 0 / 35%); overflow: hidden; }
.world .wbar .f { height: 100%; background: var(--cc); border-radius: 999px; box-shadow: 0 0 12px var(--cc); }
.world .wbar .pc { font-size: 12px; font-weight: 800; color: var(--cc); }

@media (width <= 900px){ .worlds { grid-template-columns: 1fr 1fr; } }

@media (width <= 600px){ .worlds { grid-template-columns: 1fr; } }

/* ── IMAGE SLOTS ──────────────────────────────────────────────
   Each slot ships with NO src (CSS art is the live fallback).
   Add a real src (Rails image_tag, or the loader snippet in the
   handoff doc) and the [src] selector + :has() reveal the image
   and auto-hide the CSS art. Remove the src to revert. */
.planet .planet-img { display: none; }
.planet .planet-img[src] { display: block; position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: contain; z-index: 6; }

.planet:has(.planet-img[src]) .body,
.planet:has(.planet-img[src]) .ring,
.planet:has(.planet-img[src]) .orbit { display: none; }

.ruta .ship-img { display: none; }
.ruta .ship-img[src] { display: block; width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 0 10px var(--w-read)); }
.ruta .ship:has(.ship-img[src]) .cap { display: none; }

.player .ava .ava-img { display: none; }
.player .ava .ava-img[src] { display: block; width: 80px; height: 80px; object-fit: contain; }
.player .ava:has(.ava-img[src]) > img:not(.ava-img) { display: none; }

/* ENGINE / mechanics */
.engine { background: linear-gradient(180deg, transparent, rgb(176 108 255 / 6%)); border-top: 1px solid var(--app-border); border-bottom: 1px solid var(--app-border); }
.mechanics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mech { background: var(--app-surface); border: 1.5px solid var(--app-border); border-radius: 20px; padding: 26px; text-align: center; }
.mech .ic { color: var(--cc, var(--w-word)); margin-bottom: 6px; display: flex; justify-content: center; }
.mech .ic svg { width: 32px; height: 32px; display: block; }
.mech h4 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 22px; margin: 14px 0 8px; }
.mech p { color: var(--app-text-soft); font-size: 15px; margin: 0; }

@media (width <= 820px){ .mechanics { grid-template-columns: 1fr; } }

/* CHESS spotlight */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; background: linear-gradient(135deg, rgb(176 108 255 / 12%), rgb(51 207 255 / 6%)); border: 1.5px solid var(--app-border-strong); border-radius: 28px; padding: 40px; }
.spot .badge { color: var(--w-chess); }
.spot h3 { font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(30px,3.6vw,46px); line-height: 1; margin: 14px 0; }
.spot p { color: var(--app-text-soft); font-size: 17px; margin: 0 0 22px; }
.ladder { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.ladder .rung { flex: 1; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--w-chess), rgb(255 93 168 / 25%)); opacity: 0.4; }
.ladder .rung.on { opacity: 1; box-shadow: 0 0 18px -2px var(--w-chess); }
.coachbox { display: flex; align-items: center; gap: 12px; margin-top: 18px; background: rgb(0 0 0 / 30%); border: 1px solid var(--app-border); border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.coachbox .cf { width: 30px; height: 30px; border-radius: 9px; background: var(--w-math); display: grid; place-items: center; flex: none; }

@media (width <= 820px){ .spot { grid-template-columns: 1fr; gap: 28px; padding: 28px; } }

/* PARENTS */
.coach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.coach-grid h2 { font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(32px,4.4vw,54px); line-height: 1; margin: 14px 0 16px; }
.coach-grid .lede { color: var(--app-text-soft); font-size: 18px; }
.coach-grid ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 15px; }
.coach-grid li { display: flex; gap: 12px; font-weight: 600; font-size: 15px; line-height: 1.4; }
.ck { width: 22px; height: 22px; border-radius: 7px; background: var(--w-word); color: #07210f; display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; }
.statscreen { background: var(--app-surface); border: 1.5px solid var(--app-border-strong); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -30px #000; }
.ss-top { padding: 18px 22px; border-bottom: 1px solid var(--app-border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ss-top .nm { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 18px; white-space: nowrap; }
.ss-top .wk { color: var(--app-text-muted); font-size: 12px; font-weight: 700; }
.ss-body { padding: 18px 22px; display: grid; gap: 12px; }
.ss-row { display: grid; grid-template-columns: 96px 1fr 54px; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; }
.ss-row .t { height: 9px; border-radius: 999px; background: rgb(0 0 0 / 35%); overflow: hidden; }
.ss-row .f { height: 100%; border-radius: 999px; }
.ss-row .pc { text-align: right; font-weight: 800; color: var(--app-text-soft); }

@media (width <= 820px){ .coach-grid { grid-template-columns: 1fr; } }

/* PRICING */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
.tiers--3 { grid-template-columns: repeat(3, 1fr); max-width: 940px; }

@media (width <= 720px) { .tiers--3 { grid-template-columns: 1fr; } }

/* Tighter rhythm between the section subhead and the "includes" heading. */
#precios .sec-head { margin-bottom: 24px; }
.pricing-includes-title { text-align: center; color: var(--app-text-muted); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 12px; }

/* Left-aligned column, centered as a block (width:max-content + auto margins). */
.pricing-includes { list-style: none; padding: 0; margin: 0 auto 26px; width: max-content; max-width: 100%; display: grid; gap: 10px; text-align: left; }
.pricing-includes li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--app-text-soft); }

/* Keep the check on the first line when a row wraps to two lines. */
.pricing-includes li.is-wrapping { align-items: flex-start; }
.tier { background: var(--app-surface); border: 1.5px solid var(--app-border); border-radius: 24px; padding: 30px; position: relative; display: flex; flex-direction: column; }

/* Equal-height cards (grid stretch) + CTA pinned to the bottom of each card. */
.tier .btn { margin-top: auto; }
.tier.pro { background: linear-gradient(180deg, var(--app-surface-2), var(--app-surface)); border-color: var(--w-gram); box-shadow: 0 0 50px -16px var(--w-gram); }
.tier .tn { font-family: Fredoka, sans-serif; font-weight: 700; font-size: 20px; }

/* Price always on one line: scales down to fit the narrow 3-up card ("$480 MXN"). */
.tier .pr { font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.05; white-space: nowrap; margin: 14px 0 6px; }
.tier .pr span { font-size: 18px; color: var(--app-text-muted); font-weight: 700; }
.tier .alt { color: var(--app-text-muted); font-size: 13px; font-weight: 700; margin-bottom: 22px; }
.tier ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.tier li { display: flex; gap: 10px; font-size: 14px; font-weight: 600; color: var(--app-text-soft); }
.tier li::before { content: "▸"; color: var(--w-word); font-weight: 900; }
.tier .badge2 { position: absolute; top: -12px; right: 24px; background: var(--w-gram); color: #2a1d00; padding: 5px 12px; border-radius: 999px; font-weight: 900; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

@media (width <= 700px){ .tiers { grid-template-columns: 1fr; } }

/* FINAL */
.final { text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.final .wrap { position: relative; z-index: 2; }

.final .horizon { position: absolute; left: 50%; bottom: -132%; width: 160%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--w-chess) 30%, var(--app-bg)) 0%, color-mix(in srgb, var(--w-num) 16%, var(--app-bg)) 38%, var(--app-bg) 62%);
  box-shadow: inset 0 7px 44px -6px color-mix(in srgb, var(--w-read) 85%, transparent), 0 0 100px 8px color-mix(in srgb, var(--w-read) 35%, transparent); }
.final .horizon::before { content: ""; position: absolute; left: 50%; top: -2px; transform: translateX(-50%); width: 62%; height: 60px; border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--w-read) 70%, transparent), transparent 70%); filter: blur(2px); }
.final h2 { font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(40px,6.4vw,92px); line-height: 0.94; letter-spacing: -0.02em; margin: 0 0 18px; }
.final h2 .g2 { background: linear-gradient(90deg, var(--w-math), var(--w-num)); background-clip: text; color: transparent; }
.final p { color: var(--app-text-soft); font-size: 19px; margin: 0 auto 30px; max-width: 460px; }
.final .micro { margin-top: 16px; color: var(--app-text-muted); font-size: 13px; font-weight: 700; }

/* live telemetry (Control de misión) */
.live { display: inline-flex; align-items: center; gap: 7px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w-word); font-weight: 700; white-space: nowrap; }
.live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--w-word); animation: pulse 1.8s ease-out infinite; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--w-word) 65%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ss-coords { padding: 11px 22px; border-top: 1px solid var(--app-border); display: flex; justify-content: space-between; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.06em; color: var(--app-text-muted); white-space: nowrap; }
.ss-coords .v { color: var(--app-text-soft); }

/* FAQ (native <details> accordion — no JS) */
.faq { scroll-margin-top: 80px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--app-surface); border: 1.5px solid var(--app-border); border-radius: 18px; overflow: hidden; transition: border-color .15s ease; }
.faq-item[open] { border-color: var(--app-border-strong); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; padding: 20px 24px; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 18px; color: var(--app-text); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--w-read); }
.faq-q:focus-visible { outline: 2px solid var(--w-read); outline-offset: -2px; border-radius: 18px; }
.faq-chevron { width: 22px; height: 22px; flex: none; color: var(--app-text-muted); transition: transform .2s ease, color .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--w-read); }
.faq-a { padding: 0 24px 22px; color: var(--app-text-soft); font-size: 16px; line-height: 1.62; }
.faq-a p { margin: 0; }

@media (width <= 600px){ .faq-q { font-size: 16px; padding: 16px 18px; } .faq-a { padding: 0 18px 18px; font-size: 15px; } }

/* FOOTER — columned, shared by the landing and the content pages. The "Guides"
   column links every ContentPage (the site's interlinking hub). */
.ft { border-top: 1px solid var(--app-border); padding: 48px 0; color: var(--app-text-muted); }
.ft-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.ft-brand .logo { margin-bottom: 14px; }
.ft-copy { color: var(--app-text-muted); font-size: 13px; line-height: 1.5; max-width: 260px; }
.ft-col { display: flex; flex-direction: column; gap: 10px; }
.ft-col-title { color: var(--app-text); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.ft-col a { color: var(--app-text-muted); font-size: 14px; font-weight: 600; }
.ft-col a:hover { color: var(--app-text); }

@media (width <= 880px){ .ft-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; } .ft-brand { grid-column: 1 / -1; } }

@media (width <= 520px){ .ft-cols { grid-template-columns: 1fr; } }

/* CONTENT PAGES (issue 07) — use-case + comparison articles. */
.content-page { padding: 36px 0 80px; }
.content-wrap { max-width: 760px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--app-text-muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--app-text); }
.crumb-current { color: var(--app-text-soft); }
.content-hero { margin-bottom: 44px; }
.content-hero h1 { font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(32px, 5vw, 54px); line-height: 1.04; letter-spacing: -0.015em; margin: 14px 0 16px; }
.content-lede { color: var(--app-text-soft); font-size: 19px; line-height: 1.5; margin: 0 0 26px; }
.content-hero .cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.content-section { margin: 0 0 34px; }
.content-section h2 { font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.01em; margin: 0 0 12px; }
.content-section p { color: var(--app-text-soft); font-size: 17px; line-height: 1.62; margin: 0; }
.content-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.content-checks li { display: flex; align-items: flex-start; gap: 12px; color: var(--app-text-soft); font-size: 17px; line-height: 1.5; }
.content-cta { margin-top: 8px; text-align: center; background: linear-gradient(180deg, var(--app-surface-2), var(--app-surface)); border: 1.5px solid var(--app-border-strong); border-radius: 24px; padding: 40px 30px; }
.content-cta h2 { font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; }
.content-cta p { color: var(--app-text-soft); font-size: 17px; margin: 0 auto 22px; max-width: 440px; }
