/* BauMilo website. A building site under floodlights: by night (dark) or by
   day (light), amber light and the app's real screens. The device decides,
   the switch in the header overrides it. System fonts only, nothing is
   loaded from other servers. */

:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --bg-raise: #ffffff;
  --bg-sunk: #eeeeea;
  --ink: #0e121a;
  --ink-soft: #2c3442;
  --muted: #5a6374;
  --faint: #8a92a1;
  --line: rgba(14, 18, 26, 0.09);
  --line-strong: rgba(14, 18, 26, 0.16);
  --row-line: rgba(14, 18, 26, 0.07);
  --frame-line: rgba(14, 18, 26, 0.12);
  --ring: rgba(14, 18, 26, 0.1);
  --surface-1: rgba(255, 255, 255, 0.72);
  --surface-2: #ffffff;
  --row-bg: #f5f6f8;
  --inset-bg: #eceef2;
  --chip-bg: rgba(14, 18, 26, 0.06);
  --glass: rgba(255, 255, 255, 0.75);
  --glass-hover: #ffffff;
  --card: linear-gradient(180deg, #ffffff, #fbfbfa);
  --card-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(16, 24, 40, 0.04), 0 22px 44px -30px rgba(16, 24, 40, 0.28);
  --heading: linear-gradient(180deg, #0e121a 0%, #0e121a 45%, #4b5568 100%);
  --number: linear-gradient(180deg, #0e121a 20%, #6b7486);
  --accent-grad: linear-gradient(95deg, #f7a531 0%, #ee7d0c 45%, #dd520b 100%);
  --accent-text: #b25d00;
  --ok-text: #0b7a52;
  --violet-text: #5443d6;
  --calc-result: #9a4d00;
  --lead: #4a5263;
  --replaced: #b5bbc6;
  --nav-bg: rgba(255, 255, 255, 0.62);
  --nav-bg-solid: rgba(255, 255, 255, 0.9);
  --nav-shadow: inset 0 0 0 1px rgba(14, 18, 26, 0.08), 0 10px 30px -16px rgba(16, 24, 40, 0.25);
  --nav-shadow-solid: inset 0 0 0 1px rgba(14, 18, 26, 0.1), 0 16px 40px -18px rgba(16, 24, 40, 0.35);
  --float-bg: rgba(255, 255, 255, 0.86);
  --float-shadow: inset 0 0 0 1px rgba(14, 18, 26, 0.08), 0 20px 44px -20px rgba(16, 24, 40, 0.4);
  --window-bar: linear-gradient(180deg, #f4f5f7, #e9ebef);
  --window-url: rgba(14, 18, 26, 0.06);
  --shadow-deep: 0 44px 90px -42px rgba(16, 24, 40, 0.42), 0 14px 30px -18px rgba(16, 24, 40, 0.22);
  --paper-shadow: 0 0 0 1px rgba(14, 18, 26, 0.1), 0 50px 90px -40px rgba(16, 24, 40, 0.45), 0 0 80px -24px rgba(255, 170, 60, 0.35);
  --cta-bg: linear-gradient(180deg, #ffffff, #f8f5ef);
  --cta-shadow: inset 0 0 0 1px var(--line), 0 50px 100px -50px rgba(16, 24, 40, 0.35);
  --stats-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
  --grid-line: rgba(14, 18, 26, 0.045);
  --glow-amber: rgba(255, 170, 60, 0.22);
  --glow-violet: rgba(128, 112, 255, 0.1);
  --beam: rgba(255, 170, 60, 0.16);
  --beam-soft: rgba(255, 170, 60, 0.05);
  --glow-opacity: 0.5;
  --grain: 0.025;
  --accent: #ffb547;
  --accent-hot: #ff7a2f;
  --accent-ink: #1b1206;
  --violet: #8070ff;
  --ok: #3ddc97;
  --amber-fill: linear-gradient(180deg, #ffc76a, #ffab3a 55%, #f59a26);
  --radius: 20px;
  --radius-lg: 28px;
  --page: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Dark: when the device asks for it, or when chosen with the switch. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #06070b;
    --bg-raise: #0d1018;
    --bg-sunk: #040507;
    --ink: #f4f5f7;
    --ink-soft: #c6ccd8;
    --muted: #8d96a8;
    --faint: #5f6778;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.15);
    --row-line: rgba(255, 255, 255, 0.06);
    --frame-line: rgba(255, 255, 255, 0.11);
    --ring: rgba(255, 255, 255, 0.09);
    --surface-1: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.05);
    --row-bg: rgba(255, 255, 255, 0.035);
    --inset-bg: rgba(0, 0, 0, 0.38);
    --chip-bg: rgba(255, 255, 255, 0.07);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.09);
    --card: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    --card-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --heading: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #a7afbf 100%);
    --number: linear-gradient(180deg, #ffffff 20%, #8a93a5);
    --accent-grad: linear-gradient(95deg, #ffe0a8 0%, #ffb547 45%, #ff7a2f 100%);
    --accent-text: #ffb547;
    --ok-text: #3ddc97;
    --violet-text: #b3a9ff;
    --calc-result: #ffd99f;
    --lead: #a4acbc;
    --replaced: #4b5263;
    --nav-bg: rgba(13, 16, 24, 0.55);
    --nav-bg-solid: rgba(10, 12, 18, 0.84);
    --nav-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 40px -12px rgba(0, 0, 0, 0.6);
    --nav-shadow-solid: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 50px -14px rgba(0, 0, 0, 0.85);
    --float-bg: rgba(17, 21, 30, 0.74);
    --float-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 50px -18px rgba(0, 0, 0, 0.85);
    --window-bar: linear-gradient(180deg, #1b202c, #141823);
    --window-url: rgba(255, 255, 255, 0.05);
    --shadow-deep: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 20px 40px -24px rgba(0, 0, 0, 0.7);
    --paper-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 60px 110px -40px rgba(0, 0, 0, 0.95), 0 0 90px -20px rgba(255, 181, 71, 0.28);
    --cta-bg: linear-gradient(180deg, #11141d, #08090e);
    --cta-shadow: inset 0 0 0 1px var(--line-strong), 0 60px 120px -40px rgba(0, 0, 0, 0.9);
    --stats-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    --grid-line: rgba(255, 255, 255, 0.045);
    --glow-amber: rgba(255, 181, 71, 0.16);
    --glow-violet: rgba(128, 112, 255, 0.16);
    --beam: rgba(255, 200, 120, 0.15);
    --beam-soft: rgba(255, 200, 120, 0.05);
    --glow-opacity: 1;
    --grain: 0.045;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06070b;
  --bg-raise: #0d1018;
  --bg-sunk: #040507;
  --ink: #f4f5f7;
  --ink-soft: #c6ccd8;
  --muted: #8d96a8;
  --faint: #5f6778;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --row-line: rgba(255, 255, 255, 0.06);
  --frame-line: rgba(255, 255, 255, 0.11);
  --ring: rgba(255, 255, 255, 0.09);
  --surface-1: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --row-bg: rgba(255, 255, 255, 0.035);
  --inset-bg: rgba(0, 0, 0, 0.38);
  --chip-bg: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --card: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  --card-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --heading: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #a7afbf 100%);
  --number: linear-gradient(180deg, #ffffff 20%, #8a93a5);
  --accent-grad: linear-gradient(95deg, #ffe0a8 0%, #ffb547 45%, #ff7a2f 100%);
  --accent-text: #ffb547;
  --ok-text: #3ddc97;
  --violet-text: #b3a9ff;
  --calc-result: #ffd99f;
  --lead: #a4acbc;
  --replaced: #4b5263;
  --nav-bg: rgba(13, 16, 24, 0.55);
  --nav-bg-solid: rgba(10, 12, 18, 0.84);
  --nav-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --nav-shadow-solid: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 50px -14px rgba(0, 0, 0, 0.85);
  --float-bg: rgba(17, 21, 30, 0.74);
  --float-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 50px -18px rgba(0, 0, 0, 0.85);
  --window-bar: linear-gradient(180deg, #1b202c, #141823);
  --window-url: rgba(255, 255, 255, 0.05);
  --shadow-deep: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 20px 40px -24px rgba(0, 0, 0, 0.7);
  --paper-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 60px 110px -40px rgba(0, 0, 0, 0.95), 0 0 90px -20px rgba(255, 181, 71, 0.28);
  --cta-bg: linear-gradient(180deg, #11141d, #08090e);
  --cta-shadow: inset 0 0 0 1px var(--line-strong), 0 60px 120px -40px rgba(0, 0, 0, 0.9);
  --stats-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  --grid-line: rgba(255, 255, 255, 0.045);
  --glow-amber: rgba(255, 181, 71, 0.16);
  --glow-violet: rgba(128, 112, 255, 0.16);
  --beam: rgba(255, 200, 120, 0.15);
  --beam-soft: rgba(255, 200, 120, 0.05);
  --glow-opacity: 1;
  --grain: 0.045;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* A faint film grain over everything, so the dark never looks flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* Headings: white fading to steel, like light falling from above. */
h1, h2 {
  background: var(--heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 {
  font-size: clamp(2.6rem, 1.15rem + 5.6vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.048em;
  font-weight: 700;
}

h2 {
  font-size: clamp(2.05rem, 1.25rem + 2.9vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
}

h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }

.accent-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent-text);
  font: 600 0.76rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-text));
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.button svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.button:hover svg { transform: translateX(3px); }

.button--primary {
  color: var(--accent-ink);
  background: var(--amber-fill);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(120, 60, 0, 0.35),
    0 0 0 1px rgba(255, 190, 90, 0.45),
    0 12px 34px -12px rgba(255, 150, 40, 0.75);
}
.button--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(120, 60, 0, 0.35),
    0 0 0 1px rgba(255, 200, 110, 0.6),
    0 18px 44px -12px rgba(255, 150, 40, 0.9);
}

.button--glass {
  color: var(--ink);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.button--glass:hover { background: var(--glass-hover); }

.button--small { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.actions--center { justify-content: center; }

/* Header: a floating glass pill. */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 1080px);
  padding: 7px 7px 7px 10px;
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: var(--nav-shadow);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled .nav-pill {
  background: var(--nav-bg-solid);
  box-shadow: var(--nav-shadow-solid);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 800 1.08rem/1 var(--font-display);
  letter-spacing: 0;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: radial-gradient(circle at 30% 20%, #34434f, #1c262e 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 18px -6px rgba(246, 189, 4, 0.45);
}
.brand-mark img { width: auto; height: 24px; object-fit: contain; }

.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a, .nav-login {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover, .nav-login:hover { color: var(--ink); background: var(--chip-bg); }
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--ink); background: var(--chip-bg); }
.theme-toggle svg { width: 19px; height: 19px; transition: transform 0.4s var(--ease); }
.theme-toggle[aria-pressed="true"] svg { transform: rotate(180deg); }
.nav + .nav-actions { margin-left: 0; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(136px, 17vh, 184px);
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, var(--glow-amber), transparent 62%),
    radial-gradient(ellipse 55% 35% at 50% 62%, var(--glow-violet), transparent 70%);
}

.beam {
  position: absolute;
  top: -6%;
  width: 72vw;
  height: 105%;
  background: conic-gradient(from 166deg at 50% 0%, transparent 0deg, var(--beam) 11deg, var(--beam-soft) 22deg, transparent 28deg);
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 10%, transparent 80%);
  filter: blur(6px);
  transform-origin: 50% 0;
}
.beam--left { left: -26vw; transform: rotate(-30deg); }
.beam--right { right: -26vw; transform: rotate(30deg); }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 28%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 50% at 50% 28%, #000 25%, transparent 75%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-copy h1 { max-width: 15.5ch; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.badge:hover { background: var(--glass-hover); }
.badge svg { width: 14px; height: 14px; color: var(--muted); }
.badge-langs { color: var(--muted); font: 500 0.76rem/1 var(--mono); letter-spacing: 0.04em; }
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.18), 0 0 14px rgba(255, 181, 71, 0.8);
}

.lead {
  max-width: 44rem;
  margin-top: 30px;
  color: var(--lead);
  font-size: clamp(1.08rem, 0.98rem + 0.4vw, 1.3rem);
  line-height: 1.55;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--faint); }

.hero-stage {
  position: relative;
  margin-top: clamp(60px, 8vw, 92px);
  padding-bottom: clamp(64px, 9vw, 120px);
  perspective: 2200px;
}

.stage-glow {
  position: absolute;
  inset: 4% 12% 18%;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(128, 112, 255, 0.42), transparent),
    radial-gradient(closest-side at 70% 30%, rgba(255, 181, 71, 0.25), transparent);
  filter: blur(60px);
  opacity: var(--glow-opacity);
}

/* A browser window around a desktop screen. */
.window {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-raise);
  box-shadow: 0 0 0 1px var(--frame-line), inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-deep);
}
.window img { display: block; width: 100%; height: auto; }
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: var(--window-bar);
  border-bottom: 1px solid var(--row-line);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a404d; }
.window-bar i:nth-child(1) { background: #ec6a5e; }
.window-bar i:nth-child(2) { background: #f4bf4f; }
.window-bar i:nth-child(3) { background: #61c554; }
.window-bar span {
  margin-inline: auto;
  transform: translateX(-26px);
  padding: 5px 44px;
  border-radius: 7px;
  background: var(--window-url);
  color: var(--muted);
  font: 500 0.74rem/1.2 var(--font);
}

.window--hero { max-width: 1040px; margin-inline: auto; transform-origin: 50% 0; }

/* A phone around a phone screen. */
.phone {
  position: relative;
  padding: 3.2%;
  border-radius: 15% / 7%;
  background: linear-gradient(145deg, #2e333f, #0b0d12 42%, #1d212a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), 0 0 0 1px rgba(0, 0, 0, 0.6), var(--shadow-deep);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 12% / 5.6%; }

.phone--hero {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vw, 64px);
  z-index: 2;
  width: clamp(118px, 19vw, 250px);
}

/* Glass notes floating over the screens. */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 16px 11px 11px;
  border-radius: 16px;
  background: var(--float-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--float-shadow);
  text-align: left;
}
.float strong { display: block; color: var(--ink); font-size: 0.9rem; font-weight: 600; }
.float small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.78rem; }
.float-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--chip-bg);
  box-shadow: inset 0 0 0 1px var(--row-line);
  color: var(--ink-soft);
}
.float-icon svg { width: 18px; height: 18px; }
.float-icon--amber { background: rgba(255, 181, 71, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.35); color: var(--accent-text); }
.float-icon--green { background: rgba(61, 220, 151, 0.12); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.32); color: var(--ok-text); }

.float--offline { left: var(--gutter); top: 16%; }
.float--signed { left: calc(var(--gutter) + 3%); bottom: 24%; }
.float--crew { right: 17%; top: -26px; }

/* Numbers */
.stats {
  position: relative;
  padding: clamp(44px, 6vw, 72px) 0;
  border-block: 1px solid var(--line);
  background: var(--stats-bg);
}
.stats ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.stats li { padding: 4px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b {
  display: block;
  font: 700 clamp(2.6rem, 1.7rem + 2.5vw, 3.9rem)/1 var(--font-display);
  letter-spacing: -0.05em;
  background: var(--number);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats li:last-child b {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
}
.stats span { display: block; max-width: 19ch; margin-top: 12px; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

/* What BauMilo replaces */
.replaces { padding: clamp(88px, 11vw, 150px) 0 clamp(8px, 2vw, 24px); text-align: center; }
.replaces .kicker { margin-bottom: 26px; }
.replaces-list {
  max-width: 22ch;
  margin-inline: auto;
  color: var(--replaced);
  font: 700 clamp(2rem, 1rem + 3.6vw, 4.2rem)/1.12 var(--font-display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.replaces s { position: relative; display: inline-block; text-decoration: none; white-space: nowrap; }
.replaces s::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: 53%;
  height: 0.075em;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-hot), var(--accent));
  transform-origin: left center;
}

/* Sections */
.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; }
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--page), 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { display: flex; flex-direction: column; align-items: center; margin-inline: auto; text-align: center; }
.section-head > p:not(.kicker) {
  max-width: 60ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.04rem, 0.98rem + 0.3vw, 1.2rem);
}
.group-label {
  margin: 0 0 16px;
  color: var(--faint);
  font: 600 0.74rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* On the building site: the seven steps and the phone that follows the story. */
.rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(40px, 6vw, 72px);
  padding: 5px;
  list-style: none;
  border-radius: 999px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.rail li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.35s, color 0.35s, box-shadow 0.35s;
}
.rail li::before {
  content: attr(data-step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--ink-soft);
  font: 600 0.72rem/1 var(--mono);
  transition: background 0.35s, color 0.35s;
}
.rail li.is-done::before { background: rgba(61, 220, 151, 0.16); color: var(--ok-text); }
.rail li.is-current { background: rgba(255, 181, 71, 0.12); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.38); }
.rail li.is-current::before { background: var(--accent); color: var(--accent-ink); }

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.story-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  max-width: 30rem;
  padding: 24px 0;
  transition: opacity 0.5s var(--ease);
}
.story--live .story-step:not(.is-active) { opacity: 0.3; }
.story-num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--accent-text);
  font: 600 0.8rem/1 var(--mono);
  letter-spacing: 0.12em;
}
.story-num::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, var(--accent-text), transparent); }
.story-step h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; }
.story-step p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.phone--inline { display: none; }

