/* ==========================================================================
   EmaraChat — v2 landing (cinematic, image-first)
   Pure-black stage, warm gold accents, elegant serif display type.
   Legacy token names are kept so any shared selectors still resolve.
   ========================================================================== */

:root {
  --bg-1: #000000;
  --bg-2: #0a0a0b;
  --bg-3: #f0c24a;
  --panel: rgba(26, 22, 16, 0.9);

  --text-primary: #f7f2e8;
  --text-soft: #cabfa9;
  --muted: #8b8272;

  --card-bg: var(--panel);
  --card-border: rgba(240, 216, 150, 0.18);
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(240, 216, 150, 0.2);

  --gold: #f0c24a;
  --gold-soft: #f4d9a0;
  --gold-deep: #d9a94e;
  --gold-ink: #241a07;
  --ios: #f4d3a3;
  --android: #9fd3d3;
  --web: #f2a96b;

  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "Noto Serif", Georgia,
    "Times New Roman", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-lg: 0 32px 74px rgba(0, 0, 0, 0.62);
  --shadow-gold: 0 18px 40px rgba(216, 160, 60, 0.24);

  --clip-shard: polygon(50% 0%, 100% 12%, 100% 88%, 50% 100%, 0% 88%, 0% 12%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-ui);
  color: var(--text-primary);
  background: var(--bg-1);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

/* The `hidden` attribute must beat layout display rules (e.g. .socials). */
[hidden] {
  display: none !important;
}

h1,
h2,
h3,
.dl-title,
.spot-name {
  font-family: var(--font-display);
}

/* Portraits are pre-cropped face-forward, so a gentle upward bias keeps eyes in frame. */
[data-crop] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

img[data-crop="sp"] { object-position: 50% 15%; }
img[data-crop="av"] { object-position: 50% 24%; }
img[data-crop="sl"] { object-position: 50% 18%; }
img[data-crop="th"] { object-position: 50% 20%; }

/* ---- Locale-aware display serif ---- */
html[lang="ja"] { --font-display: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif; }
html[lang="zh-Hant"] { --font-display: "Songti TC", "PingFang TC", "Noto Serif TC", Georgia, serif; }
html[lang="hi"] { --font-display: "Kohinoor Devanagari", "Nirmala UI", Georgia, serif; }
html[lang="ar"] { --font-display: "Geeza Pro", "Noto Naskh Arabic", Georgia, serif; }

html[lang="ja"] body,
html[lang="zh-Hant"] body { font-family: "Hiragino Sans", "PingFang TC", "Yu Gothic", "Microsoft JhengHei", var(--font-ui); }
html[lang="hi"] body { font-family: "Nirmala UI", "Kohinoor Devanagari", "Mangal", var(--font-ui); }
html[lang="ar"] body { font-family: "Geeza Pro", "Noto Naskh Arabic", Tahoma, var(--font-ui); }

/* ============================ AMBIENT STAGE ============================ */
.stage-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 50% -4%, rgba(240, 194, 74, 0.1) 0%, transparent 62%),
    radial-gradient(760px 520px at 88% 58%, rgba(240, 194, 74, 0.05) 0%, transparent 60%),
    radial-gradient(680px 500px at 6% 30%, rgba(255, 130, 90, 0.045) 0%, transparent 60%),
    #000000;
}

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ffeab4 0%, rgba(255, 234, 180, 0) 70%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0.6;
  animation: twinkle 3.8s ease-in-out infinite;
}

.spark.s1 { top: 12%; left: 20%; animation-delay: 0s; }
.spark.s2 { top: 26%; right: 22%; animation-delay: 0.7s; }
.spark.s3 { top: 42%; left: 10%; animation-delay: 1.4s; }
.spark.s4 { top: 58%; right: 14%; animation-delay: 2.1s; }
.spark.s5 { top: 70%; left: 28%; animation-delay: 2.8s; }
.spark.s6 { top: 6%; right: 8%; animation-delay: 3.4s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.8; transform: scale(1.12); }
}

