/* ============================================================
   What Was That? — Landing Page Stylesheet v3
   Design system: docs/design/design-system.md
   GSAP + ScrollTrigger for scroll animations
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --bg:         #0F0E0B;
  --surface:    #1A1915;
  --surfaceVar: #252420;
  --accent:     #D4A853;
  --accentDim:  #8C6E35;
  --text:       #F0E8D8;
  --textMuted:  #8A8070;
  --border:     #2E2C28;
}

/* ── Base ────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll from absolutely-positioned bg layers */
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Shared gold colour class */
.gold { color: var(--accent); }

/* ── Reduced-motion global override ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 20px 64px;
  background: linear-gradient(to bottom, rgba(15,14,11,0.92) 0%, rgba(15,14,11,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46,44,40,0.4);
  transition: background 300ms ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
}

/* Wordmark with 32px seal icon */
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark-seal {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(212,168,83,0.4), 0 0 10px rgba(212,168,83,0.22);
  display: block;
  flex-shrink: 0;
}

.wordmark-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--text);
}

.wordmark-text .q { color: var(--accent); }

.wordmark:hover .wordmark-text,
.wordmark:focus .wordmark-text { color: var(--accent); }

.header-nav {
  display: none;
  gap: 36px;
  align-items: center;
}

.header-nav a {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--textMuted);
  text-decoration: none;
  transition: color 200ms;
}

