/* Layout: field-guide observation sheet. Asymmetric hero (claim left, fanned iPhones right),
   alternating feature rows, one quiet privacy band. Light theme only, by design. */
:root {
  --paper: #f3f6f9;
  --surface: #ffffff;
  --ink: #0f1c2b;
  --muted: #536173;
  --line: #dbe2ea;
  --sky: #2a78d6;
  --sky-soft: #e3eefb;
  --rust: #b8562a;
  --live: #1b8a3e;
  --frame: #1b1d21;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root[lang="de"] [lang="en"],
:root[lang="en"] [lang="de"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--sky); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--paper);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.06em; padding: 7px 10px; border-radius: 999px;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
@media (max-width: 720px) { .nav a { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 32px; padding-block: 56px 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust); }
.hero h1 { font-size: var(--step-3); font-weight: 750; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lede { margin-top: 22px; color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 16px; border-radius: 14px;
  background: var(--ink); color: var(--surface); text-decoration: none; line-height: 1.15;
}
.store svg { width: 24px; height: 24px; fill: currentColor; }
.store small { display: block; font-size: 0.7rem; letter-spacing: 0.04em; opacity: 0.75; }
.store strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; }
.ghost { color: var(--ink); font-weight: 600; text-decoration: none; padding: 12px 6px; display: inline-flex; gap: 6px; align-items: center; }
.ghost:hover { color: var(--sky); }
.meta-line { margin-top: 22px; color: var(--muted); font-size: var(--step--1); }

.stage { position: relative; height: clamp(560px, 52vw, 700px); }
.sight { position: absolute; inset: 8% -10% auto -30%; width: 140%; height: 70%; pointer-events: none; }
.sight path { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 0; opacity: 0.35; animation: draw 2.4s cubic-bezier(.6,.1,.2,1) both; }
.sight .area { fill: url(#sightFill); stroke: none; opacity: 1; animation: fade 2.4s ease both; }
@keyframes draw { from { stroke-dashoffset: 1400; } }
@keyframes fade { from { opacity: 0.2; } }

/* iPhone frame */
.phone {
  --w: 270px;
  width: var(--w);
  max-width: 100%;
  border-radius: calc(var(--w) * 0.17);
  padding: calc(var(--w) * 0.035);
  background: linear-gradient(150deg, #3a3e45, var(--frame) 40%, #0b0c0e);
  box-shadow: inset 0 0 0 1.5px #4a4f57, inset 0 0 0 4px #0b0c0e, 0 50px 80px -40px rgba(15, 28, 43, 0.55), 0 18px 30px -18px rgba(15, 28, 43, 0.35);
  position: relative;
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; background: #2a2d32; border-radius: 2px; }
.phone::before { left: -2px; top: 22%; height: 10%; }
.phone::after { right: -2px; top: 28%; height: 14%; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; border-radius: calc(var(--w) * 0.14); background: var(--paper); }

.stage .phone { position: absolute; top: 2%; left: 50%; transform-origin: 50% 50%; }
.stage .p-main { --w: clamp(220px, 24vw, 290px); z-index: 3; transform: translateX(-50%); animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both, bob 7s ease-in-out 1.3s infinite; }
.stage .p-left { --w: clamp(190px, 20vw, 245px); z-index: 2; top: 9%; transform: translateX(-108%) rotate(-6deg); animation: fanL 1.2s cubic-bezier(.2,.8,.2,1) 0.15s both; }
.stage .p-right { --w: clamp(190px, 20vw, 245px); z-index: 1; top: 9%; transform: translateX(8%) rotate(6deg); animation: fanR 1.2s cubic-bezier(.2,.8,.2,1) 0.25s both; }
@keyframes rise { from { transform: translateX(-50%) translateY(60px); } }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-10px); } }
@keyframes fanL { from { transform: translateX(-50%) rotate(0deg); } }
@keyframes fanR { from { transform: translateX(-50%) rotate(0deg); } }

.live-chip {
  position: absolute; z-index: 4; left: 0; bottom: 10%;
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center;
  padding: 14px 18px; border-radius: 18px; background: var(--surface);
  box-shadow: 0 24px 40px -24px rgba(15, 28, 43, 0.45), 0 0 0 1px var(--line);
  animation: chipIn 0.9s cubic-bezier(.2,.8,.2,1) 0.9s both;
}
.live-chip .dot { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 50%, transparent); animation: pulse 1.8s ease-out infinite; }
.live-chip b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.live-chip span { font-size: 0.78rem; color: var(--muted); }
@keyframes chipIn { from { transform: translateY(18px) scale(0.96); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 36px 40px; }
  .hero .lede { max-width: none; }
  .stage { height: clamp(460px, 128vw, 640px); }
  .stage .p-main { --w: min(56vw, 270px); }
  .stage .p-left, .stage .p-right { --w: min(46vw, 220px); }
  .live-chip { left: 2%; bottom: 4%; }
}

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 28px; }
.fact b { display: block; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fact b small { font-size: 0.5em; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.fact span { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 720px) { .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }

/* Feature rows */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 40rem; display: grid; gap: 14px; }
.section-head h2 { font-size: var(--step-2); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 140px); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 16px; min-width: 0; }
.feature-copy h3 { font-size: var(--step-2); }
.feature-copy > p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%232a78d6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.feature-visual { position: relative; display: grid; place-items: center; padding-block: 24px; }
.feature-visual::before {
  content: ""; position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--sky-soft), transparent 68%);
}
.feature-visual .phone { --w: min(290px, 68vw); }
.tag { justify-self: start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); background: var(--sky-soft); padding: 5px 10px; border-radius: 999px; }
.tag.live { color: var(--live); background: color-mix(in srgb, var(--live) 12%, var(--surface)); }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
}

