/*
  Tirly landing. Built from Figma b2GLzUFAjHh093TRAZVY5p (desktop 2:150, mobile 2:942).
  Colours, spacing, radii and fonts come from css/tokens.css; component base comes from css/base.css.
  No hex in this file. Motion is css only and stops under prefers-reduced-motion.
*/

/* Spanish uses the patched Press Start 2P that has real accents (the base subset squashes them). */
@font-face {
  font-family: "Press Start 2P ES";
  src: url("/tierly/assets/fonts/press-start-2p-es.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html[lang="es"] {
  --font-display: "Press Start 2P ES", "Press Start 2P", ui-monospace, monospace;
}

html {
  overflow-x: clip;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  overflow-x: clip;
}

.page {
  --grid: 40px;
  --gap: 16px;
  --container-pad: clamp(20px, 4vw, 48px);
  position: relative;
  font-family: var(--font-mono);
  overflow-x: clip;
}

/* Fine grid: 1px lines of --color-line at 45%, every 40px (30px on mobile), behind everything. */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--color-line) 45%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--color-line) 45%, transparent) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
}

.page > main,
.page > footer {
  position: relative;
  z-index: 1;
}

.page img {
  max-width: none;
}

/* The one container: 1200px of content, 24-48px of side padding. Every section wraps its content in it. */
.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--container-pad));
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.only-mobile {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.muted {
  color: var(--color-muted);
}

.eyebrow {
  margin: 0;
  color: var(--color-accent-text);
}

.eyebrow--text {
  color: var(--color-text);
}

.page h1,
.page h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.page h2 {
  margin: 0;
  font-size: 48px;
  line-height: 64px;
  letter-spacing: -0.24px;
}

.page h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  text-transform: uppercase;
}

.page p {
  margin: 0;
}

.btn {
  text-align: center;
}

.link-ghost {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) 0;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 16px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-ghost:hover,
.link-ghost:focus-visible {
  color: var(--color-accent);
}

.page a:focus-visible,
.page button:focus-visible,
.page summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Decorative pixel sprites (svg from Figma) ------------------------------ */
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.spark,
.ring {
  display: block;
  position: absolute;
  pointer-events: none;
}

.spark {
  background: url("/tierly/assets/landing/deco-sparkle-mint.svg") center / contain no-repeat;
}

.spark--ink {
  position: static;
  width: 20px;
  height: 20px;
  background: var(--color-on-accent);
  -webkit-mask: url("/tierly/assets/landing/deco-sparkle-mint.svg") center / contain no-repeat;
  mask: url("/tierly/assets/landing/deco-sparkle-mint.svg") center / contain no-repeat;
}

.ring {
  background: url("/tierly/assets/landing/deco-circle-ring.svg") center / contain no-repeat;
}

/* The Figma sets every 12px mono label on a 16px line box; the shared 1.4 token gives 16.8px. */
.page .label {
  line-height: 16px;
}

/* Pills, tags, chips ------------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
  line-height: 16px;
  white-space: nowrap;
}

.tag--outline {
  border: 2px solid var(--color-muted);
  background: transparent;
  color: var(--color-text);
}

.tag--violet {
  border: 0;
  background: var(--color-accent-2);
  color: var(--color-text);
}

/* ADMINS / MEMBERS above the For servers / For players titles: dark pill (Figma Tag fill, surface-2). */
.acard .tag--violet {
  background: var(--color-surface-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 2px solid var(--color-outline);
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
}

.chip--accent {
  background: var(--color-accent-muted-1);
  color: var(--color-ink);
}

.chip--beta,
.chip--soon {
  background: var(--color-accent-2);
  color: var(--color-text);
}

.chip--soon {
  padding: 2px 8px;
  vertical-align: 2px;
}

/* In the For servers / Pricing bullets the Figma writes «… · SOON» as plain text, not as a chip. */
.bullets .chip--soon,
.pricing__list .chip--soon {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  white-space: normal;
}

.bullets .chip--soon::before,
.pricing__list .chip--soon::before {
  content: "· ";
}

/* Header ------------------------------------------------------------------ */
/* Top layer: main, the marquee and every decoration sit under it, so nothing crosses the logo, nav or CTA. */
.page > .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
}

.logo__cat {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.logo__word {
  width: 86.25px;
  height: 23px;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
}

.site-nav a,
.site-header__cta {
  white-space: nowrap;
}

.site-nav a,
.mobile-menu a.label {
  color: var(--color-text);
  text-decoration: none;
}

.site-nav a:hover,
.mobile-menu a.label:hover {
  color: var(--color-accent);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.8em;
  color: var(--color-muted);
}

.lang__btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.lang__btn[aria-pressed="true"] {
  color: var(--color-text);
}

/* Dark / Light switch, beside ES / EN */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 0.8em;
  color: var(--color-muted);
}

.theme-switch__colon {
  margin-left: -0.6em;
}

.theme-switch__btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.theme-switch__btn[aria-pressed="true"] {
  color: var(--color-text);
}

.theme-switch__btn:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 3px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 8px;
  margin: -14px -8px -14px 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 2px;
}

.menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: flex;
}

/* Header menu: one disclosure panel on every width (hamburger at the right of the bar).
   Language and theme live here; the bar keeps the logo, the inline nav and the CTA. */
.mobile-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: calc(max(0px, (100% - 1200px - 2 * var(--container-pad)) / 2) + var(--container-pad));
  z-index: 110;
  width: min(360px, calc(100% - 2 * var(--space-4)));
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: var(--space-2) var(--space-5) var(--space-5);
  border: var(--outline);
  background: var(--color-surface);
  box-shadow: var(--shadow-hard);
}

.menu-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.menu-group + .menu-group {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-line);
}

.menu-group + .btn {
  margin-top: var(--space-4);
}

.mobile-menu a.label {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  white-space: normal;
}

.mobile-menu a.label[aria-current="page"] {
  color: var(--color-accent);
}

/* Language + theme: a muted label, then two segmented buttons (pressed / current = accent). */
.menu-group--prefs {
  align-items: stretch;
  gap: var(--space-3);
  padding-block: var(--space-2) var(--space-1);
}

