/* ScrollSavior — site vitrine. Mobile first, no build step. */

:root {
  --bg: #07070c;
  --surface: #12121b;
  --surface-2: #1a1a26;
  --border: #262635;
  --text: #f4f4f8;
  --muted: #9c9cb0;
  --accent: #8b7cff;
  --accent-deep: #5b45f0;
  --success: #3ddc97;
  --danger: #ff6b81;
  --grad: linear-gradient(120deg, #6d55ff 0%, #9a5cff 50%, #c85ce8 100%);
  --radius: 24px;
  --radius-sm: 16px;
  --gutter: 16px;
  --maxw: 1140px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #b3a9ff;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Language blocks (privacy page) ---------- */
html[lang="fr"] [data-lang-block="en"],
html[lang="en"] [data-lang-block="fr"] {
  display: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 12, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.nav-links {
  display: none;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--accent-deep);
  color: #fff;
}

.nav .nav-cta {
  display: none;
}

@media (min-width: 420px) {
  .nav .nav-cta {
    display: inline-flex;
  }
}

@media (min-width: 1100px) {
  .nav-links {
    display: flex;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 255, 0.7);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(154, 92, 255, 0.85);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: #3a3a50;
  background: var(--surface-2);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.88rem;
}

.pill-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px dashed #3a3a50;
  color: var(--muted);
  font-weight: 600;
  background: transparent;
}

.pill-soon svg {
  width: 20px;
  height: 20px;
}

/* ---------- Sections ---------- */
section {
  position: relative;
  padding: 72px 0;
}

@media (min-width: 768px) {
  section {
    padding: 112px 0;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-title {
  font-size: clamp(1.8rem, 5.5vw, 2.9rem);
  font-weight: 800;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

@media (min-width: 768px) {
  .card {
    padding: 32px;
  }
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(139, 124, 255, 0.12);
  border: 1px solid rgba(139, 124, 255, 0.25);
  color: var(--accent);
  margin-bottom: 18px;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(109, 85, 255, 0.35), transparent 70%),
    radial-gradient(30% 40% at 20% 20%, rgba(200, 92, 232, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 120px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
}

.hero-title {
  font-size: clamp(2.6rem, 11vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 20px;
}

.hero-title span {
  display: block;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.6vw, 1.22rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-ctas .btn {
  flex: 1 1 auto;
}

@media (min-width: 480px) {
  .hero-ctas .btn {
    flex: 0 0 auto;
  }
}

.hero-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.app-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Phone mockup ---------- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 8px;
}

.phone {
  position: relative;
  width: min(290px, 78vw);
  aspect-ratio: 9 / 19;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a3c, #12121b 40%, #1c1c2a);
  border: 1px solid #33334a;
  box-shadow:
    0 50px 100px -30px rgba(91, 69, 240, 0.55),
    0 30px 60px -30px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  background: #0b0b12;
  overflow: hidden;
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 5;
}

.ph-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 24px 0;
  height: 40px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.ph-status .bars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ph-status .bars i {
  display: block;
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  opacity: 0.9;
}

.ph-status .bars i:first-child {
  width: 12px;
  opacity: 0.7;
}

.ph-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}

.ph-logo {
  width: 78px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f4f4f8, #9c9cb0);
  opacity: 0.85;
}

.ph-icons {
  display: flex;
  gap: 10px;
}

.ph-icons i {
  width: 18px;
  height: 18px;
  border: 2px solid #f4f4f8;
  border-radius: 6px;
  opacity: 0.8;
}

.ph-icons i:last-child {
  border-radius: 50% 50% 50% 4px;
}

.ph-feed {
  animation: feed-drift 14s var(--ease) infinite;
}

.ph-stories {
  display: flex;
  gap: 10px;
  padding: 6px 14px 12px;
}

.ph-stories i {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: var(--grad);
}

.ph-stories i::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #0b0b12;
  background: #2a2a3c;
}

.ph-stories i:nth-child(2)::after { background: #3b2f5c; }
.ph-stories i:nth-child(3)::after { background: #23394a; }
.ph-stories i:nth-child(4)::after { background: #4a2a3c; }
.ph-stories i:nth-child(5)::after { background: #2f4a3b; }

.ph-post-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 8px;
}

.ph-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c85ce8, #6d55ff);
}

.ph-avatar.alt {
  background: linear-gradient(135deg, #3ddc97, #2a8aff);
}

.ph-name {
  height: 8px;
  width: 80px;
  border-radius: 4px;
  background: #3a3a50;
}

.ph-name.short {
  width: 56px;
}

.ph-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #151522;
}

.ph-video {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(255, 170, 90, 0.75), transparent 60%),
    radial-gradient(50% 60% at 75% 70%, rgba(200, 92, 232, 0.8), transparent 60%),
    linear-gradient(160deg, #2c1f5c, #0f2a3f);
  background-size: 160% 160%;
  animation: video-play 6s ease-in-out infinite alternate;
}

.ph-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.ph-video-play span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
}

.ph-video-play svg {
  width: 18px;
  height: 18px;
  margin-left: 3px;
  color: #fff;
}

.ph-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
}

.ph-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform-origin: left;
  animation: video-progress 7s linear infinite;
}

.ph-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(139, 124, 255, 0.55) 90%, #b3a9ff 100%);
  opacity: 0;
  transform: translateY(-100%);
  animation: scan 7s var(--ease) infinite;
  pointer-events: none;
}

.ph-block {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
  opacity: 0;
  animation: block-in 7s var(--ease) infinite;
}

.ph-block-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 2px;
  color: var(--accent);
}

.ph-block-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4f4f8;
  line-height: 1.1;
}

