/* ==========================================================================
   PDF Reader — by Elixir Infotech
   Design tokens mirror the app's lib/core/theme/design_tokens.dart so the
   website and the product read as one system.
   ========================================================================== */

/* ----------------------------------------------------------- 1. Tokens */
:root {
  /* Brand — one accent, used deliberately, never as a wallpaper. */
  --brand: #f4443c;
  --brand-pressed: #d93a32;
  --brand-strong: #c9302a;

  /* Contrast-safe pair. The signature #f4443c is only 3.51:1 on white and only
     carries 3.66:1 under white text, so it fails WCAG AA (4.5:1) wherever it is
     normal-size TEXT or sits behind a label. It stays the brand for icons,
     dots, borders and large display numbers, where 3:1 is the bar.
       --brand-text  red text on a light surface          (4.91:1 on #fff)
       --brand-fill  red behind --on-brand label text     (4.56:1 under #fff) */
  --brand-text: #c9302a;
  --brand-fill: #d93a32;
  --on-brand: #ffffff;
  --brand-soft: #ffecea;
  --brand-tint: rgba(244, 68, 60, 0.09);
  --spark: #ffc24a;

  /* Neutrals */
  --surface: #ffffff;
  --surface-low: #fafafb;
  --surface-container: #f4f5f7;
  --surface-high: #edeef1;
  --ink: #16181d;
  --ink-muted: #5b6069;
  --ink-faint: #6a707a;  /* was #858b95 — only 3.4:1 on white */
  --outline: #e3e5ea;
  --outline-strong: #c7cbd2;
  --success: #17804a;
  --success-soft: #e3f5eb;
  --warning: #b45309;
  --warning-soft: #fdf1e3;

  --shadow-sm: 0 1px 2px rgba(16, 18, 23, 0.05), 0 1px 3px rgba(16, 18, 23, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 18, 23, 0.06), 0 2px 4px rgba(16, 18, 23, 0.04);
  --shadow-lg: 0 18px 48px rgba(16, 18, 23, 0.10), 0 4px 12px rgba(16, 18, 23, 0.05);
  --shadow-brand: 0 10px 26px rgba(244, 68, 60, 0.26);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Fluid type scale — clamp() keeps every size legible from 320px up. */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.89rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.16vw, 1.06rem);
  --step-1: clamp(1.1rem, 1.03rem + 0.34vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.22rem + 0.63vw, 1.7rem);
  --step-3: clamp(1.65rem, 1.4rem + 1.2vw, 2.35rem);
  --step-4: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);

  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 8vw, 7rem);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  color-scheme: light;
}

[data-theme="dark"] {
  --brand: #ff5c54;
  --brand-pressed: #ff7a73;
  --brand-strong: #ff8b84;

  /* Dark flips which side needs help: the red is light enough that white on it
     is only 3.04:1, while near-black on it is 5.99:1. So the fill keeps the
     vivid red and the label goes dark. */
  --brand-text: #ff8b84;
  --brand-fill: #ff5c54;
  --on-brand: #16181d;
  --brand-soft: #4a1512;
  --brand-tint: rgba(255, 92, 84, 0.13);

  --surface: #121316;
  --surface-low: #17191d;
  --surface-container: #1c1e23;
  --surface-high: #24262c;
  --ink: #ecedf0;
  --ink-muted: #a7adb7;
  --ink-faint: #868d97;
  --outline: #2a2d33;
  --outline-strong: #3b3f47;
  --success: #4ade80;
  --success-soft: #10331f;
  --warning: #fbbf24;
  --warning-soft: #3a2708;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-brand: 0 10px 26px rgba(255, 92, 84, 0.22);

  color-scheme: dark;
}

/* ------------------------------------------------------------- 2. Base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.012em; }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

img, svg, picture { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1rem; padding-left: 1.35rem; }
li { margin-bottom: 0.35rem; }

strong { font-weight: 650; }

hr {
  border: 0;
  border-top: 1px solid var(--outline);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--brand-fill); color: #fff; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  padding: 0.7rem 1.25rem;
  background: var(--brand-fill);
  color: var(--on-brand);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--on-brand); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------- 3. Structure */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 760px; }

