/* xIPTV site — single stylesheet, no framework. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-elev: #f4f5f8;
  --text: #15171c;
  --muted: #5c6370;
  --border: #e2e4ea;
  --accent: #4c6bff;
  --accent-text: #3350e3;
  --accent-contrast: #ffffff;
  --notice-bg: #fff6e0;
  --notice-border: #f0c96a;
  --radius: 14px;
  --wrap: 68rem;
  --prose: 44rem;
  --header-h: calc(3.5rem + 1px); /* sticky header: min-height + border, single-line nav */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1116;
    --bg-elev: #171a21;
    --text: #eceef2;
    --muted: #9aa1ad;
    --border: #262a34;
    --accent: #7d90ff;
    --accent-text: #a2b1ff;
    --notice-bg: #2a2412;
    --notice-border: #7a6224;
  }
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }

p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05em 0.35em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* Skip link */
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 28px; height: 28px; border-radius: 7px; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--text); }

.site-header nav a[aria-current="page"] { font-weight: 600; }

.lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Main */
main { flex: 1; padding: 2.5rem 0 3rem; }
main.landing { padding-top: 0; }

.prose { max-width: var(--prose); }

.meta { color: var(--muted); margin-bottom: 2rem; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

.notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.notice p:last-child { margin-bottom: 0; }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

/* Landing */
.hero {
  padding: 1.5rem 0 1rem;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.hero .logo { width: 88px; height: 88px; border-radius: 22px; border: 1px solid var(--border); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
}

.button.secondary {
  background: transparent;
  color: var(--accent-text);
  border: 1px solid var(--border);
}

/* Placeholders: replace with real assets before launch. */
.badge-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 54px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0 0.5rem;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.features li {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.features h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.features p { margin: 0; color: var(--muted); }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid var(--accent-text);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.screens figure { margin: 0; text-align: center; }

.screens figure.wide { grid-column: 1 / -1; }

.shot {
  display: block;
  width: 100%;
  max-width: 14rem;
  height: auto;
  margin: 0 auto 0.5rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  background: var(--bg-elev);
}

.shot-wide { max-width: 40rem; border-radius: 16px; }

.screens figcaption { color: var(--muted); font-size: 0.9rem; }

.plans {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.plans li {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.plans strong { display: block; }
.plans span { color: var(--muted); font-size: 0.9rem; }

/* FAQ */
details {
  border-top: 1px solid var(--border);
  padding: 0.9rem 0;
}
details:last-of-type { border-bottom: 1px solid var(--border); }
details.store, details.lang-menu { border: 0; padding: 0; }
.store > summary::after { content: none; }
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  flex-shrink: 0;
}
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0.75rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem 0;
}
.site-footer p { margin: 0 0 0.4rem; }
.site-footer a { color: inherit; }

@media (max-width: 600px) {
  :root { --header-h: calc(5.6rem + 1px); } /* nav wraps under the brand */
  .site-header nav { font-size: 0.9rem; gap: 0.2rem 0.8rem; }
  .hero .logo { width: 72px; height: 72px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Full-height hero (landing). hero.js picks a random dark image; the defaults below are the no-JS fallback. */
.hero-full {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  background: #07080c;
  color: #f3f4f8;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: url("/assets/hero/dark-1.jpg");
  background-image: image-set(url("/assets/hero/dark-1.webp") type("image/webp"), url("/assets/hero/dark-1.jpg") type("image/jpeg")); background-position: center; background-size: cover; background-repeat: no-repeat;
}

/* Slideshow layers (hero.js). Each layer covers .hero-media, inherits its position/size, and crossfades
   in while drifting slowly (Ken Burns). The base background of .hero-media stays under them. */
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: inherit;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; animation: hero-drift 11s linear forwards; }
/* A covered layer switches off instantly (it is hidden anyway), so only the incoming fade is ever visible. */
.hero-slide:not(.is-active) { transition: none; }
@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0.6%, 0, 0); }
  to { transform: scale(1.1) translate3d(-0.6%, -0.4%, 0); }
}

/* Hero copy: staggered rise on load. */
html[data-motion] .hero-content > * { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-content > :nth-child(2) { animation-delay: 0.12s; }
.hero-content > :nth-child(3) { animation-delay: 0.24s; }
.hero-content > :nth-child(4) { animation-delay: 0.36s; }
.hero-content > :nth-child(5) { animation-delay: 0.48s; }
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}
.scroll-hint { animation: nudge 2.4s ease-in-out 1.2s infinite; }
@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50% { transform: translate(-50%, 6px); opacity: 0.9; }
}

