/* Hallmark · genre: atmospheric · macrostructure: Map / Diagram · theme: custom (Geist frame + app palette)
 * tone: technical-cinematic, restrained · anchor hue: navy 265 (Ink) · accent: mint 187 (interaction only)
 * nav: N5 floating pill · footer: Ft5 (its statement leads the privacy section, beside a picture) · enrichment: drawn orbit + lit, angled store captures (en/de) + TV/phone stage
 * theme_axes: dark / geometric-sans + mono / chromatic-other (mint)
 * Hallmark · pre-emit critique: P5 H5 E5 S5 R4 V5 · revision 2026-11-14 (marketing + creative review, German page)
 */

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

body { overflow-x: hidden; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-12); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-base);
  color: var(--color-fg-2);
  background:
    radial-gradient(56rem 38rem at 82% 6%, var(--color-bloom), transparent 72%) no-repeat,
    var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  color: var(--color-fg-1);
  font-weight: var(--weight-semibold);
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
  min-width: 0;
}
p { margin: 0; text-wrap: pretty; }
strong { color: var(--color-fg-1); font-weight: var(--weight-semibold); }
img { display: block; max-width: 100%; height: auto; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; }
:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-gap);
}
a:focus-visible, summary:focus-visible { border-radius: var(--radius-md); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; inset-inline-start: var(--space-4); top: var(--space-4); z-index: 50;
  padding: var(--space-3) var(--space-5);
  background: var(--color-accent); color: var(--color-accent-fg);
  font-weight: var(--weight-semibold); text-decoration: none;
  border-radius: var(--radius-md);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* ---------- Brand mark (the #orbit symbol: core BrandMark, drawn by tools/make-icons.py) */
.mark { display: block; width: 2rem; height: 2rem; flex: none; }

/* ---------- Buttons (chevron end-cap, lift on hover, no shrink) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 3rem;
  padding-block: 0;
  padding-inline: var(--space-6) var(--space-5);
  border: var(--rule-hair) solid transparent;
  border-radius: var(--radius-md);
  font: var(--weight-semibold) var(--text-md) / 1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn .chev {
  width: 1rem; height: 1rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:hover .chev { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn:active .chev { transform: translateX(1px); }

.btn--primary { background: var(--color-accent); color: var(--color-accent-fg); }
.btn--primary:hover { background: var(--color-aurora-hover); }

.btn--quiet { background: transparent; color: var(--color-fg-2); border-color: var(--color-rule); }
.btn--quiet:hover { background: var(--color-ink-card); color: var(--color-fg-1); }
.btn--quiet:active { background: var(--color-ink-lift); }

.btn--sm { min-height: 2.5rem; padding-inline: var(--space-4) var(--space-3); font-size: var(--text-sm); }
.btn--lg { min-height: 3.5rem; padding-inline: var(--space-7) var(--space-6); font-size: var(--text-lg); }
@media (max-width: 25rem) {
  .btn--lg { min-height: 3rem; padding-inline: var(--space-6) var(--space-5); font-size: var(--text-md); }
}

.link {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  font-weight: var(--weight-medium);
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Nav · N5 floating pill ---------------------------------- */
.nav {
  position: fixed; z-index: 20;
  inset: var(--space-4) 0 auto 0;
  display: flex; justify-content: center;
  padding-inline: var(--space-4);
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--space-2);
  max-width: 100%;
  padding: var(--space-1);
  padding-inline-start: var(--space-4);
  background: var(--color-scrim);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px -16px var(--color-shadow);
}
.nav__pill .btn { border-radius: var(--radius-pill); }
.nav__pill :focus-visible { border-radius: var(--radius-pill); }
.nav__brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-inline-end: var(--space-2);
  color: var(--color-fg-1); text-decoration: none;
  font-weight: var(--weight-semibold); font-size: var(--text-sm);
  white-space: nowrap;
}
.nav__brand .mark { width: 1.5rem; height: 1.5rem; }
/* The wordmark: the one place the brand face appears (design.md Identity). */
.wordmark { font-family: var(--font-brand); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-brand); }
.nav__links { display: flex; gap: var(--space-1); }
.nav__links a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--color-fg-2); text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { background: var(--color-ink-card); color: var(--color-fg-1); }
.nav__links a:active { background: var(--color-ink-lift); }

