/* ==========================================================================
   MindyCards landing page
   Palette: the app's Calm Focus style, the same tokens as the account
   deletion page, so the two read as one site.
   ========================================================================== */

/* ---------- Fonts: bundled with the app, self-hosted here ---------- */

@font-face {
  font-family: "Lexend";
  src: url("../assets/fonts/Lexend-Regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("../assets/fonts/Lexend-SemiBold.ttf") format("truetype");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("../assets/fonts/Lexend-Bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../assets/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../assets/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}
/* Only downloaded if someone picks it in the demo. */
@font-face {
  font-family: "OpenDyslexic";
  src: url("../assets/fonts/OpenDyslexic-Regular.otf") format("opentype");
  font-weight: 400; font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --bg:          #F6F4EE;
  --bg-tint:     #EFEAF2;
  --surface:     #FFFFFF;
  --ink:         #2A352F;
  --mute:        #5A6560;
  --accent:      #6B4D7D;
  --accent-deep: #563E62;
  --accent-soft: #E8E1EE;
  --on-accent:   #FFFFFF;
  --gold:        #E5C158;
  --sage:        #4C6B5D;
  --border:      #DED8CE;
  --border-firm: #C9C1D2;
  --card-face:   #F7F2E7;
  --suit-dark:   #1F4B3B;
  --suit-red:    #D0312D;
  --blob-a:      #DCE3D2;
  --blob-b:      #D8E0EA;
  --blob-c:      #E8E1EE;
  --shadow-sm:   0 1px 2px rgba(26, 37, 54, .05), 0 4px 14px rgba(26, 37, 54, .06);
  --shadow:      0 2px 4px rgba(26, 37, 54, .05), 0 14px 40px rgba(26, 37, 54, .10);
  --radius:      22px;
  --header-bg:   rgba(246, 244, 238, .82);

  --font-head: "Lexend", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #1A1F1D;
    --bg-tint:     #20262A;
    --surface:     #242B28;
    --ink:         #F6F4EE;
    --mute:        #B8C0BC;
    --accent:      #B58FC0;
    --accent-deep: #C9A8D4;
    --accent-soft: #2F3540;
    --on-accent:   #1A1F1D;
    --border:      #39423E;
    --border-firm: #4B5550;
    --card-face:   #F1EBDD;
    --blob-a:      #24302A;
    --blob-b:      #232B36;
    --blob-c:      #2E2838;
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --shadow:      0 2px 4px rgba(0, 0, 0, .3), 0 14px 40px rgba(0, 0, 0, .4);
    --header-bg:   rgba(26, 31, 29, .82);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:          #1A1F1D;
  --bg-tint:     #20262A;
  --surface:     #242B28;
  --ink:         #F6F4EE;
  --mute:        #B8C0BC;
  --accent:      #B58FC0;
  --accent-deep: #C9A8D4;
  --accent-soft: #2F3540;
  --on-accent:   #1A1F1D;
  --border:      #39423E;
  --border-firm: #4B5550;
  --card-face:   #F1EBDD;
  --blob-a:      #24302A;
  --blob-b:      #232B36;
  --blob-c:      #2E2838;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  --shadow:      0 2px 4px rgba(0, 0, 0, .3), 0 14px 40px rgba(0, 0, 0, .4);
  --header-bg:   rgba(26, 31, 29, .82);
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0;
}

p { margin: 0; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

/* Elements GSAP reveals start hidden, but only while motion is allowed and
   the script is expected to run (see the <head> script). */
.motion-ok [data-reveal],
.motion-ok [data-hero],
.motion-ok [data-split],
.motion-ok .hero-ace { visibility: hidden; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); color: var(--on-accent); }
.btn-small { padding: 10px 18px; font-size: 15px; }

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 11px 22px 11px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.15;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.store-btn:hover { color: var(--bg); transform: translateY(-2px); box-shadow: var(--shadow); }
.store-btn svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round;
}
.store-btn span { display: flex; flex-direction: column; white-space: nowrap; }
.store-btn small { font-size: 12px; font-weight: 400; opacity: .85; letter-spacing: .02em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-sm); }

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--mute);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--ink); background: var(--accent-soft); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mute);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.main-nav .header-back:hover { color: var(--ink); background: var(--accent-soft); }
.header-back svg { width: 16px; height: 16px; display: block; }

.icon-btn.a11y-open svg circle { fill: currentColor; stroke: none; }

