/* ============================================================
   JAVP — javp.app
   Design tokens mirror the in-app / updater palette.
   ============================================================ */

/* ---------------------------------------------------------- fonts
   Served from this domain, not a font CDN, so visiting the site does not
   hand a third party your IP address. Regenerate with tools/fetch_fonts.py.
   Variable files: one download covers every weight the site uses. */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/source-sans-3-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/source-sans-3-latin-ext-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0c0f;
  --bg-deep: #08090c;
  --surface: #14161c;
  --surface-2: #1c1f28;
  --surface-3: #232734;
  --border: #2a2f3a;
  --border-soft: #21252e;
  --text: #f4f5f7;
  --muted: #9aa3b2;
  --muted-dim: #6c7484;
  --accent: #e11d48;
  --accent-hi: #f43f5e;
  --accent-soft: rgba(225, 29, 72, 0.2);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;

  --r-sm: 0.55rem;
  --r-md: 0.85rem;
  --r-lg: 1.15rem;
  --r-xl: 1.6rem;

  --wrap: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

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

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

a { color: var(--accent-hi); text-decoration-color: rgba(244, 63, 94, 0.35); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding: 0.08em 0.38em;
}

::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute;
  inset-inline-start: -999px;
  top: 0.5rem;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { inset-inline-start: 0.5rem; }

/* ---------------------------------------------------------- background */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 50% at 50% -8%, rgba(225, 29, 72, 0.22), transparent 60%),
    linear-gradient(180deg, #101218 0%, var(--bg) 38%, var(--bg-deep) 100%);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.aurora-blob.a {
  width: 46rem; height: 46rem;
  top: -18rem; left: -10rem;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.42), transparent 68%);
  animation: drift-a 26s var(--ease) infinite alternate;
}
.aurora-blob.b {
  width: 38rem; height: 38rem;
  top: 22%; right: -14rem;
  background: radial-gradient(circle, rgba(129, 40, 180, 0.3), transparent 68%);
  animation: drift-b 32s var(--ease) infinite alternate;
}
.aurora-blob.c {
  width: 34rem; height: 34rem;
  bottom: -12rem; left: 30%;
  background: radial-gradient(circle, rgba(190, 24, 60, 0.24), transparent 70%);
  animation: drift-c 38s var(--ease) infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(8rem, 5rem, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-7rem, -4rem, 0) scale(1.08); } }
@keyframes drift-c { to { transform: translate3d(5rem, -6rem, 0) scale(0.92); } }

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------- layout */

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}
.wrap.narrow { width: min(48rem, 100% - 2.5rem); }

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }

.section.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(20, 22, 28, 0.72) 12%, rgba(20, 22, 28, 0.72) 88%, transparent);
  border-block: 1px solid var(--border-soft);
  z-index: -1;
}

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hi);
}

.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }

.sub {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.6;
  max-width: 46ch;
}

.grad {
  background: linear-gradient(100deg, var(--accent-hi) 0%, #fb7185 40%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fineprint { color: var(--muted-dim); font-size: 0.86rem; line-height: 1.5; }

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 0.7rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  padding: 0.85rem 1.35rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 10px 26px -10px rgba(225, 29, 72, 0.75);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 16px 34px -12px rgba(225, 29, 72, 0.9); }
.btn:active { transform: translateY(0); }

.btn-lg { font-size: 1.05rem; padding: 1rem 1.7rem; border-radius: 0.8rem; }
.btn-sm { font-size: 0.9rem; padding: 0.6rem 1.05rem; border-radius: 0.6rem; }

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
  font-weight: 600;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--muted-dim);
  box-shadow: none;
}