@media (max-width: 47.99rem) {
  .nav__links { display: none; }
  .nav__brand { margin-inline-end: auto; }
  .nav__pill { width: 100%; }
}
@media (max-width: 26rem) {
  .nav__brand span { display: none; }
}

/* ---------- Layout helpers ---------------------------------------- */
main > section {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section-head { display: grid; gap: var(--space-4); max-width: 46rem; }
.section-head h2,
.xtream h2, .privacy h2, .faq h2 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}
.section-head p { font-size: var(--text-lg); line-height: var(--leading-base); color: var(--color-fg-2); max-width: var(--measure); }

/* Screenshot figure: a real capture, hairline only — no device chrome (the devices stage draws its own frames). */
.shot { margin: 0; min-width: 0; }
.shot img {
  width: 100%;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-lg);
  background: var(--color-ink-raised);
}
.shot figcaption {
  margin-top: var(--space-3);
  font: var(--weight-regular) var(--text-xs) / 1.4 var(--font-mono);
  letter-spacing: var(--tracking-mono);
  color: var(--color-fg-3);
}

/* ---------- Hero --------------------------------------------------- */
/* One grid, children placed by area. Phones: title, then the screen, then the words.
 * Wide: the title runs across as a title card; lead and actions sit left of a lit, angled screen. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "plat" "title" "shot" "lead" "act" "meta";
  row-gap: var(--space-6);
  padding-top: var(--space-12);
  padding-bottom: var(--space-section);
}
.hero__platform { grid-area: plat; }
.hero__title    { grid-area: title; }
.hero__lead     { grid-area: lead; }
.hero__actions  { grid-area: act; }
.hero__meta     { grid-area: meta; }
.hero__shot     { grid-area: shot; position: relative; margin-block: var(--space-3); }
.hero__line { display: block; }

/* The screen spills its light onto the canvas. */
.hero__shot::before {
  content: "";
  position: absolute; z-index: -1;
  inset: -18% -12% -22% -18%;
  background:
    radial-gradient(closest-side, var(--color-glow-violet), transparent),
    radial-gradient(40% 32% at 28% 36%, var(--color-glow-mint), transparent);
  filter: blur(44px);
  pointer-events: none;
}