.header-nav a:hover { color: var(--text); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-option {
  color: var(--textMuted);
  text-decoration: none;
  min-width: 48px; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 6px;
  cursor: pointer;
  transition: color 200ms;
}

.lang-option:hover, .lang-option:focus { color: var(--accent); }
.lang-active { color: var(--accent); }
.lang-sep { color: var(--border); user-select: none; }

[dir="rtl"] .header-inner { flex-direction: row-reverse; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Subtle tint layer underneath the photo — no solid bg, sits below .hero-art */
.hero-art-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 500px at 72% 44%, rgba(140,110,53,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 28% 60%, rgba(140,110,53,0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Background art (Victorian detective-study photo) */
.hero-art {
  position: absolute;
  inset: -60px;
  background-image: url('/assets/img/hero-v1.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  opacity: 0.9;
  /* Radial mask: photo strongest at bottom-right, fades to transparent behind the left headline column */
  -webkit-mask-image: radial-gradient(ellipse 95% 110% at 78% 72%, #000 0%, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.15) 78%, transparent 95%);
          mask-image: radial-gradient(ellipse 95% 110% at 78% 72%, #000 0%, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.15) 78%, transparent 95%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero-art {
    opacity: 0.55;
    -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 78%, #000 0%, rgba(0,0,0,0.6) 50%, transparent 90%);
            mask-image: radial-gradient(ellipse 120% 90% at 50% 78%, #000 0%, rgba(0,0,0,0.6) 50%, transparent 90%);
  }
}

/* Fine horizontal texture */
.hero-texture {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(212,168,83,0.012) 3px, rgba(212,168,83,0.012) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Darken the LEFT column so headline stays readable; keep the right (photo) side clear */
.hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgba(15,14,11,0.88) 0%,
      rgba(15,14,11,0.55) 28%,
      rgba(15,14,11,0.15) 55%,
      rgba(15,14,11,0.00) 75%),
    linear-gradient(to bottom,
      rgba(15,14,11,0.35) 0%,
      transparent 20%,
      transparent 75%,
      rgba(15,14,11,0.92) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 110% at 55% 50%, transparent 55%, rgba(15,14,11,0.45) 100%);
  z-index: 4;
  pointer-events: none;
}

.hero-grain {
  position: absolute; inset: 0;
  z-index: 3; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* Corner ornaments */
.hero-corners { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.corner {
  position: absolute; width: 32px; height: 32px;
}
.corner-tl { top: 32px; left: 64px; }
.corner-tr { top: 32px; right: 64px; transform: scaleX(-1); }
.corner-bl { bottom: 32px; left: 64px; transform: scaleY(-1); }
.corner-br { bottom: 32px; right: 64px; transform: scale(-1); }

/* Two-column hero content */
.hero-content {
  position: relative; z-index: 10;
  width: 100%; max-width: 1180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 0 24px 48px;
}

.hero-left {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 0;
  width: 100%; max-width: 640px;
}

.hero-eyebrow {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent); opacity: 0.9;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: nowrap; white-space: nowrap;
}

.hero-eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 1px;
  background: var(--accent); opacity: 0.6;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(56px, 8vw, 88px);
  line-height: 1.0; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 0;
}

.hero-title-gold { color: var(--accent); }

.gold-rule {
  width: 160px; height: 1px;
  margin: 24px 0;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 60%, transparent);
  opacity: 0.7;
}

.hero-tagline {
  font-family: 'Lato', sans-serif;
  font-weight: 300; font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65; letter-spacing: 0.02em;
  color: var(--text); opacity: 0.72;
  margin-bottom: 44px; max-width: 460px;
}

/* Store badges row */
.cta-group { display: flex; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 16px 18px; }

.badge-google {
  display: flex; align-items: center; gap: 12px;
  background: var(--text); color: var(--bg);
  border-radius: 10px; padding: 13px 24px;
  text-decoration: none; position: relative; overflow: hidden;
  min-height: 56px;
  transition: opacity 200ms;
}

.badge-google:hover { opacity: 0.9; }

.badge-google::after {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer { 0% { left: -100%; } 100% { left: 200%; } }
@media (prefers-reduced-motion: reduce) { .badge-google::after { animation: none; } }

.badge-icon { width: 30px; height: 30px; flex-shrink: 0; }

.badge-text { display: flex; flex-direction: column; gap: 1px; }

.badge-text-label {
  font-family: 'Lato', sans-serif; font-size: 10px;
  font-weight: 400; letter-spacing: 0.04em;
  color: rgba(15,14,11,0.65);
}

.badge-text-store {
  font-family: 'Lato', sans-serif; font-size: 17px;
  font-weight: 700; letter-spacing: 0.01em;
  color: var(--bg);
}

/* Official Google Play badge (PNG) */
.badge-store-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 200ms, transform 200ms;
  height: 56px;
}
.badge-store-link:hover,
.badge-store-link:focus { opacity: 0.88; }

.badge-img--gp,
.badge-img--apple {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* iOS Coming Soon disabled treatment */
.badge-disabled {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: not-allowed;
  opacity: 0.62; filter: grayscale(0.3);
}

.badge-disabled-label {
  display: block; text-align: center;
  font-family: 'Lato', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--textMuted);
  margin-top: 4px;
}

/* Active players counter */
.active-players {
  font-family: 'Lato', sans-serif; font-size: 13px;
  color: var(--textMuted); margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.85;
}

.active-players::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(212,168,83,0.55);
  animation: live-pulse 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .active-players::before { animation: none; }
}

.active-players-count {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 18px; color: var(--accent);
}

/* ── Right column: clue teaser widget ──────────────────────── */
.clue-widget {
  background: rgba(26,25,21,0.88);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  width: 100%; max-width: 480px;
}

.clue-widget::before {
  content: ''; position: absolute;
  top: -1px; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.cw-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}

.cw-label {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 8px;
}

.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.cw-date {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 10px; letter-spacing: 0.08em; color: var(--textMuted);
}

.cw-rule {
  width: 100%; height: 1px;
  background: linear-gradient(to right, var(--border), rgba(212,168,83,0.25), var(--border));
  margin-bottom: 20px;
}

.cw-clue-number {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 10px; opacity: 0.85;
}

.cw-clue-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(15px, 2vw, 19px); line-height: 1.6;
  color: var(--text); font-style: italic; margin-bottom: 24px;
}

/* Loading skeleton */
.clue-skeleton {
  height: 22px; border-radius: 4px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surfaceVar) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .clue-skeleton { animation: none; background: var(--surfaceVar); } }

/* Progress dots */
.cw-dots { display: flex; gap: 8px; margin-bottom: 24px; align-items: center; }

.cw-dot { width: 10px; height: 10px; border-radius: 50%; }
.cw-dot-used   { background: var(--accent); }
.cw-dot-empty  { background: var(--surfaceVar); border: 1px solid var(--border); }

.cw-dots-label {
  font-family: 'Lato', sans-serif; font-size: 11px;
  color: var(--textMuted); margin-inline-start: 6px;
}

.cw-fallback {
  font-family: 'Lato', sans-serif; font-size: 14px;
  color: var(--textMuted); font-style: italic;
  text-align: center; padding: 8px 0; margin-bottom: 16px;
}

/* Locked clue previews */
.cw-locked { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.cw-locked-row {
  background: var(--surfaceVar); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}

.cw-locked-lines {
  display: flex; flex-direction: column; gap: 6px;
  flex: 1; margin-inline-end: 16px;
}

.cw-locked-line {
  height: 9px; border-radius: 4px;
  background: rgba(212,168,83,0.08); filter: blur(2px);
}

.cw-lock-icon { font-size: 14px; color: var(--accentDim); opacity: 0.7; flex-shrink: 0; }

/* CTA button */
.cw-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--bg);
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 8px; padding: 14px 24px;
  text-decoration: none; width: 100%;
  min-height: 48px; transition: opacity 200ms;
}

.cw-cta:hover { opacity: 0.88; }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.88; pointer-events: none;
  animation: scroll-hint-bob 2.4s ease-in-out infinite;
}
@keyframes scroll-hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 4px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } }

.scroll-hint-text {
  font-family: 'Courier Prime', monospace; font-size: 11px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent);
  text-shadow: 0 0 8px rgba(15,14,11,0.8);
}

.scroll-arrow { width: 18px; height: 18px; position: relative; }
.scroll-arrow::before, .scroll-arrow::after {
  content: ''; position: absolute; left: 50%;
  width: 8px; height: 1px; background: var(--accent);
}
.scroll-arrow::before { transform: translateX(-100%) rotate(45deg); top: 6px; }
.scroll-arrow::after  { transform: rotate(-45deg); top: 6px; }

