/* Hybrid AutoPress: one page, segmented scroll.
   Colours come from the app icon: the navy ground and the amber bar. */

:root {
  --navy-950: #0b1d31;
  --navy-900: #10273f;
  --navy: #1a3a5e;        /* icon ground */
  --navy-600: #254e7a;    /* icon ground, top of the gradient */
  --navy-300: #8fb0d3;
  --amber: #f59e0b;       /* icon bar */
  --amber-ink: #a85d06;   /* amber that stays readable on paper */
  --paper: #faf9f7;       /* Hybrid's paper */
  --paper-2: #f1efeb;
  --ink: #1b2430;
  --ink-2: #4a5666;
  --on-navy: #f4f1ea;
  --on-navy-2: #b9c8da;
  --line: rgba(27, 36, 48, 0.12);
  --line-navy: rgba(244, 241, 234, 0.14);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
  --nav-h: 56px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--amber); color: #1b1300; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* ── Navigation ─────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(11, 29, 49, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line-navy);
  color: var(--on-navy);
}
.nav__inner {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav__links a { text-decoration: none; color: var(--on-navy-2); padding: 8px 0; transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--on-navy); }
.nav__links .lang {
  color: var(--on-navy); border: 1px solid var(--line-navy); border-radius: 999px; padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__links .lang:hover { border-color: var(--amber); }
.nav__links .lang svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .nav__links a:not(.lang) { display: none; } }

/* ── Panels: the segments of the scroll ─────────────────────── */

.panel {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 72px;
}
.panel--navy {
  color: var(--on-navy);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(245, 158, 11, 0.16), transparent 62%),
    linear-gradient(180deg, var(--navy-600) 0%, var(--navy) 38%, var(--navy-900) 100%);
}
.panel--deep { color: var(--on-navy); background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.panel--paper { background: var(--paper); }
.panel--paper2 { background: var(--paper-2); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; }

/* Segmented scroll: every panel and every step is a resting point. */
@media (min-width: 900px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
  .panel, .step { scroll-snap-align: start; }
}

/* ── Type ───────────────────────────────────────────────────── */

.eyebrow {
  font-size: 13px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-ink); margin-bottom: 18px;
}
.panel--navy .eyebrow, .panel--deep .eyebrow, .steps .eyebrow { color: var(--amber); }

h1 {
  font-size: clamp(40px, 6.6vw, 84px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 750;
  text-wrap: balance;
}
h2 {
  font-size: clamp(32px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 720;
  text-wrap: balance;
}
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 650; }
.hl { color: var(--amber); }
.panel--paper .hl, .panel--paper2 .hl { color: var(--amber-ink); }
.lede {
  font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--ink-2);
  max-width: 40em; margin-top: 22px; text-wrap: pretty;
}
.panel--navy .lede, .panel--deep .lede, .steps .lede { color: var(--on-navy-2); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ── Buttons ────────────────────────────────────────────────── */

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.center .actions { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--amber { background: var(--amber); color: #1b1300; }
.btn--amber:hover { background: #ffb22e; transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-navy); color: var(--on-navy); }
.btn--ghost:hover { border-color: var(--amber); }
.soon {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px 10px 14px;
  border-radius: 999px; background: rgba(244, 241, 234, 0.08); border: 1px solid var(--line-navy);
  font-size: 15px; font-weight: 600;
}
.soon i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }

/* ── Hero ───────────────────────────────────────────────────── */

.hero { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 0; justify-content: flex-start; overflow: hidden; }
.hero .wrap { padding-top: clamp(12px, 3.5vh, 44px); }
.hero .lede { max-width: 46em; }
.hero__icon { width: 84px; height: 84px; margin: 0 auto 18px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); }
.hero__stage { margin: clamp(8px, 2vh, 28px) auto 0; width: 100%; display: flex; justify-content: center; }
.hero__shot {
  width: min(1180px, 112vw); max-width: none; flex: none; margin-bottom: -5%;
  transform: scale(var(--hero-scale, 1)); transform-origin: 50% 0; will-change: transform;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.45));
}

/* ── How it works: pinned stage, scrolling steps ────────────── */

