/* Real Smoochle app fonts */
@font-face {
  font-family: "SmoochleSans";
  src: url("/fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SmoochleSans";
  src: url("/fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SmoochleArabic";
  src: url("/fonts/LoverGamesArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SmoochleArabic";
  src: url("/fonts/LoverGamesArabic-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Smoochle — smoochle.com
   Main accents: Coral (#F27C76) & Blue (#6E92D8) — live-customizable by visitors
   using the exact 16 player colours from Palette.cs. */
:root {
  --bg: #121017;
  --surface: #1b1723;
  --surface-2: #241f2e;
  --line: #2f293b;
  --ink: #f5f1eb;
  --soft: #c7bfd0;
  --muted: #8e8599;
  --p1: #f27c76;
  --p1-text: #ff9e94;
  --p2: #6e92d8;
  --p2-text: #9bb7ee;
  --mix: #b087a7;
  --ok: #6ad397;
  --err: #ff8c8c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (prefers-contrast: more) {
  :root {
    --line: #5b526d;
    --soft: #ece6f2;
    --muted: #c7bfd0;
  }
  a { text-decoration: underline; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 600 17px/1.6 "SmoochleSans", ui-rounded, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[dir="rtl"] body {
  font-family: "SmoochleArabic", "SmoochleSans", Tahoma, system-ui, sans-serif;
}

a { color: var(--p2-text); text-underline-offset: 3px; }
a:hover { color: var(--p1-text); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--p1);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { inset-inline-start: 16px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 18px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.mark { width: 34px; height: 34px; flex-shrink: 0; }
.mark-c1 { fill: var(--p1); transition: fill 0.18s ease; }
.mark-c2 { fill: var(--p2); transition: fill 0.18s ease; }
.mark-mix { fill: var(--mix); transition: fill 0.18s ease; }

.bar-right { display: flex; align-items: center; gap: 14px; }
.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--soft);
  text-decoration: none;
}
.nav-link:hover { color: var(--p1-text); }

/* Interactive Couple Colour Picker (matches Smoochle's in-app player colour mechanic) */
.theme-ctl { position: relative; }
.theme-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--soft);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.theme-trigger:hover { border-color: var(--p1); color: var(--ink); }
.theme-dots {
  display: inline-flex;
  align-items: center;
}
.theme-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  transition: background 0.18s ease;
}
.theme-dot-1 { background: var(--p1); }
.theme-dot-2 { background: var(--p2); margin-inline-start: -5px; }

.theme-pop {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  width: 268px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.6);
  z-index: 40;
}
.theme-pop[hidden] { display: none; }
.theme-pop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.theme-pop-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.theme-reset {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}
.theme-reset:hover { color: var(--ink); }
.theme-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.theme-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--soft);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.theme-tab[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-2);
}
.tab-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.tab-swatch-1 { background: var(--p1); }
.tab-swatch-2 { background: var(--p2); }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}
.swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.swatch:hover { transform: scale(1.14); }
.swatch[aria-checked="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--bg) inset;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 700;
}
.lang-switch a {
  padding: 4px 9px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

/* Typography */
h1 {
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 800;
}
h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  font-weight: 800;
}
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 800; }
p { margin: 0 0 16px; color: var(--soft); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--soft); max-width: 32em; margin-bottom: 26px; }
.muted { color: var(--muted); font-size: 14px; }
.kicker {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--p1-text);
  margin-bottom: 10px;
}
.kicker-p2 { color: var(--p2-text); }
[dir="rtl"] .kicker { text-transform: none; letter-spacing: 0; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 28px 0 72px;
}

