/* Squeeze Blocks website: "cozy juice bar" look, same palette and font as the game (scripts/ui.gd).
   No inline styles anywhere: the Content-Security-Policy in _headers only allows this file. */

/* Fredoka (OFL) cut down for the web: Latin subset, width fixed at 100 and weight axis 400-700 (the only
   weights used here). Built from the game's assets/fonts/Fredoka-Variable.ttf, see web/README.md. */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff6e9;
  --cream-deep: #f9e5c8;
  --paper: #fffbf4;
  --card: #ffffff;
  --card-lip: #e8d5bc;
  --ink: #3b2a1a;
  /* Darker than the game's INK_SOFT (#8a6f55) so small text keeps 4.5:1 on cream */
  --ink-soft: #6f5640;
  --accent: #ff9f1c;
  --accent-lip: #d9770a;
  --good: #8ac926;
  --good-lip: #5e9b0a;
  --gold: #ffc93c;
  --gold-lip: #e0a100;
  --wood: #8c5a2b;
  --wood-dark: #5a3a1a;
  --bad: #e63946;
  --link: #9c4a06;
  --font: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 28px;
  --wrap: 1120px;
  --soft-shadow: 0 16px 34px rgba(60, 30, 0, 0.09);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("../img/pattern.svg");
  background-size: 240px 240px;
}

main {
  flex: 1 0 auto;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.3rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

/* No lonely word on the last line of body text; short centered texts get even lines. */
p,
li {
  text-wrap: pretty;
}

.section-lead,
.cta-note,
.lead,
.beta-band p,
.nf-card p,
.faq summary {
  text-wrap: balance;
}

strong {
  font-weight: 600;
}

a {
  color: var(--link);
  font-weight: 500;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 4px 0 var(--card-lip);
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, 820px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------ header */

.site-header {
  background: rgba(255, 251, 244, 0.86);
  border-bottom: 3px solid var(--cream-deep);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--card-lip);
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--cream-deep);
}

.site-nav a[aria-current="page"] {
  background: var(--card);
  box-shadow: 0 3px 0 var(--card-lip);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem 0.25rem 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--card-lip);
}

.lang-switch .globe {
  width: 20px;
  height: 20px;
  margin-right: 0.15rem;
}

.lang-switch a,
.lang-switch .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 38px;
  padding: 0 0.6rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.lang-switch a:hover {
  background: var(--cream-deep);
}

.lang-switch .current {
  background: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent-lip);
}