/* ---------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 260ms var(--ease), border-color 260ms var(--ease), backdrop-filter 260ms;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(11, 12, 15, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border-soft);
}

.nav-inner {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
  height: 4.4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.brand img { border-radius: 0.5rem; }

.nav-links {
  display: flex;
  gap: 1.55rem;
  margin-inline-start: auto;
  font-size: 0.94rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 160ms;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.45rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 220ms var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 0.85rem; }

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 160ms;
}
.ghost-link:hover { color: var(--text); }

/* an offer, not a redirect: scrolls away with the page rather than sticking */
.lang-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  padding: 0.7rem 3rem;
  position: relative;
  background: rgba(225, 29, 72, 0.1);
  border-bottom: 1px solid rgba(225, 29, 72, 0.24);
  color: var(--text);
  font-size: 0.92rem;
  text-align: center;
}
.lang-suggest a {
  color: var(--accent-hi);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.lang-suggest a:hover { color: var(--text); }

.lang-suggest-close {
  position: absolute;
  inset-inline-end: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.lang-suggest-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

/* language switcher — a <details> so it works with no JavaScript at all */
.lang { position: relative; }
.lang > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  transition: color 160ms, background 160ms;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::marker { content: ""; }
.lang > summary:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.lang[open] > summary { color: var(--text); }

.lang-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.4rem);
  z-index: 60;
  max-height: min(60vh, 24rem);
  overflow-y: auto;
  display: grid;
  /* Nineteen languages are a long scroll in one column. Filling down and then
     across keeps them alphabetical, and adds a column instead of height if the
     list ever grows again. */
  grid-auto-flow: column;
  grid-template-rows: repeat(10, auto);
  gap: 0.1rem 0.25rem;
  padding: 0.35rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}
.lang-list a {
  display: block;
  padding: 0.42rem 0.6rem;
  border-radius: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.lang-list a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.lang-list a[aria-current] { color: var(--text); background: rgba(225, 29, 72, 0.14); }

/* inside the mobile drawer there is room to open in place */
.nav-drawer .lang > summary { padding-inline: 0; }
.nav-drawer .lang-list {
  position: static;
  margin-top: 0.35rem;
  box-shadow: none;
  max-height: 14rem;
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  width: 2.6rem; height: 2.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  cursor: pointer;
  padding: 0.7rem 0.65rem;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 220ms var(--ease), opacity 160ms;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-drawer[hidden] { display: none; }

.nav-drawer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1.25rem 1.5rem;
  background: rgba(11, 12, 15, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-drawer a {
  color: var(--text);
  text-decoration: none;
  padding: 0.72rem 0.25rem;
  border-bottom: 1px solid var(--border-soft);
}
.nav-drawer a.btn {
  margin-top: 0.9rem;
  border-bottom: 0;
  justify-content: center;
}

/* ---------------------------------------------------------- hero */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.85rem;
}
.eyebrow .dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 0.55rem rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.05rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.lede {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  line-height: 1.55;
  max-width: 34rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }
.hero-cta.center { justify-content: center; }

.hero-meta { margin: 1.1rem 0 0; color: var(--muted-dim); font-size: 0.9rem; }
.hero-meta #hero-abi { color: var(--muted); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-trust li { display: flex; align-items: center; gap: 0.45rem; }
.hero-trust li::before {
  content: "";
  width: 1rem; height: 1rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f43f5e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E");
  background-size: 0.7rem;
  background-repeat: no-repeat;
  background-position: center;
}

/* ------------------------------------------------ hero visual / phone */

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }

.glow-ring {
  position: absolute;
  width: 26rem; height: 26rem;
  top: 50%; left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.3), transparent 62%);
  filter: blur(40px);
  z-index: -1;
}

.phone {
  width: min(19.5rem, 82vw);
  aspect-ratio: 9 / 17.6;
  border-radius: 2.4rem;
  padding: 0.55rem;
  background: linear-gradient(160deg, #2b303c, #14161c 42%, #0d0f14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 42px 80px -28px rgba(0, 0, 0, 0.9),
    0 0 70px -20px rgba(225, 29, 72, 0.4);
  position: relative;
  transform: perspective(1600px) rotateY(-13deg) rotateX(4deg) translateZ(0);
  transition: transform 600ms var(--ease);
}
.phone:hover { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); }

