/* Cotorra landing — palette from app theme */
:root {
  --paper: #f5f5f5;
  --ink: #1a1a1a;
  --ink-soft: #424242;
  --navy: #132b5e;
  --navy-mid: #1e3a7b;
  --blue: #2979ff;
  --red: #e53935;
  --green: #43a047;
  --yellow: #ffc107;
  --orange: #f57c00;
  --white: #ffffff;
  --line: #d0d5dd;
  --max: 68rem;
  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
}

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

  .board-card.is-playing {
    animation: none;
  }
}

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--navy-mid);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* i18n: show only active language (revert = default display for the tag) */
[data-lang] {
  display: none !important;
}

html[data-active-lang="es"] [data-lang="es"],
html[data-active-lang="en"] [data-lang="en"],
html:not([data-active-lang]) [data-lang="es"] {
  display: revert !important;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
}

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

@media (min-width: 840px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--navy-mid);
  font-weight: 700;
  font-size: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero__lead {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  max-width: 36ch;
  font-size: 1.2rem;
}

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

.pill {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

/* Board mock */
.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--navy);
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(19, 43, 94, 0.28);
}

.board-card {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 3px solid transparent;
}

.board-card.is-playing {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.35);
  animation: pulse-play 1.8s ease-in-out infinite;
}

@keyframes pulse-play {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.45);
  }
}

.board-card__photo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.board-card__photo--orange {
  background: var(--orange);
}
.board-card__photo--blue {
  background: #1e88e5;
}
.board-card__photo--purple {
  background: #7b1fa2;
}
.board-card__photo--red {
  background: var(--red);
}

.board-card__label {
  padding: 0.55rem 0.4rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.board-caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.board-wrap {
  position: relative;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section--alt {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  letter-spacing: -0.015em;
}

.section__intro {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

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

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  counter-increment: step;
}

.section--alt .step {
  background: var(--paper);
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.features {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--paper);
  border-left: 4px solid var(--blue);
}

.feature--urgent {
  border-left-color: var(--red);
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.65rem;
  max-width: 52rem;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0.65rem 0 0.25rem;
  color: var(--ink-soft);
}

.note {
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: #e8f0ff;
  border: 1px solid #c5d8ff;
  color: var(--navy);
  max-width: 48ch;
  font-size: 1.05rem;
}

/* Privacy page */
.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  color: var(--navy);
}

.page-hero .meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.prose {
  padding: 0 0 3rem;
  max-width: 48rem;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.35rem;
  color: var(--navy);
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  margin: 1rem 0;
  background: var(--white);
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.prose tr:nth-child(even) td {
  background: #fafafa;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a {
  color: #9ec1ff;
}

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

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.site-footer .small {
  font-size: 0.95rem;
  opacity: 0.85;
}
