/* Original bundled TakeAlign app fonts. */
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DSEG7 Classic"; src: url("assets/fonts/DSEG7Classic-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
/* Page-eigene Styles. Nichts aus scrollcraft.css wird überschrieben
   (.sc-stage, .sc-copy, [data-sc-*] bleiben unangetastet, s. taste.md).
   Ausnahme mit Absicht: .sc-scrim--trail unten verstärkt gezielt nur den
   Corner-Scrim-Verlauf (nicht die Mechanik) für die Peak-Copy, da der
   Standard-Verlauf über der helleren App-Replica/Glow-Fläche nicht auf
   3:1 kam (Harness-Fund, siehe BRIEF.md).

   Design-Plan (2026-09-21, frontend-design Zwei-Pass, siehe BRIEF.md):
   Farbe = 3 Hues aus dem echten App-System (Mint/Lime/Slate), Typo = nur
   Geist, Layout meidet das SaaS-Card-Kit (taste.md-Refuse-Liste) —
   Akt 3 ist jetzt Fließtext + echte App-Confidence-Chips statt vier
   Marketing-Karten. */

* { box-sizing: border-box; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Navigation overlays the uninterrupted hero sky. */
.site-bar {
  position: absolute; inset: 0 0 auto; z-index: 70;
  height: 86px; padding: 24px 5vw; background: transparent;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--sc-font-text);
}
.site-bar__mark {
  color: #313a32; text-decoration: none; font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em;
}
.site-bar__cta {
  color: var(--sc-canvas); background: var(--sc-accent);
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 600;
  transition: transform 120ms var(--sc-ease-out, ease-out);
}
.site-bar__cta:hover { transform: translateY(-1px); }
.site-bar__cta:active { transform: scale(0.97); }
.site-bar__cta:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }

/* Generischer Page-Button (Hero-CTA, Warteliste) — getrennt von .ar-btn,
   das ist nur für die App-Replica-Chrome. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font-family: var(--sc-font-text); font-size: .92rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 140ms var(--sc-ease-out, ease-out), box-shadow 140ms var(--sc-ease-out, ease-out);
}
.btn--primary {
  background: var(--sc-accent); color: var(--sc-accent-ink);
  box-shadow: 0 14px 30px -10px rgba(138,214,161,.5);
}
.btn--primary:hover { transform: translateY(-1px); }
.btn--primary:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }

@media (min-width: 861px) {
  .sc-scrim--trail {
    background: linear-gradient(to top left,
      color-mix(in oklab, var(--sc-canvas) 97%, transparent) 0%,
      color-mix(in oklab, var(--sc-canvas) 88%, transparent) 40%,
      color-mix(in oklab, var(--sc-canvas) 55%, transparent) 66%,
      transparent 90%);
  }
}

/* Approved terrain hero: one coordinate system, independent from ScrollCraft. */
#hero-journey { height: 175svh; }
#hero-stage {
  position: sticky; top: 0;
  height: min(100svh, 90vw); min-height: 540px;
  container-type: size; overflow: hidden; isolation: isolate;
  background: #cdd1bd url("assets/img/generated/terrain-final/00-himmel-4096.webp") center / cover no-repeat;
}
.hero__text {
  position: absolute; z-index: 60; left: 50%; top: 5%;
  transform: translateX(-50%); width: min(88vw, 1000px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; color: #313a32;
}
.hero__text .sc-display {
  font-size: clamp(25px, 3.2vw, 48px); font-weight: 400;
  line-height: 1.08; letter-spacing: -.045em; color: #313a32;
  margin: 0; max-width: 100%;
}
.hero__sub { max-width: 42rem; color: #3d453d; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--sc-ink-soft); background: var(--sc-surface);
  border: 1px solid rgba(255,255,255,.1);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-accent); }
.terrain-world {
  position: absolute; left: 50%; bottom: -44px;
  width: max(106vw, 150cqh); aspect-ratio: 5504 / 3072;
  max-width: none; transform: translateX(-50%);
}
.terrain {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  display: block; pointer-events: none; will-change: transform; filter: none;
}
.terrain--sky { visibility: hidden; }
.terrain[data-depth="0.08"] { z-index: 10; }
.terrain[data-depth="0.18"] { z-index: 20; }
.terrain[data-depth="0.34"] { z-index: 30; }
.terrain[data-depth="0.52"] { z-index: 40; }
.terrain[data-depth="1"] { z-index: 50; }
.terrain-app-slot {
  position: absolute; left: 23%; top: 39%; width: 54%; height: 48%;
  z-index: 45; will-change: transform;
}
.terrain-app-slot .ar-window--hero {
  width: 100%; height: 100%; margin: 0;
  display: flex; flex-direction: column; border-radius: 18px;
  box-shadow: 0 24px 70px #0d0f1240;
}
.terrain-app-slot .ar-titlebar, .terrain-app-slot .ar-toolbar { flex-shrink: 0; }
.terrain-app-slot .ar-toolbar { gap: 8px; }
.terrain-app-slot .ar-btn { white-space: nowrap; flex-shrink: 0; }
.terrain-app-slot .ar-body { flex: 1; min-height: 0; }
.terrain-app-slot .ar-rail { width: 28%; min-width: 0; }
.terrain-app-slot .ar-card { opacity: 1; overflow-wrap: anywhere; }
.terrain-app-slot .ar-preview { min-width: 0; }
/* Peak section retains its existing layout. */
.ar-scene { display: flex; align-items: center; justify-content: center; padding: 0 var(--sc-gutter, 24px); }