.ph-block-sub {
  font-size: 11px;
  font-style: italic;
  line-height: 1.35;
  color: #b9b9ca;
  max-width: 200px;
  min-height: 30px;
  margin-bottom: 6px;
}

.ph-learn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 20px -8px rgba(154, 92, 255, 0.8);
}

.ph-learn svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.ph-watch {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c8c8d6;
  font-size: 9px;
  font-weight: 600;
}

.ph-actions {
  display: flex;
  gap: 12px;
  padding: 10px 14px 6px;
}

.ph-actions i {
  width: 18px;
  height: 18px;
  border: 2px solid #f4f4f8;
  border-radius: 50%;
  opacity: 0.75;
}

.ph-actions i:nth-child(2) {
  border-radius: 50% 50% 50% 4px;
}

.ph-actions i:nth-child(3) {
  border-radius: 3px;
  transform: rotate(45deg) scale(0.85);
}

.ph-lines {
  padding: 0 14px 14px;
}

.ph-lines i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #2a2a3c;
  margin-bottom: 6px;
}

.ph-lines i:nth-child(1) { width: 40%; background: #3a3a50; }
.ph-lines i:nth-child(2) { width: 88%; }
.ph-lines i:nth-child(3) { width: 64%; }

.ph-photo {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(40% 40% at 70% 35%, rgba(255, 220, 120, 0.8), transparent 60%),
    linear-gradient(180deg, #2a4a7a 0%, #6b8fbf 55%, #3b5a3b 56%, #20351f 100%);
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(26, 26, 38, 0.88);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.8);
  animation: bob 6s ease-in-out infinite;
  z-index: 3;
}

.float-chip svg {
  width: 18px;
  height: 18px;
}

.float-chip .ok {
  color: var(--success);
}

.float-chip .blocked {
  color: var(--accent);
}

.chip-a { top: 16%; left: 0; }
.chip-b { top: 46%; right: 0; animation-delay: -2s; }
.chip-c { bottom: 12%; left: 2%; animation-delay: -4s; }

@media (max-width: 400px) {
  .float-chip { font-size: 0.72rem; padding: 6px 10px 6px 8px; }
  .chip-a { left: -4px; }
  .chip-b { right: -4px; }
}

@keyframes video-play {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

@keyframes video-progress {
  0% { transform: scaleX(0); }
  30% { transform: scaleX(0.35); }
  100% { transform: scaleX(0.35); }
}

@keyframes scan {
  0%, 22% { opacity: 0; transform: translateY(-100%); }
  24% { opacity: 1; }
  34% { opacity: 1; transform: translateY(250%); }
  36%, 100% { opacity: 0; transform: translateY(250%); }
}

@keyframes block-in {
  0%, 32% { opacity: 0; transform: scale(1.04); }
  38%, 92% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes feed-drift {
  0%, 60% { transform: translateY(0); }
  70%, 90% { transform: translateY(-36px); }
  100% { transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Problem ---------- */
.problem-grid {
  display: grid;
  gap: 16px;
}

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

.problem-card h3 {
  font-size: 1.15rem;
}

.problem-card p {
  color: var(--muted);
  margin: 0;
}

.problem-outro {
  margin: 32px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 600;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.step {
  position: relative;
  overflow: hidden;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  color: var(--muted);
  margin: 0;
}

.step-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- Challenge ---------- */
.challenge-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .challenge-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--success);
  margin-top: 2px;
}

.check-list span {
  color: var(--muted);
}

.check-list strong {
  color: var(--text);
  font-weight: 600;
}

.game-card {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 20px;
  box-shadow: 0 40px 80px -40px rgba(91, 69, 240, 0.6);
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.game-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.game-score {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.game-score.bump {
  color: var(--success);
  border-color: rgba(61, 220, 151, 0.5);
}

.game-score.miss {
  color: var(--danger);
  border-color: rgba(255, 107, 129, 0.5);
}

.game-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 12px;
}

.game-bar {
  height: 6px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 14px;
}

.game-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3ddc97, #7ef0c0);
  border-radius: 6px;
  transition: width 0.3s var(--ease);
}

.game-board:focus {
  outline: none;
}

.game-board {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: #0d0d15;
  border: 1px solid var(--border);
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.tile {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 20%;
  padding: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.38s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.tile::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #22222f;
  border: 1px solid #2e2e40;
  transition: background 0.15s, transform 0.15s;
}

.tile:hover::before {
  background: #2a2a3a;
}

.tile.is-green::before {
  background: linear-gradient(145deg, #4ff0a8, #22b877);
  border-color: #6ff5b8;
  box-shadow: 0 0 22px rgba(61, 220, 151, 0.45);
}

.tile.flash-miss::before {
  background: #5a2030;
  border-color: var(--danger);
  animation: shake 0.3s;
}

.tile.flash-hit::before {
  transform: scale(0.85);
}

.tile:focus-visible {
  outline: none;
}

.tile:focus-visible::before {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: rgba(7, 7, 12, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
  transition: opacity 0.3s;
}

.game-overlay[hidden] {
  display: none;
}

.game-overlay p {
  margin: 0;
  color: var(--muted);
  max-width: 260px;
}

.game-overlay .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(61, 220, 151, 0.15);
  color: var(--success);
  animation: pop 0.5s var(--ease);
}

.game-overlay .success-icon svg {
  width: 32px;
  height: 32px;
}

.game-overlay h3 {
  margin: 0;
  font-size: 1.3rem;
}

.game-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.link-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px 0;
}

.link-btn:hover {
  color: var(--text);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .calc {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
  }
}

.calc-input label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.calc-input .hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.calc-hours {
  font-size: clamp(2.6rem, 10vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

.calc-hours small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  cursor: pointer;
  --pct: 20%;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #6d55ff, #c85ce8) 0 / var(--pct) 100% no-repeat, var(--surface-2);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 8px;
  background: var(--surface-2);
}

input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #6d55ff, #c85ce8);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-deep);
  box-shadow: 0 4px 14px rgba(91, 69, 240, 0.6);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-deep);
  box-shadow: 0 4px 14px rgba(91, 69, 240, 0.6);
}

input[type="range"]:focus-visible {
  outline: none;
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.calc-results {
  display: grid;
  gap: 12px;
}

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

  .calc-results .result.wide {
    grid-column: 1 / -1;
  }
}

.result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.result-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.result-value {
  font-size: clamp(1.8rem, 6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.result-unit {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.result.highlight {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(154, 92, 255, 0.28), transparent 60%),
    var(--surface);
  border-color: rgba(139, 124, 255, 0.4);
}

.life-bar {
  margin-top: 16px;
  height: 10px;
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
}

.life-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 10px;
  transition: width 0.6s var(--ease);
}

.formula {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed #3a3a50;
  color: var(--muted);
  font-size: 0.86rem;
}

.formula code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--text);
  font-size: 0.84rem;
  white-space: normal;
  word-break: break-word;
}

.formula ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.formula li {
  margin-bottom: 4px;
}

/* ---------- Learn instead ---------- */
.learn-spot {
  display: grid;
  gap: 32px;
  align-items: center;
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(109, 85, 255, 0.2), transparent 60%),
    var(--surface);
}

@media (min-width: 900px) {
  .learn-spot {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.learn-spot h3 {
  font-size: 1.35rem;
}

.learn-spot .check-list {
  margin-top: 16px;
}

.read-mock {
  background: #0d0d15;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.read-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
}

.read-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(139, 124, 255, 0.15);
  color: #c9c1ff;
}

.read-pill.ghost {
  background: var(--surface-2);
  color: var(--muted);
}

.read-line {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 2px;
}

.read-tr {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 16px;
}

.read-word {
  position: relative;
  display: inline-block;
  padding: 0 3px;
  border-radius: 6px;
  background: rgba(139, 124, 255, 0.25);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.read-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--accent-deep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  animation: tip 4s ease-in-out infinite;
}

.read-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--accent-deep);
}

.read-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.read-mic {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
}

.read-mic::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(154, 92, 255, 0.5);
  animation: ring 2s ease-out infinite;
}