.story-device {
  position: sticky;
  top: max(96px, calc(50vh - 320px));
  display: grid;
  place-items: center;
  padding-block: 10px;
}
.story-glow {
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.28), transparent), radial-gradient(closest-side at 40% 70%, rgba(128, 112, 255, 0.3), transparent);
  filter: blur(50px);
  opacity: var(--glow-opacity);
}
.phone--story { display: grid; width: min(300px, calc((100vh - 140px) * 0.46)); }
.phone--story img { grid-area: 1 / 1; opacity: 0; transition: opacity 0.45s var(--ease); }
.phone--story img.is-active { opacity: 1; }

/* Feature grid */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--card-shadow);
  grid-column: span 2;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 181, 71, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.card h3 svg { flex: none; width: 20px; height: 20px; color: var(--accent-text); }
.card p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }

.card--offline {
  grid-column: span 4;
  grid-row: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 36px;
  padding: 40px;
  background:
    radial-gradient(ellipse 60% 60% at 85% 100%, rgba(128, 112, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 50% at 0% 0%, rgba(255, 181, 71, 0.08), transparent 70%),
    var(--card);
}
.card--offline h3 { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); letter-spacing: -0.03em; font-weight: 700; }
.card--offline h3 svg { width: 26px; height: 26px; }
.card--offline .card-text { display: grid; gap: 16px; }
.card--offline .card-text p { font-size: 1.04rem; }
.card--calc, .card--languages { grid-column: span 3; }