.mobile-menu .lang,
.mobile-menu .theme-switch {
  flex-wrap: wrap;
  gap: var(--space-2);
}

.mobile-menu .lang__label,
.mobile-menu .theme-switch__label {
  flex: 0 0 100%;
  margin: 0;
}

.mobile-menu .lang__colon,
.mobile-menu .lang__sep,
.mobile-menu .theme-switch__colon,
.mobile-menu .theme-switch__sep {
  display: none;
}

.mobile-menu .lang__btn,
.mobile-menu .lang a,
.mobile-menu .theme-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  margin: 0;
  padding: 0 var(--space-3);
  border: var(--outline);
  background: var(--color-surface-2);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.mobile-menu .lang__btn:hover,
.mobile-menu .lang a:hover,
.mobile-menu .theme-switch__btn:hover {
  box-shadow: var(--shadow-hard-sm);
}

.mobile-menu .lang__btn[aria-pressed="true"],
.mobile-menu .lang a[aria-current="true"],
.mobile-menu .theme-switch__btn[aria-pressed="true"] {
  background: var(--color-text);
  color: var(--color-bg);
}

.mobile-menu .lang__btn:focus-visible,
.mobile-menu .lang a:focus-visible,
.mobile-menu a.label:focus-visible,
.mobile-menu .theme-switch__btn:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 3px;
}

.menu-scrim {
  display: none;
}

.menu-close {
  display: none;
}

/* The CTA already sits in the bar while the bar's nav is visible. */
.mobile-menu > .btn {
  display: none;
}

/* Figma «Header border»: a full-width 1px line under the header, 16px below it (12px on phones). */
.page > main::before {
  content: "";
  display: block;
  height: 1px;
  margin-top: 16px;
  background: var(--color-line);
}

/* Hero -------------------------------------------------------------------- */
/* Figma 2:240: copy | two player cards on one row, then the live showcase inside the same section. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 16px;
  padding-block: 96px;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero > .deco--hero-spark {
  position: absolute;
  left: 16px;
  top: 72px;
  width: 24px;
  height: 24px;
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  column-gap: var(--space-7);
  align-items: center;
  min-height: 486px;
}

.hero__copy {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

/* Press Start 2P advances 1em per glyph, so 56-64px cannot hold 14 glyphs per line in a 55% column:
   44px is the cap on the 1200px column, and it shrinks with the column so "ALREADY PLAYS." never wraps. */
.hero__title {
  margin: 0;
  width: 100%;
  font-size: min(44px, 7cqi);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

html[lang="es"] .hero__title {
  font-size: min(41px, 6.3cqi);
}

.hero__accent {
  color: var(--color-accent);
}

.hero__text {
  max-width: 520px;
  color: var(--color-muted);
  font-size: var(--fs-small);
  line-height: 22px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* Social proof: avatars of public-directory communities (filled by landing.js) and the traction count. */
.proof {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.proof__avatars {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof__avatars li {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: -8px;
  border: 2px solid var(--color-outline);
  border-radius: 50%;
  background: var(--color-accent-2);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 10px;
  overflow: hidden;
}

.proof__avatars li:first-child {
  margin-left: 0;
}

.proof__avatars img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof__text {
  color: var(--color-text);
}

.hero__note {
  color: var(--color-muted);
  text-wrap: balance;
}

/* Player cards (Figma 2:163): Player_01 behind at -2 degrees, Player_02 in front at +2 degrees with the violet
   shadow and a sparkle. Everything inside a card is in em on a 9.6px base (12px on phones, Figma mobile card),
   so the 256px desktop card and the 350px phone card are the same layout. The cat sits in the free corner. */
.scene {
  position: relative;
  justify-self: end;
  width: 332px;
  height: 510px;
}

.scene__board {
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 9.6px;
}

.scene .pcard {
  position: absolute;
  width: 256px;
  gap: 1.333em;
  padding: 2em;
  border-width: 0.25em;
  border-radius: 1.667em;
}

.scene .label,
.scene .tag {
  font-size: 1em;
  line-height: 1.333;
}

.scene .pcard__row .tag {
  padding: 0.333em 0.667em;
  border-width: 0.167em;
}

.scene .pcard__row {
  gap: 0.833em;
}

.scene .pcard__row .label,
.scene .pcard__game {
  white-space: nowrap;
}

/* «TARJETA DE JUGADOR» is wider than «PLAYER CARD»: tighter tracking keeps 8px between the label and the chip. */
html[lang="es"] .scene .pcard__row .label {
  letter-spacing: 0.06em;
}

.scene .avatar {
  width: 4em;
  height: 4em;
  border-width: 0.167em;
  border-radius: 0.667em;
  font-size: 1em;
  line-height: 1.333;
}

.scene .pcard__who {
  gap: 1em;
}

.scene .pcard__id {
  gap: 0.333em;
}

.scene .pcard__name {
  font-size: 1.333em;
  line-height: 1.625;
}

.scene .pcard__rank {
  gap: 0.667em;
}

.scene .pcard__rank span {
  white-space: nowrap;
}

.scene .rank-ico {
  width: 8em;
  height: 8em;
}

.scene .pcard__xp {
  gap: 0.667em;
}

.scene .bar,
.scene .bar i {
  height: 0.667em;
}

.scene .bar i {
  width: 75%;
}

.scene .pcard__meta {
  gap: 0.5em;
}

.scene .pcard__meta > div {
  gap: 0.333em;
}

.scene .pcard__game {
  font-size: 1.167em;
  line-height: 1.571;
}

.scene .badge-chip {
  gap: 0.667em;
  padding: 0.5em 0.833em;
  border-width: 0.083em;
}

.pcard--one {
  left: -1px;
  top: 4px;
  z-index: 2;
  transform: rotate(-2deg);
}

.pcard--two {
  left: 76px;
  top: 200px;
  z-index: 3;
  transform: rotate(2deg);
  box-shadow: none;
}

.scene__spark {
  position: absolute;
  left: 292px;
  top: 177px;
  z-index: 4;
  width: 32px;
  height: 32px;
}

.scene__cat {
  position: absolute;
  left: -150px;
  bottom: -30px;
  z-index: 1;
  width: 120px;
  height: 120px;
  image-rendering: pixelated;
}

.pcard {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border: var(--outline);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-text);
  min-width: 0;
}

.pcard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* Card text is never truncated: long ES labels wrap instead. */
.pcard__row .label,
.pcard__game {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pcard__who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-outline);
  border-radius: var(--radius-device);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 16px;
}

.pcard__id {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
}

.pcard__name {
  font-size: var(--fs-body);
  line-height: 26px;
}

/* Rank row: the 96px badge with the RANK label under it, inside the card. */
.pcard__rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-muted-2);
  text-align: center;
}