/* ============================================================
   SHARED SECTION ELEMENTS
   ============================================================ */
.section-eyebrow {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent);
  opacity: 0.85; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}

.section-eyebrow::before, .section-eyebrow::after {
  content: ''; display: block; width: 28px; height: 1px;
  background: var(--accent); opacity: 0.5;
}

.section-title-lg {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.1;
  color: var(--text); text-align: center; margin-bottom: 12px;
}

.section-subtitle {
  font-family: 'Lato', sans-serif; font-weight: 300;
  font-size: clamp(14px, 2vw, 17px); line-height: 1.7;
  color: var(--textMuted); text-align: center;
  max-width: 520px; margin-bottom: 64px;
}

/* Section border top */
.section-border-top {
  position: absolute; top: 0; left: 64px; right: 64px; height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.section-hiw {
  padding: 100px 24px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
}

.section-hiw::before {
  content: ''; position: absolute; top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(212,168,83,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-hiw::after {
  content: ''; position: absolute; top: 0; left: 64px; right: 64px; height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px; width: 100%; max-width: 1120px;
}

.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 36px 44px;
  display: flex; flex-direction: column; gap: 0;
  position: relative; overflow: hidden;
}

.step-card::before {
  content: ''; position: absolute;
  top: -1px; left: 30%; right: 30%; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.5; transition: opacity 300ms;
}
.step-card:hover::before { opacity: 1.0; }

.step-number {
  font-family: 'Courier Prime', monospace; font-size: 80px;
  color: var(--accent); opacity: 0.09; line-height: 1;
  position: absolute; top: 20px; right: 28px;
  pointer-events: none; user-select: none;
}

.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(212,168,83,0.45);
  font-family: 'Courier Prime', monospace; font-size: 14px;
  color: var(--accent); margin-bottom: 28px; flex-shrink: 0;
}

.step-icon-wrap { width: 56px; height: 56px; margin-bottom: 24px; }
.step-icon { width: 56px; height: 56px; object-fit: contain; display: block; }

.step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: 24px; line-height: 1.25;
  color: var(--text); margin-bottom: 14px;
}

.step-body {
  font-family: 'Lato', sans-serif; font-size: 15px; line-height: 1.75;
  color: var(--textMuted); flex: 1;
}

.step-body strong { color: var(--text); font-weight: 700; }

.mini-clue {
  background: var(--surfaceVar); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-top: 24px;
}

.mini-clue-label {
  font-family: 'Courier Prime', monospace; font-size: 10px;
  letter-spacing: 0.2em; color: var(--accent); opacity: 0.8;
  text-transform: uppercase; margin-bottom: 8px;
}

.mini-clue-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-size: 14px; line-height: 1.5; color: var(--text);
}

.dots-visual { display: flex; gap: 8px; margin-top: 24px; align-items: center; }
.d-dot { width: 12px; height: 12px; border-radius: 50%; }
.d-dot-on  { background: var(--accent); }
.d-dot-off { background: var(--surfaceVar); border: 1px solid var(--border); }
.dots-score {
  font-family: 'Courier Prime', monospace; font-size: 13px;
  color: var(--accent); margin-inline-start: 8px; letter-spacing: 0.05em;
}

.score-mosaic { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.score-block {
  width: 32px; height: 32px; border-radius: 4px;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.score-label-wrap { display: flex; flex-direction: column; justify-content: center; margin-inline-start: 8px; }
.score-label-rank {
  font-family: 'Courier Prime', monospace; font-size: 11px;
  color: var(--accent); letter-spacing: 0.08em;
}
.score-label-sub {
  font-family: 'Lato', sans-serif; font-size: 11px;
  color: var(--textMuted); margin-top: 2px;
}

.section-flourish {
  margin-top: 64px; display: flex; align-items: center; gap: 20px; opacity: 0.35;
}
.flourish-line {
  width: 80px; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent));
}
.flourish-line-r { background: linear-gradient(to left, transparent, var(--accent)); }
.flourish-mark {
  font-family: 'Courier Prime', monospace; font-size: 12px;
  letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase;
}

/* ============================================================
   CLUE SEQUENCE
   ============================================================ */
.section-clue-sequence {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  border-top: 1px solid var(--border);
}

.clue-section-head {
  text-align: center;
  margin-bottom: 48px;
}

.clue-section-head .section-eyebrow {
  margin-bottom: 14px;
  justify-content: center;
}

.clue-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 18px;
}

.clue-section-sub {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--textMuted);
  max-width: 560px;
  margin: 0 auto;
}

.clue-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clue-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 300ms ease, transform 300ms ease;
}

.clue-row:hover {
  border-color: rgba(212,168,83,0.35);
}

.clue-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,83,0.35);
  background: rgba(212,168,83,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier Prime', monospace;
  font-size: 18px;
  color: var(--accent);
}

.clue-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clue-dots {
  display: flex;
  gap: 6px;
}

.clue-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(240,232,216,0.15);
}

.clue-dots .dot.on {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(212,168,83,0.35);
}

