/* ============================================================
   Matrimillas — marketing landing (same tokens as style.css)
   Display: Press Start 2P · Body: Chakra Petch · CRT digits: VT323
   ============================================================ */

:root {
  --primary: #ff4d7d;
  --primary-dk: #b02c52;
  --accent: #ffd166;
  --bg: #140a1f;
  --panel: #1e1030;
  --panel-2: #281540;
  --line: #4b2a6e;
  --line-dim: #3a1e59;
  --text: #fdf3f7;
  --dim: #b79cc8;
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --font-body: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-crt: "VT323", monospace;
}

/* Press Start 2P joins "fi"/"fl" into one glyph ("Sofi" reads "Soñ").
   Ligatures stay off everywhere, form fields included (AV-039). */
*, *::before, *::after {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 84px; /* anchors clear the fixed nav */ }

body {
  overflow-x: clip;
  background:
    radial-gradient(120% 90% at 50% 0%, #2a1145 0%, var(--bg) 55%, #0b0513 100%)
    fixed var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
}

/* CRT scanlines, same treatment as the cabinet itself */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  z-index: 90;
}

::selection { background: var(--primary); color: #fff; }

img, canvas { max-width: 100%; }
canvas { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: var(--accent); }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}
.skip:focus { left: 8px; }

/* ---------------- type roles ---------------- */

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 18px;
}

h1 {
  font-family: var(--font-pixel);
  font-size: clamp(21px, 3.4vw, 34px);
  line-height: 1.65;
  text-wrap: balance;
  letter-spacing: 0.5px;
}

h1 em {
  font-style: normal;
  color: var(--primary);
  text-shadow: 0 0 12px var(--primary), 0 0 36px rgba(255, 77, 125, 0.55);
}

h2 {
  font-family: var(--font-pixel);
  font-size: clamp(15px, 2.4vw, 23px);
  line-height: 1.8;
  text-wrap: balance;
  margin-bottom: 14px;
}

.section-lede {
  color: var(--dim);
  max-width: 58ch;
  margin-bottom: 8px;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 10px;
  padding: 17px 22px;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--primary-dk);
  transition: filter 0.15s, box-shadow 0.15s;
}

.btn:hover { filter: brightness(1.12); box-shadow: 0 5px 0 var(--primary-dk), 0 0 24px rgba(255, 77, 125, 0.45); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--primary-dk); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn.ghost {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--dim);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--primary); color: var(--text); filter: none; box-shadow: 0 0 18px rgba(255, 77, 125, 0.25); }
.btn.ghost:active { transform: none; }

