/* Show Your Score — landing v2 (scroll-driven) */
:root {
  --bg: #05070f;
  --bg-2: #0a0f1e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f6fb;
  --text-dim: #9aa3b8;
  --accent-1: #6d3df5;
  --accent-2: #2f7cf6;
  --accent-3: #35d0ff;
  --grad: linear-gradient(100deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  --radius: 20px;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --p: 0; /* scroll progress, set per [data-scrolly] section by app.js */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html { overflow-x: clip; background-color: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); }
h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight: 900;
  font-style: italic;
  font-stretch: 110%;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
h1 .line { display: block; text-wrap: balance; }
h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  font-style: italic;
  font-stretch: 105%;
  text-transform: uppercase;
  line-height: 1.05;
  text-align: center;
}
.section-sub {
  color: var(--text-dim);
  text-align: center;
  max-width: 640px;
  margin: 1.1rem auto 0;
  font-size: 1.06rem;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-3);
}

/* ---------- placeholders (swap for real screenshots/graphics) ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(109, 61, 245, 0.35), rgba(47, 124, 246, 0.25) 55%, rgba(53, 208, 255, 0.2)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px),
    var(--bg-2);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-weight: 900;
  overflow: hidden;
}
.ph span { font-size: clamp(1.6rem, 3vw, 2.6rem); filter: saturate(1.2); }
.ph-screen span { font-size: clamp(2.4rem, 4vw, 3.2rem); }
.ph::after {
  content: "PLACEHOLDER";
  position: absolute;
  bottom: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.35);
}
.ph { position: relative; }
.ph-screen { aspect-ratio: 9 / 19.5; width: 100%; border-radius: 38px; }
.ph-card { aspect-ratio: 1; border-radius: 16px; }
.ph-wide { aspect-ratio: 16 / 8; border-radius: 12px; margin-bottom: 1.1rem; }

/* real assets replacing placeholders */
.img-card { overflow: hidden; border-radius: 16px; }
.img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.float-card.img-card { aspect-ratio: 1; }
.screen-img { aspect-ratio: 9 / 19.5; width: 100%; border-radius: 38px; overflow: hidden; }
.screen-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.bento-img { aspect-ratio: 16 / 8; border-radius: 12px; margin-bottom: 1.1rem; overflow: hidden; }
.bento-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento-img--bottom img { object-position: bottom; }
/* small bento cards: square window = the full generated graphic, no crop */
.bento-card:not(.big) .bento-img { aspect-ratio: 1; }
/* app screenshots inside small cards: portrait window shows most of the screen */
.bento-card:not(.big) .bento-img--shot { aspect-ratio: 3 / 4; }
.bento-img--players img { object-position: 50% 60%; }
.bento-img--colors img { object-position: 50% 25%; }
.bento-img--formats img { object-position: 50% 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(5, 7, 15, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner { display: flex; align-items: center; gap: 2rem; padding: 0.9rem 0; }
.brand img { height: 24px; width: auto; }
.main-nav { display: flex; gap: 1.6rem; margin-inline-start: auto; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--text-dim); transition: color 0.2s; }
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font: inherit; font-size: 0.85rem; text-transform: uppercase;
  padding: 0.45rem 0.7rem; border-radius: 999px; cursor: pointer;
}
.lang-btn:hover { color: var(--text); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  display: none; grid-template-columns: 1fr 1fr; gap: 0.1rem 1.2rem;
  background: #0c1120; border: 1px solid var(--border); border-radius: 14px;
  padding: 0.8rem 1rem; min-width: 320px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.lang-switch.open .lang-menu { display: grid; }
.lang-menu a { font-size: 0.9rem; color: var(--text-dim); padding: 0.3rem 0.2rem; border-radius: 6px; white-space: nowrap; }
.lang-menu a:hover { color: var(--text); }
.lang-menu a[aria-current="true"] { color: var(--accent-3); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  border-radius: 999px; padding: 0.95rem 2rem; font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 30px rgba(78, 92, 246, 0.45);
  border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(78, 92, 246, 0.6); }
.btn-small { padding: 0.55rem 1.2rem; font-size: 0.88rem; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-dim); }