.read-mic svg {
  width: 20px;
  height: 20px;
}

.read-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--success);
}

.read-ok svg {
  width: 16px;
  height: 16px;
}

.topics-title {
  margin: 48px 0 16px;
  font-size: 1.2rem;
}

.topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  .topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

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

.topic {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.topic:hover {
  border-color: rgba(139, 124, 255, 0.45);
  transform: translateY(-2px);
}

.topic-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(139, 124, 255, 0.12);
  color: var(--accent);
  margin-bottom: 10px;
}

.topic-icon svg {
  width: 20px;
  height: 20px;
}

.topic strong {
  font-size: 0.95rem;
  line-height: 1.3;
}

.topic span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

@keyframes tip {
  0%, 15% { opacity: 0; transform: translate(-50%, 4px); }
  25%, 85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 4px); }
}

@keyframes ring {
  from { transform: scale(0.9); opacity: 1; }
  to { transform: scale(1.35); opacity: 0; }
}

/* ---------- Support ---------- */
.support {
  padding-top: 0;
}

.support .cta-band .icon-badge {
  margin-bottom: 12px;
}

.support-quote {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  color: var(--text) !important;
  font-weight: 500;
}

.support .cta-band p:not(.support-quote) {
  margin-bottom: 24px;
}

.support .cta-band h2 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
}