.clue-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.clue-chip {
  flex-shrink: 0;
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212,168,83,0.10);
  border: 1px solid rgba(212,168,83,0.32);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}

.clue-section-caption {
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--textMuted);
  margin: 0;
}

/* ============================================================
   SCREENSHOTS
   ============================================================ */
.section-screenshots {
  padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
}

.section-glow {
  position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(212,168,83,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Device gallery */
.gallery {
  display: flex; align-items: flex-end; gap: 0;
  perspective: 1800px; position: relative;
  flex-wrap: wrap; justify-content: center;
}

.device-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  cursor: pointer;
  transition: transform 300ms ease;
}

.device {
  width: 220px; height: 440px;
  border-radius: 32px; border: 2px solid rgba(212,168,83,0.28);
  background: var(--surface); overflow: hidden; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,168,83,0.10), inset 0 1px 0 rgba(212,168,83,0.15);
}

.device-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 5px; border-radius: 3px;
  background: rgba(15,14,11,0.8); z-index: 10;
}

.device-screen { width: 100%; height: 100%; background: var(--bg); position: relative; overflow: hidden; }

.device-shot {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

.device::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to bottom, rgba(212,168,83,0.04), transparent);
  pointer-events: none; z-index: 20;
  border-radius: 30px 30px 0 0;
}

.device-caption {
  font-family: 'Courier Prime', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--textMuted); text-align: center; opacity: 0.7;
}

.device-wrap:nth-child(2) .device-caption { color: var(--accent); opacity: 1.0; }

/* Device screen content */
.screen-home { padding: 28px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.sh-header { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sh-logo { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 10px; color: var(--text); display: flex; align-items: center; gap: 4px; }
.sh-logo-icon { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(212,168,83,0.4); display: flex; align-items: center; justify-content: center; font-size: 7px; }
.sh-streak { font-family: 'Courier Prime', monospace; font-size: 9px; color: var(--accent); background: rgba(212,168,83,0.1); border: 1px solid rgba(212,168,83,0.25); border-radius: 3px; padding: 2px 6px; }
.sh-date { font-family: 'Courier Prime', monospace; font-size: 8px; color: var(--textMuted); letter-spacing: 0.1em; text-align: center; margin-bottom: 12px; }
.sh-clue-card { width: 100%; background: var(--surface); border: 1px solid rgba(212,168,83,0.2); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.sh-clue-label { font-family: 'Courier Prime', monospace; font-size: 7px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 6px; text-transform: uppercase; }
.sh-clue-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 9px; line-height: 1.6; color: var(--text); }
.sh-dots { display: flex; gap: 4px; margin-top: 8px; }
.sh-dot { width: 7px; height: 7px; border-radius: 50%; }
.sh-dot-on  { background: var(--accent); }
.sh-dot-off { background: var(--surfaceVar); border: 1px solid var(--border); }
.sh-input { width: 100%; background: var(--surfaceVar); border: 1px solid var(--border); border-radius: 7px; height: 28px; padding: 0 8px; display: flex; align-items: center; }
.sh-input-placeholder { font-family: 'Lato', sans-serif; font-size: 9px; color: var(--textMuted); }

.screen-game { padding: 28px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.sg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sg-back { font-size: 14px; color: var(--textMuted); }
.sg-title { font-family: 'Playfair Display', serif; font-style: italic; font-size: 11px; color: var(--text); }
.sg-progress { display: flex; gap: 4px; align-items: center; }
.sg-progress-label { font-family: 'Lato', sans-serif; font-size: 8px; color: var(--textMuted); margin-inline-start: 4px; }
.sg-dot { width: 7px; height: 7px; border-radius: 50%; }
.sg-dot-on  { background: var(--accent); }
.sg-dot-off { background: var(--surfaceVar); border: 1px solid var(--border); }
.sg-clue { background: var(--surface); border: 1px solid rgba(212,168,83,0.25); border-radius: 8px; padding: 10px 12px; }
.sg-clue-dim { opacity: 0.55; border-color: var(--border); }
.sg-clue-num { font-family: 'Courier Prime', monospace; font-size: 7px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 5px; text-transform: uppercase; }
.sg-clue-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 9px; line-height: 1.5; color: var(--text); }
.sg-locked { background: var(--surfaceVar); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; }
.sg-lock { font-size: 9px; color: var(--textMuted); }
.sg-locked-label { font-family: 'Lato', sans-serif; font-size: 8px; color: var(--textMuted); flex: 1; }
.sg-watch-btn { font-family: 'Lato', sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg); background: var(--accent); border-radius: 3px; padding: 4px 8px; }
.sg-answer { margin-top: auto; width: 100%; background: var(--surfaceVar); border: 1.5px solid var(--accent); border-radius: 7px; height: 30px; display: flex; align-items: center; padding: 0 8px; gap: 6px; }
.sg-answer-text { font-family: 'Playfair Display', serif; font-size: 11px; color: var(--text); letter-spacing: 0.1em; }
.sg-cursor { width: 1px; height: 12px; background: var(--accent); animation: blink 1.2s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sg-cursor { animation: none; } }

.screen-result { padding: 32px 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.sr-score-label { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 24px; color: var(--accent); margin-bottom: 2px; }
.sr-subtitle { font-family: 'Lato', sans-serif; font-size: 9px; color: var(--textMuted); letter-spacing: 0.08em; margin-bottom: 12px; }
.sr-answer { font-family: 'Courier Prime', monospace; font-size: 12px; letter-spacing: 0.28em; color: var(--text); background: rgba(212,168,83,0.07); border: 1px solid rgba(212,168,83,0.2); border-radius: 7px; padding: 8px 16px; margin-bottom: 12px; }
.sr-mosaic { display: flex; gap: 4px; margin-bottom: 12px; }
.sr-mosaic span { font-size: 14px; }
.sr-stats { display: flex; gap: 8px; margin-bottom: 12px; width: 100%; }
.sr-stat { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 7px; text-align: center; }
.sr-stat-val { font-family: 'Courier Prime', monospace; font-size: 16px; color: var(--text); }
.sr-stat-label { font-family: 'Lato', sans-serif; font-size: 7px; color: var(--textMuted); letter-spacing: 0.08em; text-transform: uppercase; }
.sr-share-btn { width: 100%; background: var(--accent); color: var(--bg); border-radius: 7px; padding: 9px; font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }

.gallery-glow { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); width: 320px; height: 80px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(212,168,83,0.18) 0%, transparent 70%); pointer-events: none; }