.rank-ico {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
}

.pcard__xp {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pcard__xprow {
  display: flex;
  justify-content: space-between;
}

.bar {
  display: flex;
  height: 8px;
  background: var(--color-surface-2);
}

.bar i {
  display: block;
  width: 200px;
  max-width: 100%;
  height: 8px;
  background: var(--color-accent-muted-1);
}

.pcard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.pcard__meta > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.pcard__game {
  font-size: var(--fs-small);
  line-height: 22px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  border: 1px solid var(--color-line);
  color: var(--color-muted-2);
  white-space: nowrap;
}

.badge-chip i {
  width: 8px;
  height: 8px;
  background: var(--color-muted);
}

/* Vinyl (disc svg spins, tonearm stays) ---------------------------------- */
.vinyl {
  position: relative;
  flex: none;
  width: calc(var(--w) * var(--s) * 1px);
  height: calc(var(--h) * var(--s) * 1px);
}

.vinyl__rig {
  position: absolute;
  inset: 0 auto auto 0;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  transform: scale(var(--s));
  transform-origin: 0 0;
}

.vinyl__disc {
  position: absolute;
  left: 0;
  top: 0;
  width: 160px;
  height: 160px;
  animation: vinyl-spin 1.8s linear infinite;
}

.vinyl--l .vinyl__disc {
  width: 210.8px;
  height: 210.8px;
}

.vinyl__disc img {
  position: absolute;
  left: 0;
  top: 0;
  width: 163px;
  height: 163px;
}

.vinyl--l .vinyl__disc img {
  width: 214.5px;
  height: 214.5px;
}

.vinyl__label {
  position: absolute;
  left: 50%;
  top: 91.5px;
  transform: translateX(-50%);
  color: var(--color-outline);
  font-family: var(--font-display);
  font-size: 5px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
}

.vinyl--l .vinyl__label {
  top: 120.6px;
  font-size: 4.96px;
}

.vinyl__arm {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

@keyframes vinyl-spin {
  to {
    transform: rotate(360deg);
  }
}

.showcase {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
  max-width: 1200px;
  min-height: 420px;
  margin: 0 auto 0;
  padding: var(--space-6);
  border: var(--outline);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: none;
  overflow: clip;
}

.showcase__caption {
  position: absolute;
  left: 29px;
  top: 11px;
  color: var(--color-accent-text);
  font-size: 13px;
  line-height: 1.4;
}

.showcase__event {
  width: 384px;
  flex: none;
}

.showcase__event-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.showcase__event-row .tag {
  background: var(--color-surface-2);
}

.showcase__event-row .label {
  color: var(--color-muted-2);
}

.showcase__event-title {
  font-size: 20px;
  line-height: 30px;
}

.showcase__event-meta {
  color: var(--color-muted);
  font-size: var(--fs-small);
  line-height: 22px;
}

.showcase__rsvp {
  align-self: flex-start;
  cursor: default;
  pointer-events: none;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: none;
  pointer-events: none;
}

.showcase__mid {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 221px;
}

.showcase__example {
  flex: none;
}

.showcase__rank {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  border: var(--outline);
  border-radius: var(--radius-button);
  background: var(--color-surface);
  color: var(--color-muted-2);
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
}

.showcase__rank-ico {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

.showcase__stats {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: var(--space-3);
  min-width: 0;
  padding: 0 4px 4px 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  padding: var(--space-4);
  border: var(--outline);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: none;
  text-transform: uppercase;
}

.stat__num {
  width: 100%;
  color: var(--color-accent-text);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 44px;
}

.stat__label {
  width: 100%;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.stat--w2 {
  width: 232.5px;
}

.stat--w1 {
  width: 151px;
}

/* Marquee ---------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 2;
  width: calc(100% + 157px);
  margin: calc(var(--gap) + 56px) -78.5px 0;
  padding: 28px 0;
  border: var(--outline);
  background: var(--color-accent-muted-1);
  box-shadow: none;
  color: var(--color-ink);
  overflow: hidden;
  transform: rotate(3deg);
  transform-origin: center;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin: 0;
  padding: 0 var(--space-4);
  list-style: none;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Generic section block -------------------------------------------------- */
.block {
  position: relative;
  margin-top: var(--gap);
  padding-block: 96px;
  border: var(--outline);
  border-radius: 32px;
}

.block--surface {
  background: var(--color-surface);
}

.block--violet {
  background: var(--color-accent-2);
}

.block--accent {
  background: var(--color-accent-muted-1);
}

.block__inner {
  position: relative;
}

.block__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: 48px;
}

.block__lede {
  color: var(--color-muted);
  font-size: var(--fs-body);
  line-height: 26px;
}

.marquee + .stats {
  margin-top: calc(var(--gap) + 42px);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  width: 100%;
}

/* Four cards across the whole container: the figure scales with the column so it never clips. */
.stats__updated {
  color: var(--color-muted);
}

.stats .stats__updated {
  margin-top: var(--space-5);
}

.showcase__stats .stats__updated {
  flex: 1 1 100%;
  margin-top: var(--space-2);
}

.stats__grid .stat__num {
  font-size: clamp(22px, 2.6vw, 32px);
}


/* How it works ----------------------------------------------------------- */
.how .deco--how-spark {
  top: 37px;
  right: clamp(8px, 8vw, 116px);
  width: 67.2px;
  height: 67.2px;
}

.how .deco--how-scribble {
  top: 38px;
  left: 62.3%;
  width: 108px;
  height: 54px;
  transform: rotate(-10deg);
}

.how .block__inner {
  position: relative;
  z-index: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-height: 548px;
  padding: var(--space-6);
  border: var(--outline);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: none;
}

@media (min-width: 900px) {
  .step:nth-child(2) .step__spot {
    background: var(--color-text);
  }
}

.step__spot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  border: var(--outline);
  border-radius: 16px;
  background: var(--color-accent-muted-1);
  overflow: clip;
}

.step__img--1 { width: 186px; height: 186px; }
.step__img--2 { width: 274px; height: 183px; }
.step__img--3 { width: 195px; height: 186px; }

.step__spark {
  position: absolute;
  top: 9px;
  left: calc(100% - 57px);
  width: 38.4px;
  height: 38.4px;
}

.step__dot {
  position: absolute;
  left: 13px;
  top: 131px;
  width: 19.2px;
  height: 19.2px;
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step__num {
  color: var(--color-accent-text);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 44px;
}

.step__ico {
  width: 48px;
  height: 48px;
  color: var(--color-accent-text);
  fill: currentColor;
}

.step p {
  font-size: var(--fs-small);
  line-height: 22px;
}

/* For servers / players -------------------------------------------------- */
.audience {
  position: relative;
  margin-top: var(--gap);
  padding-block: 48px;
}

.audience__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.acard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  min-width: 0;
  padding: 40px;
  border: var(--outline);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.acard--servers {
  box-shadow: none;
}

.acard--players {
  box-shadow: none;
}

.acard__title {
  font-size: 32px !important;
  line-height: 44px !important;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-small);
  line-height: 22px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  background: var(--color-accent-muted-1);
}

/* Music teaser ----------------------------------------------------------- */
.music {
  position: relative;
  margin-top: var(--gap);
  padding-block: 96px;
}

.music__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px;
  border: var(--outline);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: none;
}

.music__copy {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 560px;
  max-width: 100%;
}

.music__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent-text);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.music__eyebrow .chip {
  padding: 6px 12px;
}