.phone-notch {
  position: absolute;
  top: 0.95rem; left: 50%;
  translate: -50% 0;
  width: 4.6rem; height: 0.42rem;
  background: #05060a;
  border-radius: 999px;
  z-index: 4;
}

.phone-screen {
  height: 100%;
  border-radius: 2rem;
  overflow: hidden;
  background: #05060a;
  display: flex;
  flex-direction: column;
}

.pl-video {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
  flex: none;
  user-select: none;
}

.pl-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 32%, rgba(255, 214, 170, 0.5), transparent 42%),
    radial-gradient(circle at 30% 70%, rgba(120, 60, 200, 0.42), transparent 55%),
    linear-gradient(150deg, #1b1030, #3a1220 45%, #090a12);
}
.pl-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 32%, rgba(255, 255, 255, 0.85), transparent 8%);
  opacity: 0.55;
}
.pl-beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.09) 50%, transparent 65%);
  animation: beam 6.5s var(--ease) infinite;
}
@keyframes beam {
  0%, 100% { transform: translateX(-60%); }
  50% { transform: translateX(60%); }
}

.pl-zone {
  position: absolute;
  top: 0; bottom: 0;
  width: 33.34%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}
.pl-zone.left { left: 0; }
.pl-zone.center { left: 33.33%; }
.pl-zone.right { right: 0; }
.pl-zone.is-active {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 70%);
}

.pl-badge {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  z-index: 5;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  opacity: 0;
  transition: opacity 160ms, transform 220ms var(--ease);
}
.pl-badge.show { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }

.pl-chrome {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.55rem 0.6rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 32%, transparent 58%, rgba(0,0,0,0.78));
  opacity: 1;
  transition: opacity 260ms var(--ease);
  pointer-events: none;
}
.pl-chrome.hidden { opacity: 0; }

.pl-top { display: flex; align-items: center; justify-content: space-between; color: #fff; }
.pl-title { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; }
.pl-icons { display: inline-flex; gap: 0.45rem; opacity: 0.8; }

.pl-bottom { display: flex; flex-direction: column; gap: 0.28rem; }

.pl-scrub {
  position: relative;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  overflow: visible;
}
.pl-buffer {
  position: absolute; inset: 0 30% 0 0;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 3px;
}
.pl-played {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 260ms var(--ease);
}
.pl-played i {
  position: absolute;
  right: -3.5px; top: 50%;
  translate: 0 -50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.9);
}

.pl-times {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.56rem;
  font-variant-numeric: tabular-nums;
}

.pl-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  margin-top: 0.1rem;
}
.pl-play {
  width: 1.5rem; height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.pl-spacer { flex: 1; }
.pl-chip {
  font-family: var(--font-display);
  font-size: 0.54rem;
  font-weight: 600;
  padding: 0.14rem 0.34rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.14);
}