/* ---------------------------------------------------------------- */
/* App-Replica — Tokens 1:1 aus docs/APP-STYLEGUIDE.md               */
/* ---------------------------------------------------------------- */
.ar-window {
  position: relative; z-index: 1;
  width: min(92vw, 980px);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ar-bg);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
  font-family: var(--sc-font-text);
}
.ar-window--hero { margin: 0 auto; }
.ar-titlebar {
  height: 32px; background: var(--ar-surface);
  display: flex; align-items: center; gap: 7px; padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ar-traffic { width: 10px; height: 10px; border-radius: 50%; }
.ar-traffic--r { background: #ff5f57; }
.ar-traffic--y { background: #febc2e; }
.ar-traffic--g { background: #28c840; }
.ar-title { flex: 1; text-align: center; font-size: 11px; color: var(--ar-meta); margin-right: 40px; }

.ar-toolbar {
  height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 10px;
  background: var(--ar-surface); border-bottom: 1px solid rgba(255,255,255,.06);
}
.ar-spacer { flex: 1; }
.ar-btn {
  height: 28px; padding: 0 11px; border-radius: var(--ar-r);
  font-size: 11.5px; font-weight: 600; font-family: var(--sc-font-text);
  border: 1px solid rgba(255,255,255,.1); background: var(--ar-surfaceRaised);
  color: var(--ar-ink); cursor: default;
}
.ar-btn--primary { background: var(--ar-mint); color: var(--ar-mintInk); border-color: var(--ar-mint); }
.ar-btn:disabled { background: #2e4235; color: #5c6f63; border-color: transparent; }
.ar-btn--ghost { background: transparent; border-color: transparent; color: var(--ar-muted); }
/* .secondary (QR Resync): gleicher grauer Hintergrund wie Basis-Button,
   NUR Text/Icon in Lime, kein eigener Rand, keine Lime-Fläche — exakt nach
   docs/APP-STYLEGUIDE.md "Komponenten". */
.ar-btn--secondary { color: var(--ar-lime); }
.ar-btn--secondary:disabled { color: #4a5058; background: var(--ar-surfaceRaised); }
.ar-btn svg {
  width: 13px; height: 13px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -2px; margin-right: 2px;
}
.ar-staged { font-size: 11px; color: var(--ar-muted); }
.ar-fps-label { font-size: 11px; color: var(--ar-muted); }

.ar-body { display: flex; min-height: 300px; }
.ar-preview {
  flex: 1; margin: 16px; border-radius: var(--ar-r);
  background: linear-gradient(180deg, #182a20, #0f1310);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.06);
}
.ar-preview__mark { font-size: 22px; font-weight: 700; color: var(--ar-ink); opacity: .45; }
.ar-preview--take { position: relative; overflow: hidden; }
.ar-preview__placeholder {
  font-size: 12px; color: var(--ar-muted); text-align: center;
  border: 1px dashed rgba(255,255,255,.15); border-radius: 8px; padding: 10px 16px;
}

.ar-rail { width: 260px; padding: 16px 16px 16px 0; display: flex; flex-direction: column; gap: 10px; }

.ar-card {
  border-radius: var(--ar-r); padding: 10px 12px; font-size: 12px;
  background: var(--ar-surface); border: 1px solid rgba(255,255,255,.08);
  color: var(--ar-ink); opacity: 0;
}
/* Cue-Klasse setzt Opazität, Chaos-Karten bekommen zusätzlich Rotation/Versatz */
.ar-card--chaos {
  transform: rotate(var(--tilt, 0deg));
  border-style: dashed;
  border-color: rgba(255,255,255,.12);
}
[data-sc-cue].ar-card--chaos { opacity: 0; transition: none; }

.ar-card--synced {
  opacity: 1; display: flex; flex-direction: column; gap: 6px;
  background:
    linear-gradient(180deg, var(--ar-surface), var(--ar-surface)) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.02)) border-box;
  border: 1px solid transparent;
  padding-left: 15px; position: relative;
}
[data-sc-cue].ar-card--synced { opacity: 0; transition: none; }
.ar-card--synced::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 2px; background: var(--accent, var(--ar-muted));
}
.ar-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ar-card__name { font-size: 12.5px; font-weight: 500; }
.ar-card__meta {
  font-size: 10.5px; color: var(--ar-meta);
  font-variant-numeric: tabular-nums;
}
.ar-chip { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ar-chip--high { background: rgba(95,191,110,.15); color: var(--ar-high); }
.ar-chip--medium { background: rgba(217,164,65,.15); color: var(--ar-medium); }
.ar-chip--low { background: rgba(217,99,76,.15); color: var(--ar-low); }
.ar-chip--lime { background: rgba(216,230,63,.15); color: var(--ar-lime); }

/* Sync Snap — Signature Move. Zwei Wellenform-Balken konvergieren mit
   --sc-p (0..1, vom Engine auf dem Akt-Element publiziert). */
.sync-snap { position: relative; height: 34px; }
.sync-snap__wave {
  position: absolute; top: 30%; height: 2px; width: 60%;
  background: var(--ar-lime); border-radius: 2px;
  transform: translateY(-50%) translateX(var(--wave-x, 0));
}
.sync-snap__wave--a { left: 0; --wave-x: calc((1 - var(--sc-p, 0)) * -14px); top: 20%; }
.sync-snap__wave--b { left: 12%; --wave-x: calc((1 - var(--sc-p, 0)) * 14px); top: 38%; opacity: .6; }
.sync-snap__badge {
  position: absolute; right: 0; bottom: 0;
  font-size: 10px; font-weight: 700; color: var(--ar-high);
  background: rgba(95,191,110,.16);
  padding: 2px 7px; border-radius: 999px;
}

/* ---------------------------------------------------------------- */
/* Turn (Akt 2) — echte Bildmarke, ruhiger Auftritt statt Plakette.   */
/* Mehr Raum über der Marke als darunter (taste.md: Lücke gehört zur  */
/* Sektionsgrenze, nicht zum Marke-Text-Paar).                        */
/* ---------------------------------------------------------------- */
.sc-wrap--narrow { max-width: var(--sc-measure, 62ch); margin: 0 auto; padding: 0 var(--sc-gutter, 24px); }
.turn { position: relative; padding-block: clamp(5rem, 14vh, 9rem); overflow: hidden; }
.turn__glow {
  position: absolute; left: 50%; top: 8%; width: 640px; height: 640px;
  max-width: none; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(138,214,161,.14) 0%, transparent 68%);
  pointer-events: none;
}
.turn__content { position: relative; z-index: 1; }
.turn__mark { margin: 0 0 var(--sc-7, 40px); display: flex; justify-content: center; }
.turn__mark img { width: 72px; height: 72px; filter: drop-shadow(0 12px 28px rgba(138,214,161,.28)); }

/* ---------------------------------------------------------------- */
/* Substance (Akt 3) — Split, App-Replica bündig zur Bildschirmkante  */
/* (Referenz-Technik: Copy links, Produkt rechts randabschneidend).   */
/* KEIN eigenes `position` auf .split: identischer Grund wie bei      */
/* .hero oben — ist das [data-sc-stage]-Element.                      */
/* ---------------------------------------------------------------- */
/* align-items zentriert Elemente INNERHALB ihrer Grid-Zeile; die Zeile
   selbst wird ohne align-content nicht im 100svh-hohen Stage-Container
   zentriert (Grid-Falle) — Inhalt saß oben, riesiger Leerraum darunter,
   im shoot.mjs-Frame gefangen statt nur behauptet. */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center; align-content: center; gap: clamp(2rem, 5vw, 4rem);
  min-height: 100%;
}
.split__copy {
  padding-left: max(var(--sc-gutter, 24px), calc((100vw - 1400px) / 2 + 24px));
  max-width: 34rem;
}
.split__copy .sc-body { color: var(--sc-ink-soft); line-height: 1.65; }
.split__copy .sc-body strong { color: var(--sc-ink); font-weight: 600; }
.split__copy h2 { margin-bottom: var(--sc-4, 16px); }
.legend { display: flex; flex-direction: column; gap: 8px; margin-top: var(--sc-6, 32px); }
.legend > div { display: flex; align-items: center; gap: 10px; margin: 0; }
.legend dt { margin: 0; }
.legend dd { margin: 0; font-size: .82rem; color: var(--ar-meta); }
.legend__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.legend__dot--high { background: var(--ar-high); }
.legend__dot--medium { background: var(--ar-medium); }
.legend__dot--low { background: var(--ar-low); }

/* Der eigentliche Kante-Effekt: kein Gutter rechts, das Fenster wird am
   rechten Bildschirmrand einfach abgeschnitten (overflow hidden auf dem
   Wrapper) statt in eine Karte gefasst zu werden. */
.split__bleed { position: relative; height: 100%; min-height: 420px; overflow: hidden; }
.ar-window--bleed {
  position: absolute; top: 50%; left: 0; right: -120px;
  transform: translateY(-50%);
  width: auto; margin: 0;
  border-right: none; border-top-right-radius: 0; border-bottom-right-radius: 0;
  box-shadow: -30px 40px 100px rgba(0,0,0,.5);
}
.ar-rail--bleed { width: auto; padding: 16px 140px 16px 16px; }

/* ---------------------------------------------------------------- */
/* Close (Akt 5)                                                     */
/* ---------------------------------------------------------------- */
.sc-section--close {
  position: relative; overflow: hidden;
  padding-top: clamp(5rem, 12vh, 8rem); padding-bottom: clamp(3rem, 8vh, 5rem);
}
.close__glow {
  position: absolute; left: 15%; bottom: -20%; width: 560px; height: 560px;
  max-width: none;
  background: radial-gradient(circle, rgba(138,214,161,.1) 0%, transparent 70%);
  pointer-events: none;
}
.sc-section--close .sc-wrap { position: relative; z-index: 1; }
.waitlist { display: flex; gap: 10px; max-width: 26rem; margin-top: var(--sc-2, 8px); }
.waitlist__input {
  flex: 1; height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--sc-surface); border: 1px solid rgba(255,255,255,.12);
  color: var(--sc-ink); font-family: var(--sc-font-text); font-size: .9rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
  transition: border-color 160ms var(--sc-ease-out, ease-out);
}
.waitlist__input::placeholder { color: var(--ar-meta); }
.waitlist__input:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; border-color: transparent; }
.waitlist__submit { height: 44px; }
.sc-meta { font-size: .78rem; color: var(--sc-ink-soft); margin-top: 6px; }
.foot {
  margin-top: clamp(3rem, 8vh, 5rem);
  display: flex; gap: 20px; align-items: center;
  font-size: .8rem; color: var(--sc-ink-soft);
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06);
}
.foot a { color: var(--sc-ink-soft); }