.btn.small { font-size: 9px; padding: 12px 14px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-row.center { justify-content: center; }

/* Shortcut to the packs: on phones pricing sits thousands of px down. */
.hero-prices {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-prices:hover, .hero-prices:focus-visible { color: var(--text); }

.trust-line {
  margin-top: 22px;
  font-size: 13.5px;
  letter-spacing: 0.4px;
  color: var(--dim);
}

/* ---------------- nav ---------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(20, 10, 31, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(75, 42, 110, 0.55);
}

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  text-shadow: 0 0 8px var(--primary), 0 0 24px rgba(255, 77, 125, 0.5);
  letter-spacing: 1px;
}

.nav-links { display: flex; gap: 22px; margin-left: auto; }

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

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

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(110px, 16vh, 170px) clamp(18px, 4vw, 40px) 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; }
}

.hero .lede {
  margin-top: 24px;
  color: var(--dim);
  font-size: 18px;
  max-width: 54ch;
}

/* ---------------- the cabinet ---------------- */

.hero-cab { display: flex; justify-content: center; position: relative; }

.hero-cab::before {
  content: "";
  position: absolute;
  inset: -40px -20px;
  background: radial-gradient(50% 50% at 50% 45%, rgba(255, 77, 125, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.cabinet {
  position: relative;
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #221136, #170b26);
  padding: 14px 14px 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 50px rgba(255, 77, 125, 0.12);
}

.cab-marquee {
  font-family: var(--font-pixel);
  font-size: 15px;
  text-align: center;
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary), 0 0 26px rgba(255, 77, 125, 0.6);
  border: 3px solid var(--primary);
  border-radius: 12px;
  padding: 14px 8px;
  background: linear-gradient(180deg, #33124d, #1d0c30);
  box-shadow: 0 0 26px rgba(255, 77, 125, 0.3);
}

.cab-screen {
  margin-top: 12px;
  aspect-ratio: 9 / 13;
  max-height: min(58vh, 560px);
  border: 3px solid var(--line-dim);
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  display: flex;
}

.cab-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cab-poster {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  cursor: pointer;
  border: 0;
  background:
    radial-gradient(90% 70% at 50% 30%, #241038 0%, #0d0517 75%);
  color: var(--text);
}

.cab-poster:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }

.cab-avatars { display: flex; align-items: center; gap: 16px; }

.cab-press {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--accent);
}

.cab-note {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
}

.cab-base {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 6px 6px;
}

.cab-base a {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 209, 102, 0.35);
  padding-bottom: 4px;
}
.cab-base a:hover, .cab-base a:focus-visible { color: var(--accent); }

.coin-slot {
  width: 6px;
  height: 18px;
  border-radius: 3px;
  background: #0d0517;
  border: 2px solid var(--line);
  box-shadow: inset 0 0 6px #000;
}

/* ---------------- ticker ---------------- */

.ticker {
  overflow: hidden;
  border-top: 2px solid rgba(75, 42, 110, 0.55);
  border-bottom: 2px solid rgba(75, 42, 110, 0.55);
  background: rgba(30, 16, 48, 0.5);
  padding: 13px 0;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
}

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

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) clamp(18px, 4vw, 40px) 0;
}

/* ---------------- steps ---------------- */

.steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 26px 24px 28px;
}

.step-num {
  font-family: var(--font-crt);
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.5);
}

.step h3 {
  font-family: var(--font-pixel);
  font-size: 12px;
  margin: 16px 0 12px;
}

.step p { color: var(--dim); font-size: 15.5px; }

/* ---------------- games ---------------- */

.games-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .games-grid { grid-template-columns: 1fr; } }

.game {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 22px 18px 20px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.game:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 77, 125, 0.3);
  transform: translateY(-3px);
}

.g-icon { font-size: 30px; line-height: 1; display: block; }

.game h3 {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.7;
  margin: 14px 0 8px;
}

.game p { color: var(--dim); font-size: 14.5px; }

.g-tier {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 1px;
  padding: 5px 8px;
  border-radius: 6px;
}

.g-tier.t1 { color: var(--dim); border: 2px solid var(--line); }
.g-tier.t2 { color: #140a1f; background: var(--accent); }
.g-tier.t3 { color: #fff; background: var(--primary); }

/* ---------------- personalization ---------------- */

.love-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

@media (max-width: 900px) { .love-grid { grid-template-columns: 1fr; } }

.love-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }

.love-list li {
  padding-left: 30px;
  position: relative;
  color: var(--dim);
  font-size: 16px;
}

.love-list li::before {
  content: "\2665";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--primary);
  text-shadow: 0 0 8px rgba(255, 77, 125, 0.7);
}

.love-list b { color: var(--text); font-weight: 600; }

.love-show {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.show-avatars { display: flex; gap: 26px; }

.show-avatars figure {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 4, 18, 0.5);
  padding: 14px 16px 12px;
  text-align: center;
}

.show-avatars figcaption {
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--dim);
  margin-top: 8px;
}

.joke-pop, .final-pop {
  width: min(340px, 100%);
  border-radius: 12px;
  padding: 16px 18px;
}

.joke-pop {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 0 22px rgba(255, 209, 102, 0.18);
}

.joke-tag {
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--accent);
}

.joke-pop p { margin-top: 8px; font-size: 15.5px; }

.final-pop {
  border: 3px solid var(--primary);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 0 26px rgba(255, 77, 125, 0.3);
  text-align: center;
}