.steps { position: relative; background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: var(--on-navy); }
.steps__grid {
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr); gap: clamp(24px, 4vw, 72px);
}
.step { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0; }
.step__no {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--amber); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.step__no::after { content: ""; height: 2px; width: 44px; background: var(--amber); border-radius: 2px; }
.step h2 { font-size: clamp(30px, 3.6vw, 50px); }
.step p:not(.step__no) { color: var(--on-navy-2); font-size: clamp(17px, 1.35vw, 20px); margin-top: 20px; max-width: 30em; }
.step__img { display: none; margin-top: 28px; }

.stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.stage__frame { position: relative; width: 100%; aspect-ratio: 1700 / 1198; }
.stage__frame img {
  position: absolute; inset: 0; width: 100%; height: auto; opacity: 0; transform: scale(0.975) translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}
.stage__frame img.is-active { opacity: 1; transform: none; }
.stage__dots { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.stage__dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(244, 241, 234, 0.28); transition: height 0.4s var(--ease), background-color 0.4s var(--ease); }
.stage__dots i.is-active { height: 26px; background: var(--amber); }

@media (max-width: 899px) {
  .steps__grid { display: block; }
  .stage { display: none; }
  .step { min-height: 0; padding: 64px 0; }
  .step__img { display: block; width: 112%; max-width: none; margin-left: -6%; }
}

/* ── Split panels (text + device) ───────────────────────────── */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--flip > :first-child { order: 2; }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.ticks strong { color: var(--ink); font-weight: 650; display: block; }
.ticks svg { width: 24px; height: 24px; color: var(--amber-ink); margin-top: 2px; }
.panel--navy .ticks li, .panel--deep .ticks li { color: var(--on-navy-2); }
.panel--navy .ticks strong, .panel--deep .ticks strong { color: var(--on-navy); }
.panel--navy .ticks svg, .panel--deep .ticks svg { color: var(--amber); }

/* Devices, drawn in CSS around the real screenshots */
.phone {
  position: relative; width: min(330px, 78vw); margin: 0 auto; padding: 11px; border-radius: 56px;
  background: #0a0e14; box-shadow: 0 0 0 2px #2a3340, 0 40px 80px rgba(16, 39, 63, 0.35);
}
.phone img { border-radius: 46px; width: 100%; }
.phone::after {
  content: ""; position: absolute; left: 50%; top: 24px; width: 29%; height: 3.6%; transform: translateX(-50%);
  background: #05070a; border-radius: 999px;
}
.tablet {
  position: relative; padding: 14px; border-radius: 34px; background: #0a0e14;
  box-shadow: 0 0 0 2px #2a3340, 0 40px 90px rgba(0, 0, 0, 0.45);
}
.tablet img { border-radius: 21px; width: 100%; }

.devices { position: relative; margin-top: clamp(36px, 6vh, 64px); display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 4vw, 56px); }
.devices .tablet { width: min(520px, 58vw); }
.devices .phone { width: min(250px, 30vw); margin: 0; padding: 9px; border-radius: 44px; }
.devices .phone img { border-radius: 36px; }
.devices .phone::after { top: 19px; }
@media (max-width: 640px) {
  .devices .tablet { width: 62vw; padding: 8px; border-radius: 20px; }
  .devices .tablet img { border-radius: 13px; }
  .devices .phone { width: 30vw; padding: 5px; border-radius: 22px; }
  .devices .phone img { border-radius: 18px; }
  .devices .phone::after { top: 10px; }
}

/* ── Front matter ───────────────────────────────────────────── */