.pl-browse { padding: 0.85rem 0.75rem; background: #0b0c0f; flex: 1; }
.pl-browse-h {
  margin: 0.95rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.pl-browse-h:first-child { margin-top: 0; }

.pl-row { display: flex; gap: 0.4rem; }
.pl-card {
  position: relative;
  flex: 1;
  aspect-ratio: 2 / 3;
  border-radius: 0.35rem;
  background: linear-gradient(155deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.pl-card:nth-child(1) { background: linear-gradient(155deg, #3a1f2c, #191119); }
.pl-card:nth-child(2) { background: linear-gradient(155deg, #1f2a3a, #111419); }
.pl-card:nth-child(3) { background: linear-gradient(155deg, #2c2a3a, #141319); }

.pl-row.alt .pl-card:nth-child(1) { background: linear-gradient(155deg, #26303a, #10141a); }
.pl-row.alt .pl-card:nth-child(2) { background: linear-gradient(155deg, #3a2a1f, #191510); }
.pl-row.alt .pl-card:nth-child(3) { background: linear-gradient(155deg, #202f2c, #101715); }

.pl-progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2.5px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(225, 29, 72, 0.8);
}

.pl-live { display: grid; gap: 0.35rem; }
.pl-ch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.pl-ch b {
  flex: none;
  width: 1.15rem; height: 1.15rem;
  border-radius: 0.25rem;
  background: linear-gradient(150deg, #3a1220, #1b1d25);
  border: 1px solid var(--border);
}
.pl-ch em {
  font-style: normal;
  font-size: 0.56rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-ch:first-child em { color: var(--text); }

.demo-hint {
  margin: 1.6rem 0 0;
  color: var(--muted-dim);
  font-size: 0.88rem;
  text-align: center;
}
.demo-hint strong { color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------- marquee */

.marquee {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: 1rem 0;
  border-block: 1px solid var(--border-soft);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: scroll 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-right: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-set i { color: var(--accent); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- gesture cards */

.gesture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19.5rem, 1fr));
  gap: 1.1rem;
}

.g-card {
  padding: 1.35rem;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(28, 31, 40, 0.75), rgba(20, 22, 28, 0.6));
  border: 1px solid var(--border);
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), background 240ms;
  position: relative;
  overflow: hidden;
}
.g-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(28rem 18rem at var(--mx, 50%) var(--my, 0%), rgba(225, 29, 72, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}
.g-card:hover { transform: translateY(-4px); border-color: rgba(225, 29, 72, 0.45); }
.g-card:hover::after { opacity: 1; }

.g-card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.5rem; }
.g-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.g-visual {
  height: 7.5rem;
  margin-bottom: 1.15rem;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, #16181f, #0c0d12);
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

/* hold to 2x */
.g-hold { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.g-hold::before {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.18));
}
.g-finger {
  position: absolute;
  right: 18%;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: hold 3s var(--ease) infinite;
}
@keyframes hold {
  0%, 12% { transform: scale(0.6); opacity: 0; }
  22%, 78% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.g-2x {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: fade-cycle 3s var(--ease) infinite;
}
@keyframes fade-cycle {
  0%, 15% { opacity: 0; transform: translateY(6px); }
  28%, 80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

/* double tap */
.g-taps { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.g-ripple {
  position: absolute;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 63, 94, 0.7);
  animation: ripple 2.2s var(--ease) infinite;
}
@keyframes ripple {
  0% { transform: scale(0.35); opacity: 1; }
  100% { transform: scale(2.1); opacity: 0; }
}
.g-jump {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  animation: jump 2.2s var(--ease) infinite;
}
@keyframes jump {
  0%, 10% { opacity: 0; transform: translateX(-6px); }
  35%, 75% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(6px); }
}

/* dvr */
.g-dvr { width: 78%; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.g-line {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}
.g-line i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: var(--accent);
  animation: dvr 4s var(--ease) infinite;
}
@keyframes dvr {
  0%, 100% { width: 100%; }
  45%, 60% { width: 34%; }
}
.g-live {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 0.3rem;
  background: var(--accent);
}

/* lock */
.g-lock { color: var(--accent-hi); }
.g-lock svg { width: 3rem; height: 3rem; }

/* pip */
.g-pip { position: relative; width: 70%; height: 62%; }
.g-pip-big {
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.g-pip-small {
  position: absolute;
  right: -6%; bottom: -12%;
  width: 46%; height: 52%;
  border-radius: 0.4rem;
  background: linear-gradient(150deg, #3a1220, #14161c);
  border: 1px solid rgba(244, 63, 94, 0.5);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.9);
  animation: pip 4s var(--ease) infinite;
}
@keyframes pip {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12%, -8%) scale(0.94); }
}

/* captions */
.g-cc { padding: 0 1rem; }
.g-cc span {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 0 3px #000, 0 2px 5px rgba(0, 0, 0, 0.9);
  animation: cc 5s steps(1) infinite;
}
@keyframes cc {
  0%, 32% { color: #fff; text-shadow: 0 0 3px #000, 0 2px 5px rgba(0,0,0,.9); background: none; }
  33%, 65% { color: #fde047; text-shadow: -1px -1px 0 #000, 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000; background: none; }
  66%, 100% { color: #fff; text-shadow: none; background: rgba(0, 0, 0, 0.72); }
}

/* ---------------------------------------------------------- spec strip */

.spec-strip {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.spec { padding: 1.35rem 1.25rem; background: rgba(11, 12, 15, 0.86); }
.spec h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.35rem; }
.spec p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------------------------------------------------------- sources */

.src-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.1rem;
}

.src {
  padding: 1.5rem 1.4rem;
  border-radius: var(--r-lg);
  background: rgba(11, 12, 15, 0.6);
  border: 1px solid var(--border);
  transition: transform 240ms var(--ease), border-color 240ms, background 240ms;
}
.src:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.4);
  background: rgba(28, 31, 40, 0.7);
}
.src h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.src p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.src-ico {
  display: grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  margin-bottom: 1.1rem;
  border-radius: 0.75rem;
  background: linear-gradient(160deg, rgba(225, 29, 72, 0.22), rgba(225, 29, 72, 0.05));
  border: 1px solid rgba(225, 29, 72, 0.32);
  color: var(--accent-hi);
}
.src-ico svg { width: 1.5rem; height: 1.5rem; }

.callout {
  margin-top: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(30rem 16rem at 8% 0%, rgba(225, 29, 72, 0.16), transparent 65%),
    rgba(20, 22, 28, 0.8);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}
.callout h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.6rem; }
.callout p { margin: 0; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chips li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

/* ---------------------------------------------------------- split sections */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-copy { order: 2; }
.split-copy .sub { margin-bottom: 1.6rem; }

.ticks { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.8rem; }
.ticks li {
  position: relative;
  padding-inline-start: 1.85rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 0.28rem;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.16);
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f43f5e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E");
  background-size: 0.72rem;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------------------------------------------------------- EPG mock */

.epg {
  position: relative;
  padding: 1rem;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(28, 31, 40, 0.9), rgba(11, 12, 15, 0.95));
  border: 1px solid var(--border);
  box-shadow: 0 32px 70px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.epg-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}
.epg-now { color: var(--accent-hi); }
.epg-rows { display: grid; gap: 0.45rem; padding-top: 0.75rem; }
.epg-row { display: flex; gap: 0.35rem; align-items: stretch; }
.epg-ch {
  flex: 0 0 6.5rem;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border-radius: 0.4rem;
  background: var(--surface-2);
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.epg-prog {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.epg-prog.p1 { flex: 1.6; }
.epg-prog.p2 { flex: 2.4; }
.epg-prog.p3 { flex: 2; }
.epg-prog.p4 { flex: 1.4; }
.epg-prog.is-live {
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.3), rgba(225, 29, 72, 0.12));
  border-color: rgba(244, 63, 94, 0.55);
  color: var(--text);
  font-weight: 600;
}
.epg-needle {
  position: absolute;
  top: 2.6rem; bottom: 0.6rem;
  inset-inline-start: 42%;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-hi), transparent);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.8);
}
.epg-needle::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  translate: -50% 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-hi);
}

/* ---------------------------------------------------------- TV mock */

.tvset { display: flex; flex-direction: column; align-items: center; }

.tv-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  border-radius: 0.9rem;
  background: #05060a;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 6px #101217, 0 36px 70px -30px rgba(0, 0, 0, 0.95), 0 0 60px -22px rgba(225, 29, 72, 0.4);
  overflow: hidden;
}

.tv-rail {
  flex: 0 0 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.5rem 0;
  align-items: center;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
}
.tv-dot {
  width: 0.6rem; height: 0.6rem;
  border-radius: 0.2rem;
  background: var(--surface-3);
}
.tv-dot.on { background: var(--accent); box-shadow: 0 0 10px rgba(225, 29, 72, 0.9); }

.tv-body { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.tv-hero {
  flex: 1.5;
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 190, 140, 0.4), transparent 45%),
    linear-gradient(140deg, #33132a, #12131a);
  display: grid;
  place-items: center;
}
.tv-play {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}
.tv-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  translate: -50% -50%;
  border-left: 0.6rem solid #fff;
  border-block: 0.38rem solid transparent;
}
.tv-shelf-title {
  height: 0.4rem;
  width: 4.5rem;
  margin: 0;
  border-radius: 999px;
  background: var(--surface-3);
}
.tv-shelf { flex: 1; display: flex; gap: 0.4rem; }
.tv-tile {
  flex: 1;
  border-radius: 0.35rem;
  background: var(--surface-2);
  border: 1.5px solid transparent;
}
.tv-tile.focus {
  border-color: var(--accent);
  background: var(--surface-3);
  box-shadow: 0 0 18px -4px rgba(225, 29, 72, 0.8);
  animation: tv-focus 4s var(--ease) infinite;
}
@keyframes tv-focus {
  0%, 40% { transform: translateY(0) scale(1); }
  50%, 90% { transform: translateY(-4%) scale(1.05); }
}

.tv-qr {
  position: absolute;
  inset-inline-end: 1rem; top: 1rem;
  width: 5.9rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(11, 12, 15, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  text-align: center;
}
.tv-qr p { margin: 0.4rem 0 0; font-size: 0.55rem; color: var(--muted); line-height: 1.25; }
.qr-grid {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.25rem;
  background: #fff url("assets/qr-mock.svg") center / 88% 88% no-repeat;
  border: 3px solid #fff;
}

.tv-stand {
  width: 32%;
  height: 0.45rem;
  margin-top: 0.5rem;
  border-radius: 0 0 0.4rem 0.4rem;
  background: linear-gradient(180deg, #22252e, #0f1116);
}

/* ---------------------------------------------------------- sync */

.sync-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}
.sync-card {
  padding: 1.4rem;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(28, 31, 40, 0.7), rgba(20, 22, 28, 0.55));
  border: 1px solid var(--border);
  transition: border-color 240ms, transform 240ms var(--ease);
}
.sync-card:hover { border-color: rgba(225, 29, 72, 0.4); transform: translateY(-3px); }
.sync-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.45rem; }
.sync-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.sync-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: rgba(11, 12, 15, 0.55);
}
.sync-detail h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.55rem; }
.sync-detail p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------------------------------------------------------- privacy */

/* Six cards: keep it at three columns so the last row never leaves empty cells. */
.priv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.priv { padding: 1.5rem 1.35rem; background: rgba(11, 12, 15, 0.86); transition: background 240ms; }
.priv:hover { background: rgba(28, 31, 40, 0.86); }
.priv h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.4rem; }
.priv p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.priv-more { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---------------------------------------------------------- download */

.download { padding-bottom: clamp(4rem, 8vw, 6rem); }

.dl-card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(38rem 22rem at 50% -10%, rgba(225, 29, 72, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(28, 31, 40, 0.85), rgba(11, 12, 15, 0.92));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}
.dl-card::before {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 63, 94, 0.8), transparent);
}

.dl-head { text-align: center; max-width: 34rem; margin: 0 auto 2rem; }
.dl-head img { margin: 0 auto 1.1rem; border-radius: 1.1rem; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.9); }
.dl-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.dl-head .sub { margin-inline: auto; }

.dl-primary { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; margin-bottom: 2.5rem; }
.dl-primary .btn { width: min(24rem, 100%); }
.dl-guess { margin: 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.dl-guess strong { color: var(--text); font-weight: 600; }

.dl-builds { max-width: 40rem; margin: 0 auto; }
.dl-builds h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.85rem;
}
.dl-list { display: grid; gap: 0.55rem; margin-bottom: 0.9rem; }

.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms, background 180ms, transform 180ms var(--ease);
}
.dl-item:hover { border-color: var(--accent); transform: translateX(3px); }
.dl-item.is-recommended {
  border-color: rgba(244, 63, 94, 0.6);
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.16), var(--surface-2));
}
.dl-item-label { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.dl-item-tag {
  margin-inline-start: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hi);
}
.dl-item-meta { color: var(--muted); font-size: 0.84rem; text-align: end; }