/* The orbit: one ellipse from the mark, drawn once behind title and screen. */
.hero__orbit {
  position: absolute; z-index: -1;
  top: var(--space-11); left: -30%;
  width: 160%; height: auto;
  overflow: visible;
  opacity: 0.6;
  pointer-events: none;
}
.hero__orbit stop:nth-child(1) { stop-color: var(--color-aurora); }
.hero__orbit stop:nth-child(2) { stop-color: var(--color-violet); stop-opacity: 0.7; }
.hero__orbit stop:nth-child(3) { stop-color: var(--color-violet); stop-opacity: 0.12; }
.hero__orbit-path { fill: none; stroke: url(#hero-orbit-stroke); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hero__orbit-moon { fill: var(--color-starlight); filter: drop-shadow(0 0 6px var(--color-aurora)); }
@media (prefers-reduced-motion: no-preference) {
  .hero__orbit-path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: orbit-draw 1.8s var(--ease-out) 0.2s forwards; }
  .hero__orbit-moon { opacity: 0; animation: fade-in 0.6s var(--ease-out) 1.5s forwards; }
}
@keyframes orbit-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

.hero__platform {
  font: var(--weight-regular) var(--text-sm) / 1.4 var(--font-mono);
  letter-spacing: var(--tracking-mono);
  color: var(--color-fg-2);
}
/* The three devices, each with its outline icon, as one line of chips. */
.hero__platform { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.dev {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: 999px;
  color: var(--color-fg-1);
  white-space: nowrap;
}
.dev__icon { width: 1.25em; height: 1.25em; fill: none; stroke: var(--color-fg-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero__title {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}
.hero__lead { font-size: var(--text-lg); line-height: 1.5; max-width: 34rem; color: var(--color-fg-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.hero__meta {
  font: var(--weight-regular) var(--text-xs) / 1.5 var(--font-mono);
  letter-spacing: var(--tracking-mono);
  color: var(--color-fg-3);
}

@media (min-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "plat  plat"
      "title title"
      "lead  shot"
      "act   shot"
      "meta  shot";
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: var(--space-10);
    padding-top: calc(var(--space-12) + var(--space-5));
  }
  .hero__title { margin-bottom: var(--space-6); }
  .hero__orbit { top: var(--space-7); left: 22%; width: 88%; opacity: 0.5; }
  /* The TV capture runs past the right edge of the page and is turned toward the words,
   * like a screen seen from the sofa. It straightens as the page scrolls. */
  .hero__shot {
    margin-block: 0;
    margin-inline-end: calc(-1 * var(--page-gutter) - max(0px, (100vw - var(--container)) / 2));
    perspective: 1800px;
  }
  .hero__shot img {
    border-inline-end: 0;
    border-start-end-radius: 0; border-end-end-radius: 0;
    transform: rotateY(-9deg) rotateX(2deg);
    transform-origin: left center;
    box-shadow: 0 2.5rem 5rem -1.5rem var(--color-shadow);
  }
}
@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero__shot img { animation: settle linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  }
}
@keyframes settle {
  from { transform: rotateY(-9deg) rotateX(2deg); }
  to   { transform: none; }
}

/* ---------- How it works: three illustrated steps ------------------ */
.map-section { padding-block: var(--space-section); display: grid; gap: var(--space-10); }

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--space-4);
}
.step {
  display: grid; justify-items: center; gap: var(--space-2);
  max-width: 22rem; min-width: 0;
  text-align: center;
  font-size: var(--text-sm); line-height: 1.5;
  color: var(--color-fg-2);
}
.step__art {
  width: auto; height: 8.5rem; max-width: 100%;
  object-fit: contain;
  margin-bottom: var(--space-3);
}
/* Step 2 reads as an app: the orbit mark on a launcher-style tile. */
.step__app {
  display: grid; place-items: center;
  aspect-ratio: 1; height: 6.5rem; margin-block: 1rem calc(1rem + var(--space-3));
  background: var(--color-ink-card);
  border: var(--rule-hair) solid var(--color-ink-lift);
  border-radius: 28%;
  box-shadow: 0 1.5rem 3rem var(--color-shadow), 0 0 4rem var(--color-bloom);
}
.step__mark { width: 66%; height: 66%; }
.step__num {
  font: var(--weight-regular) var(--text-xs) / 1.3 var(--font-mono);
  letter-spacing: var(--tracking-mono);
  color: var(--color-fg-3);
}
.step__title { font-size: var(--text-xl); line-height: 1.2; letter-spacing: var(--tracking-tight); color: var(--color-fg-1); }

/* Arrow between steps: points down on narrow screens, right on wide ones. */
.flow__arrow {
  display: grid; justify-items: center; gap: var(--space-2);
  padding-block: var(--space-2);
  font: var(--weight-regular) var(--text-xs) / 1 var(--font-mono);
  letter-spacing: var(--tracking-mono);
  color: var(--color-fg-3);
}
.flow__arrow::before {
  content: ""; width: 0; height: var(--space-7);
  border-left: 2px solid var(--color-violet);
}
.flow__arrow::after {
  content: ""; width: 0.75rem; height: 0.75rem; margin-top: calc(-1 * var(--space-3));
  border-right: 2px solid var(--color-violet); border-bottom: 2px solid var(--color-violet);
  rotate: 45deg;
}
.flow__arrow span { order: -1; }

.flow__none {
  display: flex; align-items: center; gap: var(--space-5);
  max-width: 40rem; width: 100%;
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  border: var(--rule-dash) dashed var(--color-track);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm); line-height: 1.5;
  color: var(--color-fg-3);
}
.flow__none strong { color: var(--color-fg-1); font-weight: var(--weight-medium); }
.flow__none-icon {
  flex: none; width: 3rem; height: 3rem;
  fill: none; stroke: var(--color-dim); stroke-width: 1.5; stroke-linecap: round;
}
.flow__none-icon rect { stroke-dasharray: 3 3; }
.flow__none-cut { stroke: var(--color-fg-2); stroke-width: 2; }

@media (min-width: 64rem) {
  .flow {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    column-gap: var(--space-5);
  }
  .step__art { height: 14rem; margin-bottom: var(--space-4); }
  .step__app { height: 10rem; margin-block: 2rem calc(2rem + var(--space-4)); }
  /* Line and head sit in the two middle columns, so they stay joined and centred under a label wider than both. */
  .flow__arrow {
    align-self: start;
    margin-top: 6rem;
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr); align-items: center; justify-items: start;
    column-gap: 0; row-gap: var(--space-2);
  }
  .flow__arrow span { grid-column: 1 / -1; justify-self: center; }
  .flow__arrow::before { grid-area: 2 / 2; width: clamp(3rem, 6vw, 6rem); height: 0; border-left: 0; border-top: 2px solid var(--color-violet); }
  .flow__arrow::after { grid-area: 2 / 3; margin-top: 0; margin-inline-start: calc(-1 * var(--space-3)); rotate: -45deg; }
  .flow__none { grid-column: 1 / -1; }
}