/* Scroll reveal (motion.js adds .reveal / .is-visible; data-motion keeps the no-JS page fully visible). */
html[data-motion] .reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
html[data-motion] .reveal[data-delay="1"] { transition-delay: 0.08s; }
html[data-motion] .reveal[data-delay="2"] { transition-delay: 0.16s; }
html[data-motion] .reveal[data-delay="3"] { transition-delay: 0.24s; }
html[data-motion] .reveal[data-delay="4"] { transition-delay: 0.32s; }
html[data-motion] .reveal[data-delay="5"] { transition-delay: 0.4s; }
html[data-motion] .reveal.is-visible { opacity: 1; transform: none; }
.card, .features li, .shot { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease; }
.card:hover, .features li:hover { transform: translateY(-3px); }
.screens figure:hover .shot { transform: translateY(-4px) scale(1.01); }
.button { transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease; }
.button:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-content > *, .scroll-hint, .card, .features li, .shot, .button { animation: none; transition: none; }
  .hero-slide.is-active { transform: none; }
  .card:hover, .features li:hover, .screens figure:hover .shot, .button:hover { transform: none; }
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 8, 12, 0.96) 0%, rgba(7, 8, 12, 0.85) 30%, rgba(7, 8, 12, 0.45) 46%, rgba(7, 8, 12, 0.1) 60%, rgba(7, 8, 12, 0) 75%);
}

.hero-content {
  position: relative;
  max-width: 38rem;
  padding: 5rem 16px;
  margin-left: max(0px, calc((100% - var(--wrap)) / 2));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8c4ff;
  margin-bottom: 1rem;
}

.eyebrow img { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.18); }