/* Real app screenshot gallery (3-phone composition) */
.gallery--shots {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  flex-wrap: nowrap;
  perspective: 1600px;
  position: relative;
  max-width: 1100px;
  width: 100%;
}
.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 300ms ease;
}
.phone-wrap--left   { transform: rotate(-4deg) scale(0.85); transform-origin: bottom right; }
.phone-wrap--center { transform: none; z-index: 5; }
.phone-wrap--right  { transform: rotate(4deg) scale(0.85); transform-origin: bottom left; }

.phone-frame {
  border-radius: 32px;
  background: #000;
  padding: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}
.phone-shot {
  display: block;
  width: 240px;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  background: #0f0e0b;
}
.phone-caption {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  opacity: 0.85;
}
.phone-wrap--center .phone-caption { opacity: 1; }

/* Mobile: horizontal snap-scroll carousel */
@media (max-width: 860px) {
  .gallery--shots {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 8px 16px 20px;
    justify-content: flex-start;
    perspective: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .gallery--shots::-webkit-scrollbar { display: none; }
  .phone-wrap,
  .phone-wrap--left,
  .phone-wrap--center,
  .phone-wrap--right {
    transform: none !important;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
  .phone-shot { width: 220px; height: 476px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.section-faq {
  padding: 100px 24px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
}

.bg-mark {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
  font-size: clamp(200px, 40vw, 600px); color: var(--accent);
  opacity: 0.025; pointer-events: none; user-select: none; line-height: 1;
}

.faq-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; width: 100%; max-width: 1100px;
}

.faq-item {
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: var(--surface);
  transition: border-color 250ms;
}
.faq-item:hover { border-color: rgba(212,168,83,0.3); }
.faq-item.open { border-color: rgba(212,168,83,0.35); }

.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; cursor: pointer; gap: 16px;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

.faq-question-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: clamp(14px, 2vw, 17px); line-height: 1.4;
  color: var(--text); flex: 1;
}

.faq-chevron {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 250ms, transform 250ms, background 250ms;
}
.faq-item.open .faq-chevron {
  border-color: var(--accent); background: rgba(212,168,83,0.1);
  transform: rotate(180deg);
}

.chev-svg { width: 12px; height: 12px; stroke: var(--accent); stroke-width: 2; fill: none; }
.faq-item:not(.open) .chev-svg { stroke: var(--textMuted); }

.faq-answer { max-height: 0; overflow: hidden; }
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner { padding: 0 28px 24px; border-top: 1px solid var(--border); padding-top: 18px; }

.faq-answer-text {
  font-family: 'Lato', sans-serif; font-weight: 300;
  font-size: 15px; line-height: 1.8; color: var(--textMuted);
}
.faq-answer-text strong { color: var(--text); font-weight: 700; }
.faq-answer-text .gold { color: var(--accent); }

.faq-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,168,83,0.08); border: 1px solid rgba(212,168,83,0.2);
  border-radius: 20px; padding: 4px 12px;
  font-family: 'Courier Prime', monospace; font-size: 11px;
  letter-spacing: 0.1em; color: var(--accent); margin-top: 12px;
}

/* ============================================================
   PRE-FOOTER CTA
   ============================================================ */
.prefooter {
  width: 100%; padding: 100px 24px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; border-top: 1px solid var(--border);
  overflow: hidden;
}