/* ---------------------------------------------------------------- */
/* Mobile-Art-Direction — eigener Breakpoint, deckungsgleich mit dem */
/* Engine-Breakpoint (scrollcraft.css:417).                          */
/* ---------------------------------------------------------------- */
@media (max-width: 860px) {
  .site-bar { height: 56px; padding: 0 16px; }
  .site-bar__mark { font-size: 16px; }
  .site-bar__cta { padding: 7px 13px; font-size: 12px; }

  .hero { padding-top: clamp(4rem, 10vh, 5.5rem); gap: 1.75rem; }
  .ar-window { width: min(94vw, 560px); }
  .ar-body { flex-direction: column; }
  .ar-preview { min-height: 160px; }
  .ar-rail { width: auto; padding: 12px; }
  .ar-toolbar { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 8px; }
  .ar-staged { display: none; }

  /* --sc-t-4xl floort bei 3.4rem (taste.md-Warnung: wrapt auf 6 Zeilen bei
     390px). Eine Stufe runter. */
  .hero .sc-display--xl { font-size: var(--sc-t-2xl); }

  .hero-depth__glow { width: 560px; height: 560px; }
  .hero-depth__waveform { height: 20vh; }

  /* Split (Akt 3): Grid wird einspaltig, Bleed-Effekt ergibt ohne zweite
     Spalte keinen Sinn — Fenster fällt zurück in normale App-Replica-Form. */
  .split { display: flex; flex-direction: column; padding: 0 16px; gap: 2rem; }
  .split__copy { padding-left: 0; max-width: none; }
  .split__bleed { min-height: 0; overflow: visible; }
  .ar-window--bleed {
    position: static; transform: none; width: 100%;
    border-right: 1px solid rgba(255,255,255,.08);
    border-top-right-radius: 14px; border-bottom-right-radius: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
  }
  .ar-rail--bleed { padding: 12px; }

  .waitlist { flex-direction: column; max-width: 100%; }
  .waitlist__submit { width: 100%; }

  .foot { flex-wrap: wrap; gap: 12px 20px; }
}