section { padding-block: var(--section-y); }
section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head {
  max-width: 660px;
  margin: 0 auto clamp(2.25rem, 4vw, 3.5rem);
  text-align: center;
}
.section-head p {
  color: var(--ink-muted);
  font-size: var(--step-1);
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
/* `.section-head p` is more specific than `.eyebrow`, so an eyebrow written as
   a <p> inside a section head would otherwise lose its brand colour and size. */
.section-head .eyebrow {
  color: var(--brand-text);
  font-size: var(--step--1);
  justify-content: center;
}
.section-head .eyebrow::before { display: none; }

.alt { background: var(--surface-low); }
.alt-strong { background: var(--surface-container); }

/* ---------------------------------------------------------- 4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-fill);
  color: var(--on-brand);
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: var(--brand-strong); color: var(--on-brand); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--outline-strong);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-text); background: var(--brand-tint); }

.btn--sm { padding: 0.55rem 1.1rem; font-size: var(--step--1); }

/* Google Play badge — a link, sized like the official asset (646×190). */
.play-badge {
  display: inline-block;
  width: 208px;
  max-width: 100%;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.play-badge img { width: 100%; border-radius: 12px; }
.play-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
}

/* ----------------------------------------------------------- 5. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--outline);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
  flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span small {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto 0 1.5rem;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-container); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.icon-btn:hover { color: var(--brand-text); border-color: var(--brand); background: var(--brand-tint); }
.icon-btn svg { width: 19px; height: 19px; }

.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: none; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--outline);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 0.85rem 0.5rem; font-size: 1rem; border-radius: 0; }
  .nav-links li + li a { border-top: 1px solid var(--outline); }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }
}

/* ------------------------------------------------------------- 6. Hero */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 720px; height: 720px;
  top: -320px; right: -220px;
  background: radial-gradient(circle, var(--brand-tint) 0%, transparent 68%);
}
.hero::after {
  width: 520px; height: 520px;
  bottom: -280px; left: -200px;
  background: radial-gradient(circle, rgba(255, 194, 74, 0.13) 0%, transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.6rem; }
.hero h1 .product {
  display: block;
  font-size: 0.42em;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 0.75rem;
}
.hero-lede {
  font-size: var(--step-1);
  color: var(--ink-muted);
  max-width: 34em;
  margin-bottom: 1.75rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--surface-container);
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 550;
}
.trust-row svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(280px, 76vw);
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, #2c2f36, #16181d 55%, #2c2f36);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  flex-shrink: 0;
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 76px; height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 2;
}
.phone img {
  width: 100%;
  border-radius: 33px;
  display: block;
  background: var(--surface-container);
}

.hero-visual .phone--back {
  position: absolute;
  left: 0;
  top: 8%;
  width: min(210px, 52vw);
  transform: rotate(-8deg) scale(0.86);
  opacity: 0.94;
  z-index: -1;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.float-card svg { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; }
.float-card small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 0.72rem; }
.float-card--a { top: 12%; right: -8px; }
.float-card--b { bottom: 12%; left: -4px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lede { margin-inline: auto; }
  .cta-row, .trust-row { justify-content: center; }
  .hero h1 .product { text-align: center; }
  .hero-visual { margin-top: 1rem; }
  .hero-visual .phone--back { display: none; }
}
@media (max-width: 560px) {
  .float-card--a { top: 4%; right: -4px; }
  .float-card--b { bottom: 6%; left: -4px; }
}

/* ------------------------------------------------------------ 7. Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--outline);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stats div {
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 1.9rem) 1rem;
  text-align: center;
}
.stats dt {
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.1;
}
.stats dd {
  margin: 0.35rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
  font-weight: 550;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ----------------------------------------------------------- 8. Cards */
.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--tools { grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); }

.card {
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--outline-strong); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-muted); font-size: var(--step--1); margin: 0; line-height: 1.6; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.05rem;
  border-radius: 13px;
  background: var(--brand-tint);
  color: var(--brand);
}
.card-icon svg { width: 23px; height: 23px; }

.card--tool { padding: 1.15rem 1.25rem; }
.card--tool .card-icon { width: 38px; height: 38px; margin-bottom: 0.8rem; border-radius: 11px; }
.card--tool .card-icon svg { width: 19px; height: 19px; }
.card--tool h3 { font-size: var(--step-0); margin-bottom: 0.2rem; }
.card--tool p { font-size: 0.84rem; }

.card ul.check {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}
.card ul.check li {
  position: relative;
  padding-left: 1.6rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}
.card ul.check li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.85;
}

/* --------------------------------------------------- 9. Feature splits */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3.5rem, 7vw, 6rem); }
.split--flip .split-media { order: -1; }

.split-media { display: flex; justify-content: center; }
.split-media .phone { width: min(262px, 70vw); }

.split-body ul.check { margin-top: 1.25rem; }
.split-body ul.check li { font-size: var(--step-0); }

@media (max-width: 800px) {
  .split--flip .split-media { order: 0; }
}

/* -------------------------------------------------------- 10. Language */
.lang-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lang-chips li {
  margin: 0;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: var(--step--1);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.lang-chips li:hover { border-color: var(--brand); color: var(--brand-text); transform: translateY(-2px); }
.lang-chips li span {
  color: var(--ink-faint);
  font-weight: 500;
  margin-left: 0.4rem;
}
.lang-chips li:hover span { color: inherit; opacity: 0.75; }

.rtl-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 620px;
  margin: 2.25rem auto 0;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface-container);
  color: var(--ink-muted);
  font-size: var(--step--1);
  text-align: left;
}
.rtl-note svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }

/* -------------------------------------------------------- 11. Gallery */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, 62vw);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem calc(50% - var(--container) / 2 + var(--gutter)) 1.5rem;
  margin-inline: 0;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--outline-strong); border-radius: 4px; }
.gallery::-webkit-scrollbar-track { background: transparent; }