.hero-full h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero-full .lead { color: #c9cdd8; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; }

.hero-full .hero-actions { margin-top: 1.75rem; }

.appstore { display: inline-block; line-height: 0; }
.appstore img { height: 54px; width: auto; }
.appstore[aria-disabled="true"] { cursor: default; }

/* The App Store badge opens a small menu to pick the device (iPhone, iPad, Mac, Apple TV). */
.store { position: relative; display: inline-block; z-index: 5; }
.hero-full .hero-actions { position: relative; z-index: 5; }
.store > summary { list-style: none; cursor: pointer; }
.store > summary::-webkit-details-marker { display: none; }
.store > summary:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 3px; border-radius: 12px; }
.store-options {
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 30;
  min-width: 15rem; margin: 0; padding: 0.45rem; list-style: none;
  background: rgba(18, 20, 30, 0.98); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.store-title { padding: 0.35rem 0.8rem 0.45rem; font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: #9aa1b5; }
.store-options a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.8rem;
  border-radius: 11px; color: #fff; text-decoration: none; font-weight: 600;
}
.store-options a:hover, .store-options a:focus-visible { background: rgba(255, 255, 255, 0.12); }
.store-options a[aria-disabled="true"] { cursor: default; }
.store-options svg { width: 22px; height: 22px; flex: none; color: #cfd6ff; }

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.button.ghost:hover { background: rgba(255, 255, 255, 0.14); }

.hero-note { margin-top: 0.9rem; color: #9aa1b5; font-size: 0.9rem; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
}

@media (min-width: 721px) {
  /* Push the composition right so the headline never overlaps the phone. */
  .hero-media { left: 8%; background-position: left center; }
  .hero-content { max-width: min(38rem, 38vw); }
  html[data-hero="dark-1"] .hero-media, .hero-slide[data-img="dark-1"] { background-image: image-set(url("/assets/hero/dark-1.webp") type("image/webp"), url("/assets/hero/dark-1.jpg") type("image/jpeg")); }
  html[data-hero="dark-2"] .hero-media, .hero-slide[data-img="dark-2"] { background-image: image-set(url("/assets/hero/dark-2.webp") type("image/webp"), url("/assets/hero/dark-2.jpg") type("image/jpeg")); }
  html[data-hero="dark-3"] .hero-media, .hero-slide[data-img="dark-3"] { background-image: image-set(url("/assets/hero/dark-3.webp") type("image/webp"), url("/assets/hero/dark-3.jpg") type("image/jpeg")); }
  html[data-hero="dark-4"] .hero-media, .hero-slide[data-img="dark-4"] { background-image: image-set(url("/assets/hero/dark-4.webp") type("image/webp"), url("/assets/hero/dark-4.jpg") type("image/jpeg")); }
  html[data-hero="dark-5"] .hero-media, .hero-slide[data-img="dark-5"] { background-image: image-set(url("/assets/hero/dark-5.webp") type("image/webp"), url("/assets/hero/dark-5.jpg") type("image/jpeg")); }
  html[data-hero="dark-6"] .hero-media, .hero-slide[data-img="dark-6"] { background-image: image-set(url("/assets/hero/dark-6.webp") type("image/webp"), url("/assets/hero/dark-6.jpg") type("image/jpeg")); }
  html[data-hero="dark-7"] .hero-media, .hero-slide[data-img="dark-7"] { background-image: image-set(url("/assets/hero/dark-7.webp") type("image/webp"), url("/assets/hero/dark-7.jpg") type("image/jpeg")); }
  html[data-hero="dark-8"] .hero-media, .hero-slide[data-img="dark-8"] { background-image: image-set(url("/assets/hero/dark-8.webp") type("image/webp"), url("/assets/hero/dark-8.jpg") type("image/jpeg")); }
  html[data-hero="dark-9"] .hero-media, .hero-slide[data-img="dark-9"] { background-image: image-set(url("/assets/hero/dark-9.webp") type("image/webp"), url("/assets/hero/dark-9.jpg") type("image/jpeg")); }
  html[data-hero="dark-10"] .hero-media, .hero-slide[data-img="dark-10"] { background-image: image-set(url("/assets/hero/dark-10.webp") type("image/webp"), url("/assets/hero/dark-10.jpg") type("image/jpeg")); }
  html[data-hero="dark-11"] .hero-media, .hero-slide[data-img="dark-11"] { background-image: image-set(url("/assets/hero/dark-11.webp") type("image/webp"), url("/assets/hero/dark-11.jpg") type("image/jpeg")); }
}

@media (max-width: 720px) {
  .hero-full { align-items: end; }
  .hero-media { background-position: 10% top; background-image: image-set(url("/assets/hero/dark-m1.webp") type("image/webp"), url("/assets/hero/dark-m1.jpg") type("image/jpeg")); }
  html[data-hero-mobile="dark-m1"] .hero-media, .hero-slide[data-img="dark-m1"] { background-image: image-set(url("/assets/hero/dark-m1.webp") type("image/webp"), url("/assets/hero/dark-m1.jpg") type("image/jpeg")); }
  html[data-hero-mobile="dark-m2"] .hero-media, .hero-slide[data-img="dark-m2"] { background-image: image-set(url("/assets/hero/dark-m2.webp") type("image/webp"), url("/assets/hero/dark-m2.jpg") type("image/jpeg")); }
  html[data-hero-mobile="dark-m3"] .hero-media, .hero-slide[data-img="dark-m3"] { background-image: image-set(url("/assets/hero/dark-m3.webp") type("image/webp"), url("/assets/hero/dark-m3.jpg") type("image/jpeg")); }
  html[data-hero-mobile="dark-m4"] .hero-media, .hero-slide[data-img="dark-m4"] { background-image: image-set(url("/assets/hero/dark-m4.webp") type("image/webp"), url("/assets/hero/dark-m4.jpg") type("image/jpeg")); }
  html[data-hero-mobile="dark-m5"] .hero-media, .hero-slide[data-img="dark-m5"] { background-image: image-set(url("/assets/hero/dark-m5.webp") type("image/webp"), url("/assets/hero/dark-m5.jpg") type("image/jpeg")); }
  html[data-hero-mobile="dark-m6"] .hero-media, .hero-slide[data-img="dark-m6"] { background-image: image-set(url("/assets/hero/dark-m6.webp") type("image/webp"), url("/assets/hero/dark-m6.jpg") type("image/jpeg")); }
  html[data-hero-mobile="dark-m7"] .hero-media, .hero-slide[data-img="dark-m7"] { background-image: image-set(url("/assets/hero/dark-m7.webp") type("image/webp"), url("/assets/hero/dark-m7.jpg") type("image/jpeg")); }
  .hero-full h1 { font-size: clamp(1.8rem, 7.5vw, 2.3rem); }
  .hero-full::before {
    background: linear-gradient(180deg, rgba(7, 8, 12, 0.15) 0%, rgba(7, 8, 12, 0.55) 38%, rgba(7, 8, 12, 0.96) 62%);
  }
  .hero-content { padding-top: 46vh; padding-bottom: 2rem; margin-left: 0; }
  .hero-full .eyebrow { margin-bottom: 0.5rem; }
  .hero-full h1 { margin-bottom: 0.6rem; }
  .hero-full .lead { font-size: 0.95rem; margin-bottom: 0.5rem; }
  .hero-full .hero-actions { margin-top: 1rem; gap: 0.75rem; }
  .hero-note { display: none; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-hint { animation: nudge 1.8s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
}

/* Premium highlight */
.premium-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.premium-grid li {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.2rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--bg-elev)), var(--bg-elev));
}

.premium-grid svg { width: 32px; height: 32px; color: var(--accent-text); margin-bottom: 0.6rem; }
.premium-grid h3 { margin: 0 0 0.4rem; }
.premium-grid p { margin: 0; color: var(--muted); }

.section-intro { max-width: var(--prose); }

/* Language switcher (no JavaScript needed to open it) */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; font-size: 0.7rem; }
.lang-menu[open] summary { color: var(--text); }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  min-width: 13rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  z-index: 20;
}
.lang-menu li { margin: 0; }
.lang-menu li a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.lang-menu li a:hover { background: var(--bg-elev); }
.lang-menu li a[aria-current="true"] { font-weight: 700; color: var(--accent-text); }
.footer-langs { line-height: 1.9; }