/* ============================ UTILITIES ============================ */
.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;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms ease;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 2px solid #ffe9b8;
  outline-offset: 3px;
}

main {
  position: relative;
  z-index: 1;
}

/* ============================ NAV ============================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4) 74%, rgba(0, 0, 0, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: clamp(32px, 3.4vw, 44px);
  height: clamp(32px, 3.4vw, 44px);
  border-radius: 50%;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  color: #eac97c;
  white-space: nowrap;
}


.socials {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
  margin-right: 16px;
}

.socials a {
  color: #efe6d2;
  opacity: 0.8;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.socials a:hover { opacity: 1; transform: translateY(-1px); }
.socials svg { width: 21px; height: 21px; fill: currentColor; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(244, 217, 160, 0.5);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.42);
  color: #f2dda6;
}

.lang-globe,
.lang-caret { width: 15px; height: 15px; flex: 0 0 15px; opacity: 0.85; }
.lang-caret { pointer-events: none; }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font: 600 0.9rem/1 var(--font-ui);
  padding: 2px;
  min-width: 92px;
  cursor: pointer;
}

.lang-select option { color: #14110a; }

/* ============================ HERO ============================ */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 34px) clamp(20px, 4vw, 44px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(16px, 2.4vh, 28px);
}

.hero-copy { min-width: 0; max-width: 780px; }

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #cbb98a;
}

.hero h1 {
  margin: 0 auto;
  max-width: 19ch;
  font-weight: 700;
  font-size: clamp(2.15rem, 4.4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0.004em;
  color: #f8f1e2;
  text-wrap: balance;
}

.hero-sub {
  margin: 15px auto 0;
  max-width: 52ch;
  color: #b9b2a4;
  line-height: 1.7;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

/* ---- Hero visual: full-width strip of tall character shards ---- */
.hero-shards {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 1.35vw, 20px);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-shards::before {
  content: "";
  position: absolute;
  inset: 4% 6% 10% 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 52%, rgba(240, 194, 74, 0.3), rgba(255, 122, 70, 0.14) 48%, transparent 74%);
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
}

.shard {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  max-width: 232px;
  margin: 0;
  aspect-ratio: 100 / 186;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(244, 217, 160, 0.22);
  box-shadow: 0 30px 66px rgba(0, 0, 0, 0.72);
  -webkit-mask-image: linear-gradient(180deg, #000 0 88%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0 88%, rgba(0, 0, 0, 0) 100%);
}

.shard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shard:nth-child(1) { transform: translateY(3%) scale(0.955); }
.shard:nth-child(2) { transform: translateY(-1.5%) scale(1.035); }
.shard:nth-child(3) { transform: translateY(1.5%) scale(0.985); }
.shard:nth-child(4) { transform: translateY(3.4%) scale(0.945); }

/* ---- Store buttons ---- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  color: #1a1206;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.cta-icon { width: 25px; height: 25px; flex: 0 0 25px; fill: currentColor; }

.cta-labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.12;
  min-width: 0;
}

.cta-kicker {
  font: 600 0.58rem/1 var(--font-ui);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.72;
}

.cta-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  white-space: nowrap;
}

.cta.ios { background: linear-gradient(135deg, #f8e2ba 0%, #eab45f 100%); }
.cta.android,
.cta.web { background: #f7f5ef; color: #16130d; border-color: rgba(255, 255, 255, 0.5); }

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  filter: brightness(1.04);
}

/* ============================ DIVIDER ============================ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1280px;
  margin: clamp(52px, 7vw, 100px) auto clamp(24px, 3.4vw, 40px);
  padding: 0 clamp(20px, 4vw, 44px);
  font-weight: 700;
}

.divider::before,
.divider::after {
  content: "";
  flex: 0 0 auto;
  width: clamp(26px, 7vw, 76px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 217, 160, 0.5), transparent);
}

.divider span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #f2d99b;
  white-space: nowrap;
  text-shadow: 0 0 28px rgba(240, 194, 74, 0.32);
}

/* ============================ SPOTLIGHT ============================ */
.spotlight {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background:
    radial-gradient(760px 420px at 82% 42%, rgba(240, 194, 74, 0.1), transparent 68%),
    linear-gradient(150deg, #171310 0%, #0b0908 60%, #0a0807 100%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.spot-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.9) 0%, rgba(10, 8, 7, 0.5) 44%, rgba(10, 8, 7, 0) 74%),
    radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, 0.7), transparent 60%);
}

.spot-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2.6vw, 34px);
  padding: clamp(36px, 4.6vw, 68px) clamp(22px, 4vw, 54px);
  min-height: clamp(400px, 42vw, 540px);
  padding-right: min(48%, 560px);
}