@media (max-width: 480px) {
  .ar-window { width: 96vw; border-radius: 10px; }
}

/* Hero-only responsive composition; do not inherit the showcase app stacking. */
@media (max-width: 1100px) {
  .terrain-app-slot .ar-fps-label, .terrain-app-slot .ar-staged { display: none; }
  .terrain-app-slot .ar-toolbar { flex-wrap: nowrap; height: 48px; padding: 0 12px; }
}
@media (max-width: 860px) {
  #hero-stage { padding: 0; }
  .terrain-app-slot .ar-body { flex-direction: row; }
  .terrain-app-slot .ar-rail { display: none; }
  .terrain-app-slot .ar-preview { min-height: 0; }
  .terrain-app-slot .ar-toolbar { overflow: hidden; }
}
@media (max-width: 600px) {
  #hero-stage { height: max(740px, 100svh); }
  .terrain-world { width: max(106vw, 145cqh); }
  .terrain-app-slot { left: calc(50% - min(42vw, 220px)); width: min(84vw, 440px); top: 41%; height: 46%; }
  .hero__text { top: 5%; gap: 10px; width: calc(100% - 40px); }
  .hero__text .sc-display { font-size: 28px; }
  .hero__sub { font-size: 14px; }
  .terrain-app-slot .ar-toolbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #hero-journey { height: auto; }
  #hero-stage { position: relative; }
  .terrain, .terrain-app-slot { will-change: auto; }
}

/* Short desktop windows: keep the existing copy above the mountain silhouette. */
@media (min-width: 861px) and (max-height: 800px) {
  .hero__text { top: 3%; gap: 8px; }
  .hero__text .sc-display { font-size: clamp(25px, 2.8vw, 36px); }
  .hero__sub { max-width: 950px; font-size: 14px; line-height: 1.4; }
  .hero__text .badge { font-size: 11px; padding: 5px 12px; }
  .hero__text .btn { height: 38px; }
}

/* Screenshot composition: anchors use stage height, not the monitor aspect ratio. */
#hero-journey { height: 190svh; }
#hero-stage .terrain-world {
  width: max(106vw, 164cqh);
  bottom: auto;
  top: var(--terrain-world-top, calc(30cqh - max(11.28vw, 15.96cqh)));
}
#hero-stage .terrain[data-depth="1"] {
  top: var(--terrain-front-offset, 5cqh);
}
#hero-stage .terrain-app-slot {
  top: var(--terrain-app-top, 39%);
  height: max(44%, 52cqh);
}
@media (prefers-reduced-motion: reduce) {
  #hero-journey { height: auto; }
}