.outbox {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  list-style: none;
  border-radius: 22px;
  background: var(--inset-bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.outbox-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 15px;
  background: var(--row-bg);
  box-shadow: inset 0 0 0 1px var(--row-line);
}
.outbox-row > span:last-child { flex: 1; min-width: 0; }
.outbox-row b { display: block; font-size: 0.96rem; font-weight: 600; }
.outbox-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8rem; }
.outbox-dot { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; }
.outbox-row--saved .outbox-dot { background: rgba(255, 181, 71, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.45); }
.outbox-row--saved .outbox-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.outbox-row--sending .outbox-dot { border: 2px solid rgba(128, 112, 255, 0.25); border-top-color: var(--violet); }
.outbox-row--sent .outbox-dot { background: rgba(61, 220, 151, 0.16); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.4); color: var(--ok-text); }
.outbox-row--sent .outbox-dot svg { width: 14px; height: 14px; }
.outbox-bar { position: relative; display: block; height: 4px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: var(--chip-bg); }
.outbox-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--accent)); }

.sign-pad { margin-top: auto; padding: 16px 16px 12px; border-radius: 16px; background: #f6f4ef; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.sign-pad svg { display: block; width: 100%; height: auto; }
.sign-path { fill: none; stroke: #1c2541; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sign-line { display: block; height: 1px; margin-top: 2px; background: #cdc7ba; }
.sign-meta { display: block; margin-top: 8px; color: #6b6558; font-size: 0.72rem; }

.weather { display: flex; align-items: center; gap: 16px; margin-block: 6px 2px; }
.weather-sun {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff0c8, #ffb547 46%, #ff8a2f);
  box-shadow: 0 0 0 8px rgba(255, 181, 71, 0.08), 0 0 44px rgba(255, 181, 71, 0.55);
}
.weather-temp { font: 700 3.1rem/1 var(--font-display); letter-spacing: -0.05em; }
.weather-place { color: var(--ink-soft); font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.weather-place small { display: block; color: var(--muted); font-weight: 400; }
.card--weather p { margin-top: auto; }

.crew { display: grid; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.crew li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: var(--row-bg);
  box-shadow: inset 0 0 0 1px var(--row-line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.crew li::after { content: "übernommen"; margin-left: auto; color: var(--ok-text); font-size: 0.74rem; font-weight: 600; }
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b3a95, #8070ff);
  color: #fff;
  font: 700 0.66rem/1 var(--font);
}
.crew li:nth-child(2) .avatar { background: linear-gradient(135deg, #a85d16, #ffb547); }
.crew li:nth-child(3) .avatar { background: linear-gradient(135deg, #116e4c, #3ddc97); }

.numbers { display: grid; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.numbers li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 9px;
  border-radius: 12px;
  background: var(--row-bg);
  box-shadow: inset 0 0 0 1px var(--row-line);
}
.numbers b { color: var(--ink); font-size: 1.12rem; }
.numbers small { justify-self: end; color: var(--muted); font-size: 0.8rem; }

.tag {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  font: 700 0.74rem/1 var(--mono);
  letter-spacing: 0.04em;
}
.tag--ab { background: rgba(255, 181, 71, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.38); color: var(--accent-text); }
.tag--rb { background: rgba(128, 112, 255, 0.15); box-shadow: inset 0 0 0 1px rgba(128, 112, 255, 0.42); color: var(--violet-text); }
.tag--la { background: rgba(61, 220, 151, 0.12); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.36); color: var(--ok-text); }

.photo-strip { display: grid; grid-template-columns: 1fr 1fr 0.7fr; gap: 8px; margin-top: auto; }
.photo-strip span {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  aspect-ratio: 4 / 3;
  padding: 9px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  font: 600 0.72rem/1 var(--font);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.photo-strip span:nth-child(1) { background: linear-gradient(160deg, #6b5641, #2a2119); }
.photo-strip span:nth-child(2) { background: linear-gradient(160deg, #7a828f, #2b3039); }
.photo-strip span:nth-child(3) { aspect-ratio: auto; align-items: center; justify-content: center; background: var(--chip-bg); color: var(--muted); }
.photo-strip svg { width: 16px; height: 16px; opacity: 0.85; }

.calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.calc label { display: grid; gap: 6px; color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }
.calc input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--inset-bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font: 600 1rem/1 var(--mono);
}
.calc input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(255, 181, 71, 0.16); }
.calc output {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.15), rgba(255, 122, 47, 0.05));
  box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.3);
}
.calc output b { color: var(--calc-result); font-size: 2rem; letter-spacing: -0.03em; }
.calc output small { color: var(--ink-soft); font-size: 0.85rem; }

.new-report { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.new-report li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  border-radius: 14px;
  background: var(--row-bg);
  box-shadow: inset 0 0 0 1px var(--row-line);
}
.new-report abbr { width: 22px; color: var(--muted); font: 600 0.72rem/1 var(--mono); text-decoration: none; }
.new-report span {
  flex: 1;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--amber-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--accent-ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

/* In the office */
.office { display: grid; justify-items: center; gap: 26px; }
.segmented {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tab {
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.95rem/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--amber-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px -10px rgba(255, 150, 40, 0.8);
  color: var(--accent-ink);
}
.office-panel { position: relative; display: grid; gap: 30px; width: 100%; max-width: 1100px; }
.office-caption { max-width: 62ch; min-height: 3.2em; margin-inline: auto; color: var(--muted); text-align: center; }
.office-glow {
  position: absolute;
  inset: 22% 6% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(128, 112, 255, 0.34), transparent), radial-gradient(closest-side at 30% 80%, rgba(255, 181, 71, 0.2), transparent);
  filter: blur(60px);
  opacity: var(--glow-opacity);
}
.office .window img { transition: opacity 0.25s; }

/* For the client: the PDF */
.section--paper { background: radial-gradient(ellipse 50% 60% at 22% 55%, rgba(255, 181, 71, 0.08), transparent 70%); }
.paper-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.paper-stack { position: relative; justify-self: center; width: min(100%, 480px); }
.paper {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--paper-shadow);
  transform: rotate(-2deg);
}
.paper img { display: block; width: 100%; height: auto; }
.paper-sheet { position: absolute; inset: 0; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.paper-sheet--back { background: #c9c4b8; opacity: 0.45; transform: rotate(5deg) translate(26px, 12px); }
.paper-sheet--mid { background: #dcd7cc; opacity: 0.75; transform: rotate(1.5deg) translate(12px, 4px); }
.float--pdf { right: -28px; bottom: 12%; }

.points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.points li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.points li > span:last-child { color: var(--muted); font-size: 0.96rem; }
.points b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.02rem; font-weight: 600; }

/* Equipment and material */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pair figure { display: grid; gap: 22px; margin: 0; }
.pair .window { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pair figure:hover .window { transform: translateY(-4px); }
.window--small { border-radius: 14px; }
.window--small .window-bar { height: 30px; gap: 6px; }
.window--small .window-bar i { width: 9px; height: 9px; }
.pair figcaption b { display: block; color: var(--ink); font-size: 1.1rem; font-weight: 600; }
.pair figcaption span { display: block; margin-top: 6px; color: var(--muted); }

/* Team */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 52px; }
.role {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.role::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.role-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 181, 71, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.3);
  color: var(--accent-text);
  font: 600 0.74rem/1 var(--mono);
  letter-spacing: 0.06em;
}
.role h3 { margin-top: 18px; font-size: 1.45rem; letter-spacing: -0.025em; font-weight: 700; }
.role p { margin-top: 10px; color: var(--muted); }

.levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.levels li { display: grid; align-content: start; gap: 8px; padding: 24px 26px; }
.levels li + li { border-left: 1px solid var(--line); }
.levels b { color: var(--ink); font-weight: 600; }
.levels span { color: var(--muted); font-size: 0.95rem; }

/* Security */
.security { background: radial-gradient(ellipse 60% 55% at 75% 25%, rgba(128, 112, 255, 0.1), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-sunk) 55%, var(--bg)); }
.security-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.security-copy .section-head { margin-bottom: 0; }

.radar { position: relative; display: grid; place-items: center; justify-self: center; width: min(100%, 440px); aspect-ratio: 1; }
.radar-ring { position: absolute; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ring); }
.radar-ring:nth-child(1) { inset: 0; background: radial-gradient(circle, rgba(255, 181, 71, 0.05), transparent 70%); }
.radar-ring:nth-child(2) { inset: 17%; }
.radar-ring:nth-child(3) { inset: 34%; box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.22); }
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(255, 181, 71, 0.22) 356deg, transparent 360deg);
}
.radar-core { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.radar-core::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 181, 71, 0.16), 0 0 30px rgba(255, 181, 71, 0.9);
}
.radar-core b { font-size: 1rem; font-weight: 600; }
.radar-core small { color: var(--muted); font: 600 0.72rem/1 var(--mono); letter-spacing: 0.16em; }
.radar-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--float-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.radar-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.radar-label--a { top: 13%; left: 6%; }
.radar-label--b { top: 30%; right: -2%; }
.radar-label--c { bottom: 12%; left: 24%; }

.safeguards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.safeguards li { padding: 26px; border-radius: var(--radius); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line); }
.safeguards h3 { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.safeguards svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 181, 71, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.26);
  color: var(--accent-text);
}
.safeguards p { margin-top: 14px; color: var(--muted); font-size: 0.96rem; }

/* Start */
.start { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.start::before {
  content: "";
  position: absolute;
  top: 47px;
  left: 17%;
  right: 17%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 181, 71, 0.55), rgba(128, 112, 255, 0.55), transparent);
}
.start li { position: relative; display: grid; justify-items: center; padding: 24px 24px 0; text-align: center; }
.start-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.5), 0 0 0 8px var(--bg), 0 0 34px rgba(255, 181, 71, 0.3);
  color: var(--accent-text);
  font: 700 1.05rem/1 var(--mono);
}
.start h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.start p { max-width: 28ch; margin-top: 10px; color: var(--muted); }

