/* rachagames.com — design tokens and components.
   Palette, type and shape language come from DESIGN_SPEC 4: warm paper,
   mango primary, guava only in celebration, shape-first sello states.
   Dark values are designed pairs, not derived. */

/* ---------- Tokens ---------- */

:root {
  --mango: #f5a623;
  --mango-deep: #c77e00;
  --guava: #e4577e;
  --paper: #fbf6ee;
  --paper-elevated: #fffdf9;
  --ink: #2b2118;
  --ink-muted: #6e6257;
  --outline: #e5dcce;
  /* Text on a mango fill is always light-mode ink, in both modes (4.1). */
  --ink-on-mango: #2b2118;
  --mango-on-dark: #ffb53e;

  --font-ui: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius-card: 16px;
  --radius-button: 12px;
  --shadow-card: 0 1px 3px rgba(43, 33, 24, 0.06);
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mango: #ffb53e;
    --mango-deep: #d98f12;
    --guava: #f06a90;
    --paper: #191411;
    --paper-elevated: #241d17;
    --ink: #f5eee3;
    --ink-muted: #a89a8c;
    --outline: #3a3129;
    --shadow-card: none;
  }
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-display.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 640;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2.5px solid var(--mango-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--paper-elevated);
  border: 1px solid var(--outline);
  border-radius: var(--radius-button);
  padding: 8px 16px;
}

.skip-link:focus {
  left: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}

.site-header.is-scrolled {
  border-bottom-color: var(--outline);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 150ms;
}

.nav-links a:hover {
  color: var(--ink);
}

.lang-toggle {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--outline);
  background: var(--paper-elevated);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color 150ms;
}

.lang-toggle:hover {
  border-color: var(--mango-deep);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .site-header nav {
    justify-content: space-between;
  }
}

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

.hero {
  padding: 72px 0 40px;
  overflow: clip;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mango-deep);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 680;
  margin-bottom: 20px;
}

.hero .lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-fineprint {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
}

.hero-fineprint .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-muted);
  flex: none;
}

.hero-phone {
  position: relative;
  justify-self: center;
}

.hero-phone::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, color-mix(in srgb, var(--mango) 26%, transparent) 0%, transparent 65%);
  z-index: -1;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 40px;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-phone {
    order: 2;
  }
}

/* ---------- Phone frames ---------- */

.phone {
  margin: 0;
  width: min(320px, 78vw);
  border-radius: 52px;
  padding: 11px;
  background: #12100e;
  border: 1px solid var(--outline);
  box-shadow: 0 24px 48px -24px rgba(43, 33, 24, 0.35);
}

.phone img {
  border-radius: 42px;
}

.phone figcaption {
  display: none;
}

/* ---------- App Store badge ---------- */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 10px 22px 12px 18px;
  text-decoration: none;
  line-height: 1.15;
  transition: transform 150ms;
}

a.store-badge:hover {
  transform: translateY(-1px);
}

.store-badge.is-soon {
  opacity: 0.92;
}

.badge-apple {
  width: 28px;
  height: 28px;
  flex: none;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-small {
  font-size: 12px;
  font-weight: 500;
}

.badge-big {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Sections ---------- */

section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 44px);
}

.section-head .sub {
  font-size: 19px;
  color: var(--ink-muted);
}

/* ---------- Ritual steps ---------- */

.ritual {
  padding-top: 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--paper-elevated);
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mango);
  color: var(--ink-on-mango);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-muted);
  font-size: 16px;
  margin: 0;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Game sections ---------- */

.game {
  border-top: 1px solid var(--outline);
}

.game .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
}