@media (max-width: 420px) {
  .header-inner {
    gap: 0.4rem 0.6rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 1.12rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .lang-switch {
    padding: 0.2rem;
  }

  .lang-switch .globe {
    display: none;
  }

  .lang-switch a,
  .lang-switch .current {
    min-width: 42px;
    min-height: 36px;
    padding: 0 0.5rem;
  }

  .site-nav a {
    padding: 0.35rem 0.8rem;
  }
}

@media (min-width: 760px) {
  .site-nav {
    order: 0;
    width: auto;
  }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--accent-lip), 0 14px 24px rgba(60, 30, 0, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  color: var(--ink);
  background: #ffab38;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--accent-lip), 0 18px 28px rgba(60, 30, 0, 0.2);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--accent-lip), 0 6px 12px rgba(60, 30, 0, 0.18);
}

.btn img {
  width: 26px;
  height: 26px;
  flex: none;
}

.btn-big {
  min-height: 60px;
  padding: 0.9rem 1.9rem;
  font-size: 1.25rem;
}

.btn-light,
.btn-secondary {
  background: var(--card);
  box-shadow: 0 6px 0 var(--card-lip), 0 14px 24px rgba(60, 30, 0, 0.12);
}

.btn-light:hover,
.btn-secondary:hover {
  background: var(--paper);
  box-shadow: 0 8px 0 var(--card-lip), 0 18px 28px rgba(60, 30, 0, 0.14);
}

.btn-light:active,
.btn-secondary:active {
  box-shadow: 0 2px 0 var(--card-lip), 0 6px 12px rgba(60, 30, 0, 0.12);
}

.btn-light {
  box-shadow: 0 6px 0 var(--wood-dark), 0 14px 24px rgba(60, 30, 0, 0.2);
}

.btn-light:hover {
  box-shadow: 0 8px 0 var(--wood-dark), 0 18px 28px rgba(60, 30, 0, 0.2);
}

.btn-light:active {
  box-shadow: 0 2px 0 var(--wood-dark), 0 6px 12px rgba(60, 30, 0, 0.2);
}

.btn-small {
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  font-size: 1rem;
  box-shadow: 0 4px 0 var(--accent-lip);
}

.btn-small:hover {
  box-shadow: 0 6px 0 var(--accent-lip);
}

.btn-small:active {
  box-shadow: 0 1px 0 var(--accent-lip);
  transform: translateY(3px);
}

.btn-stack {
  flex-direction: column;
  gap: 0;
  padding: 0.7rem 2rem 0.8rem;
  line-height: 1.15;
}

.btn-main {
  font-size: 1.3rem;
  font-weight: 700;
}

.btn-sub {
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-small.btn-secondary {
  box-shadow: 0 4px 0 var(--card-lip);
}

.btn-small.btn-secondary:hover {
  box-shadow: 0 6px 0 var(--card-lip);
}

.btn-small.btn-secondary:active {
  box-shadow: 0 1px 0 var(--card-lip);
}

/* On a white card a white button disappears: give it a cream fill and a ring. */
.card .btn-secondary {
  background: var(--cream);
  box-shadow: inset 0 0 0 2px var(--cream-deep), 0 6px 0 var(--card-lip);
}

.card .btn-secondary:hover {
  background: var(--cream-deep);
  box-shadow: inset 0 0 0 2px var(--cream-deep), 0 8px 0 var(--card-lip);
}

.card .btn-secondary:active {
  box-shadow: inset 0 0 0 2px var(--cream-deep), 0 2px 0 var(--card-lip);
}

.card .btn-small.btn-secondary {
  box-shadow: inset 0 0 0 2px var(--cream-deep), 0 4px 0 var(--card-lip);
}

.card .btn-small.btn-secondary:hover {
  box-shadow: inset 0 0 0 2px var(--cream-deep), 0 6px 0 var(--card-lip);
}

.card .btn-small.btn-secondary:active {
  box-shadow: inset 0 0 0 2px var(--cream-deep), 0 1px 0 var(--card-lip);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1rem;
  align-items: center;
}

@media (max-width: 359.98px) {
  .btn,
  .btn-stack {
    padding-inline: 1.1rem;
  }

  .btn-main {
    font-size: 1.15rem;
  }
}

/* ------------------------------------------------------------------ pills */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 3px 0 var(--card-lip);
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(138, 201, 38, 0.28);
  flex: none;
}

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--card-lip), var(--soft-shadow);
}

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

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-title {
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 9px;
  margin: 0.7rem auto 0;
  border-radius: 9px;
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-lip);
}

.section-lead {
  max-width: 40rem;
  margin: 1.1rem auto 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}

.hero-logo {
  position: relative;
  isolation: isolate;
  margin: 0 0 0.5rem;
}

.hero-logo::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: 135%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(from 4deg, rgba(255, 159, 28, 0.2) 0deg 9deg, rgba(255, 201, 60, 0.06) 9deg 18deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 28%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 28%, transparent 100%);
}

.hero-logo img {
  display: block;
  width: min(69vw, 354px);
  margin-inline: auto;
}

.kicker {
  margin: 0 0 1.1rem;
}

.tagline {
  margin: 0 0 0.9rem;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.pitch {
  font-size: 1.15rem;
}

.cta {
  margin: 1.6rem 0 0;
}

.cta-note {
  max-width: 30rem;
  margin: 1.1rem auto 0;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
}

.soon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

/* Móvil y tableta (pedido de Fer, 8 nov 2026): el móvil con el bucle de partida va debajo del texto, del
   botón y de los avisos, centrado y con las frutas más pequeñas. No retrasa nada: el vídeo no se descarga
   hasta que entra en pantalla (assets/js/hero-video.js). Desde 960 px va a la derecha (ver más abajo). */
@media (max-width: 959px) {
  .hero-art {
    position: relative;
    width: min(64vw, 270px);
    /* Abajo, sitio para la sombra del móvil y la estrella: .hero recorta lo que sobresale. */
    margin: 0 auto 3rem;
  }

  .hero-art .float {
    position: absolute;
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 6px 8px rgba(60, 30, 0, 0.2));
  }

  .hero-art .float-1 {
    top: 8%;
    left: -42px;
    transform: rotate(-12deg);
  }

  .hero-art .float-2 {
    top: 40%;
    right: -42px;
    transform: rotate(10deg);
  }

  .hero-art .float-3 {
    bottom: 14%;
    left: -38px;
    transform: rotate(8deg);
  }

  .hero-art .float-4 {
    right: -22px;
    bottom: -2%;
    width: 44px;
    height: 44px;
  }
}