/* ================= SCROLLY FRAMEWORK ================= */
.scrolly { position: relative; }
.scrolly .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* section height = stage + scroll runway */
.hero.scrolly { height: 220vh; }
.showcase.scrolly { height: 320vh; }
.fan.scrolly { height: 240vh; }
.ai.scrolly { height: 220vh; }

/* ---------- ACT 1: hero ---------- */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55; }
.glow-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(109, 61, 245, 0.55), transparent 65%);
  top: -180px; inset-inline-start: -140px;
  transform: translateY(calc(var(--p) * 160px));
}
.glow-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(47, 124, 246, 0.5), transparent 65%);
  bottom: -260px; inset-inline-end: -180px;
  transform: translateY(calc(var(--p) * -140px));
}
.pitch-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
  transform: translateY(calc(var(--p) * 60px));
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
/* copy drifts up & fades as you scroll through the pin */
.hero-copy {
  transform: translateY(calc(var(--p) * -90px));
  opacity: calc(1 - var(--p) * 1.4);
}
.hero h1 { margin-top: 0.9rem; }
.hero-sub { color: var(--text-dim); max-width: 520px; margin-top: 1.4rem; font-size: 1.12rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; align-items: center; }
.store-badge img { height: 52px; width: auto; transition: transform 0.2s ease, filter 0.2s ease; }
.store-badge:hover img { transform: translateY(-2px); filter: brightness(1.15); }
/* TEMP: badge sklepów na czas oczekiwania na approval Paddle */
.store-badges-temp { margin-top: 0.9rem; }
.store-badges-temp .store-badge img { height: 52px; }
/* dyskretny link do checkoutu pod badge'ami (dla reviewera Paddle) */
.checkout-review-link-wrap { margin-top: 1.2rem; }
.checkout-review-link {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checkout-review-link:hover { color: var(--text); }
.hero-cta-sub { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.9rem; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(300px, 72vw);
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3040, #10141f 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 120px rgba(78, 92, 246, 0.28);
}
.phone-notch {
  position: absolute; top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #05070f; border-radius: 999px; z-index: 3;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 38px; }
/* phone straightens & grows with scroll, floats up */
.hero-phone {
  transform:
    rotate(calc(10deg - var(--p) * 10deg))
    scale(calc(0.92 + var(--p) * 0.14))
    translateY(calc(var(--p) * -40px));
}
/* floating mini-graphics scatter outward & spin as you scroll */
.float-card {
  position: absolute;
  width: clamp(110px, 12vw, 150px);
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.float-card.ph::after { content: ""; }
.float-1 {
  top: 6%; inset-inline-start: -6%;
  transform: rotate(calc(-8deg - var(--p) * 18deg)) translate(calc(var(--p) * -70px), calc(var(--p) * -50px));
}
.float-2 {
  bottom: 14%; inset-inline-end: -4%;
  transform: rotate(calc(7deg + var(--p) * 22deg)) translate(calc(var(--p) * 80px), calc(var(--p) * 40px));
}
.float-3 {
  bottom: -4%; inset-inline-start: 4%;
  transform: rotate(calc(-4deg + var(--p) * 14deg)) translate(calc(var(--p) * -50px), calc(var(--p) * 70px));
}
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  opacity: calc(1 - var(--p) * 3);
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%;
  width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent-3); border-radius: 2px;
  animation: hint 1.6s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translateY(12px); opacity: 0.3; } }

/* ---------- marquee ---------- */
.marquee-section { padding: 3rem 0 1.5rem; }
.marquee-label {
  text-align: center; color: var(--text-dim);
  font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1.4rem;
  font-family: var(--font-display); font-weight: 600;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: 1.2rem; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* z JS-em karuzelę napędza scrollLeft (app.js) — animacja CSS zostaje tylko jako fallback no-JS */
.js .marquee {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  direction: ltr;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.js .marquee::-webkit-scrollbar { display: none; }
.js .marquee:active { cursor: grabbing; }
.js .marquee-track { animation: none; }
.marquee-track img,
.marquee-track .ph-card {
  height: clamp(200px, 24vw, 300px);
  width: auto;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.marquee-track .ph-card { aspect-ratio: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 0.6rem)); } }