/* Steps ink on one after another as the section scrolls in (no script). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .step, .flow__arrow, .flow__none {
      animation: ink-on linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes ink-on {
  from { opacity: 0; translate: 0 0.5rem; }
  to   { opacity: 1; translate: 0 0; }
}

/* ---------- Xtream ------------------------------------------------- */
.xtream {
  display: grid; gap: var(--space-10);
  padding-block: var(--space-section);
}
.xtream__intro { display: grid; gap: var(--space-6); align-content: start; min-width: 0; }
.xtream__intro > p { font-size: var(--text-lg); max-width: var(--measure); }

.signin {
  margin: var(--space-2) 0 0;
  display: grid; gap: var(--space-3);
  max-width: 26rem;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 6rem var(--color-bloom);
  view-timeline: --signin;
}
/* The two playlist types, as the app's own form shows them. */
.signin__types { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2); margin-bottom: var(--space-1); }
.signin__type {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-ink-card);
  color: var(--color-fg-2);
  font-size: var(--text-sm); font-weight: var(--weight-medium); text-align: center;
  white-space: nowrap;
}
.signin__type--on { background: var(--color-tab-on); color: var(--color-fg-1); box-shadow: inset 3px 0 0 var(--color-aurora); }
.field {
  display: grid; gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-ink-card);
}
.field__label { font-size: var(--text-sm); color: var(--color-fg-2); }
.field__value { font-size: var(--text-md); color: var(--color-fg-1); }
.field__value--hint { color: var(--color-fg-3); font-family: var(--font-mono); font-size: var(--text-sm); overflow-wrap: anywhere; }
.signin figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-fg-3); }

/* The three values type themselves in, one after another, as the card scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .field__value--hint {
      animation: type-in steps(24, end) both;
      animation-timeline: --signin;
    }
    .field:nth-child(2) .field__value--hint { animation-range: entry 60% cover 35%; }
    .field:nth-child(3) .field__value--hint { animation-range: cover 35% cover 45%; }
    .field:nth-child(4) .field__value--hint { animation-range: cover 45% cover 52%; }
  }
}
@keyframes type-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.spec__title { font-size: var(--text-xl); letter-spacing: var(--tracking-tight); margin-bottom: var(--space-6); }
.spec { border-bottom: var(--rule-hair) solid var(--color-rule); }
.spec__row {
  display: grid; gap: var(--space-1);
  padding-block: var(--space-5);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.spec dt { color: var(--color-fg-1); font-size: var(--text-lg); font-weight: var(--weight-medium); }
.spec dd { color: var(--color-fg-2); max-width: 36rem; }

@media (min-width: 40rem) {
  .spec__row { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--space-6); align-items: baseline; }
}
@media (min-width: 64rem) {
  .xtream { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-11); }
  .xtream__spec { padding-top: var(--space-3); }
}

/* Each of these two sections gets its own pool of light, on alternating sides. */
.xtream, .devices { position: relative; isolation: isolate; }
.xtream::before, .devices::before {
  content: "";
  position: absolute; z-index: -1;
  width: min(60rem, 140vw); aspect-ratio: 3 / 2;
  background: radial-gradient(closest-side, var(--color-bloom), transparent);
  opacity: 0.85;
  pointer-events: none;
}
.xtream::before  { left: -30%; top: 0; }
.devices::before { right: -25%; top: 15%; }