/* Questions */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.2s, box-shadow 0.2s; }
.faq details[open] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform 0.25s var(--ease), color 0.25s; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent-text); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* Last call */
.cta { padding: clamp(24px, 4vw, 48px) 0 clamp(96px, 12vw, 150px); }
.cta-box {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) clamp(22px, 5vw, 64px);
  border-radius: 36px;
  background: var(--cta-bg);
  box-shadow: var(--cta-shadow);
  text-align: center;
}
.cta-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(255, 181, 71, 0.3), transparent 70%),
    radial-gradient(ellipse 40% 55% at 85% 100%, rgba(128, 112, 255, 0.22), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px;
}
.cta-logo { width: 76px; height: auto; margin-bottom: 28px; border-radius: 18px; filter: drop-shadow(0 12px 32px rgba(128, 112, 255, 0.55)); }
.cta h2 { max-width: 17ch; }
.cta-box > p { max-width: 46ch; margin-top: 22px; color: var(--muted); font-size: 1.15rem; }

/* Footer */
.site-footer { padding: 68px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { max-width: 32ch; margin-top: 18px; }
.site-footer nav { display: grid; align-content: start; gap: 10px; }
.site-footer nav p { margin-bottom: 6px; color: var(--faint); font: 600 0.72rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; }

/* Impressum and Datenschutz */
.legal { max-width: 880px; padding-top: 150px; padding-bottom: 72px; }
.legal .kicker { margin-bottom: 18px; }
.legal h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.legal h2 { margin-top: 56px; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.2; letter-spacing: -0.03em; }
.legal h3 { margin-top: 28px; font-size: 1.08rem; }
.legal p, .legal li { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.legal p { margin-top: 14px; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-text); overflow-wrap: anywhere; }
.legal p.legal-meta { margin-top: 16px; color: var(--faint); font: 600 0.76rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.legal p.legal-lead { margin-top: 26px; color: var(--ink-soft); font-size: 1.15rem; }
.legal-list { display: grid; gap: 8px; margin: 14px 0 0; padding-left: 1.25em; }
.legal-list li::marker { color: var(--accent-text); }
.legal-card {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-style: normal;
  line-height: 1.7;
}
.legal-card h2 { margin-top: 0; margin-bottom: 12px; font-size: 1.15rem; }
.legal-card address { font-style: normal; }
.legal-toc {
  margin-top: 36px;
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.legal .legal-toc p { margin: 0 0 12px; color: var(--faint); font: 600 0.74rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding-left: 1.6em; columns: 2; column-gap: 40px; }
.legal-toc li { padding: 3px 0; break-inside: avoid; font-size: 0.95rem; }
.legal-toc li::marker { color: var(--faint); font-family: var(--mono); font-size: 0.82rem; }
.legal-toc a { color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--accent-text); }
.legal section { scroll-margin-top: 110px; }
.legal p.legal-back { margin-top: 64px; }
mark.todo {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 181, 71, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.55);
  color: var(--ink);
}
.site-footer--slim { padding: 26px 0; }
.site-footer--slim .footer-base { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-base a { color: var(--ink-soft); text-decoration: none; }
.footer-base a:hover { color: var(--ink); }

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

/* Motion: only for people who did not ask the device for less. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.14s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.22s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.3s; }
  .hero-stage { animation: rise-in 1.2s 0.25s var(--ease) both; }

  .beam--left { animation: sway-left 14s ease-in-out infinite alternate; }
  .beam--right { animation: sway-right 16s ease-in-out infinite alternate; }
  .badge-dot { animation: pulse 2.4s ease-out infinite; }

  .float { animation: bob 7s ease-in-out infinite; }
  .float--signed { animation-delay: -2.3s; }
  .float--crew { animation-delay: -4.6s; }
  .float--pdf { animation-delay: -1.2s; }

  .outbox-row--sending { animation: outbox-second 9s var(--ease) infinite; }
  .outbox-row--sending .outbox-dot { animation: spin 0.9s linear infinite; }
  .outbox-row--sent { animation: outbox-third 9s var(--ease) infinite; }
  .outbox-bar::after { animation: outbox-fill 9s var(--ease) infinite; }
  .sign-path { animation: sign 6s var(--ease) infinite; }
  .radar-sweep { animation: spin 7s linear infinite; }
  .radar-core::before { animation: pulse 2.4s ease-out infinite; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .replaces s::after {
      animation: strike linear both;
      animation-timeline: view();
      animation-range: entry 70% cover 40%;
    }
    .replaces s:nth-of-type(2)::after { animation-range: entry 80% cover 44%; }
    .replaces s:nth-of-type(3)::after { animation-range: entry 90% cover 48%; }
    .replaces s:nth-of-type(4)::after { animation-range: entry 100% cover 52%; }
    .window--hero {
      animation: tilt linear both;
      animation-timeline: scroll(root);
      animation-range: 0px 560px;
    }
  }
}

@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes tilt { from { transform: rotateX(20deg) scale(0.93); } to { transform: none; } }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sway-left { from { transform: rotate(-33deg); } to { transform: rotate(-26deg); } }
@keyframes sway-right { from { transform: rotate(33deg); } to { transform: rotate(27deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.45), 0 0 14px rgba(255, 181, 71, 0.8); }
  100% { box-shadow: 0 0 0 12px rgba(255, 181, 71, 0), 0 0 14px rgba(255, 181, 71, 0.8); }
}
@keyframes outbox-second {
  0%, 20% { opacity: 0.28; transform: translateY(6px); }
  26%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0.28; transform: translateY(6px); }
}
@keyframes outbox-third {
  0%, 50% { opacity: 0.28; transform: translateY(6px); }
  56%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0.28; transform: translateY(6px); }
}
@keyframes outbox-fill { 0%, 24% { width: 0; } 50%, 100% { width: 100%; } }
@keyframes sign {
  0% { stroke-dashoffset: 1; opacity: 1; }
  45%, 88% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Smaller screens */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-column: span 1; }
  .card--offline, .card--calc, .card--languages { grid-column: 1 / -1; grid-row: auto; }
  .float--crew { right: 26%; }
}