.game.alt .container {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.game.alt .game-copy {
  order: 2;
}

.game-copy {
  position: sticky;
  top: 96px;
}

.game-copy h2 {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
}

.game-copy .game-tag {
  margin-bottom: 14px;
}

.game-copy .desc {
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 30em;
}

.game-facts {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.game-facts li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 16px;
}

.game-facts .mini-sello {
  flex: none;
  transform: translateY(2px);
}

@media (max-width: 960px) {
  .game .container,
  .game.alt .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .game.alt .game-copy {
    order: 0;
  }

  .game-copy {
    position: static;
  }
}

/* Sello glyphs: disc, ring, flat (shape-first, 6.4). */

.mini-sello {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.mini-sello.is-fija {
  background: var(--mango);
}

.mini-sello.is-suelta {
  border: 3px solid var(--mango);
}

.mini-sello.is-fuera {
  background: var(--outline);
}

/* ---------- Demo cards ---------- */

.demo {
  background: var(--paper-elevated);
  border: 1px solid var(--outline);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.demo-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.demo-state {
  font-size: 14px;
  font-weight: 700;
  color: var(--mango-deep);
  min-height: 1.4em;
}

.demo-done-sello {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mango-deep);
}

.demo.is-done .demo-done-sello {
  display: inline-flex;
}

.demo-status {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  min-height: 1.6em;
  margin: 14px 0 0;
}

.demo-body:focus-visible {
  outline: 2.5px solid var(--mango-deep);
  outline-offset: 6px;
  border-radius: 12px;
}

.demo-note {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 16px 0 0;
}

.demo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-button);
  border: 1px solid var(--outline);
  background: var(--paper-elevated);
  color: var(--ink);
  padding: 10px 18px;
  transition: border-color 150ms, background 150ms, transform 100ms;
}

.btn:hover {
  border-color: var(--mango-deep);
}

.btn:active {
  transform: scale(0.97);
}

.btn.primary {
  background: var(--mango);
  border-color: var(--mango);
  color: var(--ink-on-mango);
}