/* ---------- Devices · one stage ----------------------------------- */
/* The TV capture with the tablet and phone captures overlapping its lower edge, then both lists.
 * Each capture sits in a drawn device frame so the three screens read as TV, tablet and phone.
 * Sizes follow real devices: a 20:9 phone stands about as tall as a 10-inch tablet lies. */
.devices { display: grid; gap: var(--space-10); padding-block: var(--space-section); }
.stage { display: grid; grid-template-columns: minmax(0, 1fr); container-type: inline-size; }

/* Device body: near-black in both themes, like the hardware, with a lit edge. Padding is the bezel. */
.frame {
  --bezel: #0a0a10;
  position: relative;
  background: var(--bezel);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 2rem 4rem -1rem var(--color-shadow);
}
.shot .frame img { display: block; width: 100%; border: 0; border-radius: 0; background: var(--color-ink-raised); }

/* TV: thin bezel, a deeper chin carrying the name like a maker's badge, a neck and a foot below the middle. */
.stage .stage__tv {
  grid-area: 1 / 1;
  justify-self: center;
  width: 84%;
  padding: 0.6% 0.6% 2.2%;
  border-radius: 0.4rem;
}
.frame__brand {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  height: 2.2cqw; display: grid; place-items: center;
  font-size: clamp(0.4rem, 1.1cqw, 0.8rem); line-height: 1; white-space: nowrap;
  color: #9a9ab0;
}
.frame--tv img { border-radius: 0.15rem; }
.frame--tv::before, .frame--tv::after { content: ""; position: absolute; left: 50%; translate: -50% 0; z-index: -1; }
.frame--tv::before { top: 100%; width: 5%; height: 6%; background: linear-gradient(90deg, #22222c, #3a3a48 50%, #22222c); }
.frame--tv::after {
  top: 106%; width: 30%; height: 1.6%;
  border-radius: 0.3rem 0.3rem 0.15rem 0.15rem;
  background: linear-gradient(#4a4a5a, #1c1c26);
  box-shadow: 0 1rem 1.5rem -0.5rem var(--color-shadow);
}

/* Tablet: even, wider bezel and a front camera on the top edge; lower left, hanging below the TV. */
.stage .stage__tablet {
  grid-area: 1 / 1;
  justify-self: start; align-self: end;
  width: 42%;
  padding: 1.3%;
  border-radius: var(--radius-xl);
  translate: 0 40%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 2rem 4rem -1rem var(--color-shadow), 0 0 4rem var(--color-glow-violet);
}
.frame--tablet img { border-radius: 0.35rem; }
.frame--tablet::before {
  content: ""; position: absolute; top: 1.3%; left: 50%; translate: -50% -50%;
  width: 0.35rem; aspect-ratio: 1; border-radius: 50%;
  background: #34344a; box-shadow: 0 0 0 1px #1c1c26;
}

/* Phone: narrow bezel, big corner radius and the side keys; lower right, in front. */
.stage .stage__phone {
  grid-area: 1 / 1;
  justify-self: end; align-self: end;
  width: 13%;
  padding: 0.7%;
  border-radius: 1.4rem;
  translate: 0 30%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 2rem 4rem -1rem var(--color-shadow), 0 0 4rem var(--color-glow-violet);
}
.frame--phone img { border-radius: 1rem; }
.frame--phone::after {
  content: ""; position: absolute; right: -0.18rem; top: 22%;
  width: 0.18rem; height: 14%;
  border-radius: 0 0.15rem 0.15rem 0;
  background: #3a3a48;
  box-shadow: 0 calc(100% + 0.6rem) 0 #3a3a48;
}

@media (max-width: 40rem) {
  .stage .stage__tv { width: 92%; }
  .stage .stage__tablet { width: 50%; }
  .stage .stage__phone { width: 16%; border-radius: 0.9rem; }
  .frame__brand { display: none; }
  .frame--phone img { border-radius: 0.6rem; }
  .frame--tablet img { border-radius: 0.2rem; }
  .stage .stage__tablet { border-radius: var(--radius-lg); }
  .stage.shot figcaption { margin-top: calc(16% + var(--space-4)); }
}
/* Tablet and phone hang below the TV; the caption clears them. */
.stage figcaption { grid-area: 2 / 1; margin-top: calc(13% + var(--space-4)); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .stage__phone { animation: phone-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .stage__tablet { animation: tablet-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}
@keyframes phone-rise {
  from { translate: 0 45%; }
  to   { translate: 0 30%; }
}
@keyframes tablet-rise {
  from { translate: 0 55%; }
  to   { translate: 0 40%; }
}

.device-lists { display: grid; gap: var(--space-9); }
.device { display: grid; gap: var(--space-5); align-content: start; min-width: 0; }
.device h3 { font-size: var(--text-xl); letter-spacing: var(--tracking-tight); }

.ticks { display: grid; gap: var(--space-4); max-width: 32rem; }
.ticks li { position: relative; padding-inline-start: var(--space-6); }
.ticks li::before {
  content: "›";
  position: absolute; inset-inline-start: 0; top: -0.05em;
  font-family: var(--font-mono); font-weight: var(--weight-semibold);
  color: var(--color-fg-3);
}

@media (min-width: 64rem) {
  .device-lists { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-8); }
}

/* ---------- Privacy ----------------------------------------------- */
/* The one colour shift on the page: privacy sits on a full-bleed raised band. */
.privacy {
  display: grid; gap: var(--space-8); padding-block: var(--space-section);
  background: var(--color-surface);
  box-shadow: 0 0 0 100vmax var(--color-surface);
  clip-path: inset(0 -100vmax);
}
/* Head: the title and the promise, beside a picture of the devices under a locked glass dome. The picture's
   ground is darker than the raised band, so blending with lighten drops it and only the light shows: no box. */
.privacy__head { display: grid; gap: var(--space-6); align-items: center; }
.privacy__intro { display: grid; gap: var(--space-4); }
.privacy__lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg-2);
  text-wrap: balance;
}
.privacy__art {
  display: block; width: 100%; height: auto;
  mix-blend-mode: lighten;
}
.facts { display: grid; gap: var(--space-6) var(--space-10); }
.facts > div { display: grid; gap: var(--space-2); padding-top: var(--space-5); border-top: var(--rule-hair) solid var(--color-rule); }
.facts dt { color: var(--color-fg-1); font-weight: var(--weight-medium); font-size: var(--text-lg); }
.facts dd { max-width: 30rem; }
@media (min-width: 48rem) {
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .privacy h2 { max-width: 18ch; }
}
@media (min-width: 64rem) {
  .privacy__head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-10); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- FAQ ---------------------------------------------------- */
.faq { display: grid; gap: var(--space-8); padding-block: var(--space-section); }
.faq__list { border-bottom: var(--rule-hair) solid var(--color-rule); max-width: 52rem; }
.faq details { border-top: var(--rule-hair) solid var(--color-rule); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-5) var(--space-2);
  cursor: pointer;
  list-style: none;
  color: var(--color-fg-1);
  font-size: var(--text-lg); font-weight: var(--weight-medium); line-height: 1.35;
  border-radius: var(--radius-md);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "›";
  flex: none;
  font-family: var(--font-mono); color: var(--color-fg-3);
  transform: rotate(90deg);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq details[open] > summary::after { transform: rotate(-90deg); }
.faq summary:hover { background: var(--color-ink-raised); }
.faq summary:active { background: var(--color-ink-card); }
.faq details p { padding: 0 var(--space-2) var(--space-6); max-width: 42rem; }

/* ---------- Closing · end card ------------------------------------ */
/* The page ends on the mark in its own light, the promise and one button. */
.closing {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6);
  justify-items: center; text-align: center;
  padding-block: var(--space-12) var(--space-11);
}
.closing::before {
  content: "";
  position: absolute; z-index: -1;
  top: 0; left: 50%; translate: -50% 0;
  width: min(48rem, 130vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--color-glow-violet), transparent 70%);
  pointer-events: none;
}
.closing__mark {
  width: clamp(7rem, 14vw, 11rem); height: clamp(7rem, 14vw, 11rem);
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 0 3rem var(--color-glow-violet));
}
.closing h2 { font-size: var(--text-closing); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); max-width: 16ch; }
.closing__line { font-size: var(--text-lg); max-width: 34rem; margin-bottom: var(--space-3); }
@media (prefers-reduced-motion: no-preference) {
  .closing__mark { animation: drift 9s var(--ease-in-out) infinite alternate; }
}
@keyframes drift {
  from { translate: 0 0; }
  to   { translate: 0 -0.625rem; }
}