.spot-rail {
  position: relative;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 58px;
}

.rail-line {
  position: absolute;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, rgba(244, 217, 160, 0.6), rgba(244, 217, 160, 0.1), transparent);
}

.spot-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #0d0b09;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.spot-avatar.is-active {
  width: 62px;
  height: 62px;
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(240, 194, 74, 0.18), 0 0 26px rgba(240, 194, 74, 0.34);
}

.spot-avatar:hover { transform: scale(1.06); border-color: var(--gold-soft); }

.spot-info { align-self: center; min-width: 0; }

.spot-name {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  line-height: 0.96;
  color: #f4d99f;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.7);
}

.spot-stats {
  display: grid;
  gap: 14px;
  margin: 0;
  justify-items: start;
}

.spot-stat { display: flex; align-items: baseline; gap: 9px; }

.spot-stat dt,
.spot-stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
}

.spot-stat dt { color: #d3c5a2; }
.spot-stat dd { color: #f6efdf; }

.spot-stat dd::before {
  content: "|";
  margin-right: 0.5em;
  color: rgba(244, 217, 160, 0.55);
}

.spot-portrait {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(50%, 600px);
  overflow: hidden;
  pointer-events: none;
}

.spot-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 9, 8, 0.96) 0%, rgba(11, 9, 8, 0.34) 26%, rgba(11, 9, 8, 0) 60%);
}

html[dir="rtl"] .spot-portrait { right: auto; left: 0; }
html[dir="rtl"] .spot-portrait::after {
  background: linear-gradient(270deg, rgba(11, 9, 8, 0.96) 0%, rgba(11, 9, 8, 0.34) 26%, rgba(11, 9, 8, 0) 60%);
}

/* ============================ FEATURE CAROUSEL ============================ */
.fcarousel { position: relative; }

.fcar-track {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px clamp(20px, 15vw, 280px) 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.fcar-track::-webkit-scrollbar { display: none; }

.fslide {
  position: relative;
  flex: 0 0 min(860px, 84vw);
  scroll-snap-align: center;
}

.fnum {
  position: absolute;
  top: -16px;
  left: 6px;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  color: rgba(244, 217, 160, 0.16);
}

.fwatermark {
  position: absolute;
  left: clamp(26px, 3vw, 44px);
  bottom: -14px;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 217, 160, 0.16);
  white-space: nowrap;
}

.fslide-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}

.fslide-info {
  padding: clamp(20px, 2.8vw, 34px);
  border: 1px solid var(--line-gold);
  border-radius: 18px 40px 18px 18px;
  background: linear-gradient(155deg, rgba(58, 51, 33, 0.94) 0%, rgba(22, 19, 14, 0.96) 100%);
  box-shadow: var(--shadow-lg);
}

.fbadge {
  display: inline-block;
  margin: -6px 0 14px;
  padding: 8px 15px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f2d489 0%, #dcaa51 100%);
  color: var(--gold-ink);
  font: 600 0.8rem/1.3 var(--font-ui);
  box-shadow: 0 10px 22px rgba(216, 160, 60, 0.28);
}