.music__title {
  width: 560px;
  max-width: 100%;
  font-size: 40px !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.music__text {
  width: 520px;
  max-width: 100%;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  width: 520px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.music__art {
  position: relative;
  flex: none;
  width: 560px;
  height: 380px;
}

/* Example cover: the vinyls overlap its top right, so the title and rows sit in its lower part. */
.music__sleeve {
  position: absolute;
  left: 0;
  top: 60px;
  width: 300px;
  height: 300px;
  border: var(--outline);
  border-radius: 16px;
  background: var(--color-accent-2);
  box-shadow: none;
  color: var(--color-text);
}

.music__cover-rank {
  position: absolute;
  left: 13px;
  top: 13px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 44px;
}

.music__cover-bars {
  position: absolute;
  inset-inline: 0;
  top: 162px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.music__cover-bars i {
  display: block;
  height: 14px;
  background: color-mix(in srgb, var(--color-shadow) 20%, transparent);
}

.music__cover-example {
  position: absolute;
  left: 13px;
  bottom: 11px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.music__rot {
  position: absolute;
  width: 291.5px;
  height: 260.8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music__rot--hiphop {
  left: 130px;
  top: -5px;
}

.music__rot--hiphop .vinyl {
  transform: rotate(-10deg);
}

.music__rot--electro {
  left: 215px;
  top: 20px;
  width: 257.3px;
  height: 219.5px;
}

.music__rot--latin {
  left: 261.9px;
  top: 0;
}

.music__rot--latin .vinyl {
  transform: rotate(10deg);
}

/* Why Stellar ------------------------------------------------------------ */
.stellar {
  margin-top: var(--gap);
}

.stellar .deco--st-spark {
  top: 17px;
  right: clamp(8px, 6.6vw, 95px);
  width: 57.6px;
  height: 57.6px;
}


.stellar .deco--st-ring {
  top: 7px;
  left: clamp(8px, calc(50% - 620px), 100px);
  width: 40px;
  height: 40px;
}

.stellar__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin-inline: auto;
  padding: 56px;
  border: var(--outline);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: none;
}

.stellar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
}

.stellar__head > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stellar__head h2 {
  font-size: 32px;
  line-height: 44px;
  letter-spacing: 0;
}

.badges {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  padding: 10px 0 10px 6px;
}

/* The collage clips inside its own rounded frame; the art card is its sibling, aligned top and bottom. */
.badges__collage {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.badges__item {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 123.7px;
  height: 155.9px;
}

.badges__item:nth-child(odd) {
  transform: rotate(3deg);
}

.badges__item:nth-child(even) {
  transform: rotate(-3deg);
}

.badges__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 150px;
  border: var(--outline);
  border-radius: var(--radius-card);
  background: var(--color-bg);
  box-shadow: none;
  overflow: clip;
}

.badges__item:nth-child(even) .badges__box {
  background: var(--color-accent-2);
}

.badges__crop {
  position: relative;
  display: block;
  flex: none;
  width: 110px;
  height: 110px;
  overflow: hidden;
}

.badges__crop img {
  position: absolute;
  max-width: none;
}

.badges__crop--1 img { height: 324.18%; left: -112.17%; top: -109.25%; width: 429.67%; }
.badges__crop--2 img { height: 296.72%; left: -1.32%; top: -1.66%; width: 392.41%; }
.badges__crop--3 img { height: 312.07%; left: -206.53%; top: -102.3%; width: 411.36%; }
.badges__crop--4 { height: 116px; }
.badges__crop--4 img { height: 308.52%; left: -324.48%; top: -195.74%; width: 432.24%; }
.badges__crop--5 { height: 105px; }
.badges__crop--5 img { height: 322.26%; left: -207.1%; top: -204.45%; width: 411.36%; }

.badges__art {
  display: flex;
  flex: none;
  align-items: center;
  padding: 10px;
  border: var(--outline);
  border-radius: var(--radius-card);
  background: var(--color-bg);
  box-shadow: none;
}

.badges__art img {
  display: block;
  width: 190px;
  height: 190px;
}

.stellar__points {
  display: flex;
  gap: var(--space-7) 40px;
  width: 100%;
}

.stellar__points > div {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.stellar__points h3 {
  color: var(--color-accent-text);
}

.stellar__points p {
  color: var(--color-muted);
  font-size: var(--fs-small);
  line-height: 22px;
}

/* Privacy ---------------------------------------------------------------- */
.privacy__cols {
  display: flex;
  gap: var(--space-7);
}

.privacy__col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-6) 0;
  border-top: 2px solid var(--color-line);
  color: var(--color-text);
}

.privacy__col p {
  font-size: var(--fs-body);
  line-height: 26px;
}

/* FAQ -------------------------------------------------------------------- */
.faq {
  position: relative;
  display: flex;
  gap: var(--space-7);
  margin-top: var(--gap);
  padding-block: 96px;
}


.faq .deco--faq-spark {
  left: calc(50% - 660px);
  top: 600px;
  width: 38.4px;
  height: 38.4px;
}

.faq .deco--faq-arrow {
  z-index: 2;
  left: calc(50% - 420px);
  top: 480px;
  width: 100px;
  height: 70px;
}

.faq__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 384px;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.faq__head h2 {
  min-width: 0;
  max-width: 100%;
}

/* "RESPUESTAS" is 10 characters: 38px is the largest size that fits the 384px column unbroken. */
html[lang="es"] .faq__head h2 {
  font-size: 38px;
  line-height: 51px;
}

.faq__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  overflow: clip;
}

.faq__chip {
  padding: 10px 18px;
  border: 2px solid var(--color-text);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  text-transform: uppercase;
  cursor: pointer;
}

.faq__chip.is-active {
  border: var(--outline);
  padding: 10px 18px;
  background: var(--color-accent-muted-1);
  color: var(--color-ink);
  box-shadow: none;
}

.faq__art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 229.8px;
  height: 261px;
}