/* Phones: a smaller logo and the button right after the tagline, so it fits on the first screen. */
@media (max-width: 600px) {
  .hero-logo img {
    width: min(66vw, 270px);
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
  }

  .cta {
    margin-top: 0.7rem;
  }

  .pitch {
    order: 1;
    margin: 1.2rem 0 0;
  }

  .soon {
    order: 2;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
  }

  .hero-copy {
    margin: 0;
    text-align: left;
  }

  .hero-logo img {
    width: 372px;
    margin: 0 0 0 21px;
  }

  .hero-logo::before {
    left: 235px;
  }

  .cta-note {
    margin-left: 0;
  }

  .soon {
    justify-content: flex-start;
  }

  .hero-art {
    display: block;
    position: relative;
    width: 300px;
    margin: 0 auto;
  }

  .hero-art .phone {
    transform: rotate(3deg);
  }

  .float {
    position: absolute;
    width: 76px;
    height: 76px;
    filter: drop-shadow(0 8px 10px rgba(60, 30, 0, 0.2));
    animation: pop-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .float-1 {
    top: 7%;
    left: -64px;
    transform: rotate(-12deg);
    animation-delay: 0.15s;
  }

  .float-2 {
    top: 38%;
    right: -60px;
    transform: rotate(10deg);
    animation-delay: 0.3s;
  }

  .float-3 {
    bottom: 13%;
    left: -54px;
    transform: rotate(8deg);
    animation-delay: 0.45s;
  }

  .float-4 {
    bottom: -2%;
    right: -30px;
    width: 64px;
    height: 64px;
    animation-delay: 0.6s;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    scale: 0.4;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

/* ------------------------------------------------------------------ phone frame */

.phone {
  padding: 8px;
  border-radius: 32px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--wood-dark), 0 22px 40px rgba(60, 30, 0, 0.22);
}

.phone img,
.phone video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: var(--cream-deep);
}

/* Bucle de partida de la portada (assets/js/hero-video.js) y su botón de pausa (WCAG 2.2.2): abajo a la
   izquierda, sobre la barra de ayudas del juego, que en el vídeo no se toca (a la derecha lo tapaba la
   estrella decorativa). */
.phone-video {
  position: relative;
}

.video-toggle {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(59, 42, 26, 0.78);
  color: #fff;
  cursor: pointer;
}

.video-toggle[hidden] {
  display: none;
}

.video-toggle:hover {
  background: rgba(59, 42, 26, 0.92);
}

/* Pausa: dos barras. Reproducir: un triángulo. */
.video-toggle::before {
  content: "";
  box-sizing: border-box;
  width: 12px;
  height: 14px;
  border-right: 4px solid currentColor;
  border-left: 4px solid currentColor;
}

.video-toggle.is-paused::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent currentColor;
}

/* ------------------------------------------------------------------ gallery */

.gallery {
  margin-top: 2rem;
  padding: 0.5rem 0 1.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  scrollbar-color: var(--accent) var(--cream-deep);
}

.gallery:focus-visible {
  outline-offset: -3px;
}

.gallery-list {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  margin: 0;
  padding: 0 1rem;
  list-style: none;
}

.gallery-list > li {
  width: min(64vw, 260px);
  scroll-snap-align: center;
}

.shot {
  margin: 0;
}

.shot figcaption {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.swipe-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.swipe-hint img {
  width: 20px;
  height: 20px;
}

@media (min-width: 900px) {
  .gallery {
    overflow: visible;
    padding-bottom: 0;
  }

  .gallery-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 250px));
    justify-content: center;
    gap: 3rem 3.5rem;
    width: auto;
  }

  .gallery-list > li {
    width: auto;
  }

  .swipe-hint {
    display: none;
  }
}

/* ------------------------------------------------------------------ features */

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 1.2rem 1.3rem 1.35rem;
}