.btn.primary:hover {
  background: var(--mango-deep);
  border-color: var(--mango-deep);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ---------- Fichas ---------- */

.ficha {
  --ficha-size: 46px;
  display: inline-grid;
  place-items: center;
  width: var(--ficha-size);
  height: var(--ficha-size);
  border-radius: 50%;
  font-weight: 800;
  font-size: calc(var(--ficha-size) * 0.46);
  background: var(--paper-elevated);
  color: var(--ink);
  border: 1.5px solid var(--outline);
  user-select: none;
  transition: transform 150ms, background 200ms, border-color 200ms, color 200ms;
}

.ficha.is-empty {
  background: transparent;
  color: transparent;
}

.ficha.is-active {
  border-color: var(--ink-muted);
}

.ficha.is-fija {
  background: var(--mango);
  border-color: var(--mango);
  color: var(--ink-on-mango);
}

.ficha.is-suelta {
  background: var(--paper-elevated);
  border: 3px solid var(--mango);
  color: var(--ink);
}

.ficha.is-fuera {
  background: transparent;
  border-color: transparent;
  color: var(--ink-muted);
}

.ficha.is-plain {
  border-color: var(--outline);
}

.ficha-pop {
  animation: ficha-pop 180ms ease-out;
}

@keyframes ficha-pop {
  50% {
    transform: scale(1.12);
  }
}

.ficha-shake {
  animation: ficha-shake 300ms ease-in-out;
}

@keyframes ficha-shake {
  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

/* ---------- La Palabra demo ---------- */

.palabra-board {
  display: grid;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}

.palabra-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.kbd {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.kbd-row {
  display: flex;
  gap: 5px;
}

.key {
  min-width: 30px;
  height: 46px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1px solid var(--outline);
  background: var(--paper-elevated);
  font-weight: 700;
  font-size: 15px;
  display: inline-grid;
  place-items: center;
  transition: background 150ms, border-color 150ms, color 150ms;
}

.key.wide {
  min-width: 48px;
}

.key.is-fija {
  background: var(--mango);
  border-color: var(--mango);
  color: var(--ink-on-mango);
}

.key.is-suelta {
  background: var(--paper-elevated);
  border: 2.5px solid var(--mango);
}

.key.is-fuera {
  background: transparent;
  border-color: transparent;
  color: color-mix(in srgb, var(--ink-muted) 55%, transparent);
}

@media (max-width: 480px) {
  .demo {
    padding: 18px 12px;
  }

  .ficha {
    --ficha-size: 40px;
  }

  .key {
    min-width: 24px;
    height: 42px;
    padding: 0 4px;
    font-size: 13.5px;
    border-radius: 7px;
  }

  .kbd-row {
    gap: 4px;
  }

  .key.wide {
    min-width: 38px;
    font-size: 12px;
  }

  .refran-bank .ficha,
  .cuentas-fichas .ficha {
    --ficha-size: 42px;
  }

  .refran-slots .ficha {
    --ficha-size: 34px;
  }

  .refran-slots {
    gap: 10px 14px;
  }
}

.sello-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.sello-legend li {
  display: flex;
  gap: 7px;
  align-items: center;
}

/* ---------- Refranero demo ---------- */

.refran-prompt {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
}

.refran-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  margin-bottom: 22px;
}

.refran-word {
  display: flex;
  gap: 6px;
}

.refran-slots .ficha {
  --ficha-size: 40px;
}

.refran-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  border-top: 1px dashed var(--outline);
  padding-top: 18px;
}

.refran-bank .ficha {
  --ficha-size: 42px;
  cursor: pointer;
}

.refran-bank .ficha.is-used {
  opacity: 0.25;
  pointer-events: none;
}

.sabias {
  margin-top: 18px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  background: var(--paper);
  padding: 18px 20px;
  font-size: 15.5px;
}

.sabias .sabias-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.sabias p {
  margin: 0 0 8px;
  color: var(--ink-muted);
}

.sabias p:last-child {
  margin: 0;
}

/* ---------- Cuentas demo ---------- */

.cuentas-target {
  text-align: center;
  margin-bottom: 20px;
}

.cuentas-target .target-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.cuentas-target .target-value {
  display: block;
  font-size: 56px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.cuentas-fichas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  min-height: 116px;
  align-content: center;
  margin-bottom: 16px;
}

.cuentas-fichas .ficha {
  --ficha-size: 52px;
  cursor: pointer;
  font-size: 19px;
}

.cuentas-fichas .ficha.is-selected {
  border-color: var(--mango-deep);
  background: var(--mango);
  color: var(--ink-on-mango);
}

.cuentas-fichas .ficha.is-result {
  border-width: 2.5px;
}

.cuentas-ops {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.op {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--outline);
  background: var(--paper-elevated);
  font-size: 22px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  transition: background 150ms, border-color 150ms;
}

.op.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.cuentas-log {
  text-align: center;
  font-size: 15px;
  color: var(--ink-muted);
  min-height: 1.6em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Streak band ---------- */

.streak-band {
  background: var(--mango);
  color: var(--ink-on-mango);
  padding: 96px 0;
}

.streak-band .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.streak-band h2 {
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 700;
}

.streak-band .sub {
  font-size: 19px;
  line-height: 1.6;
  max-width: 32em;
}

.streak-band a {
  color: inherit;
  font-weight: 700;
}

.streak-hero {
  text-align: center;
}

.streak-counter {
  font-size: 96px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-top: 8px;
}

.streak-caption {
  font-size: 19px;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

.stage-strip {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-end;
  margin-top: 56px;
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.stage {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.stage .llama path {
  transition: none;
}

.streak-facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.streak-facts li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.streak-facts .tick {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-on-mango);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .streak-band .container {
    grid-template-columns: 1fr;
  }
}

/* ---------- Screens strip ---------- */

.screens-strip {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  display: flex;
  gap: 28px;
  padding: 12px 24px 28px;
  scrollbar-width: thin;
}

.screens-strip .shot {
  scroll-snap-align: center;
  flex: none;
  text-align: center;
}

.screens-strip .phone {
  width: 250px;
  border-radius: 42px;
  padding: 9px;
}

.screens-strip .phone img {
  border-radius: 34px;
}

.screens-strip .shot-caption {
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ---------- Racha+ ---------- */

.plus-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}

.plus-free {
  background: var(--paper-elevated);
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  padding: 28px;
}

.plus-free h3,
.plans h3 {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 12px;
}

.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 16px;
}

.perks li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.perks .mini-sello {
  flex: none;
  transform: translateY(2px);
}

.plans {
  display: grid;
  gap: 16px;
}

.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.plan {
  position: relative;
  background: var(--paper-elevated);
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-card);
  padding: 24px;
}

.plan.is-featured {
  border-color: var(--mango);
  border-width: 2.5px;
}

.plan-flag {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--mango);
  color: var(--ink-on-mango);
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 12px;
}

.plan-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.plan-price {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}

.plan-price small {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-muted);
}