/* ---------- Footer · Ft5 ---------------------------------------- */
.foot {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding: var(--space-10) var(--page-gutter) var(--space-9);
  display: grid; gap: var(--space-8);
}
.foot__meta {
  display: grid; gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-fg-3);
}
/* The publisher's name as text until shiny lake has a logo; Geist, not the app's wordmark face. */
.foot__maker {
  display: inline-block; width: fit-content;
  font-size: var(--text-md); font-weight: var(--weight-semibold);
  color: var(--color-fg-1); white-space: nowrap;
}
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.foot__links a {
  color: var(--color-fg-2); text-decoration: none; white-space: nowrap;
  border-bottom: var(--rule-hair) solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.foot__links a:hover { border-bottom-color: currentColor; }
.foot__links a:focus-visible { border-radius: var(--radius-md); }
.foot__legal { font-size: var(--text-xs); }
@media (min-width: 64rem) {
  .foot__meta { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-8); }
  .foot__legal { grid-column: 1 / -1; }
}

/* ---------- Right to left (Arabic) ------------------------------------ */
/* Layout uses logical properties and follows dir="rtl" on its own (grid areas, flex rows, padding, borders).
 * These rules mirror what is drawn: chevrons, arrows, the orbit and the angled TV capture. */
/* scale applies outside transform, so the hover nudge (translateX(3px)) moves the mirrored chevron to the left. */
[dir="rtl"] .chev { scale: -1 1; }
[dir="rtl"] .hero__orbit { left: auto; right: -30%; scale: -1 1; }
[dir="rtl"] .hero__shot::before { scale: -1 1; }
[dir="rtl"] .ticks li::before { content: "‹"; }
[dir="rtl"] .signin__type--on { box-shadow: inset -3px 0 0 var(--color-aurora); }
[dir="rtl"] .xtream::before  { left: auto; right: -30%; }
[dir="rtl"] .devices::before { right: auto; left: -25%; }
[dir="rtl"] .frame--phone::after { right: auto; left: -0.18rem; border-radius: 0.15rem 0 0 0.15rem; }
@media (min-width: 64rem) {
  [dir="rtl"] .hero__orbit { right: 22%; }
  [dir="rtl"] .hero__shot img { transform: rotateY(9deg) rotateX(2deg); transform-origin: right center; }
  [dir="rtl"] .flow__arrow::after { rotate: 135deg; }
}
@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    [dir="rtl"] .hero__shot img { animation-name: settle-rtl; }
  }
}
@keyframes settle-rtl {
  from { transform: rotateY(9deg) rotateX(2deg); }
  to   { transform: none; }
}
@keyframes type-in-rtl {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [dir="rtl"] .field__value--hint:not([dir="ltr"]) { animation-name: type-in-rtl; }
  }
}

