/* Remi&Quiz presentation site. One stylesheet, no framework. Night-table look: the game's starry purple table, gold from the logo. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0716;
  --bg-raised: #0f0a1d;
  --text: #f4ecd8;
  --text-soft: rgba(244, 236, 216, 0.82);
  --gold: #d4a640;
  --gold-light: #f0c75e;
  --line: rgba(212, 166, 64, 0.22);
  --card: rgba(255, 255, 255, 0.04);
  --max: 1080px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
}

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

a {
  color: var(--gold-light);
}

a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 7, 22, 0.9);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.lang {
  display: flex;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
}

.lang a,
.lang span {
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
}

.lang a {
  color: var(--text-soft);
}

.lang a:hover {
  color: var(--text);
}

.lang [aria-current="true"] {
  color: var(--gold-light);
}

/* Hero */

.hero {
  background: radial-gradient(ellipse at 20% -10%, #6a2fa0 0%, #2a1450 35%, #120a24 70%, var(--bg) 100%);
  text-align: center;
  padding: 40px 0 44px;
}

.hero-logo {
  width: 168px;
  height: 168px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.65));
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.12;
  margin: 10px auto 0;
  max-width: 760px;
  letter-spacing: -0.01em;
}

.lede {
  color: var(--text-soft);
  font-size: clamp(17px, 2.4vw, 19px);
  max-width: 600px;
  margin: 14px auto 26px;
}

/* "Coming soon" box: replaced by the official Google Play badge at launch (see index.html). */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 12px 22px;
  background: rgba(212, 166, 64, 0.08);
  text-align: left;
}

.soon-icon {
  width: 28px;
  height: 28px;
  flex: none;
}

.soon-top {
  display: block;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  font-weight: 800;
  text-transform: uppercase;
}

.soon-store {
  display: block;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.play-badge img {
  height: 64px;
  width: auto;
  margin: 0 auto;
}

.device {
  margin: 36px auto 0;
  max-width: 820px;
  background: #0a0a0a;
  border-radius: 26px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 166, 64, 0.35);
}

.device img {
  border-radius: 18px;
  width: 100%;
}

/* Features */

.features {
  background: var(--bg-raised);
  padding: 40px 0 44px;
}

.features h2 {
  font-weight: 800;
  font-size: 26px;
  text-align: center;
  margin: 0 0 22px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.card-icon {
  font-size: 28px;
  line-height: 1;
}

.card h3 {
  font-weight: 800;
  font-size: 19px;
  margin: 10px 0 6px;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

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

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

.chat-line {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 14px 20px;
  text-align: center;
  font-size: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(212, 166, 64, 0.06);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(212, 166, 64, 0.15);
  padding: 22px 0 28px;
  font-size: 15px;
  color: var(--text-soft);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer a {
  color: var(--text-soft);
}

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

/* Legal pages (terms, privacy): long-form text in a readable column. Body text keeps the 17px Manrope 600 above. */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 16px 52px;
  overflow-wrap: break-word;
}

.legal h1 {
  font-weight: 800;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0 0 22px;
}

.legal h2 {
  font-weight: 800;
  font-size: 23px;
  line-height: 1.25;
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.legal h3 {
  font-weight: 800;
  font-size: 19px;
  line-height: 1.3;
  margin: 26px 0 8px;
  scroll-margin-top: 16px;
}

.legal p {
  margin: 0 0 14px;
}

.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal li {
  margin: 6px 0;
}

.legal li::marker {
  color: var(--gold);
}

.legal strong {
  font-weight: 800;
}

.legal .summary {
  margin: 0 0 26px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(212, 166, 64, 0.06);
}

.legal .summary h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: 19px;
}

.legal .summary ul {
  margin: 0;
}

.legal .toc {
  margin: 0 0 8px;
}

.legal .toc ol {
  margin: 0;
  columns: 2 220px;
  column-gap: 32px;
}

.legal .toc li {
  break-inside: avoid;
}

.legal .rows {
  margin: 8px 0 18px;
}

.legal .rows div {
  padding: 10px 0;
  border-top: 1px solid rgba(212, 166, 64, 0.15);
}

.legal .rows dt {
  font-weight: 800;
}

.legal .rows dd {
  margin: 2px 0 0;
  color: var(--text-soft);
}

@media (min-width: 640px) {
  .legal .rows div {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 16px;
  }

  .legal .rows dd {
    margin: 0;
  }
}

.legal .note {
  color: var(--text-soft);
  font-size: 15px;
}

/* A fact the owner or a lawyer still has to fill in ("DE COMPLETAT" / "TO FILL"). Remove them all before publishing. */
.legal mark.todo {
  background: rgba(240, 199, 94, 0.16);
  color: var(--gold-light);
  border: 1px dashed rgba(240, 199, 94, 0.6);
  border-radius: 6px;
  padding: 0 5px;
}

.footer a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

/* 404 */

.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}

.notfound img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

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