.faq__art-box {
  display: flex;
  padding: var(--space-3);
  border: var(--outline);
  border-radius: 24px;
  background: var(--color-accent-2);
  box-shadow: none;
  transform: rotate(3deg);
}

.faq__art-crop {
  position: relative;
  display: block;
  width: 187px;
  height: 220px;
  overflow: hidden;
}

.faq__art-crop img {
  position: absolute;
  height: 233.79%;
  left: -159.68%;
  top: -116.89%;
  width: 412.9%;
}

.faq__list {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  align-self: flex-start;
}

.faq__item {
  padding: var(--space-5);
  border: var(--outline);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: none;
}

.faq__item code {
  padding: 1px 6px;
  border-radius: var(--radius-device);
  background: color-mix(in srgb, var(--color-bg) 45%, transparent);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.95em;
  white-space: nowrap;
}

.faq__item[open] {
  background: var(--color-accent-2);
  box-shadow: none;
}

/* Flat at rest; the accordion lifts to the green border + hard accent shadow on hover / keyboard focus. */
.faq__item:hover,
.faq__item:has(> summary:focus-visible) {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent-lg);
}


.faq__item summary,
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 26px;
  list-style: none;
  cursor: pointer;
}

.faq__q {
  margin: 0;
}

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

.faq__item summary::after,
.faq__q::after {
  content: "+";
  color: var(--color-accent-text);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 30px;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p:not(.faq__q) {
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  line-height: 22px;
}

/* Final CTA -------------------------------------------------------------- */
.cta {
  padding-block: 120px;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.cta__title {
  font-size: 72px !important;
  line-height: 90px !important;
  letter-spacing: -0.72px !important;
}

.cta__sub {
  font-size: var(--fs-body);
  line-height: 26px;
}

/* Pricing · Figma 2:522 (desktop) / 2:1095 (phone) ------------------------- */
.pricing {
  display: flex;
  flex-direction: column;
  margin-top: var(--gap);
  padding-block: 96px;
  border: var(--outline);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  /* Adds to html scroll-padding-top (88px, the sticky header): the section border stays visible under it. */
  scroll-margin-top: 16px;
}

.pricing__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.pricing__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Two equal columns across the whole container, each as tall as its own content (Figma); they stack only on phones. */
.pricing__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-5);
  width: 100%;
  margin-inline: auto;
}

.pricing__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  min-width: 0;
  padding: 40px;
  border: var(--outline);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: none;
}

.pricing__card--free {
  border-color: var(--color-line);
}

.pricing__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
}

.pricing__label {
  color: var(--color-muted);
}

.pricing__card .tag {
  min-height: 0;
  padding: var(--space-1) var(--space-2);
  border: 0;
  border-radius: 999px;
}

.pricing__card--free .tag {
  background: var(--color-accent-2);
  color: var(--color-text);
}

.pricing__name {
  width: 100%;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(48px, calc(6.9vw - 17px), 72px);
  letter-spacing: -0.01em;
  line-height: 90px;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.pricing__name--api {
  color: var(--color-muted);
  font-size: 48px;
}

.pricing__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing__list li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 22px;
}

.pricing__list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--color-accent-muted-1);
}

@media (max-width: 899px) {
  .pricing {
    padding-block: 56px;
    border-radius: 24px;
  }

  .pricing__head {
    display: contents;
  }

  .pricing__inner {
    gap: var(--space-5);
  }

  .pricing__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .pricing__card {
    gap: 20px;
    padding: 20px;
  }

  .pricing__name {
    font-size: 43px;
  }

  .pricing__name--api {
    font-size: 26px;
  }

  .pricing__card .btn {
    align-self: stretch;
  }
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  margin-top: var(--gap);
  background: var(--color-bg);
}