/* Real phone screenshots */
.hero-shots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}
.shot-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 640 / 1325;
  border-radius: 30px;
  border: 6px solid #262131;
  background: linear-gradient(110deg, #1b1723 30%, #2a2436 50%, #1b1723 70%);
  background-size: 220% 100%;
  animation: skel-shimmer 1.5s linear infinite;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.shot-frame.is-loaded {
  background: #121017;
  animation: none;
}
.shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.shot-frame.is-loaded img { opacity: 1; }
@keyframes skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.hero-shots .shot-main {
  width: 265px;
  position: relative;
  z-index: 2;
  transform: translateX(-28px);
  border-color: color-mix(in srgb, var(--p1) 35%, #262131);
}
.hero-shots .shot-back {
  width: 235px;
  position: absolute;
  inset-inline-end: 12px;
  top: 44px;
  z-index: 1;
  transform: rotate(4deg);
  opacity: 0.92;
  border-color: color-mix(in srgb, var(--p2) 35%, #262131);
}
[dir="rtl"] .hero-shots .shot-main { transform: translateX(28px); }
[dir="rtl"] .hero-shots .shot-back { transform: rotate(-4deg); }

/* Waitlist form */
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 470px;
}
.wl-row { display: flex; gap: 8px; }
.wl-input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.wl-input::placeholder { color: var(--muted); }
.wl-input:focus { border-color: var(--p2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--p1);
  color: #16121b;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, opacity 0.14s ease, background 0.18s ease;
}
.btn:hover { color: #16121b; transform: translateY(-1px); opacity: 0.94; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-p2 { background: var(--p2); color: #12151e; }
.btn-p2:hover { color: #12151e; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--p2);
}
.btn-outline:hover { color: var(--ink); border-color: var(--p1); }

.wl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.wl-platforms {
  display: inline-flex;
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 0;
}
.wl-platforms legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.wl-platforms label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--soft);
  font-weight: 600;
}
.wl-platforms input { accent-color: var(--p1); margin: 0; }
.wl-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--soft);
  cursor: pointer;
  margin-top: 2px;
}
.wl-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--p1);
  cursor: pointer;
}
.wl-consent a { color: var(--p2-text); text-decoration: underline; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-status { min-height: 20px; font-size: 14px; font-weight: 700; margin: 0; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--err); }

/* Editorial Feature Rows */
.band {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.feature-rev { grid-template-columns: 1.08fr 0.92fr; }
.feature-rev .feature-media { order: 2; }
.feature-media {
  display: flex;
  justify-content: center;
}
.feature-media .shot-frame { max-width: 280px; }

/* Clean typographic 22-game list */
.game-groups {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.game-group-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--p2-text);
  margin-bottom: 6px;
}
[dir="rtl"] .game-group-label { text-transform: none; letter-spacing: 0; }
.game-list {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}
.game-list .sep { color: var(--muted); margin: 0 6px; }
.plus-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--soft);
}
.plus-note strong { color: var(--p1-text); }

/* Indie Support / Help Me Release Section */
.letter {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--p1);
  border-radius: 20px;
  padding: 36px 38px;
}
.letter p { color: var(--soft); font-size: 17px; }
.letter-sig {
  color: var(--ink);
  font-weight: 800;
  margin-top: 18px;
  margin-bottom: 24px;
}
.letter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.support-hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Bottom CTA */
.closing {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.closing .wl-form { margin: 22px auto 0; text-align: start; }
.closing .wl-meta { justify-content: center; }

/* FAQ Accordion */
.faq {
  max-width: 720px;
  margin: 0 auto;
}
.faq h2 { margin-bottom: 22px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
}
.faq-list details[open] { border-color: color-mix(in srgb, var(--p2) 45%, var(--line)); }
.faq-list summary {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--p1-text);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--soft);
}

/* Legal */
.legal { max-width: 720px; padding: 28px 0 48px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); }
.legal h2 { font-size: 20px; margin-top: 32px; color: var(--ink); }
.legal li { margin: 6px 0; color: var(--soft); }

/* Footer */
.foot {
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { color: var(--muted); font-size: 14px; text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 14px 0 54px; }
  .hero-shots { min-height: 440px; }
  .hero-shots .shot-main { width: 225px; transform: translateX(-22px); }
  .hero-shots .shot-back { width: 195px; inset-inline-end: 18px; top: 32px; }
  .feature, .feature-rev { grid-template-columns: 1fr; gap: 32px; }
  .feature-rev .feature-media { order: 0; }
  .band { padding: 54px 0; }
}
@media (max-width: 580px) {
  .wl-row { flex-direction: column; }
  .letter { padding: 26px 22px; }
  .nav-link, .theme-label { display: none; }
  .theme-trigger { padding: 6px 8px; }
  .hero-shots .shot-main { width: 205px; transform: translateX(-18px); }
  .hero-shots .shot-back { width: 175px; inset-inline-end: 8px; }
}