.prefooter::before {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(212,168,83,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-seal-wrap { position: relative; margin-bottom: 36px; }

.cta-seal {
  width: 80px; height: 80px; border-radius: 50%; display: block; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(212,168,83,0.30), 0 0 0 10px rgba(212,168,83,0.06), 0 0 30px rgba(212,168,83,0.18);
}

.cta-seal-wrap::before {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(212,168,83,0.18);
  animation: ring-pulse 3.5s ease-in-out infinite;
}
.cta-seal-wrap::after {
  content: ''; position: absolute; inset: -24px; border-radius: 50%;
  border: 1px solid rgba(212,168,83,0.08);
  animation: ring-pulse 3.5s ease-in-out infinite 1.2s;
}

@keyframes ring-pulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .cta-seal-wrap::before, .cta-seal-wrap::after { animation: none; } }

.cta-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.1;
  color: var(--text); text-align: center; margin-bottom: 16px;
}

.cta-tagline {
  font-family: 'Lato', sans-serif; font-weight: 300;
  font-size: clamp(14px, 2vw, 17px); line-height: 1.7;
  color: var(--textMuted); text-align: center; max-width: 500px; margin-bottom: 44px;
}

.cta-badges { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; justify-content: center; }

.cta-badge-play {
  display: flex; align-items: center; gap: 12px;
  background: var(--text); color: var(--bg);
  border-radius: 10px; padding: 13px 24px;
  text-decoration: none; position: relative; overflow: hidden;
  min-height: 56px; transition: opacity 200ms;
}
.cta-badge-play:hover { opacity: 0.9; }
.cta-badge-play::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
  animation: shimmer 4s linear infinite;
}

.cbp-icon { width: 28px; height: 28px; flex-shrink: 0; }
.cbp-text { display: flex; flex-direction: column; gap: 1px; }
.cbp-label { font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 400; color: rgba(15,14,11,0.6); letter-spacing: 0.04em; }
.cbp-store { font-family: 'Lato', sans-serif; font-size: 17px; font-weight: 700; color: var(--bg); }

.cta-badge-ios { opacity: 0.45; filter: grayscale(0.3); cursor: not-allowed; }
.cta-badge-ios-inner {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 24px; display: flex; align-items: center; gap: 12px;
}
.cta-badge-ios-label {
  display: block; text-align: center;
  font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--textMuted); margin-top: 5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-rule {
  width: calc(100% - 160px); height: 1px; margin: 0 auto;
  background: linear-gradient(to right, transparent, var(--border) 15%, var(--border) 85%, transparent);
}

.site-footer {
  background: var(--bg); padding: 48px 24px 56px;
  display: flex; flex-direction: column; gap: 40px;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }

.footer-wordmark {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}

.footer-seal {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(212,168,83,0.3); flex-shrink: 0;
}

.footer-wordmark-text {
  font-family: 'Playfair Display', Georgia, serif; font-style: italic;
  font-weight: 700; font-size: 18px; color: var(--text);
}
.footer-wordmark-text .q { color: var(--accent); }
.footer-wordmark:hover .footer-wordmark-text { color: var(--accent); }

.footer-tagline { font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--textMuted); max-width: 280px; }
.footer-legal { font-family: 'Lato', sans-serif; font-size: 11px; color: var(--textMuted); opacity: 0.5; }

.footer-center { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.footer-center-seal {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(212,168,83,0.25), 0 0 16px rgba(212,168,83,0.12);
}

.footer-center-rule { width: 100%; display: flex; align-items: center; gap: 12px; }
.fcr-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(212,168,83,0.3)); }
.fcr-line-r { background: linear-gradient(to left, transparent, rgba(212,168,83,0.3)); }

.footer-social { display: flex; gap: 14px; align-items: center; }

.social-link {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: border-color 200ms;
  min-width: 44px; min-height: 44px;
}
.social-link:hover, .social-link:focus { border-color: rgba(212,168,83,0.5); }
.social-link svg { width: 16px; height: 16px; display: block; }

.footer-copyright {
  font-family: 'Courier Prime', monospace; font-size: 10px;
  letter-spacing: 0.1em; color: var(--textMuted); opacity: 0.5; text-align: center;
}

.footer-links { display: flex; flex-direction: column; gap: 24px; }

.footer-nav-group { display: flex; flex-direction: column; gap: 10px; }

.footer-nav-label {
  font-family: 'Courier Prime', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accentDim); margin-bottom: 4px;
}

.footer-link {
  font-family: 'Lato', sans-serif; font-size: 13px;
  color: var(--textMuted); text-decoration: none;
  transition: color 200ms; min-height: 44px; display: inline-flex; align-items: center;
}
.footer-link:hover, .footer-link:focus { color: var(--text); }