.dither {
  height: 48px;
  background:
    linear-gradient(90deg, var(--color-bg) 48px, transparent 48px, transparent 60px, var(--color-bg) 60px) 0 36px / 96px 12px repeat-x,
    linear-gradient(90deg, var(--color-bg) 24px, transparent 24px, transparent 36px, var(--color-bg) 36px) 0 24px / 48px 12px repeat-x,
    linear-gradient(90deg, var(--color-bg) 12px, transparent 12px) 0 12px / 24px 12px repeat-x,
    linear-gradient(90deg, var(--color-bg) 12px, transparent 12px) 0 0 / 48px 12px repeat-x,
    var(--color-accent-2);
}

.site-footer__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding-block: 80px 40px;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
  max-width: 1200px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  width: 384px;
  max-width: 100%;
}

.site-footer__brand p {
  font-size: var(--fs-body);
  line-height: 26px;
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-6);
}

.fcol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 0 0 auto;
  width: auto;
  min-width: 150px;
  padding: var(--space-4);
  border: var(--outline);
  border-radius: var(--radius-device);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: none;
  font-size: var(--fs-small);
  line-height: 22px;
  white-space: nowrap;
}

.fcol h3 {
  margin: 0;
  color: var(--color-accent-text);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 16px;
}

.fcol a {
  color: var(--color-text);
  text-decoration: none;
}

.fcol a:hover {
  color: var(--color-accent);
}

.fcol[hidden] {
  display: none;
}

.fcol__soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  color: var(--color-muted);
}

/* «Docs · soon» in the Figma is plain lowercase text after a dot. */
.fcol__soon .chip--soon {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: lowercase;
}

.fcol__soon .chip--soon::before {
  content: "·";
  margin-right: 8px;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
}

.site-footer__word {
  width: min(870px, 100%);
  height: auto;
  aspect-ratio: 870 / 232;
}

/* Testimonial (gated: the section carries hidden until the content module is enabled) */
.testimonial {
  overflow: clip;
}

.testimonial .deco--tm-dot {
  top: 77px;
  left: clamp(8px, calc(50% - 580px), 140px);
  width: 24px;
  height: 24px;
}

.testimonial .deco--tm-spark {
  top: 57px;
  right: clamp(8px, 7.5vw, 110px);
  width: 72px;
  height: 72px;
}


.testimonial__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.testimonial__title {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-ink);
  font-size: 40px !important;
  line-height: normal !important;
  letter-spacing: 0 !important;
  text-align: center;
}

.testimonial__title .pill-wrap {
  margin: 0;
  padding: 10px 0 10px 4px;
}

.pill {
  display: inline-block;
  border: var(--outline);
  box-shadow: none;
  border-radius: 999px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.pill--ink {
  padding: 7px 14px;
  background: var(--color-bg);
  color: var(--color-accent-text);
  transform: rotate(-3deg);
}

.tcard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 900px;
  max-width: 100%;
  padding: 36px;
  border: var(--outline);
  border-radius: 24px;
  background: var(--color-accent-2);
  box-shadow: none;
  color: var(--color-text);
  text-decoration: none;
  overflow: clip;
}

.tcard[href] {
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.tcard[href]:hover,
.tcard[href]:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent-lg);
}