/* ---------- ACT 2: showcase ---------- */
.showcase .stage { background: var(--bg); }
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.showcase-title {
  text-align: start;
  margin-bottom: 2.5rem;
  opacity: calc(0.4 + var(--p) * 2);
}
.chapters { position: relative; min-height: 240px; }
.chapter {
  position: absolute;
  inset-inline: 0;
  top: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.showcase[data-active="0"] .chapter[data-chapter="0"],
.showcase[data-active="1"] .chapter[data-chapter="1"],
.showcase[data-active="2"] .chapter[data-chapter="2"] {
  opacity: 1;
  transform: none;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 4rem; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
}
.chapter h3 { font-size: 1.5rem; margin: 0.7rem 0 0.5rem; }
.chapter p { color: var(--text-dim); max-width: 420px; }
.chapter-dots { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.chapter-dots i {
  width: 26px; height: 4px; border-radius: 2px;
  background: var(--surface-2);
  transition: background 0.3s ease;
}
.showcase[data-active="0"] .chapter-dots i:nth-child(1),
.showcase[data-active="1"] .chapter-dots i:nth-child(2),
.showcase[data-active="2"] .chapter-dots i:nth-child(3) { background: var(--accent-3); }

.showcase-visual { display: flex; justify-content: center; }
/* phone sways as chapters change */
.showcase-phone { transform: rotate(calc((var(--p) - 0.5) * 10deg)); }
.screens { position: relative; }
.screens .screen { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.screens .screen[data-screen="0"] { position: relative; }
.showcase[data-active="0"] .screen[data-screen="0"],
.showcase[data-active="1"] .screen[data-screen="1"],
.showcase[data-active="2"] .screen[data-screen="2"] { opacity: 1; }

/* ---------- stats band ---------- */
.stats-band { padding: clamp(3rem, 7vw, 5rem) 0; border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stats-row strong {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
}
.stats-row .stat-word { font-size: clamp(1.4rem, 3vw, 2.1rem); padding-top: 0.4em; }
.stats-row span { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- ACT 3: fan ---------- */
.fan .stage { align-items: center; }
.fan-title {
  margin-bottom: clamp(2rem, 5vh, 4rem);
  transform: translateY(calc((1 - var(--p)) * 40px));
  opacity: calc(var(--p) * 3);
}
.fan-cards {
  position: relative;
  width: min(340px, 60vw);
  aspect-ratio: 1;
  margin-inline: auto;
}
.fan-card {
  position: absolute;
  inset: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  /* spread from a stack into a fan as --p grows */
  transform:
    translateX(calc(var(--i) * var(--p) * min(14vw, 190px)))
    translateY(calc(var(--ai) * var(--ai) * var(--p) * 24px))
    rotate(calc(var(--i) * var(--p) * 9deg))
    scale(calc(1 - var(--ai) * var(--p) * 0.05));
  z-index: calc(10 - var(--ai));
}
.fan-card.ph::after { content: "PLACEHOLDER"; }

/* ---------- ACT 4: AI ---------- */
.ai .stage {
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(109, 61, 245, 0.18), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--border);
  text-align: center;
  gap: 1rem;
}
.ai-eyebrow { opacity: calc(var(--p) * 4); }
.ai-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  transform: scale(calc(0.85 + min(var(--p) * 2, 1) * 0.15));
  opacity: calc(var(--p) * 4);
}
.ai-sub { opacity: calc(var(--p) * 3 - 0.4); }
/* karuzela grafik AI (gdy assets/graphics/ai/ ma obrazy; inaczej fallback na chipy) */
.ai-marquee { margin-top: clamp(1.5rem, 4vh, 3rem); width: 100%; }
.ai-marquee .marquee-track img {
  height: clamp(170px, 20vw, 260px);
  width: auto;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.chip-rows { margin-top: clamp(1.5rem, 4vh, 3rem); display: grid; gap: 1rem; overflow: hidden; }
.chip-row { display: flex; gap: 0.8rem; width: max-content; will-change: transform; }
/* rows slide in opposite directions, driven by scroll */
.chip-row-a { transform: translateX(calc(-12% + var(--p) * -18%)); }
.chip-row-b { transform: translateX(calc(-30% + var(--p) * 18%)); margin-inline-start: -6rem; }
.chip-row span {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid rgba(109, 61, 245, 0.35);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  white-space: nowrap;
}
.ai-cards-section { background: var(--bg-2); border-bottom: 1px solid var(--border); padding-top: 0; margin-top: -1px; }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; text-align: start; }
.ai-card {
  background: linear-gradient(160deg, rgba(109, 61, 245, 0.14), rgba(47, 124, 246, 0.07));
  border: 1px solid rgba(109, 61, 245, 0.3);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ai-card:hover { transform: translateY(-5px); box-shadow: 0 16px 50px rgba(109, 61, 245, 0.25); }
.ai-icon { font-size: 1.9rem; margin-bottom: 0.8rem; }
.ai-card h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.ai-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-top: 3.2rem; }
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.bento-card:hover { transform: translateY(-5px); border-color: rgba(53, 208, 255, 0.4); background: var(--surface-2); }
.bento-card.big { grid-column: span 2; }
.bento-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.bento-card p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- sports ---------- */
.sports { text-align: center; }
.sports-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.6rem; }
.sports-row li {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.sports-row li:hover { transform: translateY(-3px) scale(1.03); border-color: rgba(109, 61, 245, 0.55); }

/* ---------- reviews ---------- */
.reviews { background: var(--bg-2); border-block: 1px solid var(--border); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 3rem; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.review-card blockquote { color: var(--text); font-size: 0.97rem; line-height: 1.65; }
.review-card blockquote::before { content: "“"; color: var(--accent-3); font-size: 1.6rem; line-height: 0; margin-inline-end: 2px; }
.review-card figcaption { margin-top: auto; display: flex; flex-direction: column; }
.review-card figcaption strong { font-size: 0.95rem; }
.review-card figcaption span { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- pricing ---------- */
.pricing-inner {
  text-align: center;
  background: linear-gradient(160deg, rgba(109, 61, 245, 0.16), rgba(47, 124, 246, 0.08));
  border: 1px solid rgba(109, 61, 245, 0.35);
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
}
.pricing-inner .btn { margin-top: 2rem; }
.pricing-inner .section-sub { max-width: 720px; }

/* ---------- faq ---------- */
.faq-list { max-width: 780px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: rgba(109, 61, 245, 0.5); }
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-3);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--text-dim); margin-top: 0.8rem; font-size: 0.97rem; }

/* ---------- final CTA ---------- */
.cta-final { text-align: center; }
.cta-inner h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900; font-style: italic; font-stretch: 108%;
  text-transform: uppercase; line-height: 1.02;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-inner p { color: var(--text-dim); margin-top: 1.1rem; }
.cta-inner .hero-ctas { justify-content: center; margin-top: 2.2rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.6fr; gap: 2.4rem; }
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}
.footer-grid a { display: block; color: var(--text-dim); font-size: 0.93rem; padding: 0.22rem 0; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--text-dim); font-size: 0.93rem; margin-top: 1rem; max-width: 240px; }
.footer-lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.footer-lang-list a[aria-current="true"] { color: var(--accent-3); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.84rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.footer-company { font-size: 0.78rem; opacity: 0.8; }
.footer-company a { color: var(--accent-3); }
.checkout-company-note { text-align: center; margin-top: 0.4rem; font-size: 0.76rem; opacity: 0.75; }

/* ---------- consent modal (blocking) ---------- */
.consent-banner {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 5, 12, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.consent-card {
  background: #0c1120;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  max-width: 440px;
  width: 100%;
  padding: 1.8rem 1.7rem 1.5rem;
  text-align: center;
}
.consent-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}
.consent-card p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }
.consent-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.5rem;
  align-items: center;
}
.consent-accept-btn { width: 100%; font-size: 1.02rem; }
.consent-decline-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
}
.consent-decline-link:hover { color: var(--text); }