/* ============================================================
   RTL (Hebrew) overrides
   ============================================================ */
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
/* Wordmark: seal sits to the right of the text in RTL, visually mirroring LTR */
[dir="rtl"] .wordmark { flex-direction: row-reverse; }
[dir="rtl"] .footer-wordmark { flex-direction: row-reverse; }
[dir="rtl"] .wordmark-text,
[dir="rtl"] .footer-wordmark-text { direction: rtl; unicode-bidi: isolate; }
[dir="rtl"] .hero-content { direction: rtl; }
[dir="rtl"] .hero-left { align-items: flex-end; text-align: right; }
[dir="rtl"] .hero-title { text-align: right; direction: rtl; unicode-bidi: isolate; }
[dir="rtl"] .hero-tagline { text-align: right; }
[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; }
[dir="rtl"] .gold-rule { background: linear-gradient(to right, var(--accent) 0%, var(--accent) 60%, transparent); }
[dir="rtl"] .section-eyebrow { flex-direction: row-reverse; }
[dir="rtl"] .cw-header { flex-direction: row-reverse; }
[dir="rtl"] .clue-widget-text { text-align: right; }
[dir="rtl"] .faq-question { flex-direction: row-reverse; }
[dir="rtl"] .footer-brand { align-items: flex-end; }
[dir="rtl"] .footer-links { align-items: flex-start; }
[dir="rtl"] .footer-nav-group { align-items: flex-start; }
[dir="rtl"] .bg-mark { right: auto; left: 5%; }
[dir="rtl"] .gallery { flex-direction: row-reverse; }
@keyframes shimmer-rtl { 0% { right: -100%; left: auto; } 100% { right: 200%; left: auto; } }
[dir="rtl"] .badge-google::after,
[dir="rtl"] .cta-badge-play::after { animation-name: shimmer-rtl; }

/* ============================================================
   RESPONSIVE — Tablet 768px+
   ============================================================ */
@media (min-width: 768px) {
  .header-nav { display: flex; }

  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  /* Give left column room to breathe and prevent eyebrow from wrapping */
  .hero-left { max-width: none; flex: 1 1 0; min-width: 0; }

  /* Clue widget: constrain width on tablet so it doesn't shrink too much */
  .clue-widget { flex: 0 0 min(420px, 48%); }

  .cta-group { flex-direction: row; align-items: center; }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery { flex-wrap: nowrap; }

  .device { width: 240px; height: 480px; }

  .device-wrap:nth-child(1) { transform: rotateY(12deg) rotateX(3deg) translateX(30px) scale(0.85); transform-origin: right center; }
  .device-wrap:nth-child(2) { transform: rotateY(0deg) translateY(-12px); z-index: 10; }
  .device-wrap:nth-child(3) { transform: rotateY(-12deg) rotateX(3deg) translateX(-30px) scale(0.85); transform-origin: left center; }

  .faq-grid { grid-template-columns: 1fr 1fr; }

  .site-footer {
    padding: 48px 80px 56px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 40px;
  }

  .footer-links { align-items: flex-end; }
  .footer-nav-group { align-items: flex-end; }
  [dir="rtl"] .footer-nav-group { align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE — Tablet-only 768px – 1023px
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet hero: limit height so the 2-col layout doesn't float in empty space */
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 64px;
  }
  .hero-content {
    padding: 0 32px 0;
    gap: 32px;
  }
  /* Clue widget: don't let it grow too wide on narrow tablet */
  .clue-widget { flex: 0 0 min(380px, 46%); }

  /* Step cards: reduce padding so content fits in 3-col at 768px */
  .step-card { padding: 28px 20px 32px; }
  .step-number { right: 14px; font-size: 64px; }
  .score-block { width: 26px; height: 26px; font-size: 16px; }
  .score-mosaic { gap: 4px; }
}

/* ============================================================
   RESPONSIVE — Desktop 1024px+
   ============================================================ */
@media (min-width: 1024px) {
  .site-header { padding: 28px 64px; }
  .corner-tl { top: 32px; left: 64px; }
  .corner-tr { top: 32px; right: 64px; }
  .corner-bl { bottom: 32px; left: 64px; }
  .corner-br { bottom: 32px; right: 64px; }
  .device { width: 260px; height: 520px; }
}

/* ============================================================
   DESKTOP POLISH — Clue sequence (>=768px)
   ============================================================ */
@media (min-width: 768px) {
  .section-clue-sequence { padding: 96px 40px 104px; }
  .clue-section-head { margin-bottom: 56px; }
  .clue-row { padding: 26px 32px; gap: 28px; }
  .clue-number { width: 56px; height: 56px; font-size: 20px; }
  .clue-text { font-size: 20px; line-height: 1.6; }
}

/* ============================================================
   MOBILE — Comprehensive responsive (<=767px)
   ============================================================ */