/* Small grid */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.grid4 article { display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--ink); padding-top: 18px; }
.grid4 h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
.grid4 p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid4 { grid-template-columns: minmax(0, 1fr); } }

/* Privacy band */
.privacy { background: var(--ink); color: #e9eef4; }
.privacy .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.privacy h2 { font-size: var(--step-2); color: #ffffff; }
.privacy .section-head p { color: #a9b6c6; }
.flow { display: grid; gap: 14px; font-size: var(--step--1); }
.flow-node { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #182a3e; border: 1px solid #25405e; }
.flow-node svg { width: 26px; height: 26px; flex: none; stroke: #8fc0ff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-node b { color: #ffffff; display: block; font-size: 1rem; }
.flow-node span { color: #a9b6c6; }
.flow-link { justify-self: center; width: 2px; height: 26px; background: repeating-linear-gradient(#5c8fd0 0 5px, transparent 5px 10px); background-size: 2px 20px; animation: stream 1s linear infinite; }
@keyframes stream { to { background-position: 0 20px; } }
.flow-node.none { background: transparent; border-style: dashed; border-color: #3a4e66; }
.flow-node.none b { color: #a9b6c6; text-decoration: line-through; text-decoration-color: var(--rust); text-decoration-thickness: 2px; }
@media (max-width: 860px) { .privacy .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); }
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--muted); font-size: var(--step--1); }
.path { font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Closing CTA */
.closing { text-align: left; }
.closing .card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--sky-soft); }
.closing h2 { font-size: var(--step-2); max-width: 18ch; }
.closing p { color: var(--muted); margin-top: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 32px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--sky); }
.site-footer .fine { flex-basis: 100%; font-size: 0.8rem; }

/* Reveal: elements stay visible, only the movement is animated */
.reveal { transition: transform 0.9s cubic-bezier(.2,.8,.2,1); }
.reveal.pending { transform: translateY(36px); }
.feature-visual.reveal.pending { transform: translateY(48px) rotate(-2deg); }

/* Legal pages */
.legal { padding-block: 48px 96px; }
.legal article { max-width: 44rem; display: grid; gap: 18px; }
.legal h1 { font-size: var(--step-3); }
.legal h2 { font-size: var(--step-1); margin-top: 18px; letter-spacing: -0.015em; }
.legal p, .legal li { color: #2c3a4b; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal address { font-style: normal; line-height: 1.7; }
.legal .stamp { color: var(--muted); font-size: var(--step--1); }
.todo { background: #fff1c2; color: #6b4a00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pending { transform: none; }
  html { scroll-behavior: auto; }
}