/* ---------- Scripts without a Geist face ------------------------------ */
/* Geist is subset to Latin. Arabic, Devanagari and Japanese text falls back per glyph to the fonts named in
 * tokens.css; their letters must not be tracked (tracking breaks the joined Arabic script and crowds Devanagari
 * and kana), their lines need more height, and the mono face (Latin only) gives way to the body face. */
:root:is([lang="ar"], [lang="hi"], [lang="ja"]) {
  --tracking-display: 0;
  --tracking-tight: 0;
  --tracking-mono: 0;
  --leading-tight: 1.25;
  --leading-snug: 1.4;
  --font-mono: var(--font-body);
}
:root[lang="ar"] {
  --font-body: "Geist Variable", "Geist", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: var(--font-body);
  --leading-base: 1.7;
}
:root[lang="hi"] {
  --font-body: "Geist Variable", "Geist", "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif;
  --font-display: var(--font-body);
  --leading-base: 1.7; --leading-tight: 1.35;
}
:root[lang="ja"] {
  --font-body: "Geist Variable", "Geist", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --font-display: var(--font-body);
}
:root[lang="ja"] h1, :root[lang="ja"] h2, :root[lang="ja"] h3 { word-break: auto-phrase; }
:root[lang="ja"] { line-break: strict; }

/* ---------- Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
  .btn:hover, .btn:active { transform: none; }
  .btn:hover .chev { transform: none; }
}