/* Feature cards with a phone mockup */
.features li.with-shot { display: grid; grid-template-rows: auto 1fr; }
.feature-shot {
  display: block;
  height: 15rem;
  width: auto;
  margin: 0 auto 0.9rem;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

/* Usability section: compact cards with an icon, same surface as .features. */
.ux-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.ux-grid li {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.ux-grid li:hover { transform: translateY(-3px); }
.ux-grid svg { width: 28px; height: 28px; color: var(--accent-text); margin-bottom: 0.6rem; }
.ux-grid h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.ux-grid p { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ux-grid li, .ux-grid li:hover { transition: none; transform: none; } }

/* Apple TV section */
.soon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.tv-figure { margin: 1.2rem 0 1.4rem; }
.tv-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.tv-figure figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; text-align: center; }
.screens figure.tv, .screens figure.mac { grid-column: 1 / -1; }
.shot-tv { max-width: 44rem; border-radius: 14px; }
.shot-mac { max-width: 44rem; border-radius: 12px; }
.both-platforms {
  margin: 1.2rem 0 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elev));
}
.both-platforms p { margin: 0; }
@media (min-width: 721px) { .ux-grid.tv-grid { grid-template-columns: repeat(2, 1fr); } }

/* Feature cards without a screenshot */
.features li > svg { width: 28px; height: 28px; color: var(--accent-text); margin-bottom: 0.55rem; }
.features li.highlight {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--bg-elev)), var(--bg-elev));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.shot-ipad { max-width: 36rem; border-radius: 18px; }
.shot-ipad-portrait { max-width: 22rem; border-radius: 18px; }

/* Screenshot carousels: one horizontal, swipeable strip per device */
.device-title { margin: 1.6rem 0 0.6rem; font-size: 1.1rem; }
.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.25rem 0.9rem;
  margin: 0 -0.25rem 0.5rem;
}
.carousel:focus-visible { outline: 2px solid var(--accent, #3f6dfa); outline-offset: 2px; border-radius: 12px; }
.carousel figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; text-align: center; }
.carousel img {
  display: block;
  height: auto;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  background: var(--bg-elev);
}
.carousel figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.carousel-phone figure { width: 11.5rem; }
.carousel-phone img { width: 100%; border-radius: 26px; }
.carousel-ipad figure { width: min(30rem, 82vw); }
.carousel-tv figure { width: min(30rem, 82vw); }
.carousel-mac figure { width: min(30rem, 82vw); }
.carousel-ipad img { width: 100%; border-radius: 18px; }
.carousel-tv img { width: 100%; border-radius: 14px; }
.carousel-mac img { width: 100%; border-radius: 12px; }

/* Two screenshots that read as one panoramic image (CarPlay) */
.carousel-phone figure.pano-a img { border-radius: 26px 0 0 26px; border-right: 0; }
.carousel-phone figure.pano-b img { border-radius: 0 26px 26px 0; border-left: 0; }
.carousel-phone figure.pano-b { margin-left: -1rem; scroll-snap-align: none; }

/* Small print under legal sections (consumer rights carve-outs). */
p.fine { font-size: .8rem; line-height: 1.5; opacity: .75; }