.feature p {
  margin: 0;
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.feature-head h3 {
  margin: 0;
}

.feature-icons {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.15rem;
}

.feature-icons img {
  width: 46px;
  height: 46px;
}

.feature-icons.many img {
  width: 36px;
  height: 36px;
}

@media (min-width: 560px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .feature:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .feature {
    padding: 1.4rem 1.4rem 1.5rem;
  }

  .feature-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .feature-icons {
    gap: 0.25rem;
    height: 56px;
  }

  .feature-icons img {
    width: 56px;
    height: 56px;
  }

  .feature-icons.many img {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

.bar-showcase {
  display: grid;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem 1rem 1.5rem;
}

.bar-showcase img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

.bar-copy {
  padding: 0 0.5rem;
}

.bar-copy h3 {
  font-size: 1.5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px var(--cream-deep);
  font-weight: 600;
}

@media (min-width: 860px) {
  .bar-showcase {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem;
    padding: 1.5rem;
  }
}

.promise {
  max-width: 36rem;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

/* ------------------------------------------------------------------ how to play */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem 1.5rem;
  margin: 3.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  padding: 2.4rem 1.4rem 1.5rem;
  text-align: center;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
  box-shadow: 0 5px 0 var(--accent-lip);
}

.step img {
  width: 76px;
  height: 76px;
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
}

/* ------------------------------------------------------------------ beta band */

.beta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 5vw, 3.5rem);
  border-radius: 36px;
  background: var(--accent);
  text-align: center;
  box-shadow: 0 8px 0 var(--accent-lip), 0 24px 44px rgba(60, 30, 0, 0.18);
}

.beta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.13) 0deg 9deg, rgba(255, 255, 255, 0) 9deg 18deg);
}

.beta-band h2 {
  max-width: 34rem;
  margin-inline: auto;
}

.beta-band p {
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1.15rem;
  font-weight: 500;
}

.beta-band .btn {
  margin: 0.8rem 0 1.2rem;
}

.beta-band .small {
  margin-bottom: 0;
  font-size: 1rem;
}

.beta-band a:not(.btn) {
  color: var(--ink);
  font-weight: 600;
}

.beta-band .small a {
  display: inline-block;
}

@media (max-width: 600px) {
  .beta-band p {
    text-align: left;
    text-wrap: pretty;
  }
}

@media (max-width: 359.98px) {
  .beta-band {
    padding-inline: 1rem;
  }
}

.beta-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 0.6rem;
  display: block;
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--accent-lip);
}

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

.qa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 920px;
  margin: 2.5rem auto 0;
}

@media (min-width: 700px) {
  .qa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.qa {
  padding: 1.3rem 1.4rem;
}

.qa p {
  margin: 0;
}

.more {
  margin: 2.25rem 0 0;
  text-align: center;
}

/* ------------------------------------------------------------------ inner pages */

.page-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem;
}

.page-hero .lead {
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 44rem;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.page-title img {
  width: 56px;
  height: 56px;
  flex: none;
}

.contact-card {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
}

.contact-card p {
  margin: 0;
}

@media (max-width: 420px) {
  .contact-card .btn-row .btn {
    flex: 1 1 100%;
  }
}

/* FAQ (support) */

.faq-group {
  margin-top: 2.5rem;
}

.faq-group h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.6rem;
}

.faq-group h2 img {
  width: 44px;
  height: 44px;
}

.faq details {
  margin-bottom: 0.9rem;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--card-lip), 0 10px 22px rgba(60, 30, 0, 0.06);
}

.faq summary {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 1rem 3.75rem 1rem 1.3rem;
  border-radius: 22px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::before {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 -3px 0 var(--cream-deep);
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 1.75rem;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::before {
  background: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent-lip);
}

.faq details[open] summary::after {
  margin-top: -3px;
  transform: rotate(-135deg);
}

.faq summary:hover {
  background: var(--paper);
}

.answer {
  padding: 0 1.3rem 1.2rem;
}

.answer > :last-child {
  margin-bottom: 0;
}

.answer ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.answer li {
  margin-bottom: 0.3rem;
}

/* Privacy */

.doc {
  padding: clamp(1.4rem, 4vw, 2.75rem);
}

.doc h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
}

.doc h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.4rem;
}

.doc p {
  max-width: 68ch;
}

.doc-meta {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 14px;
  background: var(--cream);
  font-weight: 500;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.3rem 1.5rem;
}

.note img {
  width: 48px;
  height: 48px;
  flex: none;
}

.note h2 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
}

.note p {
  margin: 0;
}

.note p + p {
  margin-top: 0.6rem;
}

.note > div {
  min-width: 0;
}

.note a {
  overflow-wrap: anywhere;
}