.fslide-info h3 {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: clamp(1.16rem, 2.2vw, 1.62rem);
  line-height: 1.22;
  color: #f7f0e0;
}

.flist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.flist li {
  position: relative;
  padding-left: 25px;
  color: #d8d1c2;
  font-size: 0.94rem;
  line-height: 1.5;
}

.flist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--gold-soft);
}

html[dir="rtl"] .flist li { padding-left: 0; padding-right: 25px; }
html[dir="rtl"] .flist li::before { left: auto; right: 0; }

.fslide-media {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(244, 217, 160, 0.3);
  box-shadow: var(--shadow-lg);
}

.car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(244, 217, 160, 0.4);
  background: rgba(0, 0, 0, 0.55);
  color: #f2d99b;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.car-arrow svg { width: 22px; height: 22px; }
.car-arrow.prev { left: clamp(8px, 3vw, 42px); }
.car-arrow.next { right: clamp(8px, 3vw, 42px); }

.car-arrow:hover { background: rgba(240, 194, 74, 0.18); border-color: var(--gold); }

html[dir="rtl"] .car-arrow svg { transform: scaleX(-1); }

.fdots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.fdot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 217, 160, 0.28);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.fdot[aria-current="true"] {
  width: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}

/* ============================ REVIEWS ============================ */
.reviews {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 30px);
}

.reviews-track {
  display: flex;
  gap: clamp(16px, 2.2vw, 30px);
  overflow-x: auto;
  padding: 28px 4px 34px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 clamp(226px, 20vw, 284px);
  padding: 24px 22px;
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(44, 40, 26, 0.92) 0%, rgba(19, 17, 12, 0.95) 100%);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
  transition: transform 340ms cubic-bezier(0.2, 0.65, 0.2, 1), box-shadow 340ms ease;
  display: flex;
  flex-direction: column;
}

.review.r1 { transform: rotate(-2.2deg); }
.review.r2 { transform: rotate(1.7deg) translateY(-14px); }
.review.r3 { transform: rotate(-1.3deg) translateY(5px); }
.review.r4 { transform: rotate(2.2deg) translateY(-10px); }
.review.r5 { transform: rotate(-1.8deg) translateY(4px); }

.review:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 26px 46px rgba(0, 0, 0, 0.55); }

.stars {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

.review p {
  margin: 0 0 18px;
  color: #d3ccbd;
  line-height: 1.7;
  font-size: 0.95rem;
  flex: 1;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(244, 217, 160, 0.35);
  flex: 0 0 44px;
}

.review-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: #f2ead6;
}

/* ============================ BOTTOM DOWNLOAD ============================ */
.dl-cta {
  max-width: 1280px;
  margin: clamp(56px, 8vw, 104px) auto 0;
  padding: clamp(28px, 4.4vw, 56px) clamp(20px, 4vw, 44px);
  border-top: 1px solid rgba(244, 217, 160, 0.16);
  border-bottom: 1px solid rgba(244, 217, 160, 0.16);
  text-align: center;
}

.dl-thumbs {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 1.4vw, 18px);
  margin-bottom: clamp(22px, 3vw, 36px);
}

.dl-thumb {
  width: clamp(58px, 9vw, 104px);
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(244, 217, 160, 0.2);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55);
  transform: rotate(-1.5deg);
}

.dl-thumb.is-tall { aspect-ratio: 5 / 7; width: clamp(68px, 11vw, 124px); transform: rotate(1.2deg); }
.dl-thumb:nth-child(4) { transform: rotate(1.6deg); }
.dl-thumb:nth-child(5) { transform: rotate(-1.1deg); }

.dl-title {
  margin: 0 auto;
  max-width: 24ch;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  color: #f8f1e2;
  text-wrap: balance;
}

.dl-row { justify-content: center; margin-top: 26px; }