.lang-switch select {
  height: 42px;
  max-width: 9.5rem;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.lang-switch select:hover { border-color: var(--border-firm); background: var(--accent-soft); }
.lang-switch select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--border-firm); background: var(--accent-soft); }
.icon-btn svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.icon-btn .icon-sun { display: none; }
.icon-btn[aria-pressed="true"] .icon-sun { display: block; }
.icon-btn[aria-pressed="true"] .icon-moon { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: visible;
  padding: 56px 0 88px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .9;
}
.blob-a { width: 520px; height: 520px; background: var(--blob-a); left: -180px; top: -140px; }
.blob-b { width: 460px; height: 460px; background: var(--blob-b); right: -160px; top: 80px; }
.blob-c { width: 380px; height: 380px; background: var(--blob-c); left: 38%; bottom: -220px; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.025em;
  max-width: 13em;
}
.hero h1 .w { display: inline-block; will-change: transform; }

.hero-lede {
  margin-top: 22px;
  font-size: 20px;
  color: var(--mute);
  max-width: 34em;
}

.hero-actions { margin-top: 30px; }

.hero-note {
  margin-top: 14px;
  font-size: 16px;
  color: var(--mute);
}
.hero-note strong { color: var(--ink); }

.pills {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--border-firm);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
}
.pill svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Stage: a phone with the four aces of the logo dealt around it */

.hero-visual { position: relative; max-width: 100%; overflow: visible; }

/* Positions below use the plain `transform` property, never the individual
   `translate` / `rotate` properties: GSAP folds those into its own transform
   the moment it touches an element, which silently erased the resting pose. */
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 600px;
  max-width: 520px;
  margin: 0 auto;
}

.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 16;
  padding: 10px;
  border-radius: 42px;
  background: #121614;
  box-shadow:
    0 0 0 1.5px #2C3330 inset,
    0 30px 60px -12px rgba(26, 37, 54, .35),
    0 12px 24px -8px rgba(26, 37, 54, .25);
}
/* A camera dot rather than a notch, so it never covers the screenshot. */
.phone::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #0A0D0C;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .06);
  z-index: 2;
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

.hero-phone { z-index: 2; }

.ace {
  position: absolute;
  width: 120px;
  aspect-ratio: 5 / 7;
  border-radius: 14px;
  background: var(--card-face);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 16px 30px -10px rgba(26, 37, 54, .35), 0 3px 8px rgba(26, 37, 54, .12);
  border: 1px solid rgba(42, 53, 47, .08);
}
.ace-rank {
  position: absolute;
  left: 12px; top: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
}
.ace-suit {
  position: absolute;
  left: 50%; top: 56%;
  width: 56%; height: auto;
  aspect-ratio: 1;
  translate: -50% -50%;
}
.ace-spade, .ace-club { color: var(--suit-dark); fill: var(--suit-dark); }
.ace-heart, .ace-diamond { color: var(--suit-red); fill: var(--suit-red); }
.ace-suit { fill: inherit; }

.hero-ace.ace-spade   { left: 2%;   top: 12%; transform: rotate(-16deg); z-index: 1; }
.hero-ace.ace-club    { right: 4%;  top: 6%;  transform: rotate(13deg);  z-index: 1; }
.hero-ace.ace-heart   { left: 7%;   top: 60%; transform: rotate(-7deg);  z-index: 3; }
.hero-ace.ace-diamond { right: 3%;  top: 56%; transform: rotate(17deg);  z-index: 3; }

.sparkle {
  position: absolute;
  height: auto;
  aspect-ratio: 1;
  fill: var(--gold);
  opacity: .9;
  z-index: 4;
}
.sparkle.s1 { width: 26px; left: 22%; top: 2%; }
.sparkle.s2 { width: 18px; right: 12%; top: 44%; fill: var(--accent); opacity: .6; }
.sparkle.s3 { width: 22px; left: 4%;  top: 48%; fill: #8FA9C6; opacity: .8; }
.sparkle.s4 { width: 16px; right: 30%; bottom: 3%; }

/* ---------- Sections ---------- */

.section { padding: 104px 0; position: relative; }
.section-tint { background: var(--bg-tint); }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
}
.landing-listen-row {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 22px;
}
.landing-listen svg { display: block; width: 18px; height: 18px; }
.section-lede {
  margin-top: 16px;
  font-size: 19px;
  color: var(--mute);
}