.final-pop h3 {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 77, 125, 0.8);
  line-height: 1.7;
}

.final-pop p { margin-top: 10px; color: var(--dim); font-size: 15.5px; font-style: italic; }

/* ---------------- pricing ---------------- */

.tiers {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; max-width: 440px; } }

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 30px 24px 26px;
  text-align: center;
}

.tier.featured {
  border: 3px solid var(--primary);
  box-shadow: 0 0 34px rgba(255, 77, 125, 0.3);
}

@media (min-width: 901px) { .tier.featured { transform: scale(1.04); } }

.t-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-size: 8px;
  background: var(--accent);
  color: #140a1f;
  padding: 6px 10px;
  border-radius: 7px;
  white-space: nowrap;
}

.tier h3 { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 1px; }

.t-price {
  font-family: var(--font-crt);
  font-size: 74px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.45);
  margin: 18px 0 20px;
}

.t-price sup { font-size: 38px; vertical-align: 26px; margin-right: 2px; }

.tier ul {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 26px;
}

.tier li {
  color: var(--dim);
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}

.tier li::before {
  content: "\2665";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.tier li.lead { color: var(--text); padding-left: 0; font-weight: 600; }
.tier li.lead::before { content: none; }

.t-cta { margin-top: auto; }

.pricing-fine {
  margin-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--dim);
}

/* ---------------- faq ---------------- */

.faq-list {
  margin-top: 36px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 0 20px;
  transition: border-color 0.15s;
}

.faq-list details[open] { border-color: var(--primary); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16.5px;
  position: relative;
  padding-right: 34px;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--accent);
}

.faq-list details[open] summary::after { content: "\2013"; }

.faq-list summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.faq-list details p { padding: 2px 0 20px; color: var(--dim); font-size: 15.5px; max-width: 64ch; }

/* ---------------- final cta ---------------- */

.final { padding-bottom: 30px; }

.final-panel {
  border: 3px solid var(--primary);
  border-radius: 18px;
  background: linear-gradient(180deg, #33124d, #1d0c30);
  box-shadow: 0 0 44px rgba(255, 77, 125, 0.25);
  text-align: center;
  padding: clamp(44px, 7vw, 70px) 24px;
}

.final-panel h2 {
  color: var(--primary);
  text-shadow: 0 0 12px var(--primary), 0 0 36px rgba(255, 77, 125, 0.55);
}

.final-panel .section-lede { margin: 0 auto; }

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

.foot {
  margin-top: 80px;
  border-top: 2px solid rgba(75, 42, 110, 0.55);
  padding: 34px clamp(18px, 4vw, 40px) 110px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.foot-logo {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--primary);
  text-shadow: 0 0 8px rgba(255, 77, 125, 0.6);
}

.foot nav { display: flex; gap: 20px; }

.foot nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.foot nav a:hover, .foot nav a:focus-visible { color: var(--text); }

.foot-note { margin-left: auto; color: var(--dim); font-size: 13px; }

@media (max-width: 700px) { .foot-note { margin-left: 0; } }

/* ---------------- sticky mobile cta ---------------- */

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(20, 10, 31, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 2px solid rgba(75, 42, 110, 0.7);
  transform: translateY(110%);
  transition: transform 0.3s;
}

.cta-bar .btn { display: block; }

.cta-bar.show { transform: none; }

@media (min-width: 761px) { .cta-bar { display: none; } }

/* ---------------- motion ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .rv {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .js .rv.in { opacity: 1; transform: none; }

  .ticker-track { animation: marquee 32s linear infinite; }

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

  .cab-press { animation: pulse 0.9s infinite alternate; }

  @keyframes pulse {
    from { opacity: 0.45; transform: scale(0.98); }
    to   { opacity: 1;    transform: scale(1.02); }
  }

  .cab-marquee { animation: neon-flicker 3.2s infinite; }

  @keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.55; }
    94% { opacity: 1; }
    96% { opacity: 0.75; }
    97% { opacity: 1; }
  }
}

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