.dl-note {
  margin: 18px 0 0;
  color: #9a9284;
  font-size: 0.9rem;
}

/* ============================ FAQ ============================ */
.faq {
  max-width: 880px;
  margin: clamp(50px, 7vw, 92px) auto 0;
  padding: 0 clamp(20px, 4vw, 44px);
}

.faq h2 {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  color: #f2d99b;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid rgba(244, 217, 160, 0.16);
  padding: 15px 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #ece4d4;
  font-size: 0.98rem;
}

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

.faq-item summary::after { content: "+"; float: right; color: var(--gold); font-weight: 700; }
.faq-item[open] summary::after { content: "\2013"; }

.faq-item p {
  margin: 10px 0 0;
  color: #b3ac9e;
  font-size: 0.92rem;
  line-height: 1.75;
}

.notice {
  margin: 26px 0 0;
  padding-left: 13px;
  border-left: 2px solid var(--gold);
  color: #938b7e;
  font-size: 0.84rem;
  line-height: 1.7;
}

html[dir="rtl"] .notice { border-left: 0; border-right: 2px solid var(--gold); padding: 0 13px 0 0; }

/* ============================ FOOTER ============================ */
.site-footer {
  max-width: 1280px;
  margin: clamp(44px, 6vw, 76px) auto 0;
  padding: 0 clamp(20px, 4vw, 44px) 44px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(244, 217, 160, 0.16);
}

.footer-brand { display: inline-flex; align-items: center; gap: 11px; }

.footer-logo { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; }

.footer-wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #eac97c;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbc4b6;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.96rem;
  transition: color 180ms ease;
}

.footer-links a:hover { color: var(--gold-soft); }

.footer-feedback {
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4d68e 0%, #e2b25c 100%);
  color: var(--gold-ink) !important;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(216, 160, 60, 0.26);
}

.footer-feedback:hover { filter: brightness(1.05); }

.footer-meta-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-meta { margin: 0; color: #7c766a; font-size: 0.79rem; }

.footer-domain-wrap { margin: 0; display: inline-flex; align-items: center; gap: 10px; }

.footer-label {
  font: 600 0.66rem/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c766a;
}

.footer-domain {
  color: var(--gold-soft);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
}

/* ============================ REVEAL (JS only) ============================ */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.2, 0.65, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .spark { animation: none; opacity: 0.35; }
  .cta,
  .review,
  .car-arrow,
  .spot-avatar { transition: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .fcar-track { padding-inline: clamp(20px, 9vw, 120px); }
}

@media (max-width: 980px) {
  /* Keep the hero copy and the CTA row well above the fold. */
  .hero {
    max-width: 760px;
    gap: 20px;
  }

  .hero h1 { max-width: 22ch; }
  .hero-sub { max-width: 58ch; }

  .hero-shards {
    gap: clamp(8px, 2vw, 16px);
  }

  .spot-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
    min-height: 0;
    padding-right: clamp(22px, 4vw, 54px);
  }

  .spot-rail { flex-direction: row; width: auto; flex-wrap: wrap; justify-content: center; }
  .rail-line { display: none; }
  .spot-stats { justify-items: center; }
  .spot-portrait { display: none; }
  .spot-vignette {
    background: linear-gradient(180deg, rgba(10, 8, 7, 0.66) 0%, rgba(10, 8, 7, 0.88) 62%, rgba(10, 8, 7, 0.95) 100%);
  }

  .fcar-track { padding-inline: clamp(16px, 6vw, 60px); }
}