/* ---------- Games ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.game-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 280px;
  background-size: cover;
  background-position: center;
  perspective: 800px;
}
.game-art::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%, transparent 40%, rgba(0, 0, 0, .25));
  pointer-events: none;
}
.game-art img {
  position: relative;
  z-index: 1;
  width: 230px; height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35));
}
.game-art-solitaire { background-image: linear-gradient(160deg, #00B5BD, #00747C); }
.game-art-belote    { background-image: url("../assets/img/games/belote-banner.jpg"); background-color: #0D2A7A; }

.game-body { padding: 26px 28px 30px; }
.game-body h3 { font-size: 28px; }
.game-body > p:not(.game-origin) { margin-top: 12px; color: var(--mute); }

.game-origin {
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.game-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
  color: var(--mute);
}
.game-meta li { display: inline-flex; align-items: center; gap: 7px; }
.game-meta svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.soon-title {
  margin: 64px 0 20px;
  font-size: 22px;
  text-align: center;
  color: var(--mute);
}

.soon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.soon-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 22px 18px 18px;
  background: var(--surface);
  border: 1px dashed var(--border-firm);
  border-radius: 18px;
}
.soon-card img {
  flex: none;
  width: 84px; height: 84px;
  border-radius: 18px;
  object-fit: cover;
}
.soon-card h4 { font-size: 20px; }
.soon-card p:not(.game-origin) { margin-top: 4px; font-size: 16px; color: var(--mute); }
.soon-card .game-origin { margin-top: 2px; font-size: 14px; }

.badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Accessibility ---------- */

.a11y-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: center;
}

.demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.demo-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.demo-sample {
  --demo-scale: 1;
  margin: 14px 0 24px;
  padding: 22px 24px;
  min-height: 190px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: calc(18px * var(--demo-scale));
  line-height: 1.55;
  transition: letter-spacing .25s, word-spacing .25s, line-height .25s;
}
.demo-sample .demo-title {
  font-weight: 700;
  font-size: 1.15em;
  margin-bottom: .4em;
}
.demo-sample[data-font="atkinson"] { font-family: "Atkinson Hyperlegible", sans-serif; }
.demo-sample[data-font="lexend"]   { font-family: "Lexend", sans-serif; }
.demo-sample[data-font="dyslexic"] { font-family: "OpenDyslexic", sans-serif; }
.demo-sample.is-comfort { letter-spacing: .12em; word-spacing: .16em; line-height: 1.9; }

.demo-fonts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.demo-fonts legend {
  width: 100%;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
}
.demo-fonts label { position: relative; }
.demo-fonts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.demo-fonts label span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--border-firm);
  border-radius: 999px;
  font-size: 16px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.demo-fonts input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.demo-fonts input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.f-atkinson { font-family: "Atkinson Hyperlegible", sans-serif; }
.f-lexend   { font-family: "Lexend", sans-serif; }
.f-dyslexic { font-family: "OpenDyslexic", sans-serif; font-size: 14px !important; }

.demo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.switch input { position: absolute; opacity: 0; width: 52px; height: 30px; margin: 0; cursor: pointer; }
.switch-track {
  position: relative;
  width: 52px; height: 30px;
  border-radius: 999px;
  background: var(--border-firm);
  transition: background-color .2s;
}
.switch-track::after {
  content: "";
  position: absolute;
  left: 4px; top: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--accent); outline-offset: 3px; }