.dl-steps {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border-soft);
  list-style: none;
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}
.dl-steps li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.dl-steps li span {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--accent-hi);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
}

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

.faq { display: grid; gap: 0.6rem; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(20, 22, 28, 0.6);
  transition: border-color 200ms, background 200ms;
}
.faq details[open] { border-color: rgba(225, 29, 72, 0.4); background: rgba(28, 31, 40, 0.72); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding-block: 1.05rem;
  padding-inline: 1.25rem 3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 1.25rem; top: 50%;
  width: 0.62rem; height: 0.62rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  translate: 0 -70%;
  rotate: 45deg;
  transition: rotate 220ms var(--ease), border-color 200ms;
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 -20%; border-color: var(--accent-hi); }
.faq details p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--muted); font-size: 0.97rem; }

/* ---------------------------------------------------------- final CTA */

.final {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  background: radial-gradient(40rem 20rem at 50% 100%, rgba(225, 29, 72, 0.18), transparent 70%);
}
.final h2 { font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 700; }

/* ---------------------------------------------------------- footer */

.footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  border-top: 1px solid var(--border-soft);
  background: rgba(8, 9, 12, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
}
.footer-brand p { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.92rem; max-width: 24rem; }

.footer nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.35rem;
}
.footer nav a { color: var(--muted); text-decoration: none; font-size: 0.93rem; transition: color 160ms; }
.footer nav a:hover { color: var(--text); }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.footer-bottom p { margin: 0; color: var(--muted-dim); font-size: 0.84rem; }