.code {
  font-family: var(--mono); font-size: clamp(13px, 1.05vw, 15.5px); line-height: 1.75;
  background: var(--navy-900); color: #d9e3ee; border-radius: 22px; padding: 26px 28px; margin: 0;
  box-shadow: 0 30px 70px rgba(16, 39, 63, 0.28); overflow-x: auto; white-space: pre;
}
.code .k { color: var(--amber); }
.code .c { color: #7f95ad; }
.code .h { color: #ffffff; font-weight: 600; }
.code__bar { display: flex; gap: 7px; margin-bottom: 18px; }
.code__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(244, 241, 234, 0.2); }

/* ── Hosts ──────────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.chips li {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-navy); color: var(--on-navy);
  font-size: 15px; font-weight: 550; background: rgba(244, 241, 234, 0.05);
}
.chips li.more { border-style: dashed; color: var(--on-navy-2); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
@media (max-width: 899px) { .cards { grid-template-columns: 1fr; } }
.card {
  border-radius: 24px; padding: 28px; border: 1px solid var(--line-navy); background: rgba(244, 241, 234, 0.05);
}
.card svg { width: 28px; height: 28px; color: var(--amber); margin-bottom: 18px; }
.card p { margin-top: 10px; color: var(--on-navy-2); font-size: 16px; }
.card code { font-family: var(--mono); font-size: 0.9em; color: var(--on-navy); }

/* ── Benefits (bento) ───────────────────────────────────────── */

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.tile {
  grid-column: span 2; border-radius: 28px; padding: 30px; background: #fff; border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16, 39, 63, 0.1); }
.tile--wide { grid-column: span 3; }
.tile--navy { background: linear-gradient(160deg, var(--navy-600), var(--navy)); color: var(--on-navy); border-color: transparent; }
.tile--navy p { color: var(--on-navy-2); }
.tile svg { width: 28px; height: 28px; color: var(--amber-ink); margin-bottom: 20px; }
.tile--navy svg { color: var(--amber); }
.tile p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.tile .big { font-size: clamp(44px, 5vw, 68px); font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: var(--amber); margin-bottom: 14px; }
@media (max-width: 899px) { .bento { grid-template-columns: 1fr; } .tile, .tile--wide { grid-column: auto; } }

/* ── Sister app ─────────────────────────────────────────────── */

.sister {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  border-radius: 28px; padding: 32px; background: #fff; border: 1px solid var(--line); margin-top: 18px;
}
.sister__mark {
  width: 64px; height: 64px; border-radius: 16px; background: var(--paper-2); display: grid; place-items: center;
  font-weight: 800; font-size: 30px; color: var(--amber-ink);
}
.sister p { color: var(--ink-2); margin-top: 6px; font-size: 16px; }
.link { color: var(--amber-ink); font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link:hover { text-decoration: underline; }
.link svg { width: 16px; height: 16px; }
@media (max-width: 700px) { .sister { grid-template-columns: 1fr; } }

/* ── Closing + footer ───────────────────────────────────────── */

.closing { min-height: 86vh; }
.closing .hero__icon { width: 112px; height: 112px; }
.req { margin-top: 22px; font-size: 14px; color: var(--on-navy-2); }

footer { background: var(--navy-950); color: var(--on-navy-2); padding: 40px var(--gutter) 56px; font-size: 14px; border-top: 1px solid var(--line-navy); }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--on-navy); text-decoration: none; padding: 6px 0; display: inline-block; }
footer a:hover { text-decoration: underline; }
.fine { font-size: 12.5px; opacity: 0.75; max-width: 70em; }

/* ── Reveal on scroll ───────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stage__frame img { transition: none; transform: none; }
  .soon i { animation: none; }
  .hero__shot { transform: none; }
}

/* ── Legal pages (Impressum) ────────────────────────────────── */

.legal-hero { padding: calc(var(--nav-h) + clamp(48px, 9vh, 96px)) var(--gutter) clamp(48px, 8vh, 80px); }
.legal-hero .lede { max-width: 44em; }
.legal { padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(64px, 10vh, 112px); }
.legal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.legal__card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 30px; }
.legal__card--wide { grid-column: 1 / -1; }
.legal__card--note { background: transparent; border-style: dashed; padding: 20px 30px; }
.legal__card--note p { color: var(--ink-2); font-size: 16px; }
.legal-hero h1 { hyphens: manual; overflow-wrap: anywhere; }
.legal__card h2 {
  font-size: 13px; line-height: 1.4; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber-ink); margin-bottom: 14px; text-wrap: pretty;
}
.legal__card p, .legal__card address { font-style: normal; font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 62em; }
.legal__card p + p { margin-top: 14px; color: var(--ink-2); }
.legal__card a { color: var(--amber-ink); font-weight: 600; text-underline-offset: 3px; }
.legal__back { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; margin-top: 14px; }
@media (max-width: 760px) { .legal__grid { grid-template-columns: 1fr; } }
.brand span { white-space: nowrap; }