/* Phones: icon above the text, so the two paragraphs get the whole card width. */
@media (max-width: 600px) {
  .note {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* Press kit */

.press-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1100px) {
  .press-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* The fact sheet is much shorter than the descriptions: keep it in view instead of leaving a gap. */
@media (min-width: 1100px) and (min-height: 700px) {
  .press-grid > .press-card:first-child {
    position: sticky;
    top: 1.5rem;
  }
}

.press-card {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.press-card h2 {
  font-size: 1.6rem;
}

.factsheet {
  margin: 0;
}

.factsheet > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 2px solid var(--cream);
}

.factsheet > div:last-child {
  border-bottom: 0;
}

.factsheet dt {
  color: var(--ink-soft);
  font-weight: 600;
}

.factsheet dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .factsheet > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

.long-desc ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.long-desc li {
  margin-bottom: 0.35rem;
}

.press-section {
  margin-top: 3rem;
}

.press-section > h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
}

.press-section h3 {
  margin-top: 2rem;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.asset {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 1rem 1.25rem;
}

.asset-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: var(--cream);
  overflow: hidden;
}

.asset-thumb img {
  display: block;
  max-height: 100%;
}

.asset-thumb .thumb-icon {
  width: 62%;
  max-width: 150px;
  border-radius: 24px;
  box-shadow: 0 4px 0 var(--card-lip);
}

/* The logo WebP has no transparent margin: leave some room inside the rounded box. */
.asset-thumb .thumb-logo {
  width: 80%;
}

.asset-thumb .thumb-wide {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.asset .meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.asset .btn {
  align-self: flex-start;
  margin-top: auto;
}

.shot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 600px) {
  .shot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.art-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 599px) {
  .asset {
    padding: 0.8rem 0.8rem 1rem;
    gap: 0.6rem;
  }

  .asset h4 {
    font-size: 1.05rem;
  }

  .asset .meta {
    font-size: 0.875rem;
  }
}

@media (min-width: 600px) {
  .art-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 1000px) {
  .art-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.press-other {
  margin-top: 1.5rem;
}

.shot-grid .asset-thumb {
  aspect-ratio: 9 / 16;
  background: var(--ink);
  padding: 6px;
  border-radius: 22px;
}

.shot-grid .asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.swatch {
  padding: 0.75rem 0.9rem 0.9rem;
}

.swatch::before {
  content: "";
  display: block;
  height: 64px;
  margin-bottom: 0.6rem;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(59, 42, 26, 0.12);
}

.swatch strong {
  display: block;
}

.swatch code {
  font-family: inherit;
  color: var(--ink-soft);
  font-weight: 500;
}

.swatch-cream::before { background: #fff6e9; }
.swatch-ink::before { background: #3b2a1a; }
.swatch-orange::before { background: #ff9f1c; }
.swatch-green::before { background: #8ac926; }
.swatch-gold::before { background: #ffc93c; }
.swatch-wood::before { background: #8c5a2b; }

/* 404 */

.notfound {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.nf-art {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nf-art img {
  width: 84px;
  height: 84px;
}

.nf-code {
  margin: 0 0 0.25rem;
  color: var(--link);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nf-card {
  margin-bottom: 1.5rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
}

.nf-card h1,
.nf-card h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: 2.5rem 0 2rem;
  border-top: 6px solid var(--wood);
  background: var(--wood-dark);
  color: var(--cream);
}

.site-footer a {
  color: var(--gold);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: var(--gold);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.footer-nav h2 {
  margin: 0 0 0.5rem;
  color: var(--cream);
  font-size: 1.1rem;
}

.footer-nav ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.fine {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 2px solid rgba(255, 246, 233, 0.16);
  color: #f3dfc4;
  font-size: 0.9rem;
}

.fine p {
  margin: 0 0 0.4rem;
}

/* ------------------------------------------------------------------ motion & print */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .btn:hover,
  .btn:active,
  .btn-small:active {
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-nav,
  .lang-switch,
  .skip-link,
  .site-footer {
    display: none;
  }

  .card,
  .faq details {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ------------------------------------------------------------------ beta: pasos para apuntarse */

.beta-platform {
  margin: 1.6rem 0 0;
  font-size: 1.3rem;
}

.beta-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  max-width: 56rem;
  margin: 1.1rem auto 1.4rem;
  padding: 0;
  list-style: none;
  counter-reset: beta;
}

@media (min-width: 760px) {
  .beta-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.beta-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  counter-increment: beta;
}

.beta-steps li::before {
  content: counter(beta);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--accent-lip);
}

.beta-band .beta-steps .btn {
  margin: 0;
}

.beta-steps span {
  font-size: 1rem;
  font-weight: 500;
}
