/* ==========================================================================
   Quiztones — shared stylesheet for every page in this folder
   (index.html, support/, privacy/, terms/).

   IMPORTANT FOR TRACKING:
   Every App Store link must keep the class "btn-primary" and the exact
   App Store href (no extra parameters). The click-tracking script at the
   bottom of index.html and support/index.html finds buttons with
   `a.btn-primary` and compares the href exactly.
   ========================================================================== */

@font-face {
  font-family: "Clarity City";
  src: url("../fonts/ClarityCity-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clarity City";
  src: url("../fonts/ClarityCity-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clarity City";
  src: url("../fonts/ClarityCity-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060606;
  --surface: #121214;
  --surface-2: #1a1a1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-soft: #e4e4e7;
  --muted: #b1b1b8;
  --dim: #85858d;

  --teal: #6fa7a3;
  --mint: #5fe3c0;
  --gold: #dbaf57;
  --purple: #8f5ea7;
  --star: #f6ab27;

  --grad-brand: linear-gradient(105deg, #2f6bff 0%, #6847fb 50%, #a420fc 100%);
  --grad-logo: linear-gradient(180deg, #8adff8 0%, #55e3b5 100%);

  --radius: 28px;
  --radius-sm: 20px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;

  --font: "Clarity City", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
strong { font-weight: 700; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(52px, 7vw, 96px); }
.features { overflow: hidden; }
.section--tight-top { padding-top: clamp(32px, 5vw, 56px); }

.section-head {
  max-width: 800px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.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;
}

/* ---------- Type ---------- */

.display-1 {
  font-size: clamp(2.6rem, 1.5rem + 5vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.lead {
  font-size: clamp(1.075rem, 0.98rem + 0.45vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
}
.lead strong { color: var(--text); }

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

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0b;
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(255, 255, 255, 0.55);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.btn-primary svg { width: 20px; height: 20px; flex: none; }

/* Secondary look — still uses .btn-primary underneath for tracking */
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  color: #fff;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  gap: 8px;
  font-size: 0.875rem;
}
.btn-sm svg { width: 16px; height: 16px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 639px) {
  .btn-row--stack { flex-direction: column; align-items: stretch; }
  .btn-row--stack .btn-primary { width: 100%; }
  .btn-block-sm { width: 100%; }
}

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

.site-header {
  position: relative;
  z-index: 50;
  height: var(--header-h);
  background: rgba(6, 6, 6, 0.72);
  border-bottom: 1px solid transparent;
}
@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: var(--line);
  }
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: var(--grad-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* Sales page (desktop): header download buttons stay hidden until the hero buttons scroll away */
.site-header--reveal .header-ctas { transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.js .site-header--reveal:not(.is-revealed) .header-ctas { opacity: 0; visibility: hidden; }
.site-header--reveal.is-revealed .header-ctas { transition: opacity 0.25s ease; }

/* Phones: logo centered, no header buttons (the hero buttons and pinned bar cover it) */
@media (max-width: 767px) {
  .site-header .container { justify-content: center; }
  .header-ctas { display: none; }
}

.show-sm { display: inline; }
.hide-sm { display: none; }
@media (min-width: 640px) {
  .show-sm { display: none; }
  .hide-sm { display: inline; }
  a.hide-sm { display: inline-flex; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(36px, 7vw, 88px);
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 38%;
  width: min(1400px, 220vw);
  height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 30% 55%, rgba(95, 227, 192, 0.16), transparent 70%),
    radial-gradient(closest-side at 72% 50%, rgba(164, 32, 252, 0.2), transparent 70%);
  pointer-events: none;
}

.hero .display-1 { max-width: 920px; margin-inline: auto; }

.hero .lead {
  max-width: 660px;
  margin: 22px auto 34px;
}

.hl {
  color: var(--text);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.925rem;
}
.proof-item { display: inline-flex; align-items: center; gap: 8px; }
.proof-item strong { color: var(--text); font-weight: 600; }
.proof-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }
@media (max-width: 479px) {
  .proof { flex-direction: column; gap: 6px; }
  .proof-dot { display: none; }
}

.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; }

.hero-media {
  margin-top: clamp(36px, 6vw, 64px);
}
.hero-media img {
  width: 165vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, #000 55%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, #000 55%, transparent 98%);
  mask-composite: intersect;
}
@media (min-width: 768px) {
  .hero-media img { width: min(1100px, 100%); }
}

/* ---------- As featured in ---------- */

.featured {
  padding-top: clamp(20px, 3vw, 32px);
  text-align: center;
}
.featured-label {
  margin-bottom: 12px;
  color: var(--dim);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.featured-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.featured-list li { display: inline-flex; align-items: center; white-space: nowrap; }
.featured-list li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-inline: clamp(12px, 2vw, 22px);
  border-radius: 50%;
  background: var(--dim);
}
@media (max-width: 559px) {
  .featured-list li:first-child { flex-basis: 100%; justify-content: center; }
  .featured-list li:nth-child(2)::before { display: none; }
}

/* ---------- Quote band (rotating quotes) ---------- */

.quote-band {
  position: relative;
  padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 64px) clamp(18px, 3vw, 28px);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(104, 71, 251, 0.2), transparent 70%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(47, 107, 255, 0.6), rgba(164, 32, 252, 0.6)) border-box;
  text-align: center;
}
.quote-band > .stars { justify-content: center; margin-bottom: 18px; }
.quote-band > .stars svg { width: 18px; height: 18px; }

.quote-slides { display: grid; }
.quote-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}
.quote-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.quote-slide blockquote {
  max-width: 880px;
  margin-inline: auto;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.15rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.quote-slide figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.quote-dots { display: none; justify-content: center; gap: 2px; margin-top: 18px; }
.js .quote-dots { display: flex; }
.quote-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.quote-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.3s ease, background-color 0.3s ease;
}
.quote-dot[aria-current="true"]::before { width: 22px; background: #fff; }
.quote-dot:focus-visible { outline: 2px solid var(--mint); outline-offset: 0; border-radius: 999px; }

/* ---------- Stats + logos ---------- */

.stats {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
.stat {
  padding: clamp(28px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.stat-num {
  font-size: clamp(3.5rem, 2.4rem + 4.5vw, 5.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat h3 {
  margin: 12px 0 12px;
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 600;
}
.stat p { color: var(--text-soft); max-width: 360px; margin-inline: auto; }

.logos {
  margin-top: clamp(48px, 6vw, 72px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.logos-set { display: flex; align-items: center; }
.logos-set img {
  flex: none;
  margin-inline: clamp(24px, 4vw, 48px);
  filter: brightness(0) invert(1);
  opacity: 0.62;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Guesswork card ---------- */

.guess-card {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 960px) {
  .guess-card { grid-template-columns: 1fr 1fr; }
}
.guess-card .icon { width: 64px; height: 64px; margin-bottom: 22px; }
.guess-card h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.guess-card p { color: var(--muted); font-size: 1.075rem; margin-bottom: 28px; }
.guess-card p strong { color: var(--text); }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 1.025rem;
  line-height: 1.45;
}
.checklist li:last-child { border-bottom: 0; }
.checklist img { width: 20px; height: 20px; flex: none; margin-top: 2px; }

/* ---------- Feature rows ---------- */

.feature {
  --accent: 111, 167, 163;
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(88px, 11vw, 150px); }
.feature--gold { --accent: 219, 175, 87; }
.feature--purple { --accent: 143, 94, 167; }

@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--flip .feature-media { order: 2; }
}

.feature-media {
  position: relative;
  isolation: isolate;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}
.feature-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12%;
  background: radial-gradient(closest-side, rgba(var(--accent), 0.28), transparent 72%);
  pointer-events: none;
}

.feature-copy .h2 { margin-bottom: 18px; }
.feature-copy .lead { margin-bottom: 36px; }

.points { display: grid; gap: 26px; margin-bottom: 38px; }
.point { display: flex; align-items: flex-start; gap: 18px; }
.point img { width: 48px; height: 48px; flex: none; }
.point .h3 { margin-bottom: 6px; }
.point p { color: var(--muted); }

/* ---------- CTA card ---------- */

.cta-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(130, 160, 255, 0.18);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, #14203f 0%, #0b1124 55%, #08090d 100%);
}
.cta-copy {
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px) 8px;
  text-align: center;
}
.cta-copy p {
  max-width: 540px;
  margin: 18px auto 32px;
  color: var(--text-soft);
  font-size: 1.075rem;
}
.cta-media {
  height: 340px;
  overflow: hidden;
  padding-top: 32px;
}
.cta-media img {
  width: 230px;
  margin-inline: auto;
}
@media (min-width: 860px) {
  .cta-card { grid-template-columns: 0.85fr 1.15fr; align-items: center; }
  .cta-media { order: -1; height: 460px; align-self: end; padding-top: 48px; }
  .cta-media img { width: 270px; }
  .cta-copy { text-align: left; padding: 64px 64px 64px 16px; }
  .cta-copy p { margin-inline: 0; }
  .cta-copy .btn-row { justify-content: flex-start; }
}

/* ---------- Reviews ---------- */

.rating-head .stars { justify-content: center; margin-bottom: 14px; }
.rating-head .stars svg { width: 26px; height: 26px; }
/* Keep "Loved by producers & engineers" on one line: no width cap, and scale down on phones */
.rating-head { max-width: none; }
.rating-head .h2 {
  white-space: nowrap;
  font-size: min(clamp(2rem, 1.35rem + 2.8vw, 3.4rem), 5.7vw);
}

.reviews {
  display: flex;
  gap: 14px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reviews::-webkit-scrollbar { display: none; }

.review {
  display: flex;
  flex-direction: column;
  flex: 0 0 84%;
  scroll-snap-align: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.review .stars-img { width: 88px; height: auto; flex: none; }
.review h3 { margin: 14px 0 8px; font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.review p { color: var(--muted); font-size: 0.975rem; }
@media (max-width: 767px) {
  .review p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
  }
  .review.is-open p { display: block; -webkit-line-clamp: unset; overflow: visible; }
}
.review-more {
  align-self: flex-start;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 600 0.9rem/1.4 var(--font);
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-underline-offset: 3px;
  cursor: pointer;
}
.review-name { margin-top: auto; padding-top: 16px; color: var(--dim); font-size: 0.875rem; font-weight: 600; }

@media (min-width: 768px) {
  .reviews {
    display: block;
    columns: 2;
    column-gap: 16px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
  .review {
    display: block;
    break-inside: avoid;
    margin-bottom: 16px;
  }
}
@media (min-width: 1024px) {
  .reviews { columns: 3; }
}

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  gap: 16px;
  margin-top: clamp(16px, 3vw, 40px);
}
@media (min-width: 768px) {
  .testimonials { grid-template-columns: 1fr 1fr; }
}
.tcard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(47, 107, 255, 0.55), rgba(164, 32, 252, 0.55)) border-box;
}
.tcard blockquote {
  position: relative;
  padding-top: 28px;
  color: var(--text-soft);
  font-size: 1.125rem;
  line-height: 1.55;
}
.tcard blockquote::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: -2px;
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tperson {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.tperson img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.tperson-name { font-weight: 600; text-decoration: none; }
a.tperson-name:hover { text-decoration: underline; }
.tperson-note { margin-top: 2px; color: var(--dim); font-size: 0.875rem; }

/* ---------- Story ---------- */

.story-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.5vw, 16px);
  max-width: 1000px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.story-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: clamp(14px, 2vw, 24px);
}
.story-images img.top { object-position: top; }

.story-text {
  max-width: 720px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.75;
}
.story-text p + p { margin-top: 1.25em; }

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

.faq {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin-inline: auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(18px, 3vw, 28px);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; border-radius: var(--radius-sm); }
.faq-num {
  min-width: 2ch;
  color: var(--dim);
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.faq summary .h3 { flex: 1; font-size: 1.125rem; }
.faq-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.2s ease;
}
.faq-toggle svg { width: 16px; height: 16px; }
.faq details[open] .faq-toggle { transform: rotate(45deg); color: var(--text); }
.faq-answer {
  padding: 0 clamp(18px, 3vw, 28px) 24px;
  color: var(--muted);
}
@media (min-width: 640px) {
  .faq-answer { padding-left: calc(clamp(18px, 3vw, 28px) + 2ch + 32px); padding-right: 72px; }
}
.faq-answer p + p, .faq-answer p + ul, .faq-answer ul + p { margin-top: 1em; }
.faq-answer ul { margin: 0; padding-left: 1.1rem; }
.faq-answer li + li { margin-top: 6px; }
.faq-answer strong { color: var(--text); }
.faq-answer a, .help a, .page-hero a, .legal main a {
  color: var(--text);
  text-decoration-color: var(--mint);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.help {
  padding-bottom: clamp(56px, 8vw, 96px);
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}
.help a { font-weight: 600; }

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

.get-app {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(130, 160, 255, 0.18);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, #14203f 0%, #0b1124 55%, #08090d 100%);
}
.get-app-copy {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 64px) 8px;
  text-align: center;
}
.get-app-copy .h2 { margin-bottom: 26px; }
.get-app-media {
  position: relative;
  z-index: 1;
  height: 220px;
  overflow: hidden;
  padding-top: 28px;
}
.get-app-media img { width: min(340px, 86%); margin-inline: auto; }
@media (min-width: 860px) {
  .get-app { grid-template-columns: 1.2fr 0.8fr; align-items: end; }
  .get-app-copy { align-self: center; text-align: left; padding: 64px; }
  .get-app-copy .btn-row { justify-content: flex-start; }
  .get-app-media { height: 300px; padding-top: 0; margin-top: 40px; }
  .get-app-media img { width: 360px; margin: 0 40px 0 auto; }
}

.site-footer { padding-bottom: 40px; }

.footer-bottom {
  display: grid;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .footer-bottom { grid-template-columns: 1fr auto; align-items: start; }
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-logo { display: inline-block; width: 52px; }
.footer-logo img { width: 52px; height: 52px; border-radius: 13px; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.copyright { color: var(--dim); font-size: 0.9rem; }

.social { display: flex; gap: 10px; }
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.social a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.social svg { width: 17px; height: 17px; }

.footer-nav-title {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 10px 32px;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: #fff; }

/* ---------- Mobile download bar ---------- */

.mobile-bar {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 14, 16, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.mobile-bar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease;
}
.mobile-bar img { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.mobile-bar-text { min-width: 0; line-height: 1.25; }
.mobile-bar-name { font-weight: 600; font-size: 0.95rem; }
.mobile-bar-rating { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8rem; }
.mobile-bar-rating .stars svg { width: 12px; height: 12px; }
.mobile-bar .btn-primary { margin-left: auto; min-height: 44px; padding: 0 20px; }
@media (min-width: 768px) {
  .mobile-bar { display: none; }
}

/* ---------- Support page ---------- */

.page-hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(8px, 2vw, 24px);
  text-align: center;
}
.page-hero .lead { max-width: 640px; margin: 18px auto 0; }

/* ---------- Legal pages (privacy, terms) ---------- */

.legal main {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(56px, 8vw, 96px);
}
.legal main > header { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal main h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.legal main > header p { margin-top: 14px; color: var(--muted); }
.legal main section { margin-top: 44px; }
.legal main h2 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.legal main h3 { margin: 26px 0 10px; font-size: 1.1rem; font-weight: 600; }
.legal main p, .legal main li { color: #cfcfd4; font-size: 1.025rem; line-height: 1.75; }
.legal main p + p, .legal main ul + p, .legal main p + ul { margin-top: 14px; }
.legal main ul { margin: 0; padding-left: 1.25rem; }
.legal main li + li { margin-top: 8px; }
.legal main li::marker { color: var(--dim); }
.legal main strong { color: var(--text); }

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}
.legal-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.legal-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover { color: #fff; }

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .logos-track { animation: none; width: auto; justify-content: center; }
  .logos-set { flex-wrap: wrap; justify-content: center; row-gap: 28px; }
  .logos-set[aria-hidden="true"] { display: none; }
  .btn-primary:hover { transform: none; }
}