@media (max-width: 767px) {
  /* ---- Global guardrails ---- */
  html, body { max-width: 100vw; }

  /* ---- Header ---- */
  .site-header { padding: 14px 16px; }
  .header-inner { gap: 8px; }
  .wordmark-text { font-size: 17px; }
  .wordmark-seal { width: 36px; height: 36px; }
  .header-nav { display: none; }
  .lang-toggle { font-size: 11px; }
  .lang-option { min-width: 40px; }

  /* ---- Hero ---- */
  .hero { padding-top: 96px; min-height: auto; padding-bottom: 56px; }
  .hero-content { padding: 0 20px 24px; gap: 32px; flex-direction: column; }
  .hero-left { max-width: 100%; width: 100%; flex: none; align-items: flex-start; }
  .clue-widget { flex: none; max-width: 100%; width: 100%; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.2em; margin-bottom: 10px; }
  .hero-eyebrow::before { width: 18px; }
  .hero-title {
    font-size: clamp(40px, 12vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.015em;
  }
  .gold-rule { width: 120px; margin: 20px 0; }
  .hero-tagline { font-size: 15px; margin-bottom: 32px; max-width: 100%; }

  /* Corner ornaments: tuck in so they don't crowd content */
  .corner { width: 22px; height: 22px; opacity: 0.55; }
  .corner-tl { top: 14px; left: 14px; }
  .corner-tr { top: 14px; right: 14px; }
  .corner-bl { bottom: 14px; left: 14px; }
  .corner-br { bottom: 14px; right: 14px; }

  /* Store badges: full width, stacked, tappable */
  .cta-group { width: 100%; gap: 14px; align-items: stretch; }
  .badge-store-link,
  .badge-disabled { width: 100%; display: flex; justify-content: center; }
  .badge-img--gp,
  .badge-img--apple { height: 56px; width: auto; max-width: 100%; }

  /* Clue widget (right side of hero) */
  .clue-widget { max-width: 100%; padding: 22px 20px 24px; }
  .cw-clue-text { font-size: 16px; }

  /* ---- How It Works ---- */
  .section-hiw { padding: 64px 20px; }
  .section-hiw::after { left: 20px; right: 20px; }
  .steps { gap: 18px; }
  .step-card { padding: 32px 24px 36px; border-radius: 16px; }
  .step-number { font-size: 64px; top: 12px; right: 16px; }
  .step-title { font-size: 22px; }
  .step-body { font-size: 14px; line-height: 1.7; }
  .section-flourish { margin-top: 40px; gap: 14px; }
  .flourish-line { width: 48px; }

  /* ---- Clue sequence: compact stacked layout ---- */
  .section-clue-sequence { padding: 56px 16px 64px; }
  .clue-section-head { margin-bottom: 32px; }
  .clue-section-title { font-size: clamp(26px, 8vw, 34px); }
  .clue-section-sub { font-size: 14px; }
  .clue-list { gap: 12px; margin-bottom: 24px; }
  .clue-row { padding: 16px 16px; gap: 14px; border-radius: 12px; }
  .clue-number { width: 38px; height: 38px; font-size: 15px; }
  .clue-text { font-size: 15px; line-height: 1.55; }
  .clue-chip { font-size: 9px; padding: 5px 10px; letter-spacing: 0.1em; }
  .clue-section-caption { font-size: 11px; }

  /* ---- Screenshots gallery ---- */
  .section-screenshots { padding: 56px 16px 64px; }
  .gallery {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 8px 4px 16px;
    justify-content: flex-start;
    align-items: center;
    perspective: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .device-wrap {
    scroll-snap-align: center;
    flex-shrink: 0;
    transform: none !important;
    gap: 14px;
  }
  .device { width: 210px; height: 420px; }

  /* ---- FAQ ---- */
  .section-faq { padding: 64px 16px 72px; }
  .faq-grid { gap: 12px; }
  .faq-question { padding: 18px 20px; gap: 12px; }
  .faq-question-text { font-size: 15px; }
  .faq-chevron { width: 28px; height: 28px; }
  .faq-answer-inner { padding: 16px 20px 20px; }
  .faq-answer-text { font-size: 14px; line-height: 1.7; }
  .faq-item.open .faq-answer { max-height: 600px; }

  /* ---- Pre-footer CTA ---- */
  .prefooter { padding: 64px 20px 72px; }
  .cta-seal { width: 64px; height: 64px; }
  .cta-heading { font-size: clamp(28px, 8vw, 40px); }
  .cta-tagline { font-size: 14px; margin-bottom: 32px; }
  .cta-badges { width: 100%; flex-direction: column; align-items: stretch; gap: 14px; }
  .cta-badges .badge-store-link,
  .cta-badges .badge-disabled { width: 100%; display: flex; justify-content: center; }

  /* ---- Footer ---- */
  .footer-rule { width: calc(100% - 40px); }
  .site-footer {
    padding: 40px 20px 48px;
    gap: 32px;
    text-align: center;
    align-items: center;
  }
  .footer-brand { align-items: center; text-align: center; }
  .footer-tagline { max-width: 320px; }
  .footer-center { width: 100%; }
  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
  }
  .footer-nav-group { align-items: center; }
  [dir="rtl"] .footer-brand { align-items: center; }
  [dir="rtl"] .footer-links { align-items: flex-start; }
  [dir="rtl"] .footer-nav-group { align-items: center; }
}

/* Extra-small phones (<=480px) */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(36px, 11vw, 46px); }
  .hero-tagline { font-size: 14px; }
  .step-title { font-size: 20px; }
  .cta-heading { font-size: 28px; }
  .device { width: 190px; height: 380px; }
  .clue-widget { padding: 18px 16px 20px; }
  .cw-clue-text { font-size: 15px; }
  .site-header { padding: 12px 14px; }
  .wordmark-text { font-size: 16px; }
}