.demo-size label { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.demo-size input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 0; }
.demo-size output {
  min-width: 3.6em;
  font-family: var(--font-head);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.demo-foot { margin-top: 18px; font-size: 14.5px; color: var(--mute); }

.a11y-phone { display: flex; justify-content: center; }
.a11y-phone .phone { width: 270px; }

.feature-grid {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.feature svg, .feature-aa {
  width: 46px; height: 46px;
  padding: 10px;
  border-radius: 14px;
  background: var(--accent-soft);
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.feature-aa {
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}
.feature h3 { margin-top: 16px; font-size: 20px; }
.feature p { margin-top: 8px; font-size: 16.5px; color: var(--mute); }

/* ---------- Make it yours ---------- */

.yours { overflow: hidden; }

.deck {
  --spread: 64px;
  --tilt: 6deg;
  --card-w: 170px;
  position: relative;
  height: 340px;
  max-width: 900px;
  margin: 0 auto;
}

.deck-card {
  position: absolute;
  left: 50%; bottom: 0;
  width: var(--card-w);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-left: calc(var(--card-w) / -2);
  transform-origin: 50% 120%;
  /* --arc is (i - 3.5)² × 3px, precomputed per card in the HTML; main.js
     uses the same formula for the fanned end state. */
  transform:
    translate(calc((var(--i) - 3.5) * var(--spread)), var(--arc))
    rotate(calc((var(--i) - 3.5) * var(--tilt)));
  box-shadow: 0 18px 30px -12px rgba(26, 37, 54, .45), 0 2px 6px rgba(26, 37, 54, .15);
}

.avatars {
  list-style: none;
  margin: 72px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.avatars li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 116px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
}
.avatars img {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border-firm), var(--shadow-sm);
  object-fit: cover;
}
.avatars .is-premium img { box-shadow: 0 0 0 2px var(--gold), var(--shadow-sm); }
.avatars em {
  position: absolute;
  top: 78px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #2A352F;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Passes & Premium ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.plan {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 26px; }

.plan-premium {
  background: linear-gradient(145deg, #6B4D7D, #7E6092);
  border-color: transparent;
  color: #FFFFFF;
}
.plan-premium h3 svg { width: 26px; height: 26px; fill: var(--gold); }
.plan-lede { margin-top: 10px; font-size: 18px; opacity: .92; }
.plan-fine { margin-top: 22px; font-size: 14.5px; opacity: .85; }

.meter {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.meter-head { display: flex; align-items: center; gap: 10px; }
.meter-ticket {
  display: grid; place-items: center;
  width: 38px; height: 26px;
  border-radius: 6px;
  background: var(--accent);
}
.meter-ticket img { width: 16px; height: 20px; }
.meter-count {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.meter-bar {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin-top: 12px;
}
.meter-bar i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: left center;
}

.checks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.checks li {
  position: relative;
  padding-left: 32px;
  margin-top: 10px;
}
/* The tick is a mask, so it takes its colour from the theme tokens. */
.checks li::before,
.checks li::after {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 20px; height: 20px;
  border-radius: 50%;
}
.checks li::before { background: var(--accent-soft); }
.checks li::after {
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.plan-premium .checks li::before { background: rgba(255, 255, 255, .18); }
.plan-premium .checks li::after { background: var(--gold); }

/* ---------- Everyday details ---------- */

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.detail {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.detail h3 { font-size: 22px; }
.detail p { margin-top: 10px; color: var(--mute); font-size: 17px; }

.langs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}
.langs li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 24px;
}
.faq summary {
  position: relative;
  padding: 20px 36px 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2.2px solid var(--accent);
  border-bottom: 2.2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--mute); }
.faq details p strong { color: var(--ink); }

/* ---------- Download ---------- */

.cta { text-align: center; overflow: hidden; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-logo { width: 280px; height: auto; margin-bottom: 8px; filter: drop-shadow(0 20px 30px rgba(26, 37, 54, .18)); }
.cta h2 { font-size: clamp(34px, 5vw, 56px); }
.cta .store-row { margin-top: 30px; justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-tint);
  color: var(--mute);
  font-size: 16px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand p { margin-top: 8px; }
.footer-brand .brand { margin-bottom: 8px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 36px;
  align-content: start;
}
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-copy { margin-top: 36px; font-size: 14px; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-copy { text-align: center; }
  .hero h1, .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions, .pills { justify-content: center; }
  .a11y-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  .header-inner { gap: 12px; }
  .brand { font-size: 18px; }
  .brand img { width: 36px; height: 36px; }

  .hero { padding: 36px 0 56px; }
  .hero-lede { font-size: 18px; }
  .store-btn { min-width: 0; flex: 1 1 160px; justify-content: center; }
  .hero-stage { height: 470px; max-width: 360px; }
  .phone { width: 210px; border-radius: 32px; padding: 8px; }
  .phone::before { top: 12px; }
  .phone img { border-radius: 25px; }
  .ace { width: 82px; border-radius: 10px; }
  .ace-rank { font-size: 20px; left: 8px; top: 6px; }
  .hero-ace.ace-spade { left: 4%; }
  .hero-ace.ace-club { right: 4%; }
  .hero-ace.ace-heart { left: 8%; }
  .hero-ace.ace-diamond { right: 5%; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .games-grid, .soon-grid, .plans, .details-grid, .feature-grid { grid-template-columns: 1fr; }
  .game-art { height: 230px; }
  .game-art img { width: 190px; height: 190px; }
  .game-body { padding: 22px 22px 26px; }
  .demo { padding: 22px 18px; }
  .demo-sample { padding: 18px; }
  .plan { padding: 26px 22px; }

  .deck { --spread: 22px; --tilt: 4deg; --card-w: 104px; height: 230px; }
  .avatars { gap: 18px 10px; }
  .avatars li { width: 100px; }

  .footer-links { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: 11.5px; letter-spacing: .08em; padding: 6px 12px; }
  .store-row { max-width: 340px; margin-left: auto; margin-right: auto; }
  .store-btn { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .deck { --spread: 19px; --card-w: 92px; height: 210px; }
  .ace { width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

@media print {
  .site-header, .hero-visual, .deck, .store-row { display: none; }
  body { background: #FFFFFF; color: #000000; }
}