/* ---------------------------------------------------------- legal pages */

.legal { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 700; }
.legal .updated { color: var(--muted-dim); font-size: 0.9rem; margin: 0.85rem 0 2.5rem; }
.legal h2 { font-size: 1.35rem; font-weight: 600; margin: 2.5rem 0 0.75rem; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.15rem; display: grid; gap: 0.45rem; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.93rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-soft);
  color: var(--muted);
  vertical-align: top;
}
.legal th { color: var(--text); font-family: var(--font-display); font-weight: 600; background: var(--surface-2); }

/* ---------------------------------------------------------- /add App Link landing */

.add-landing {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}
.add-landing h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0.35rem 0 1rem;
}
.add-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0 0 1.75rem;
}
.add-lede strong { color: var(--text); font-weight: 600; }

.add-card {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.add-card-warn {
  border-color: rgba(244, 63, 94, 0.32);
  background: rgba(225, 29, 72, 0.09);
}
.add-card-warn p { margin: 0; color: var(--muted); }

.add-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.25rem;
  margin: 0;
}
.add-meta-wide { grid-column: 1 / -1; }
.add-meta dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-dim);
  margin: 0 0 0.2rem;
}
.add-meta dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}
.add-meta .mono,
.add-foot .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}

.add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.add-hint {
  min-height: 1.4em;
  margin: 0 0 1.5rem;
  color: var(--muted-dim);
  font-size: 0.92rem;
}
.add-steps {
  margin: 0 0 1.75rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}