.plan-sub {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 6px 0 0;
}

.plus-legal {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.plus-legal a {
  color: inherit;
}

@media (max-width: 960px) {
  .plus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .plan-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Privacy tiles ---------- */

.privacy-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tile {
  background: var(--paper-elevated);
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.tile h3 {
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.tile p {
  font-size: 15.5px;
  color: var(--ink-muted);
  margin: 0;
}

.tile p a {
  color: inherit;
}

@media (max-width: 860px) {
  .privacy-tiles {
    grid-template-columns: 1fr;
  }
}

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

.faq-list {
  max-width: 760px;
}

.faq-list details {
  border-bottom: 1px solid var(--outline);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-size: 18px;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--ink-muted);
  border-bottom: 2.5px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform 200ms;
  margin-right: 6px;
}

.faq-list details[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}

.faq-list .faq-body {
  padding: 0 4px 22px;
  color: var(--ink-muted);
  max-width: 60ch;
}

.faq-list .faq-body p {
  margin: 0 0 10px;
}

.faq-list .faq-body p:last-child {
  margin: 0;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  padding: 112px 0;
}

.final-cta .llama {
  margin-inline: auto;
  margin-bottom: 20px;
}

.final-cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
}

.final-cta .sub {
  font-size: 19px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

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

.site-footer {
  border-top: 1px solid var(--outline);
  padding: 48px 0 40px;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-row .wordmark {
  font-size: 20px;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copyright {
  margin: 0 0 6px;
}

/* ---------- Prose (legal pages) ---------- */

.prose-wrap {
  padding: 56px 0 88px;
}

.prose {
  max-width: 720px;
}

.prose h1 {
  font-size: clamp(36px, 5vw, 48px);
}

.prose .updated {
  color: var(--ink-muted);
  font-size: 15px;
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 26px;
  margin-top: 44px;
}

.prose h3 {
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 800;
  margin-top: 32px;
}

.prose p,
.prose li {
  color: color-mix(in srgb, var(--ink) 82%, var(--ink-muted));
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 10px;
}

/* ---------- Momento racha overlay ---------- */

.momento {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.momento.is-open {
  display: grid;
}

.momento-wash {
  position: absolute;
  width: 250vmax;
  height: 250vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--guava) 0%, var(--mango) 42%, transparent 68%);
  transform: scale(0);
  opacity: 0.97;
}

.momento.is-open .momento-wash {
  animation: resplandor 700ms ease-out forwards;
}

@keyframes resplandor {
  to {
    transform: scale(1);
  }
}

.momento-card {
  position: relative;
  text-align: center;
  color: var(--ink-on-mango);
  padding: 24px;
  max-width: 480px;
}

.momento-card .llama {
  margin-inline: auto;
  margin-bottom: 6px;
}

.momento-counter {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}

.momento-caption {
  font-size: 22px;
  font-weight: 700;
  display: block;
  margin-bottom: 16px;
}

.momento-copy {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 26px;
}

.momento-card .store-badge {
  margin-bottom: 18px;
}

.momento-close {
  display: block;
  margin-inline: auto;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  color: inherit;
  padding: 8px;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .momento-wash {
    transform: scale(1);
  }
}

/* ---------- Standalone (404) ---------- */

.standalone main {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 24px;
}

.standalone .notfound h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.standalone .notfound p {
  color: var(--ink-muted);
  font-size: 18px;
}

.notfound-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