.footer-credits {
  margin: 32px 0 0;
  font-size: 0.82rem;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 16px;
}

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

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

.feature {
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.feature:hover {
  border-color: #3a3a50;
  transform: translateY(-3px);
}

.feature h3 {
  font-size: 1.1rem;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
}

.feature.span-all {
  grid-column: 1 / -1;
}

.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.lang-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Comparison ---------- */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.86rem;
}

.compare th,
.compare td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  background: var(--surface-2);
  font-size: 0.95rem;
}

.compare thead th:first-child {
  width: 30%;
}

.compare tbody th {
  font-weight: 600;
  color: var(--text);
}

.compare td {
  color: var(--muted);
}

.compare .col-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare .col-head svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.mark svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.mark.yes svg { color: var(--success); }
.mark.part svg { color: #ffc861; }
.mark.no svg { color: var(--danger); }

.mark + span {
  display: block;
}

@media (min-width: 768px) {
  .compare {
    font-size: 0.95rem;
  }

  .compare th,
  .compare td {
    padding: 18px 24px;
  }

  .compare thead th:first-child {
    width: 28%;
  }
}

.compare-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.compare-note svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 3px;
}

/* ---------- Privacy ---------- */
.privacy-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(109, 85, 255, 0.22), transparent 60%),
    var(--surface);
}