.add-steps strong { color: var(--text); }
.add-foot {
  color: var(--muted-dim);
  font-size: 0.9rem;
  margin: 0;
}
.add-foot code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 34rem) {
  .add-meta { grid-template-columns: 1fr; }
  .add-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------- docs page */

.docs { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }

.docs-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.docs-head h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 700; }
.docs-head .sub { max-width: 42rem; }

.doc-callout {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(244, 63, 94, 0.32);
  background: rgba(225, 29, 72, 0.09);
  color: var(--muted);
  font-size: 0.95rem;
}
.doc-callout em { color: var(--text); font-style: italic; }

.docs-layout {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

/* table of contents */
.toc {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding-right: 0.35rem;
}
.toc h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.7rem;
  padding-left: 0.6rem;
}
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.toc a {
  display: block;
  padding: 0.35rem 0.6rem;
  border-left: 2px solid var(--border-soft);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms, background 160ms, border-color 160ms;
}
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.toc a.is-active {
  color: var(--text);
  border-left-color: var(--accent);
  background: rgba(225, 29, 72, 0.1);
}
.toc .toc-sub a { padding-left: 1.4rem; font-size: 0.84rem; }

/* document body */
.doc { min-width: 0; }
.doc h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  margin: 3rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-soft);
}
.doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { font-size: 1.15rem; font-weight: 600; margin: 2.25rem 0 0.7rem; }
.doc h4 { font-size: 1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; color: var(--muted); }
.doc p { color: var(--muted); margin: 0 0 1rem; }
.doc ul, .doc ol { margin: 0 0 1.15rem; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.doc li { color: var(--muted); }
.doc li strong, .doc p strong, .doc td strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent-hi); }