@media (max-width: 720px) {
  .lang-select { min-width: 70px; font-size: 0.84rem; }

  /* On phones show only two relevant buttons: iOS -> App Store + Web,
     everything else -> Android + Web. */
  html[data-device="ios"] .cta.android { display: none; }
  html[data-device="android"] .cta.ios,
  html[data-device="other"] .cta.ios { display: none; }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    width: 100%;
    max-width: 336px;
    margin-inline: auto;
  }

  /* One clear primary action: the store the visitor is already on. */
  .cta.ios,
  .cta.android {
    background: linear-gradient(135deg, #f8e2ba 0%, #eab45f 100%);
    color: #1a1206;
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(240, 194, 74, 0.2);
  }

  /* Web stays a quiet, secondary glass button so nothing shouts. */
  .cta.web {
    background: rgba(255, 255, 255, 0.05);
    color: #f3eadb;
    border-color: rgba(244, 217, 160, 0.32);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .cta {
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    min-height: 58px;
  }

  .cta-labels { align-items: center; }
  .cta-icon { width: 22px; height: 22px; flex-basis: 22px; }
  .cta-kicker { font-size: 0.55rem; letter-spacing: 0.15em; }
  .cta-label { font-size: 1.02rem; white-space: normal; }

  .dl-row { max-width: 336px; margin-inline: auto; }

  .hero-shards {
    max-width: none;
    width: calc(100% + 2 * clamp(20px, 4vw, 44px));
    margin-inline: calc(-1 * clamp(20px, 4vw, 44px));
    gap: clamp(6px, 1.8vw, 12px);
  }
  .shard { border-radius: 12px; }

  .car-arrow { display: none; }
  .fcar-track { padding-inline: 18px; }
  .fslide { flex-basis: min(560px, 90vw); }
  .fslide-card { grid-template-columns: 1fr; }
  .fslide-media { aspect-ratio: 4 / 5; order: -1; }
  .fwatermark { font-size: 1.45rem; bottom: -8px; }

  .reviews-track { flex-direction: column; overflow: visible; padding: 10px 0 0; }
  .review,
  .review.r1,
  .review.r2,
  .review.r3,
  .review.r4,
  .review.r5 { flex: 1 1 auto; transform: none; }

  .dl-thumb { width: clamp(50px, 15vw, 78px); }
  .dl-thumb.is-tall { width: clamp(58px, 17vw, 88px); }

  .footer-inner,
  .footer-meta-row { flex-direction: column; align-items: flex-start; }

  html[dir="rtl"] .footer-inner,
  html[dir="rtl"] .footer-meta-row { align-items: flex-end; }
}

@media (max-width: 400px) {
  .dl-thumbs { gap: 6px; }
  .hero h1 { font-size: clamp(1.85rem, 8.6vw, 2.2rem); }
  .hero-sub { font-size: 0.94rem; }
}

/* The divider label must be allowed to wrap on narrow screens, otherwise the
   long all-caps headings force a horizontal scrollbar. */
@media (max-width: 760px) {
  .divider { flex-wrap: wrap; gap: 10px; }
  .divider span { white-space: normal; font-size: 0.94rem; letter-spacing: 0.11em; }
  .divider::before,
  .divider::after { width: clamp(20px, 9vw, 46px); }
}

/* ---- Narrow-screen nav ----------------------------------------------------
   The wordmark and the language switcher must both stay fully visible and
   never collide, down to 320px. Placed last so it wins the cascade. */
@media (max-width: 720px) {
  .site-nav { gap: 10px; }
  .brand { flex: 0 0 auto; gap: 9px; }
  .brand-wordmark { font-size: clamp(1.05rem, 4.6vw, 1.28rem); }
  .lang-switch { flex: 0 1 auto; min-width: 0; }
}

@media (max-width: 400px) {
  .site-nav { padding-inline: 13px; gap: 8px; }
  .brand { gap: 7px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-wordmark { font-size: 1.06rem; }
  .lang-switch { padding: 5px 7px; gap: 5px; }
  /* Drop the decorative globe so the language name always fits. */
  .lang-globe { display: none; }
  .lang-caret { width: 12px; height: 12px; flex-basis: 12px; }
  .lang-select { min-width: 68px; font-size: 0.8rem; }
}