.tcard__who {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tcard__avatar {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: var(--outline);
  border-radius: 999px;
  background: var(--color-accent-muted-1);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 14px;
  overflow: clip;
}

.tcard__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcard__id {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tcard__name {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tcard__server {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.tcard__quote {
  margin: 0;
  padding: 20px;
  border: var(--outline);
  border-radius: 16px;
  background: var(--color-accent-muted-1);
  color: var(--color-ink);
}

.tcard__quote p {
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tcard__quote p::before {
  content: "\"";
}

.tcard__quote p::after {
  content: "\"";
}

@media (max-width: 1199px) {
  .showcase {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 56px;
  }

  .showcase__stats {
    flex: 1 1 100%;
  }

  .showcase__event {
    max-width: 100%;
  }
}

@media (max-width: 1100px) {
  .site-nav {
    gap: var(--space-4);
  }

  .music__card {
    flex-direction: column;
    gap: var(--space-6);
  }
}

/* Laptop widths: the Figma 1200px compositions do not fit, so they reflow instead of being clipped by .page. */
@media (max-width: 1371px) {
  .music__card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }

  .music__art {
    align-self: center;
    max-width: 100%;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .site-header__bar,
  .site-header__right {
    gap: var(--space-3);
  }

  .site-nav {
    gap: var(--space-3);
  }

  .site-nav a {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .site-header__cta {
    padding: 12px 14px;
  }
}

/* Phone · Figma 2:942 (390px) ------------------------------------------- */
@media (max-width: 899px) {
  .page {
    --grid: 30px;
    --gap: 12px;
  }

  .only-desktop {
    display: none !important;
  }

  .only-mobile {
    display: inline !important;
  }

  .only-mobile.tag,
  .only-mobile.chip,
  .stellar__summary.only-mobile {
    display: inline-flex !important;
  }

  .site-nav,
  .site-header__cta {
    display: none;
  }

  .site-header__bar {
    padding-block: 16px;
  }

  .site-header__right {
    gap: var(--space-4);
  }

  .menu-toggle {
    display: flex;
    padding: 14px 8px;
    margin: -14px -8px -14px 0;
  }

  .lang {
    gap: 0;
  }

  .lang__btn {
    padding: 14px 4px;
    margin: -14px -4px;
  }

  .mobile-menu {
    left: 0;
    right: 0;
    width: auto;
    top: 100%;
    padding: var(--space-2) var(--container-pad) var(--space-5);
    border-width: 0 0 3px;
    box-shadow: none;
  }

  .mobile-menu > .btn {
    display: inline-flex;
  }

  /* Close: first focusable of the modal sheet, so touch and screen readers can leave it without Esc. */
  .mobile-menu .menu-close {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    min-height: 44px;
    margin-top: var(--space-2);
    padding: 0 var(--space-3);
    border: var(--outline);
    background: var(--color-surface-2);
    color: var(--color-text);
    cursor: pointer;
  }

  .mobile-menu .menu-close:focus-visible {
    outline: 2px solid var(--color-accent-2);
    outline-offset: 3px;
  }

  html.menu-open {
    overflow: hidden;
  }

  /* Phones: the sheet is modal. The scrim covers the page under the bar and a click on it closes the menu. */
  .mobile-menu.is-open ~ .menu-scrim {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 105;
    display: block;
    height: 100vh;
    height: 100dvh;
    background: var(--color-scrim-menu);
  }

  .page > main::before {
    margin-top: 12px;
  }

  .hero {
    margin-top: 12px;
    padding-block: 56px;
  }

  .hero > .deco--hero-spark {
    left: auto;
    right: 10px;
    top: 14px;
    width: 34px;
    height: 34px;
  }

  .hero__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
    min-height: 0;
  }

  .hero__copy {
    gap: var(--space-5);
  }

  /* Phone: the same fluid size, so words wrap normally and never mid-word. */
  .hero__title {
    letter-spacing: 0;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .hero__ctas .link-ghost {
    align-self: flex-start;
    font-size: var(--fs-label);
    text-decoration: none;
  }

  .showcase {
    display: none;
  }

  /* Phone: the two cards stack at the full 350px, upright and 24px apart (Figma Player card 350x364), the cat under them. */
  .scene {
    justify-self: stretch;
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .scene__board {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
    height: auto;
    font-size: 12px;
  }

  .scene .pcard {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
    box-shadow: none;
  }

  .scene__spark {
    display: none;
  }

  .scene__cat {
    position: relative;
    left: auto;
    bottom: auto;
    align-self: center;
    width: 88px;
    height: 88px;
  }


  .block {
    padding-block: 56px;
    border-radius: 24px;
  }

  .block__head {
    gap: var(--space-5);
    margin-bottom: var(--space-5);
  }

  .page h2 {
    font-size: 32px;
    line-height: 44px;
    letter-spacing: 0;
  }

  .marquee {
    margin: calc(var(--gap) + 14px) -78px 0;
    padding: 16px 0;
  }

  .marquee__list {
    gap: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: var(--ls-label);
    line-height: 16px;
  }

  .spark--ink {
    width: 12px;
    height: 12px;
  }

  .marquee + .stats {
    margin-top: calc(var(--gap) + 14px);
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }

  .stats__grid .stat {
    min-height: 120px;
  }

  .stats__grid .stat__num {
    font-size: 20px;
    line-height: 30px;
  }

  .how .deco--how-spark {
    top: 37px;
    right: 24px;
    width: 38.4px;
    height: 38.4px;
  }

  .how .deco--how-scribble {
    top: 47px;
    left: 197px;
    width: 60px;
    height: 30px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .step {
    min-height: 0;
    gap: var(--space-3);
    padding: 20px;
  }

  .step__spot {
    height: 180px;
  }

  .step__img--1 { width: 156px; height: 156px; }
  .step__img--2 { width: 234px; height: 156px; }
  .step__img--3 { width: 164px; height: 156px; }

  .step__spark {
    left: auto;
    right: 25px;
  }

  .step__dot {
    top: 101px;
  }

  .step__ico {
    display: none;
  }

  .step__num {
    font-size: 20px;
    line-height: 30px;
  }

  .audience {
    padding-block: 0;
  }

  .audience__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .acard {
    gap: var(--space-4);
    padding: 20px;
  }

  .acard__title {
    font-size: 20px !important;
    line-height: 30px !important;
  }

  .bullets {
    gap: var(--space-3);
  }

  .music {
    padding-block: 48px;
  }

  .music__card {
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
    width: 100%;
    padding: 28px;
  }

  /* Phone (Figma 34:9514): the 310px art (192px of layout, the card gap does the rest) comes first: a 150px cover at (0,20) and the three vinyls at 0.5465 (no zoom, so the 10px EXAMPLE stays 10px). */
  .music__art {
    order: -1;
    align-self: center;
    width: 310px;
    height: 192px;
    max-width: 100%;
  }

  .music__sleeve {
    top: 20px;
    width: 150px;
    height: 150px;
  }

  .music__cover-rank {
    font-size: 20px;
    line-height: 30px;
  }

  .music__cover-bars {
    top: 80px;
    gap: 5.5px;
  }

  .music__cover-bars i {
    height: 7px;
  }

  .music__rot .vinyl {
    --s: 0.5465 !important;
  }

  .music__rot {
    width: 140.6px;
    height: 119.9px;
  }

  .music__rot--hiphop { left: 70px; top: 16px; }
  .music__rot--electro { left: 120px; top: 30px; width: 140.6px; height: 119.9px; }
  .music__rot--latin { left: 149px; top: 20px; }

  .music__copy {
    width: 100%;
    gap: var(--space-4);
  }

  .music__title,
  .music__text {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .music__title {
    font-size: 20px !important;
    line-height: 30px !important;
  }

  .chips {
    width: 100%;
  }

  .stellar__card {
    gap: var(--space-4);
    padding: 20px;
  }

  .stellar__head,
  .stellar__head > div {
    display: contents;
  }

  .stellar__head .eyebrow { order: 1; }
  .badges { order: 2; }
  .badges__collage { gap: var(--space-2); padding: 0; }
  .badges__item:nth-child(even) .badges__box { background: var(--color-bg); }
  .stellar__head h2 { order: 3; font-size: 20px; line-height: 30px; }
  .stellar__summary { order: 4; }
  .stellar__card > .tag { order: 5; }
  .stellar__card > .link-ghost { order: 6; font-size: var(--fs-label); }

  .badges__item {
    width: 74.7px;
    height: 95.5px;
  }

  .badges__box {
    width: 70px;
    height: 92px;
  }

  .badges__crop {
    width: 64px;
    height: 63px;
  }

  .stellar__points {
    display: none;
  }

  .stellar__summary {
    color: var(--color-muted);
    font-size: var(--fs-small);
    line-height: 22px;
  }

  .stellar .deco--st-spark {
    right: 3px;
  }

  /* Phone ring (Figma mobile): a filled violet circle with the black outline. */
  .stellar .deco--st-ring,
  .testimonial .deco--tm-dot {
    border: var(--outline);
    border-radius: 50%;
    background: var(--color-accent-2);
    object-fit: none;
    object-position: 100px 100px;
  }


  .privacy {
    padding-top: 56px;
  }

  .privacy .block__head {
    margin-bottom: var(--space-5);
  }

  .privacy .block__head .eyebrow {
    margin-top: 0;
  }

  .privacy__cols {
    flex-direction: column;
    gap: var(--space-5);
  }

  .privacy__col {
    padding: 0;
    border-top: 0;
    gap: var(--space-5);
  }

  .privacy__col p {
    font-size: var(--fs-small);
    line-height: 22px;
  }

  .testimonial .deco--tm-spark {
    top: 17px;
    right: 30px;
    width: 43.2px;
    height: 43.2px;
  }


  .testimonial__inner {
    gap: var(--space-6);
  }

  .testimonial__title {
    flex-direction: column;
    gap: var(--space-4);
    font-size: 22px !important;
  }

  .testimonial__title .pill {
    padding: 4px 8px;
  }

  .tcard {
    padding: 20px;
  }

  .tcard__name {
    font-size: 11px;
  }

  .tcard__server {
    font-size: 11px;
  }

  .tcard__quote {
    padding: 14px;
  }

  .tcard__quote p {
    font-size: 13px;
  }

  .faq {
    flex-direction: column;
    gap: var(--space-3);
    padding-block: 56px;
  }

  .faq__head {
    display: contents;
  }

  html[lang="es"] .faq__head h2 {
    font-size: 32px;
    line-height: 44px;
  }

  .faq__chip {
    font-size: var(--fs-label);
    line-height: 14px;
  }

  .faq__chips {
    order: 1;
  }

  .faq__list {
    order: 2;
    width: 100%;
  }

  .faq__art {
    order: 3;
    width: 148px;
    height: 167px;
    align-self: flex-start;
    margin-left: 0;
  }

  .faq__art-crop {
    width: 110px;
    height: 130px;
  }


  .faq .deco--faq-spark {
    left: 20px;
    top: 760px;
  }

  .stellar .deco--st-ring {
    left: 7px;
  }

  .testimonial .deco--tm-dot {
    top: 27px;
    left: 13px;
  }

  .faq .deco--faq-arrow {
    left: auto;
    right: 50px;
    top: 20px;
    width: 60px;
    height: 42px;
  }

  .cta {
    padding-block: 64px;
  }

  .cta__inner {
    gap: var(--space-5);
  }

  .cta__title {
    font-size: 32px !important;
    line-height: 44px !important;
    letter-spacing: 0 !important;
  }

  .dither {
    background-color: var(--color-surface-2);
  }

  .site-footer__body {
    align-items: center;
    gap: var(--space-6);
    padding-block: 48px 32px;
  }

  .site-footer__top {
    flex-direction: column;
    gap: var(--space-6);
  }

  .site-footer__brand {
    align-items: center;
    gap: var(--space-6);
    width: 100%;
  }

  .site-footer__brand p {
    font-size: var(--fs-small);
    line-height: 22px;
    text-align: center;
  }

  .site-footer__brand .btn {
    width: 100%;
    padding: 20px 28px;
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .site-footer__cols {
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
  }

  .fcol {
    flex: 0 1 auto;
    width: calc(50% - 10px);
    min-width: 0;
    box-shadow: none;
    white-space: normal;
  }

  .fcol h3 {
    color: var(--color-muted-2);
  }

  .site-footer__legal {
    padding: 0;
    border-top: 0;
  }

  .site-footer__word {
    width: 255px;
    height: 68px;
  }
}

/* Phones: the H1 sits at 28-32px and wraps by whole words (the longest word, SERVIDOR, is 8 glyphs = 224px at 28px). */
@media (max-width: 599px) {
  .hero__title,
  html[lang="es"] .hero__title {
    font-size: clamp(28px, 8.2cqi, 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vinyl__disc,
  .marquee__track {
    animation: none;
  }

  /* The testimonial card lifts on hover/focus: the lift stays, the 120ms transform ease does not. */
  .tcard[href] {
    transition: none;
  }
}

/* ── Light theme (Figma «11 Light mode») ──────────────────────────────────────
   Violet blocks carry white text; the cards nested in them are surface fills and keep the theme text. */
[data-theme="light"] :is(.block--violet, .tcard, .faq__item[open], .music__sleeve, .faq__art-box) { color: var(--color-white); }
[data-theme="light"] .block--violet :is(.eyebrow, .privacy__col, .cta__title, .cta__sub) { color: var(--color-white); }
[data-theme="light"] .block--violet .step { color: var(--color-text); }

/* The wordmark SVG is baked near-white: invert it to near-black on light surfaces. */
[data-theme="light"] .logo__word { filter: invert(1); }

/* Menu: the Dark / Light buttons carry a moon / sun icon beside the word.
   The mask sits on ::before so the button itself stays unmasked and its focus ring is visible. */
.theme-switch__btn::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-right: var(--space-2);
  background: currentColor;
  -webkit-mask: center / 16px 16px no-repeat;
  mask: center / 16px 16px no-repeat;
}
.theme-switch__btn[data-set-theme="dark"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 1.5a6.5 6.5 0 1 0 4.5 11A5.5 5.5 0 0 1 10 1.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 1.5a6.5 6.5 0 1 0 4.5 11A5.5 5.5 0 0 1 10 1.5z'/%3E%3C/svg%3E"); }
.theme-switch__btn[data-set-theme="light"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Cpath d='M8 .5v2.5M8 13v2.5M.5 8H3M13 8h2.5M2.7 2.7l1.8 1.8M11.5 11.5l1.8 1.8M2.7 13.3l1.8-1.8M11.5 4.5l1.8-1.8' stroke='black' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Cpath d='M8 .5v2.5M8 13v2.5M.5 8H3M13 8h2.5M2.7 2.7l1.8 1.8M11.5 11.5l1.8 1.8M2.7 13.3l1.8-1.8M11.5 4.5l1.8-1.8' stroke='black' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); }