.doc-note {
  padding: 0.85rem 1.05rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.93rem;
}

.doc-rule { margin: 3rem 0 1.75rem; border: 0; border-top: 1px solid var(--border-soft); }

/* code blocks */
.doc pre {
  position: relative;
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  background: #08090d;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
  tab-size: 2;
}
.doc pre code {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: #cfd5e0;
  white-space: pre;
}

/* long single-line URLs read better wrapped than scrolled */
.doc pre.pre-wrap code { white-space: pre-wrap; word-break: break-all; }
.doc pre.pre-wrap { padding-right: 4.5rem; }

.copy-btn {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms, color 160ms, border-color 160ms;
}
.doc pre:hover .copy-btn,
.copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--text); border-color: var(--muted-dim); }
.copy-btn.is-done { color: #4ade80; border-color: rgba(74, 222, 128, 0.5); opacity: 1; }

/* tables */
.table-wrap {
  margin: 0 0 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
}
.doc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.doc th, .doc td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  vertical-align: top;
}
.doc tbody tr:last-child th, .doc tbody tr:last-child td { border-bottom: 0; }
.doc th {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--surface-2);
  white-space: nowrap;
}
.doc td:first-child { white-space: nowrap; }
.doc td code { white-space: nowrap; }

@media (max-width: 60rem) {
  .docs-layout { grid-template-columns: 1fr; }
  .toc {
    position: static;
    max-height: none;
    padding: 1rem 0 0;
    border-top: 1px solid var(--border-soft);
    margin-bottom: 2rem;
  }
  /* subsections would make the inline TOC longer than the first screen */
  .toc .toc-sub { display: none; }
  .doc td:first-child { white-space: normal; }
}

.notfound {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}
.notfound h1 { font-size: clamp(3rem, 12vw, 6rem); }

/* ---------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- rtl */

/* Layout mirrors for Arabic through logical properties, but these three are
   pictures rather than content: a phone showing a scrubber and left/right
   gesture zones, the gesture diagrams they illustrate, and a marquee whose
   seam depends on the direction it scrolls. Mirroring half of each looked
   broken, so they stay physically left-to-right in every language. */
[dir="rtl"] .phone,
[dir="rtl"] .g-visual,
[dir="rtl"] .marquee { direction: ltr; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; text-align: start; }
  .hero-visual { margin-top: 1rem; }
  .phone { transform: none; }
  .phone:hover { transform: none; }
  .split, .callout { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 52rem) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav { background: rgba(11, 12, 15, 0.78); backdrop-filter: blur(14px); }

  /* pages without a drawer keep their two actions in the bar */
  .nav-simple .nav-actions { display: flex; gap: 0.7rem; }
  .nav-simple .nav-toggle { display: none; }
}

@media (max-width: 26rem) {
  .nav-simple .hide-xs { display: none; }
}

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .wrap, .wrap.narrow { width: min(100% - 1.75rem, 100%); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .dl-item { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .dl-item-meta { text-align: start; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .aurora, .nav, .phone, .hero-visual { display: none; }
  body { background: #fff; color: #000; }
}