.privacy-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .privacy-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
  }
}

.privacy-items {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 560px) {
  .privacy-items {
    grid-template-columns: 1fr 1fr;
  }
}

.privacy-items li {
  background: rgba(7, 7, 12, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.privacy-items svg {
  width: 22px;
  height: 22px;
  color: var(--success);
  margin-bottom: 10px;
}

.privacy-items strong {
  display: block;
  margin-bottom: 4px;
}

.privacy-items span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.2s, background 0.2s;
}

.faq details[open] {
  border-color: rgba(139, 124, 255, 0.4);
  background: var(--surface-2);
}

.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 20px;
}

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

.faq summary .chev {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease);
}

.faq summary .chev svg {
  width: 14px;
  height: 14px;
}

.faq details[open] summary .chev {
  transform: rotate(180deg);
}

.faq .answer {
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

.faq .answer strong {
  color: var(--text);
}

/* ---------- Download ---------- */
.download {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .download {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.dl-card {
  display: flex;
  flex-direction: column;
}

.dl-card h3 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dl-card h3 svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.dl-card > p {
  color: var(--muted);
}

.dl-card.android {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(154, 92, 255, 0.28), transparent 60%),
    var(--surface);
  border-color: rgba(139, 124, 255, 0.35);
}

.dl-steps {
  list-style: none;
  counter-reset: dl;
  margin: 8px 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.dl-steps li {
  counter-increment: dl;
  position: relative;
  padding-left: 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.dl-steps li::before {
  content: counter(dl);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.dl-steps strong {
  color: var(--text);
  font-weight: 600;
}

.dl-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.dl-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 56px 24px;
  border-radius: 32px;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(154, 92, 255, 0.35), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}

.cta-band h2 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-grid h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

/* ---------- Privacy page ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 40px;
}

.legal p,
.legal li {
  color: #c8c8d6;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--text);
}

.legal .summary-box {
  background: var(--surface);
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.legal .summary-box p:last-child {
  margin-bottom: 0;
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  /* Show the final "blocked" state of the hero mockup, statically. */
  .ph-block {
    animation: none !important;
    opacity: 1;
  }

  .read-tip,
  .read-mic::before,
  .ph-scan,
  .ph-feed,
  .float-chip,
  .ph-video,
  .ph-progress::after {
    animation: none !important;
  }

  .ph-progress::after {
    transform: scaleX(0.35);
  }
}

/* ---------- Utilities (replace inline style="" attributes, so the CSP can forbid inline styles) ---------- */
.svg-sprite { position: absolute; }
.dot-instagram { background: #e1306c; }
.dot-tiktok { background: #25f4ee; }
.dot-facebook { background: #1877f2; }
.dot-youtube { background: #ff0033; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.delay-06 { --d: 0.06s; }
.delay-08 { --d: 0.08s; }
.delay-10 { --d: 0.1s; }
.delay-12 { --d: 0.12s; }
.delay-15 { --d: 0.15s; }
.delay-16 { --d: 0.16s; }