@media (max-width: 920px) {
  .nav { display: none; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-device { display: none; }
  .story-step { min-height: 0; max-width: none; padding: 36px 0; }
  .story--live .story-step:not(.is-active) { opacity: 1; }
  .phone--inline { display: block; width: min(270px, 72vw); margin-top: 30px; }
  .paper-row, .security-row, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-layout .section-head { position: static; }
  .paper-stack { width: min(100%, 440px); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-login { display: none; }
  .badge { margin-bottom: 24px; }
  .badge-langs { display: none; }
  .hero { padding-top: 116px; }
  .lead { margin-top: 24px; }
  .actions { margin-top: 30px; }
  .actions .button { flex: 1 1 auto; }
  .trust { gap: 8px 18px; font-size: 0.82rem; }
  .hero-stage { margin-top: 52px; padding-bottom: 70px; }
  .window-bar { height: 26px; gap: 5px; padding: 0 10px; }
  .window-bar i { width: 7px; height: 7px; }
  .window-bar span { display: none; }
  .window { border-radius: 10px; }
  .phone--hero { right: var(--gutter); bottom: 22px; width: 31vw; }
  .float { padding: 8px 12px 8px 8px; border-radius: 13px; gap: 9px; }
  .float strong { font-size: 0.76rem; }
  .float small { display: none; }
  .float-icon { width: 28px; height: 28px; border-radius: 9px; }
  .float-icon svg { width: 15px; height: 15px; }
  .float--offline { left: 4px; top: auto; bottom: 34px; }
  .float--signed { left: auto; right: 22%; bottom: auto; top: -18px; }
  .float--crew { display: none; }
  .float--pdf { right: 8px; bottom: -14px; }
  .paper-sheet--back { transform: rotate(4deg) translate(12px, 10px); }
  .paper-sheet--mid { transform: rotate(1.5deg) translate(6px, 4px); }

  .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .stats li { padding: 0 0 0 18px; }
  .stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats li:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }

  .rail { border-radius: 24px; }
  .rail li { font-size: 0.82rem; padding: 6px 11px 6px 6px; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .card, .card--offline { grid-column: 1 / -1; padding: 24px; }
  .card--offline { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 20px; }
  .tab { padding: 12px 10px; border-radius: 15px; font-size: 0.9rem; }

  .pair, .roles, .levels, .safeguards, .start { grid-template-columns: minmax(0, 1fr); }
  .levels li + li { border-left: 0; border-top: 1px solid var(--line); }
  .start::before { display: none; }
  .start li { padding-top: 8px; }
  .radar-label--b { right: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .legal { padding-top: 120px; }
  .legal-toc ol { columns: 1; }
}

@media (max-width: 420px) {
  .calc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc label:nth-of-type(3) { grid-column: 1 / -1; }
  .new-report { grid-template-columns: minmax(0, 1fr); }
}