/* ---------- checkout ---------- */
.checkout-page { padding: clamp(7rem, 14vh, 9rem) 0 4rem; min-height: 70vh; }
.checkout-container { max-width: 560px; }
.checkout-plans { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2.5rem; }
.plan-card {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  color: var(--text); font: inherit; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-align: start;
}
.plan-card:hover { border-color: rgba(109, 61, 245, 0.5); }
.plan-card.selected {
  border-color: var(--accent-2);
  background: linear-gradient(160deg, rgba(109, 61, 245, 0.16), rgba(47, 124, 246, 0.08));
}
.plan-card { position: relative; }
.plan-left { display: flex; flex-direction: column; gap: 0.15rem; text-align: start; }
.plan-name { font-weight: 600; }
.plan-trial { color: var(--accent-3); font-size: 0.82rem; font-weight: 500; }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; white-space: nowrap; text-align: end; }
.plan-price small { color: var(--text-dim); font-weight: 400; font-family: var(--font-body); font-size: 0.8rem; }
.plan-price .plan-subline { display: block; white-space: nowrap; margin-top: 0.15rem; }
.plan-price--trial { font-size: 0.98rem; white-space: normal; max-width: 62%; color: var(--accent-3); }
.plan-badge {
  position: absolute;
  top: -10px;
  inset-inline-end: 14px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(78, 92, 246, 0.5);
}
.trial-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  margin-top: 2rem;
}
.trial-cancel { text-align: center; margin-top: 0.9rem; }
.checkout-plans { margin-top: 1.4rem; gap: 1.1rem; }
.btn-cta { padding: 1.05rem 2.6rem; font-size: 1.05rem; }
.checkout-auth { margin-top: 2.2rem; }
.checkout-auth h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.3rem; }
.social-buttons { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.4rem; }
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-social:hover { background: rgba(255, 255, 255, 0.11); border-color: var(--text-dim); transform: translateY(-1px); }
.btn-social svg { flex-shrink: 0; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0 0.2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: lowercase;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.checkout-email { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; }
.checkout-email label { font-weight: 600; font-size: 0.95rem; }
.checkout-email input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: var(--text); font: inherit; font-size: 1rem;
}
.checkout-email input:focus { outline: 2px solid var(--accent-2); border-color: transparent; }
.checkout-email .btn { margin-top: 0.6rem; }
.checkout-note { color: var(--text-dim); font-size: 0.85rem; }
.checkout-status { margin-top: 2rem; color: var(--text-dim); text-align: center; }
.checkout-error { color: #ff7676; }
.checkout-success { margin-top: 2.5rem; text-align: center; }
.checkout-success h2 { font-family: var(--font-display); font-size: 1.8rem; }
.checkout-success p { color: var(--text-dim); margin-top: 0.8rem; }
.checkout-success .hero-ctas { justify-content: center; margin-top: 1.6rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.checkout-stripe-note { text-align: center; margin-top: 2.5rem; }
.checkout-invoice-note { text-align: center; margin-top: 0.5rem; }
.checkout-invoice-note a { color: var(--accent-3); }
.auth-toggle-note { text-align: center; margin-top: 1rem; }
.account-row { text-align: center; margin-top: 0.8rem; }
.signout-link { color: var(--text-dim); text-decoration: underline; font-size: 0.85rem; }
.signout-link:hover { color: var(--text); }
.auth-toggle-note a { color: var(--accent-3); text-decoration: underline; }
.checkout-legal-links { text-align: center; margin-top: 1.6rem; font-size: 0.82rem; }
.checkout-legal-links a { color: var(--text-dim); text-decoration: underline; }
.checkout-legal-links a:hover { color: var(--text); }
.checkout-page .section-title, .checkout-page .section-sub { text-align: start; margin-inline: 0; }

/* ---------- reveal animation (only when JS is available) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- reduced motion / no-JS: everything static & visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track { animation: none; }
  .scrolly { height: auto !important; }
  .scrolly .stage { position: static; height: auto; overflow: visible; padding: 4rem 0; }
  .hero-copy, .hero-phone, .fan-title, .ai-title, .ai-sub, .ai-eyebrow,
  .glow-1, .glow-2, .pitch-lines, .showcase-title { transform: none !important; opacity: 1 !important; }
  .chapter { position: static; opacity: 1; transform: none; margin-bottom: 2rem; }
  .screens .screen { display: none; }
  .screens .screen[data-screen="0"] { display: flex; opacity: 1; }
  .fan-card { position: static; transform: none; margin: 0.5rem 0; }
  .chip-row { transform: none; flex-wrap: wrap; width: auto; }
  .scroll-hint { display: none; }
}
html:not(.js) .scrolly { height: auto; }
html:not(.js) .scrolly .stage { position: static; height: auto; overflow: visible; padding: 4rem 0; }
html:not(.js) .chapter { position: static; opacity: 1; transform: none; margin-bottom: 2rem; }
html:not(.js) .hero-copy { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  h1 { font-size: clamp(1.9rem, 7.4vw, 2.6rem); }
  .hero-sub { font-size: 1rem; }
  /* keep oversized glows/decorations from widening the mobile layout
     viewport (which would shift the whole page sideways) */
  .scrolly { overflow-x: clip; }
  .scrolly .stage { padding-top: 3.5rem; }

  /* --- hero act, mobile edition: copy first, then the phone rises
         into center stage with the mini-graphics as the copy fades --- */
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-copy {
    position: relative;
    z-index: 2;
    transform: translateY(calc(var(--p) * -70px));
    opacity: calc(1 - var(--p) * 2.2);
  }
  .hero-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    margin: 0;
  }
  .hero-phone {
    width: min(210px, 56vw);
    opacity: calc((var(--p) - 0.2) * 2.6);
    transform:
      translateY(calc((1 - var(--p)) * 32vh))
      rotate(calc(9deg - var(--p) * 9deg))
      scale(calc(0.9 + var(--p) * 0.12));
  }
  .float-card { width: clamp(72px, 19vw, 100px); opacity: calc((var(--p) - 0.5) * 3); }
  .float-1 {
    top: 16%; inset-inline-start: 7%;
    transform: rotate(calc(-16deg * var(--p))) translateY(calc((1 - var(--p)) * 10vh));
  }
  .float-2 {
    top: 58%; inset-inline-end: 6%;
    transform: rotate(calc(18deg * var(--p))) translateY(calc((1 - var(--p)) * 14vh));
  }
  .float-3 {
    bottom: 7%; inset-inline-start: 12%;
    transform: rotate(calc(10deg * var(--p))) translateY(calc((1 - var(--p)) * 8vh));
  }

  /* --- showcase act: single column, compact chapters above the phone --- */
  .showcase-inner { grid-template-columns: 1fr; gap: 0.8rem; }
  .showcase-title { font-size: 1.35rem; margin-bottom: 0.8rem; text-align: center; }
  .chapters { min-height: 172px; }
  .chapter { text-align: center; }
  .chapter h3 { font-size: 1.2rem; }
  .chapter p { margin-inline: auto; font-size: 0.93rem; }
  .step-num { font-size: 2.4rem; }
  .chapter-dots { justify-content: center; margin-top: 0.6rem; }
  .showcase-phone { width: min(175px, 42vw); }

  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* --- fan act: smaller deck, spread distance already vw-based --- */
  .fan-cards { width: min(210px, 56vw); }
  .fan-title { font-size: 1.5rem; padding-inline: 4vw; }

  .scroll-hint { bottom: 14px; }
}
@media (max-width: 640px) {
  .ai-grid, .bento, .reviews-grid { grid-template-columns: 1fr; }
  .bento-card.big { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .store-badge img { height: 46px; }
}

/* RTL: no italic (arabic) */
[dir="rtl"] h1, [dir="rtl"] .section-title, [dir="rtl"] .cta-inner h2 { font-style: normal; }