/* Hero app chrome: proportions from the supplied v0.62 screenshot. */
.terrain-app-slot .ar-window--hero { container-type: inline-size; font-family: Arial, sans-serif; background: #14191f; }
.terrain-app-slot .ar-titlebar { position: relative; height: 2.7cqw; padding: 0 .8cqw; gap: .6cqw; background: #1c2128; border: 0; }
.terrain-app-slot .ar-traffic { width: 1cqw; height: 1cqw; }
.terrain-app-slot .ar-title { position: absolute; inset-inline: 20%; margin: 0; font-size: 1.15cqw; font-weight: 700; color: #92969c; }
.terrain-app-slot .ar-toolbar { height: 4.3cqw; padding: 0 1.65cqw 1cqw; gap: 1cqw; background: #1c2128; border-bottom: 1px solid #30353e; }
.terrain-app-slot .ar-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35cqw; height: 2.55cqw; padding: 0 1.2cqw; border-radius: .85cqw; border: 1px solid #303742; background: #1b2027; color: #eaf1f2; font-family: Arial, sans-serif; font-size: 1.05cqw; font-weight: 600; line-height: 1; white-space: nowrap; }
.terrain-app-slot .ar-btn--ghost { color: #8f959f; }
.terrain-app-slot .ar-btn--choose { width: 11.4cqw; }
.terrain-app-slot .ar-btn--fps { width: 8.2cqw; }
.terrain-app-slot .ar-btn--primary:disabled { background: #264534; border-color: #264534; color: #587161; }
.terrain-app-slot .ar-btn--secondary:disabled, .terrain-app-slot .ar-btn--export:disabled { background: #1e242b; border-color: #292f38; color: #505964; }
.terrain-app-slot .ar-btn svg { width: 1.3cqw; height: 1.3cqw; margin: 0; flex-shrink: 0; }
.terrain-app-slot .ar-staged, .terrain-app-slot .ar-fps-label { display: inline; white-space: nowrap; font-size: .98cqw; color: #8f959f; }
.terrain-app-slot .ar-preview { background: linear-gradient(120deg, #192d23, #0c0e10 75%); border-color: #ffffff20; }
.terrain-app-slot .ar-preview__logo { width: 43%; height: auto; }
@media (max-width: 600px) {
  .terrain-app-slot .ar-toolbar { display: none; }
  .terrain-app-slot .ar-titlebar { height: 26px; gap: 6px; padding: 0 12px; }
  .terrain-app-slot .ar-traffic { width: 9px; height: 9px; }
  .terrain-app-slot .ar-title { font-size: 9px; }
}

/* Give the overlaid navigation and the hero copy their own room in the sky. */
#hero-stage .hero__text { top: max(140px, 16cqh); }
@media (max-width: 600px) {
  #hero-stage .hero__text { top: 110px; }
}

/* Narrower app framing leaves the mountain shoulders visible. */
@media (min-width: 601px) {
  #hero-stage .terrain-app-slot { left: 26%; width: 48%; }
}

@media (max-width: 600px) {
  #hero-stage .terrain-app-slot { height: 46cqh; }
}

/* Hero replica: fixed video geometry; timeline may be occluded by the dune. */
.terrain-app-slot .ar-titlebar { padding-inline: 1.65cqw; }
.terrain-app-slot .ar-body { align-items: stretch; overflow: hidden; }
.terrain-app-slot .ar-editor { flex: 1; min-width: 0; padding: 1.65cqw; display: flex; flex-direction: column; gap: 1.2cqw; }
.terrain-app-slot .ar-editor .ar-preview {
  flex: none; align-self: stretch; width: 100%; height: auto;
  aspect-ratio: 16 / 9; min-height: 0; margin: 0; overflow: hidden;
}
.terrain-app-slot .ar-playback, .terrain-app-slot .ar-timeline-label {
  display: flex; align-items: center; justify-content: space-between;
  flex: none; font-size: 1cqw; color: #8f959f;
}
.terrain-app-slot .ar-playback { font-variant-numeric: tabular-nums; color: #eaf1f2; }
.terrain-app-slot .ar-play { width: 3cqw; height: 3cqw; border-radius: 50%; display: grid; place-items: center; background: #222831; color: #6b7280; }
.terrain-app-slot .ar-timeline { flex: none; border-radius: .8cqw; overflow: hidden; background: #10151a; }
.terrain-app-slot .ar-ruler { display: grid; grid-template-columns: 23% repeat(4, 1fr); background: #222831; color: #8f959f; font-size: .85cqw; padding-block: .45cqw; }
.terrain-app-slot .ar-track { display: grid; grid-template-columns: 23% 1fr; height: 2.7cqw; border-bottom: 1px solid #252b33; font-size: .85cqw; color: #8f959f; }
.terrain-app-slot .ar-track > span { display: flex; align-items: center; padding-left: .7cqw; background: #1c2129; border-right: 1px solid #2b313a; }
.terrain-app-slot .ar-track--audio > span { color: #8ad6a1; }
.terrain-app-slot .ar-card { transform: none; }
@media (max-width: 600px) {
  .terrain-app-slot .ar-titlebar { padding-inline: 1.65cqw; }
}

/* Continuous page flow, without a sticky hold before the next section. */
#hero-journey { height: auto; }
#hero-stage { position: relative; }
#hero-stage::after {
  content: ""; position: absolute; inset: auto 0 0; height: max(90px, 14cqh);
  z-index: 55; pointer-events: none;
  background: linear-gradient(to bottom, transparent, #101319);
}
.turn { background: #101319; }

/* The section boundary belongs to the same depth plane as the near dune. */
#hero-stage::after { translate: 0 var(--foreground-y, 0px); }
.turn { will-change: translate; box-shadow: 0 240px 0 #101319; }
.turn__glow {
  top: 0; width: min(100%, 900px); height: 100%;
  background: radial-gradient(ellipse at 50% 35%, #8ad6a126, transparent 70%);
}
@media (prefers-reduced-motion: reduce) { .turn { will-change: auto; } }

.turn__glow { mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 75%, transparent); }

/* Attach the feathered seam to the following foreground section itself. */
#hero-stage::after { display: none; }
.turn {
  overflow: visible;
  padding-top: clamp(8rem, 22vh, 15rem);
}
.turn::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px);
  height: clamp(150px, 23vh, 250px); pointer-events: none;
  background: linear-gradient(to bottom, #10131900 0%, #1013190a 15%, #10131926 30%, #10131959 45%, #101319a6 65%, #101319e0 82%, #101319fa 94%, #101319 100%);
}
.turn__glow {
  opacity: var(--turn-glow-opacity, 0);
  background: radial-gradient(ellipse at 50% 48%, #8ad6a145 0%, #4ca66a30 30%, #28573a14 52%, transparent 72%);
}

/* Lower the existing feather without changing its softness or depth speed. */
.turn { top: 25px; padding-top: clamp(9.5rem, 26vh, 18rem); }
.turn__glow { top: 4vh; }

/* Static synced app showcase, ready for the later intro animation. */
.sync-showcase { position: relative; z-index: 1; margin-top: -12vh; padding: 0 max(24px, 5vw) clamp(90px, 12vw, 180px); background: #101319; }
.sync-demo { container-type: inline-size; width: 100%; max-width: min(1250px, 104svh); margin-inline: auto; overflow: hidden; border: 1px solid #343a42; border-radius: 1.4vw; background: #14191f; color: #dce4e6; font-family: Arial, sans-serif; box-shadow: 0 36px 100px #0005; }
.sd-title { height: 3.3cqw; position: relative; display: flex; align-items: center; justify-content: center; background: #1c2128; color: #93999f; font-size: 1.1cqw; }
.sd-lights { position: absolute; left: 1.65cqw; display: flex; gap: .65cqw; }
.sd-lights i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #ff6059; }
.sd-lights i:nth-child(2) { background: #ffbd2e; }.sd-lights i:nth-child(3) { background: #28c840; }
.sd-toolbar { display: flex; align-items: center; gap: 1cqw; padding: .2cqw 1.65cqw 1.1cqw; background: #1c2128; border-bottom: 1px solid #30353e; font-size: .96cqw; white-space: nowrap; }
.sd-button { appearance: none; background: #1b1f26; color: #eaf1f2; display: inline-flex; align-items: center; justify-content: center; height: 2.5cqw; padding: 0 1.05cqw; border: 1px solid #303742; border-radius: .85cqw; font-size: 1cqw; font-weight: 600; }.sd-muted { color: #8f959f; }.sd-spacer { flex: 1; }.sd-auto { min-width: 7.5cqw; }.sd-sync { color: #0e1510; background: #8ad6a1; border-color: #8ad6a1; }.sd-export { color: #8ad6a1; border-color: #47745b; }
.sd-body { display: grid; grid-template-columns: 70% 30%; padding: 2.5cqw 1.65cqw 3cqw; }
.sd-editor { min-width: 0; padding-right: 1.65cqw; }.sd-preview { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0b0e10; border: 1px solid #525651; border-radius: .9cqw; }
.sd-preview img { position: absolute; max-width: none; width: 166.08%; height: auto; left: -9.62%; top: -34.46%; }
.sd-playback { display: flex; justify-content: space-between; align-items: center; margin-block: 1.35cqw; font: 1.4cqw monospace; }.sd-play { display: grid; place-items: center; width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: #8ad6a1; color: #183623; font-size: 1.3cqw; }
.sd-timeline-label { display: flex; justify-content: space-between; align-items: center; color: #8f959f; font-size: 1cqw; margin: 1.6cqw 0 1.4cqw; }.sd-zoom { background: #252b34; padding: .1cqw .5cqw; border-radius: 1cqw; }
.sd-timeline { overflow: hidden; border-radius: .8cqw; background: #10151a; }.sd-ruler { display: grid; grid-template-columns: 15% repeat(5, 1fr); background: #232933; color: #939ba7; font-size: .85cqw; padding-block: .5cqw; }
.sd-tracks { position: relative; max-height: 17.5cqw; overflow-y: auto; min-height: 17.5cqw; background: repeating-linear-gradient(to bottom, transparent 0 3.45cqw, #252b33 3.45cqw 3.5cqw); }
.sd-track { height: 3.5cqw; display: grid; grid-template-columns: 15% 1fr; border-bottom: 1px solid #30353d; }.sd-track-label { display: flex; flex-direction: column; justify-content: center; gap: .2cqw; padding-left: .6cqw; background: #1c222a; font-size: .95cqw; }.sd-track-label small { color: #929aa3; font-size: .65cqw; }.sd-lane { position: relative; }.sd-clip { position: absolute; top: .25cqw; bottom: .25cqw; display: flex; align-items: center; padding-left: .6cqw; border: 1px solid #60b97a; border-radius: .4cqw; background: #396d49; font-size: .8cqw; color: #e2efe5; overflow: hidden; white-space: nowrap; }.sd-camera { left: 13.333%; width: 70%; }.sd-camera-audio { background: #263f30; border-color: #3b6247; color: #9ab9a1; }.sd-audio { left: 0; width: 100%; }.sd-playhead { position: absolute; top: 0; bottom: 0; left: 41.2%; width: 1px; background: #d8e63f; pointer-events: none; }
.sd-rail { border-left: 1px solid #222831; padding-left: 2.2cqw; }.sd-search { border: 1px solid #303741; background: #1c2128; border-radius: .8cqw; padding: .95cqw; font-size: 1cqw; color: #858d98; margin-bottom: 1cqw; }.sd-file { padding: 1.1cqw; border: 1px solid #4c795a; border-left: .22cqw solid #8ad6a1; border-radius: .7cqw; margin-bottom: .8cqw; background: #1b2720; font-size: .9cqw; }.sd-file-title { font-weight: 700; white-space: nowrap; }.sd-file-title > span { float: right; font-weight: 400; color: #a6bbb0; font-size: .65cqw; padding: .1cqw .3cqw; border: 1px solid #425449; border-radius: .3cqw; }.sd-status { display: inline-block; margin-top: .8cqw; padding: .3cqw .55cqw; background: #24432d; color: #8ad6a1; border: 1px solid #42694d; border-radius: .5cqw; font-size: .8cqw; }.sd-file p { margin: .7cqw 0; line-height: 1.65; color: #a8b2ad; font-size: .8cqw; }.sd-file-actions { display: flex; gap: .5cqw; }.sd-file-actions span { border: 1px solid #3a4b40; border-radius: .4cqw; padding: .3cqw .65cqw; color: #b0bcb4; font-size: .8cqw; }.sd-footer { display: flex; justify-content: space-between; border-top: 1px solid #252b32; padding: 1cqw 1.65cqw; color: #8f959f; font-size: .9cqw; }
@media (max-width: 600px) { .sync-showcase { padding-inline: 12px; margin-top: -8vh; }.sync-demo { border-radius: 10px; } }

/* Interactive replica: screenshot-matched neutral cards and linked selection. */
.sync-demo button, .sync-demo input { font-family: inherit; }
.sync-demo button { cursor: pointer; transition: background .12s ease-out, border-color .12s ease-out, color .12s ease-out; }
.sync-demo button:focus-visible, .sd-timeline:focus-visible { outline: 2px solid #eaf1f2; outline-offset: 2px; }
.sd-button:hover { background: #22262f; border-color: #606874; }
.sd-sync { background: #6ed79e; border-color: #6ed79e; }.sd-sync:hover { background: #8aefb5; border-color: #8aefb5; }
.sd-export { color: #6ed79e; background: #14191f; border-color: #6ed79e; }.sd-export:hover { color: #bcffd0; border-color: #bcffd0; background: #15181d; }
.sd-button:active { transform: scale(.97); }
.sd-play { border: 0; padding: .85cqw; background: #6ed79e; }.sd-play:hover { background: #8aefb5; }.sd-play svg { width: 100%; height: 100%; fill: #102219; }
.sd-timecode { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.sd-search { display: flex; align-items: center; gap: .65cqw; padding: .8cqw; }.sd-search svg { width: 1.3cqw; fill: none; stroke: currentColor; stroke-width: 2; }.sd-search input { min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; color: #eaf1f2; font-size: 1cqw; }.sd-search:focus-within { border-color: #8f959f; }
.sd-file { display: block; text-align: left; width: 100%; background: #1b1f26; border: 1px solid #ffffff22; position: relative; overflow: hidden; color: #eaf1f2; padding: .85cqw; border-radius: .9cqw; box-shadow: inset 0 1px 0 #ffffff0c; }
.sd-file::before { content: ""; position: absolute; inset: 0 auto 0 0; width: .22cqw; min-width: 2px; background: #22c55e; pointer-events: none; }
.sd-file:hover { background: #22262f; border-color: #748078; }
.sd-file.is-selected { background: #22262f; border-color: #eaf1f2; }
.sd-file-title { display: flex; gap: .5cqw; align-items: center; font-size: 1.05cqw; }
.sd-file-title > .sd-checkbox { float: none; width: 1.2cqw; height: 1.2cqw; padding: 0; border: 1px solid #3b4450; border-radius: .3cqw; flex: none; }
.sd-file-title strong { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.sd-file-title > .sd-device { margin-left: auto; float: none; border-radius: 1cqw; border-color: #3b4450; color: #d6dce0; padding: .25cqw .7cqw; font-size: .8cqw; }
.sd-file-details { display: flex; flex-direction: column; gap: .55cqw; margin: .7cqw 0 0 1.7cqw; color: #8f959f; font-size: .9cqw; line-height: 1.25; }
.sd-confidence { padding: .05cqw .65cqw; margin-left: .3cqw; border-radius: 1cqw; color: #22c55e; background: #214633; font-weight: 600; }.sd-file-actions { display: block; color: #8f959f; }
.sd-timeline { cursor: ew-resize; touch-action: none; user-select: none; }.sd-tracks { padding-top: 2.8cqw; min-height: 17.5cqw; }.sd-track { height: 2.8cqw; }.sd-track-label { flex-direction: row; align-items: center; justify-content: space-between; padding-right: .6cqw; font-weight: 600; }.sd-track-label small { font-size: .8cqw; }
.sd-clip { background: #22c55e; color: #092415; border: 1px solid transparent; font-weight: 600; top: .3cqw; bottom: .3cqw; font-size: .85cqw; }.sd-camera-audio { background: #196b3a; color: #91a89b; }.sd-clip:hover { filter: brightness(1.15); }.sd-clip.is-selected { outline: none; border-color: #eaf1f2; box-shadow: none; }
.sync-demo .sd-clip:focus-visible { outline: 1px solid #eaf1f2; outline-offset: 1px; }
.sd-playhead { left: calc(15% + var(--playhead, 30.8) * .85%); width: 2px; z-index: 2; }

.sd-button svg, .sd-file-actions svg { width: 1.2cqw; height: 1.2cqw; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sd-button { gap: .4cqw; }.sd-file-actions { display: flex; align-items: center; gap: .45cqw; }.sd-file-actions svg:nth-of-type(2) { margin-left: .4cqw; }
.sd-file[hidden] { display: none; }
.sd-ruler { position: relative; display: block; height: 1.9cqw; padding: 0; outline-offset: -2px; }
.sd-ruler span { position: absolute; top: .4cqw; transform: translateX(-50%); }.sd-ruler span:first-child { display: none; }.sd-ruler span:nth-child(2) { left: 15%; transform: none; }.sd-ruler span:nth-child(3) { left: 36.25%; }.sd-ruler span:nth-child(4) { left: 57.5%; }.sd-ruler span:nth-child(5) { left: 78.75%; }.sd-ruler span:nth-child(6) { right: .4cqw; transform: none; }

/* Surface colours sampled from the real app reference. */
.sync-demo { background: #15181d; }
.sd-title, .sd-toolbar, .sd-search { background: #1b1f26; }
.sd-timeline { background: #13161a; }
.sd-ruler { background: #22262f; }
.sd-tracks { background: linear-gradient(to right, #1b1f26 0 15%, #13161a 15% 100%); }
.sd-track-label { background: transparent; border-right: 1px solid #22262f; color: #8f959f; }
.sd-track-controls { display: flex; align-items: center; gap: .45cqw; }
.sync-demo .sd-solo, .sync-demo .sd-track-toggle { display: grid; place-items: center; padding: 0; background: transparent; color: #8f959f; height: 1.15cqw; min-height: 9px; line-height: 1; }
.sd-solo { border: 1px solid #6b7280; border-radius: .3cqw; width: 1.45cqw; min-width: 11px; font-size: .8cqw; font-weight: 600; }
.sd-track-toggle { border: 0; width: 1.15cqw; min-width: 9px; }
.sd-track-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sync-demo .sd-solo:hover, .sync-demo .sd-track-toggle:hover { color: #eaf1f2; }
.sync-demo .sd-solo[aria-pressed="true"] { background: #8ad6a1; border-color: #8ad6a1; color: #0e1510; }
.sd-track-toggle.is-muted { opacity: .7; }.sd-mute-cross { display: none; }.is-muted .sd-sound-wave { display: none; }.is-muted .sd-mute-cross { display: block; }

/* QR marking is independent of the linked timeline/list selection. */
.sd-file { cursor: pointer; }
.sd-file:focus-visible { outline: 2px solid #eaf1f2; outline-offset: 2px; }
.sd-file-title > .sd-checkbox { appearance: none; margin: 0; display: block; width: 1.2cqw; height: 1.2cqw; min-width: 9px; min-height: 9px; flex: none; border: 1px solid #3b4450; border-radius: .3cqw; background: #1b1f26; cursor: pointer; }
.sd-checkbox:checked { background: #d8e63f; border-color: #d8e63f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%231a1d0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sd-file-title > .sd-checkbox:checked { background-color: #d8e63f; border-color: #d8e63f; }
.sd-checkbox:focus-visible { outline: 2px solid #eaf1f2; outline-offset: 2px; }
.sd-file.is-qr, .sd-file.is-qr:hover, .sd-file.is-qr.is-selected { border-color: #d8e63f; }
.sd-qr, .sd-qr:hover { background: #1b1f26; color: #4a5058; border-color: #292f38; cursor: default; transform: none; user-select: none; min-width: 5.5cqw; }
.sd-qr.has-selection, .sd-qr.has-selection:hover { color: #d8e63f; }
.sd-qr-count { font-variant-numeric: tabular-nums; }.sd-qr-count[hidden] { display: none; }

/* Same non-interactive QR indicator in the hero app preview. */
.terrain-app-slot .ar-btn--qr, .terrain-app-slot .ar-btn--qr:hover { background: #1b1f26; border-color: #292f38; color: #4a5058; cursor: default; min-width: 5.5cqw; transform: none; }

/* Match the native app UI and its dedicated seven-segment transport clock. */
.sync-demo, .terrain-app-slot .ar-window--hero, .terrain-app-slot .ar-btn { font-family: "Geist", sans-serif; }
.sd-timecode { font-family: "DSEG7 Classic", monospace; font-weight: 700; font-size: 1.4cqw; line-height: 1.5; letter-spacing: .03em; }
.terrain-app-slot .ar-playback > span:last-child { font-family: "DSEG7 Classic", monospace; font-weight: 700; font-size: 1.4cqw; letter-spacing: .03em; }

/* Header preview offers visual hover feedback only, with no actions. */
.terrain-app-slot .ar-btn--choose, .terrain-app-slot .ar-btn--fps, .terrain-app-slot .ar-card { pointer-events: auto; cursor: default; transition: background .12s ease-out, border-color .12s ease-out, color .12s ease-out; }
.terrain-app-slot .ar-btn--choose:hover, .terrain-app-slot .ar-btn--fps:hover { background: #22262f; border-color: #606874; color: #eaf1f2; }
.terrain-app-slot .ar-card:hover { background: #22262f; border-color: #748078; }
.terrain-app-slot .ar-btn--ghost:disabled { background: #1b2027; border-color: #292f38; color: #505964; cursor: default; }

.terrain-app-slot .ar-btn--sync-preview { background: #6ed79e; border-color: #6ed79e; color: #0e1510; cursor: default; pointer-events: auto; transition: background .12s ease-out, border-color .12s ease-out; }
.terrain-app-slot .ar-btn--sync-preview:hover { background: #8aefb5; border-color: #8aefb5; }

/* Light translucent badge on the landscape. */
.hero__text .badge {
  color:#35443a;
  background:rgba(234,241,232,.28);
  border-color:rgba(255,255,255,.5);
  backdrop-filter:blur(12px) saturate(115%);
  -webkit-backdrop-filter:blur(12px) saturate(115%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 3px 12px rgba(13,15,18,.05);
}
.hero__text .badge::before { background:#4e9b69; }