.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-md);
  background: var(--surface-container);
}
.gallery figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------ 12. CTA */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: clamp(24px, 4vw, 34px);
  background: linear-gradient(135deg, #a8241f, #c9302a 55%, #d93a32);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-panel::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  right: -160px; top: -220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  pointer-events: none;
}
.cta-panel h2 { color: #fff; position: relative; }
.cta-panel p {
  position: relative;
  max-width: 46ch;
  margin: 0 auto 1.9rem;
  color: #fff;
  font-size: var(--step-1);
}
.cta-panel .cta-row { position: relative; justify-content: center; }
.cta-panel .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.cta-panel .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: #fff; }
.cta-fine {
  position: relative;
  margin-top: 1.5rem !important;
  font-size: var(--step--1) !important;
  color: #fff !important;
}

/* ------------------------------------------------------------ 13. FAQ */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--outline-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--brand-text); }
.faq .faq-body { padding: 0 1.35rem 1.25rem; color: var(--ink-muted); font-size: var(--step--1); }

/* -------------------------------------------------------- 14. Contact */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: 0.25rem; }
.contact-card p { color: var(--ink-muted); font-size: var(--step--1); }
.contact-card a.big {
  font-size: var(--step-1);
  font-weight: 650;
  word-break: break-word;
}

.placeholder {
  display: inline-block;
  padding: 0.1em 0.5em;
  border-radius: 6px;
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px dashed currentColor;
  font-size: 0.9em;
  font-weight: 600;
}

/* --------------------------------------------------------- 15. Footer */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--surface-low);
  border-top: 1px solid var(--outline);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.footer-brand p {
  color: var(--ink-muted);
  font-size: var(--step--1);
  max-width: 34ch;
  margin-top: 1rem;
}
.site-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer li a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: var(--step--1);
  transition: color 0.15s ease;
}
.site-footer li a:hover { color: var(--brand-text); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--outline);
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-legal a { color: var(--ink-faint); text-decoration: none; }
.footer-legal a:hover { color: var(--brand-text); text-decoration: underline; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ----------------------------------------------------- 16. Legal pages */
.legal-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--outline);
  background: var(--surface-low);
}
.legal-hero h1 { font-size: var(--step-3); margin-bottom: 0.65rem; }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
  margin: 0;
}
.legal-meta strong { color: var(--ink); font-weight: 600; }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(2.25rem, 5vw, 3.5rem) var(--section-y);
}

.legal-toc {
  position: sticky;
  top: 92px;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  padding-right: 0.5rem;
}
.legal-toc h2 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.85rem;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--outline);
}
.legal-toc li { margin: 0; }
.legal-toc a {
  display: block;
  padding: 0.34rem 0.9rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.45;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.is-active {
  color: var(--brand-text);
  border-left-color: var(--brand);
  font-weight: 600;
}

/* `min-width: 0` because a grid item defaults to min-width:auto — without it
   the min-width on .data-table would stretch the whole column and push the
   page into horizontal scroll instead of scrolling inside .table-scroll. */
.legal-body { max-width: 72ch; min-width: 0; font-size: 1.02rem; }
.legal-body h2 {
  font-size: var(--step-1);
  margin-top: 2.75rem;
  padding-top: 0.5rem;
  scroll-margin-top: 96px;
}
.legal-body > h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: var(--step-0);
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.legal-body p, .legal-body li { color: var(--ink-muted); }
.legal-body li { margin-bottom: 0.5rem; }
.legal-body strong { color: var(--ink); }

.callout {
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface-container);
  border-left: 3px solid var(--brand);
  margin: 1.5rem 0;
  font-size: var(--step--1);
}
.callout--good { background: var(--success-soft); border-left-color: var(--success); }
.callout--note { background: var(--warning-soft); border-left-color: var(--warning); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: 0.3rem; color: var(--ink); }

.data-table {
  width: 100%;
  /* Without a floor the three columns collapse to one word per line on a
     phone. The wrapper scrolls instead — readable beats "fits". */
  min-width: 520px;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.data-table th, .data-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--outline);
  vertical-align: top;
}
.data-table th {
  font-weight: 650;
  color: var(--ink);
  background: var(--surface-container);
  white-space: nowrap;
}
.data-table td { color: var(--ink-muted); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc {
    position: static;
    max-height: none;
    padding: 1.15rem 1.35rem;
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    background: var(--surface-low);
  }
  .legal-toc ol { columns: 2; column-gap: 1.5rem; border-left: 0; }
  .legal-toc a { padding-inline: 0; border-left: 0; }
  .legal-toc a.is-active { border-left: 0; }
}
@media (max-width: 520px) {
  .legal-toc ol { columns: 1; }
}

/* --------------------------------------------------------- 17. Motion */
/* Scoped to html.js so the content is visible when JavaScript is off or
   fails — the animation is an enhancement, never a gate on the content. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .play-badge:hover, .lang-chips li:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .legal-toc, .skip-link, .back-top { display: none !important; }
  .legal-layout { display: block; padding: 0; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}
