/* Teaser page. Light, warm paper surfaces with one committed cobalt; the yellow
   Prüfplakette is the identity while the product has no name. */

/* Self-hosted (no Google Fonts request: LG München 2022 ruled that a GDPR violation).
   Inter Variable, SIL Open Font License 1.1, see assets/fonts/LICENSE.txt. */
@font-face {
  font-family: "Inter Variable";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: oklch(0.975 0.008 85);
  --paper-2: oklch(0.952 0.011 85);
  --paper-3: oklch(0.925 0.013 85);
  --panel: oklch(0.962 0.01 85);
  --ink: oklch(0.22 0.025 264);
  --ink-2: oklch(0.36 0.022 264);
  --ink-3: oklch(0.5 0.018 264);
  --ink-4: oklch(0.62 0.014 264);
  --line: oklch(0.22 0.025 264 / 0.1);
  --line-strong: oklch(0.22 0.025 264 / 0.22);

  --cobalt: oklch(0.44 0.19 264);
  --cobalt-deep: oklch(0.32 0.15 265);
  --cobalt-night: oklch(0.26 0.12 266);
  --cobalt-bright: oklch(0.6 0.17 258);
  --cobalt-tint: oklch(0.92 0.04 262);
  --on-cobalt: oklch(0.975 0.012 250);
  --on-cobalt-2: oklch(0.84 0.05 256);
  --on-cobalt-3: oklch(0.72 0.07 258);

  --signal: oklch(0.87 0.16 93);
  --signal-deep: oklch(0.76 0.15 82);
  --red: oklch(0.58 0.2 28);
  --red-text: oklch(0.5 0.19 28);
  --red-tint: oklch(0.95 0.03 28);

  --font-display: "Inter Variable", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", sans-serif;
  --font-text: "Inter Variable", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", "JetBrains Mono", Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --radius-xl: clamp(28px, 4.5vw, 56px);
  --section-y: clamp(96px, 13vw, 176px);

  --shadow-soft: 0 1px 2px oklch(0.22 0.025 264 / 0.06), 0 24px 60px -24px oklch(0.22 0.025 264 / 0.22);
  --shadow-float: 0 2px 4px oklch(0.22 0.025 264 / 0.06), 0 30px 80px -30px oklch(0.25 0.1 264 / 0.35);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Paper grain: fixed and non-interactive, so it never repaints on scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

::selection { background: var(--signal); color: var(--ink); }

:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
/* Hero and signup fill their background with this same cobalt, so the default ring would be
   invisible there; swap to the signal yellow already used on these sections' own buttons. */
.hero :focus-visible, .signup :focus-visible { outline-color: var(--signal); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

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

/* ---------- Type ---------- */

h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.038em;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.032em;
}

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

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 34em; text-wrap: pretty; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}

.label-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--cobalt);
  color: var(--on-cobalt);
  letter-spacing: 0.06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.eyebrow-dark {
  background: oklch(1 0 0 / 0.08);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.16);
  color: var(--on-cobalt-2);
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px oklch(0.87 0.16 93 / 0.22); flex: none; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--cobalt);
  --btn-fg: var(--on-cobalt);
  --icon-bg: oklch(1 0 0 / 0.16);
  --icon-fg: currentColor;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 8px 8px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.22), 0 1px 2px oklch(0.2 0.05 264 / 0.2), 0 12px 30px -12px oklch(0.25 0.12 264 / 0.5);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring), background-color 0.3s var(--ease-out);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); transition-duration: 0.12s; }
.btn:disabled { cursor: progress; }

.btn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-fg);
  flex: none;
  transition: transform 0.5s var(--ease-spring);
}
.btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-icon { transform: translate(3px, -2px) scale(1.06); }

.btn-signal { --btn-bg: var(--signal); --btn-fg: var(--ink); --icon-bg: var(--ink); --icon-fg: var(--signal); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.5), 0 1px 2px oklch(0.2 0.1 264 / 0.3), 0 18px 40px -16px oklch(0.15 0.12 264 / 0.7); }
.btn-signal:hover { --btn-bg: oklch(0.9 0.15 95); }
.btn-cobalt:hover { --btn-bg: oklch(0.48 0.2 264); }
.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--paper); padding-right: 26px; }
.btn-ink:hover { --btn-bg: oklch(0.3 0.03 264); }
.message-action .btn { padding-right: 26px; }

.btn-sm { min-height: 44px; padding: 5px 5px 5px 18px; font-size: 0.925rem; gap: 10px; }
.btn-sm .btn-icon { width: 34px; height: 34px; }
.btn-sm .btn-icon svg { width: 15px; height: 15px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 8px;
  color: var(--on-cobalt);
  font-weight: 600;
  text-decoration: none;
}
.btn-ghost span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size 0.5s var(--ease-out); }
.btn-ghost:hover span { background-size: 100% 1.5px; }
.btn-ghost svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease-spring); }
.btn-ghost:hover svg { transform: translateY(3px); }

/* ---------- Mark (small sticker) ---------- */

.mark { width: 30px; height: 30px; flex: none; }
.mk-disc { fill: var(--signal); }
.mk-ring { fill: none; stroke: var(--ink); stroke-width: 1.6; opacity: 0.75; }
.mk-check { fill: none; stroke: var(--cobalt); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.mk-punch { fill: var(--mark-hole, var(--paper)); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  padding: 6px 6px 6px 10px;
  border-radius: 999px;
  background: oklch(0.975 0.008 85 / 0.92);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: inset 0 0 0 1px oklch(0.22 0.025 264 / 0.08), inset 0 1px 0 oklch(1 0 0 / 0.7), 0 10px 40px -12px oklch(0.2 0.1 264 / 0.35);
  transform: translateX(-50%);
  --mark-hole: oklch(0.975 0.008 85);
}

.nav-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; padding-right: 4px; }
.nav-mark .mark { width: 32px; height: 32px; transition: transform 0.7s var(--ease-spring); }
.nav-mark:hover .mark { transform: rotate(-18deg); }
.nav-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.nav-status .dot { background: var(--red); box-shadow: 0 0 0 3px oklch(0.58 0.2 28 / 0.16); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100dvh, 940px);
  display: grid;
  align-items: center;
  padding: clamp(120px, 14vw, 150px) 0 clamp(80px, 9vw, 120px);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  color: var(--on-cobalt);
  background:
    radial-gradient(55% 65% at 76% 44%, oklch(0.56 0.19 260 / 0.75), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, oklch(0.28 0.14 266 / 0.8), transparent 72%),
    radial-gradient(30% 40% at 30% 0%, oklch(0.52 0.17 262 / 0.35), transparent 70%),
    var(--cobalt);
  box-shadow: inset 0 -1px 0 oklch(1 0 0 / 0.12), 0 50px 90px -40px oklch(0.25 0.14 265 / 0.65), 0 18px 40px -20px oklch(0.25 0.14 265 / 0.4);
}

.hero-rings {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 76% 46%, transparent 0 62px, oklch(1 0 0 / 0.07) 63px 64px);
  -webkit-mask-image: radial-gradient(circle at 76% 46%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 76% 46%, #000 0%, transparent 62%);
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--on-cobalt); }
.h1-soft { display: block; color: var(--signal); }
.hero .lede { color: var(--on-cobalt-2); margin-top: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 44px; }

.hero-visual { display: grid; place-items: center; }

.sticker {
  --rx: 0deg; --ry: 0deg; --sx: 0px; --sy: 0px;
  position: relative;
  width: clamp(250px, 30vw, 430px);
  aspect-ratio: 1;
}
/* Pointer tilt, as 8 preset states toggled via a data attribute rather than inline custom
   properties: the page's CSP (style-src 'self', no unsafe-inline) blocks JS style mutations,
   so the values live here and JS only ever swaps an attribute. */
.sticker[data-tilt="n"]  { --rx: 12deg;  --ry: 0deg;    --sx: 0px;    --sy: 12px; }
.sticker[data-tilt="s"]  { --rx: -12deg; --ry: 0deg;    --sx: 0px;    --sy: -12px; }
.sticker[data-tilt="e"]  { --rx: 0deg;   --ry: 12deg;   --sx: -16px;  --sy: 0px; }
.sticker[data-tilt="w"]  { --rx: 0deg;   --ry: -12deg;  --sx: 16px;   --sy: 0px; }
.sticker[data-tilt="ne"] { --rx: 12deg;  --ry: 12deg;   --sx: -16px;  --sy: 12px; }
.sticker[data-tilt="nw"] { --rx: 12deg;  --ry: -12deg;  --sx: 16px;   --sy: 12px; }
.sticker[data-tilt="se"] { --rx: -12deg; --ry: 12deg;   --sx: -16px;  --sy: -12px; }
.sticker[data-tilt="sw"] { --rx: -12deg; --ry: -12deg;  --sx: 16px;   --sy: -12px; }
.sticker-shadow {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: oklch(0.2 0.13 266 / 0.7);
  filter: blur(26px);
  transform: translate(calc(18px + var(--sx)), calc(30px + var(--sy)));
  transition: transform 0.9s var(--ease-out);
}
.sticker-body {
  position: relative;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(-9deg);
  transition: transform 0.9s var(--ease-out);
}
.sticker-svg { width: 100%; height: auto; overflow: visible; }
.st-disc { fill: var(--signal); }
.st-rim { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0.45; }
.st-ring { fill: none; stroke: var(--ink); stroke-width: 3; }
.st-num { font-family: var(--font-display); font-size: 25px; font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: central; letter-spacing: -0.02em; }
.st-arc { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em; fill: var(--ink); text-anchor: middle; }
.st-check { fill: none; stroke: var(--cobalt); stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
.st-label { font-family: var(--font-mono); font-size: 15px; font-weight: 600; letter-spacing: 0.34em; fill: var(--ink); text-anchor: middle; }

/* ---------- Problem ---------- */

.problem { padding: var(--section-y) 0 calc(var(--section-y) * 0.8); }
.problem-lines { display: grid; gap: 0.12em; font-family: var(--font-display); font-size: clamp(2.1rem, 5.6vw, 4.7rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.12; }
/* The strike bar is a background, not a positioned ::after: an inline element that wraps
   gets one fragment per line, and box-decoration-break: clone repaints (and re-sweeps) the
   background on each fragment independently, so the line still lands correctly on every row. */
.strike {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-position: 0 54%;
  background-size: 0% 0.075em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: color 0.8s var(--ease-out), background-size 0.75s var(--ease-out);
}
.payoff {
  margin-top: 0.55em;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.6vw, 6.6rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--cobalt);
  text-wrap: balance;
}

html.js .problem-lines li, html.js .payoff { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.problem.is-in .problem-lines li, .problem.is-in .payoff { opacity: 1; transform: none; }
.problem.is-in li:nth-child(2) { transition-delay: 0.3s; }
.problem.is-in li:nth-child(3) { transition-delay: 0.6s; }
.problem.is-in .strike { color: var(--ink-4); background-size: 100% 0.075em; }
.problem.is-in li:nth-child(1) .strike { transition-delay: 1.3s, 1.1s; }
.problem.is-in li:nth-child(2) .strike { transition-delay: 1.8s, 1.6s; }
.problem.is-in li:nth-child(3) .strike { transition-delay: 2.3s, 2.1s; }
.problem.is-in .payoff { transition-delay: 2.8s; }
html:not(.js) .strike { color: var(--ink-4); background-size: 100% 0.075em; }

/* ---------- Lead feature: QR inspection ---------- */

.lead { padding: 0 var(--gutter); }
.lead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  width: min(1320px, 100%);
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 96px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(50% 60% at 78% 50%, oklch(0.9 0.05 262 / 0.7), transparent 70%),
    var(--panel);
  box-shadow: inset 0 0 0 1px oklch(0.22 0.025 264 / 0.06), inset 0 1px 0 oklch(1 0 0 / 0.8), var(--shadow-soft);
}
.lead-copy > p:not(.label) { margin-top: 24px; color: var(--ink-2); max-width: 32em; font-size: 1.125rem; text-wrap: pretty; }

.steps { display: grid; gap: 8px; margin-top: 40px; }
.steps button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 18px 14px 14px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.steps button:hover { background: oklch(1 0 0 / 0.55); }
.steps button[aria-pressed="true"] { background: oklch(1 0 0 / 0.85); box-shadow: inset 0 0 0 1px oklch(0.22 0.025 264 / 0.07), 0 12px 30px -18px oklch(0.25 0.1 264 / 0.4); }
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  font-family: var(--font-mono);
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink-3);
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.steps button[aria-pressed="true"] .step-num { background: var(--cobalt); color: var(--on-cobalt); box-shadow: none; }
.step-text { display: grid; gap: 1px; }
.step-text strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.01em; }
.step-text span { color: var(--ink-3); font-size: 0.95rem; }

.lead-visual { display: grid; place-items: center; position: relative; }
.lead-visual::before {
  content: "";
  position: absolute;
  width: min(460px, 110%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.6 0.17 260 / 0.28), transparent 68%);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(296px, 100%);
  aspect-ratio: 296 / 604;
  padding: 11px;
  border-radius: 50px;
  background: linear-gradient(145deg, oklch(0.32 0.02 264), oklch(0.2 0.02 264) 45%, oklch(0.16 0.02 264));
  box-shadow:
    inset 0 0 0 1.5px oklch(1 0 0 / 0.1),
    inset 0 2px 1px oklch(1 0 0 / 0.14),
    0 2px 4px oklch(0.2 0.05 264 / 0.2),
    0 40px 80px -30px oklch(0.2 0.12 264 / 0.55),
    0 70px 120px -60px oklch(0.2 0.12 264 / 0.4);
}
.phone::before { content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: oklch(0.26 0.02 264); }
.phone-screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: var(--paper); isolation: isolate; }
.phone-notch { position: absolute; top: 10px; left: 50%; z-index: 5; width: 92px; height: 26px; border-radius: 999px; background: oklch(0.14 0.015 264); transform: translateX(-50%); }

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 56px 18px 22px;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.55s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}
.phone[data-state="scan"] .screen-scan,
.phone[data-state="check"] .screen-check,
.phone[data-state="done"] .screen-done { opacity: 1; transform: none; pointer-events: auto; view-transition-name: phone-screen; }
.phone[data-state="scan"] .screen-scan,
.phone[data-state="check"] .screen-check { pointer-events: auto; }

/* Browsers that understand this property also run document.startViewTransition() (site.js),
   which owns the cross-fade instead; the CSS transition would otherwise double up on top of it. */
@supports (view-transition-name: none) {
  .screen { transition: none; }
}

.screen-scan { background: radial-gradient(80% 50% at 50% 45%, oklch(0.28 0.03 264), oklch(0.15 0.02 264)); color: var(--on-cobalt); align-items: center; text-align: center; }
.screen-kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-cobalt-2); margin-top: 18px; }
.screen-hint { font-size: 0.8rem; color: var(--on-cobalt-2); margin-top: auto; margin-bottom: 14px; }
.viewfinder { position: relative; width: 208px; height: 208px; margin-top: 64px; display: grid; place-items: center; }
.qr { width: 148px; height: 148px; border-radius: 10px; fill: var(--ink); }
.qr-bg { fill: var(--paper); }
.corner { position: absolute; width: 34px; height: 34px; border: 3.5px solid var(--signal); transition: transform 0.35s var(--ease-out); }
.c1 { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.c2 { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.c3 { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.c4 { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.scanline {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--signal);
  box-shadow: 0 0 14px 2px oklch(0.87 0.16 93 / 0.6);
  animation: scan 2.2s var(--ease-spring) infinite alternate;
  animation-play-state: paused;
}
.phone[data-state="scan"] .scanline { animation-play-state: running; }
@keyframes scan { to { transform: translateY(160px); } }

.app-bar { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; margin-top: 4px; }
.app-back { width: 10px; height: 10px; border-left: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin-left: 4px; }
.unit-card { display: grid; gap: 2px; margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.unit-type { font-weight: 650; font-size: 0.95rem; }
.unit-place { font-size: 0.8rem; color: var(--ink-3); }
.checklist { display: grid; gap: 2px; margin-top: 14px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 11px 6px; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.tick { position: relative; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); flex: none; transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.tick::after { content: ""; position: absolute; left: 8px; top: 4.5px; width: 6px; height: 11px; border: solid var(--on-cobalt); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) scale(0); transition: transform 0.4s var(--ease-spring); }
.phone[data-state="check"] .tick,
.phone[data-state="done"] .tick { background: var(--cobalt); box-shadow: none; }
.phone[data-state="check"] .tick::after,
.phone[data-state="done"] .tick::after { transform: rotate(45deg) scale(1); }
.phone[data-state="check"] li:nth-child(1) .tick, .phone[data-state="check"] li:nth-child(1) .tick::after { transition-delay: 0.45s; }
.phone[data-state="check"] li:nth-child(2) .tick, .phone[data-state="check"] li:nth-child(2) .tick::after { transition-delay: 0.9s; }
.phone[data-state="check"] li:nth-child(3) .tick, .phone[data-state="check"] li:nth-child(3) .tick::after { transition-delay: 1.35s; }
.phone[data-state="check"] li:nth-child(4) .tick, .phone[data-state="check"] li:nth-child(4) .tick::after { transition-delay: 1.8s; }
.app-button {
  --ring: var(--cobalt);
  position: relative;
  display: grid;
  place-items: center;
  height: 50px;
  margin-top: auto;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--cobalt);
  color: var(--on-cobalt);
  font-weight: 650;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.2);
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.app-button:active { transform: scale(0.96); transition-duration: 0.1s; }
.app-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--ring);
  opacity: 0;
  pointer-events: none;
}
.app-button.is-pressed::after { animation: press-ring 0.45s var(--ease-out); }
@keyframes press-ring { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(1.12, 1.45); } }

.app-button-ghost { padding: 0 28px; background: transparent; color: var(--cobalt); box-shadow: inset 0 0 0 1.5px var(--cobalt); }

.app-button-invite { --ring: var(--signal); align-self: stretch; margin-top: 0; background: var(--signal); color: var(--ink); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.5); }
.app-button-invite::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--signal);
  opacity: 0;
  pointer-events: none;
}
.phone.is-inviting .app-button-invite::before { animation: invite 2.2s var(--ease-out) 0.6s infinite; }
@keyframes invite { 0% { opacity: 0.7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.08, 1.5); } }

@media (hover: hover) {
  .app-button:hover { transform: translateY(-2px); background: oklch(0.5 0.2 264); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.25), 0 10px 22px -10px oklch(0.35 0.17 264 / 0.7); }
  .app-button-ghost:hover { background: var(--cobalt-tint); box-shadow: inset 0 0 0 1.5px var(--cobalt), 0 10px 22px -12px oklch(0.35 0.17 264 / 0.5); }
  .app-button-invite:hover { background: oklch(0.9 0.15 95); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.6), 0 10px 24px -10px oklch(0.87 0.16 93 / 0.6); }
  .app-button:active { transform: scale(0.96); }

  .viewfinder:hover .qr { animation: hop 0.6s var(--ease-out); }
  .viewfinder:hover .c1 { transform: translate(6px, 6px); }
  .viewfinder:hover .c2 { transform: translate(-6px, 6px); }
  .viewfinder:hover .c3 { transform: translate(6px, -6px); }
  .viewfinder:hover .c4 { transform: translate(-6px, -6px); }
  .checklist li:hover .tick { animation: hop 0.6s var(--ease-out); }
  .phone[data-state="done"] .done-badge:hover { animation: hop-lg 0.7s var(--ease-out); }
}

@keyframes hop {
  0% { transform: translateY(0); }
  30% { transform: translateY(-7px); }
  55% { transform: translateY(0); }
  75% { transform: translateY(-2.5px); }
  100% { transform: translateY(0); }
}
@keyframes hop-lg {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-12px) scale(1.04); }
  55% { transform: translateY(0) scale(0.98); }
  75% { transform: translateY(-4px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}

.screen-done { align-items: center; text-align: center; }
.done-badge { display: grid; place-items: center; width: 108px; height: 108px; margin-top: 110px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 12px var(--cobalt-tint), 0 20px 40px -14px oklch(0.3 0.15 264 / 0.6); transform: scale(0.6); transition: transform 0.8s var(--ease-spring) 0.1s; }
.done-badge svg { width: 56px; height: 56px; fill: none; stroke: var(--on-cobalt); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset 0.6s var(--ease-out) 0.45s; }
.phone[data-state="done"] .done-badge { transform: none; }
.phone[data-state="done"] .done-badge svg { stroke-dashoffset: 0; }
.done-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 34px; }
.done-sub { color: var(--ink-3); font-size: 0.95rem; margin-top: 8px; }

/* ---------- Secondary features ---------- */

.feature { padding: var(--section-y) 0 0; overflow-x: clip; }
.feature h2 { max-width: 16em; }
.feature p:not(.label) { color: var(--ink-2); font-size: 1.125rem; max-width: 34em; margin-top: 22px; text-wrap: pretty; }

.due-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.big-num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 13rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px oklch(0.44 0.19 264 / 0.35);
  user-select: none;
}
.due-head .label-num { display: none; }

.due-rail {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: clamp(4px, 1.2vw, 14px);
  margin-top: clamp(56px, 7vw, 88px);
  padding: 28px clamp(16px, 3vw, 36px) 22px;
  border-radius: 32px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 oklch(1 0 0 / 0.8), var(--shadow-soft);
}
.due-flag {
  grid-row: 1;
  grid-column: 4 / span 2;
  justify-self: center;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px oklch(0.6 0.15 82 / 0.8);
}
.due-col { grid-row: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 12px; padding-bottom: 18px; }
.due-dots { display: flex; flex-direction: column-reverse; align-items: center; gap: 5px; }
.due-dots i { width: clamp(8px, 1.3vw, 13px); aspect-ratio: 1; border-radius: 50%; background: oklch(0.22 0.025 264 / 0.14); transition: transform 0.6s var(--ease-spring), background-color 0.6s var(--ease-out); }
.is-soon .due-dots i { background: var(--cobalt); }
.due-month { position: relative; font-family: var(--font-mono); font-size: clamp(0.6rem, 1.1vw, 0.75rem); letter-spacing: 0.06em; color: var(--ink-3); }
.is-now .due-month { color: var(--ink); font-weight: 700; }
.is-now .due-month::after { content: "heute"; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; font-size: 0.85em; font-weight: 500; color: var(--red-text); text-align: center; }

html.js .due-rail .due-dots i { transform: scale(0); }
html.js .due-rail.is-in .due-dots i { transform: none; }
.due-rail.is-in .due-col:nth-child(2) i { transition-delay: 0.05s; }
.due-rail.is-in .due-col:nth-child(3) i { transition-delay: 0.1s; }
.due-rail.is-in .due-col:nth-child(4) i { transition-delay: 0.15s; }
.due-rail.is-in .due-col:nth-child(5) i { transition-delay: 0.2s; }
.due-rail.is-in .due-col:nth-child(6) i { transition-delay: 0.25s; }
.due-rail.is-in .due-col:nth-child(7) i { transition-delay: 0.3s; }
.due-rail.is-in .due-col:nth-child(8) i { transition-delay: 0.35s; }
.due-rail.is-in .due-col:nth-child(9) i { transition-delay: 0.4s; }
.due-rail.is-in .due-col:nth-child(10) i { transition-delay: 0.45s; }
.due-rail.is-in .due-col:nth-child(11) i { transition-delay: 0.5s; }
.due-rail.is-in .due-col:nth-child(12) i { transition-delay: 0.55s; }

.docs-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.docs-visual { position: relative; height: 430px; }
.doc {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 236px;
  height: 320px;
  margin-left: -118px;
  padding: 24px 22px;
  border-radius: 16px;
  background: oklch(0.99 0.004 85);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px oklch(0.22 0.025 264 / 0.08), 0 24px 50px -24px oklch(0.25 0.1 264 / 0.35);
  transition: transform 1.1s var(--ease-spring);
}
.doc-kind { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 26px; }
.doc i { display: block; height: 8px; margin-bottom: 14px; border-radius: 4px; background: oklch(0.22 0.025 264 / 0.08); }
.doc i.short { width: 58%; }
.doc-sum { position: absolute; right: 22px; bottom: 28px; width: 40%; height: 12px; border-radius: 6px; background: oklch(0.44 0.19 264 / 0.22); }
.doc-3 .doc-sum { background: var(--cobalt); }
.doc-tag { position: absolute; top: 18px; right: 16px; padding: 4px 10px; border-radius: 999px; background: var(--cobalt); color: var(--on-cobalt); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; }
.doc-1 { z-index: 1; transform: rotate(-2deg); }
.doc-2 { z-index: 2; transform: rotate(1deg); }
.doc-3 { z-index: 3; transform: rotate(0deg); }
.docs-visual.is-in .doc-1, html:not(.js) .doc-1 { transform: translate(-150px, 18px) rotate(-9deg); }
.docs-visual.is-in .doc-2, html:not(.js) .doc-2 { transform: translate(-10px, -18px) rotate(-1.5deg); transition-delay: 0.08s; }
.docs-visual.is-in .doc-3, html:not(.js) .doc-3 { transform: translate(130px, 30px) rotate(6deg); transition-delay: 0.16s; }
.docs-visual.is-in:hover .doc-1 { transform: translate(-172px, 12px) rotate(-12deg); transition-delay: 0s; }
.docs-visual.is-in:hover .doc-3 { transform: translate(150px, 22px) rotate(9deg); transition-delay: 0s; }

.all-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.all-head { position: sticky; top: 120px; }
.all-list > div { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px 32px; padding: 30px 0; }
.all-list > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.all-list dt { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.all-list dd { color: var(--ink-2); font-size: 1.05rem; text-wrap: pretty; }

/* ---------- Fixed points ---------- */

.fixed-points { margin-top: var(--section-y); padding: var(--section-y) 0 calc(var(--section-y) + var(--radius-xl)); background: var(--paper-2); box-shadow: inset 0 1px 0 var(--line); }
.fixed-head { max-width: 780px; }
.h2-soft { color: var(--ink-4); }
.fixed-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); margin-top: clamp(56px, 7vw, 88px); }
.fixed-list li { position: relative; padding-top: 30px; }
.fixed-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent 90%); }
.fixed-list svg { width: 34px; height: 34px; fill: none; stroke: var(--cobalt); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.fixed-list p { color: var(--ink-2); margin-top: 10px; text-wrap: pretty; }

/* ---------- Signup ---------- */

.signup {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--radius-xl) * -1);
  padding: var(--section-y) 0 clamp(96px, 11vw, 150px);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  color: var(--on-cobalt);
  background:
    radial-gradient(50% 60% at 85% 20%, oklch(0.55 0.19 260 / 0.6), transparent 70%),
    radial-gradient(45% 55% at 0% 90%, oklch(0.28 0.14 266 / 0.7), transparent 70%),
    var(--cobalt);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.16), 0 -30px 70px -40px oklch(0.25 0.14 265 / 0.55);
}
.signup-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.signup-copy { position: sticky; top: 120px; }
.signup-copy > p:not(.eyebrow) { color: var(--on-cobalt-2); font-size: 1.15rem; margin-top: 24px; max-width: 26em; }
.signup-points { display: grid; gap: 12px; margin-top: 36px; }
.signup-points li { display: flex; align-items: center; gap: 12px; color: var(--on-cobalt); font-weight: 550; }
.signup-points li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--signal) 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-6.5' fill='none' stroke='%23202a4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }

/* Double bezel: a shell with its own hairline, holding a core with a concentric radius. */
.bezel { padding: 7px; border-radius: 34px; background: oklch(0.22 0.025 264 / 0.04); box-shadow: inset 0 0 0 1px oklch(0.22 0.025 264 / 0.06); }
.bezel > .core { border-radius: 27px; background: var(--paper); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.9), 0 1px 2px oklch(0.22 0.025 264 / 0.06), var(--shadow-float); }
.bezel-on-dark { background: oklch(1 0 0 / 0.07); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.14), 0 40px 90px -40px oklch(0.15 0.12 266 / 0.8); }

.signup-core { padding: clamp(24px, 4vw, 44px); color: var(--ink); --mark-hole: var(--paper); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field label:not(.check) { font-weight: 620; font-size: 0.925rem; color: var(--ink-2); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.req { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

.field input[type="email"], .field input[type="text"] {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1.5px oklch(0.22 0.025 264 / 0.16), inset 0 2px 3px oklch(0.22 0.025 264 / 0.05);
  font-size: 1rem;
  transition: box-shadow 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}
.field input:hover { box-shadow: inset 0 0 0 1.5px oklch(0.22 0.025 264 / 0.3), inset 0 2px 3px oklch(0.22 0.025 264 / 0.05); }
.field input:focus { outline: none; background: oklch(0.995 0.003 85); box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 5px oklch(0.44 0.19 264 / 0.14); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 5px oklch(0.58 0.2 28 / 0.12); }

.field input::placeholder { color: var(--ink-3); }

.captcha { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.captcha img { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1.5px oklch(0.22 0.025 264 / 0.12); background: var(--paper-2); }
.captcha-new { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--cobalt); font-weight: 600; font-size: 0.925rem; text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 1.5px oklch(0.44 0.19 264 / 0.3); transition: background-color 0.3s var(--ease-out); }
.captcha-new:hover { background: var(--cobalt-tint); }
.captcha-new svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--ease-spring); }
.captcha-new:hover svg { transform: rotate(-120deg); }
.field-captcha input { max-width: 240px; font-family: var(--font-mono); letter-spacing: 0.3em; text-transform: uppercase; }

.field-hint { font-size: 0.85rem; color: var(--ink-3); }
.field-hint a { color: var(--cobalt); }
.field-error { font-size: 0.875rem; font-weight: 550; color: var(--red-text); }
.field-error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.check { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.check-box { width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px oklch(0.22 0.025 264 / 0.24); transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
.check input:checked + .check-box { background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: none; }
.check input:focus-visible + .check-box { box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 5px oklch(0.44 0.19 264 / 0.18); }
.check input[aria-invalid="true"] + .check-box { box-shadow: inset 0 0 0 2px var(--red); }
.check-text { font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); }
.check-text a { color: var(--cobalt); }

.form-error { padding: 14px 16px; border-radius: 14px; background: var(--red-tint); color: oklch(0.45 0.17 28); font-weight: 550; font-size: 0.925rem; }
.form-error:empty { display: none; }

.btn-submit { justify-self: start; margin-top: 4px; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid oklch(1 0 0 / 0.35); border-top-color: var(--on-cobalt); animation: spin 0.8s linear infinite; }
.btn-submit.is-loading svg { display: none; }
.btn-submit.is-loading .spinner { display: block; }
.btn-submit.is-loading { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.success { display: grid; justify-items: start; gap: 14px; padding: clamp(8px, 2vw, 20px) 0; outline: none; }
.form:not([hidden]), .success:not([hidden]) { view-transition-name: signup-card; }

/* Card-to-card morph timing for the phone-screen swap and the form-to-success handoff;
   both stay unnamed (and skipped entirely) on browsers without View Transitions support. */
::view-transition-group(phone-screen), ::view-transition-group(signup-card) {
  animation-duration: 0.5s;
}
::view-transition-old(phone-screen), ::view-transition-new(phone-screen),
::view-transition-old(signup-card), ::view-transition-new(signup-card) {
  animation-duration: 0.5s;
  animation-timing-function: var(--ease-out);
}
.success h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; }
.success p { color: var(--ink-2); max-width: 30em; }
.mark-stamp { width: 96px; height: 96px; --mark-hole: var(--paper); }
.success-stamp { display: block; margin-bottom: 10px; animation: stamp 0.75s var(--ease-spring) both; }
@keyframes stamp { from { transform: scale(1.6) rotate(10deg); opacity: 0; } to { transform: rotate(-8deg); opacity: 1; } }

/* ---------- Footer ---------- */

.footer { background: var(--cobalt-night); color: var(--on-cobalt-3); padding: 40px 0 48px; font-size: 0.925rem; --mark-hole: var(--cobalt-night); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--on-cobalt); font-weight: 600; }
.footer-brand em { font-style: normal; font-weight: 400; color: var(--on-cobalt-3); margin-left: 6px; }
.mark-sm { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--on-cobalt-2); padding: 10px 0; }
.footer-links a:hover { color: var(--on-cobalt); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Message pages ---------- */

.page-message { display: flex; flex-direction: column; min-height: 100dvh; background: radial-gradient(60% 50% at 50% 0%, var(--cobalt-tint), transparent 70%), var(--paper); }
.message { flex: 1; display: grid; align-content: center; justify-items: center; gap: 36px; padding: 64px 0; }
.message-home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.message-bezel { width: min(560px, 100%); }
.message-core { padding: clamp(28px, 5vw, 52px); display: grid; justify-items: start; gap: 16px; }
.message-core h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.035em; line-height: 1.05; }
.message-core p { color: var(--ink-2); font-size: 1.075rem; }
.message-action { margin-top: 10px; }
.message-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--signal) center / 28px no-repeat; }
.tone-success .message-icon { background-color: var(--cobalt); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tone-error .message-icon { background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6.5v7M12 17.5v.01' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tone-neutral .message-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7.5h16v10H4zM4.5 8l7.5 6 7.5-6' fill='none' stroke='%23202a4a' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Reveal ---------- */

html.js .reveal { opacity: 0; transform: translateY(32px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); }
html.js .reveal.is-in.d1 { transition-delay: 0.08s; }
html.js .reveal.is-in.d2 { transition-delay: 0.16s; }
html.js .reveal.is-in.d3 { transition-delay: 0.24s; }

/* Scroll-linked reveal: browsers with view() timelines animate each .reveal purely off
   scroll position (no JS, no IntersectionObserver) as it crosses into the viewport. The
   is-in/.d1-.d3 rules above stay as the fallback for browsers without this yet (Firefox). */
@supports (animation-timeline: view()) {
  @keyframes reveal-in { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
  html.js .reveal {
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  /* .hero needs overflow:hidden for its rounded bottom corners, which makes it (not the
     document) the resolved scroll source for a view() timeline on its own children - the
     animation attaches but stays pinned at 0%. Hero content keeps the is-in/JS reveal instead;
     it's the very top of the page and already visible on load, so it doesn't need scroll-tied
     reveal the way lower sections do. */
  .hero .reveal { animation: none; }
}

/* ---------- Responsive ---------- */

/* Between the stack breakpoint and the wrap's own max-width, the docs column is narrower
   than the fan spread below was tuned for, so the outer offsets are pulled in to keep both
   cards clear of the viewport edge (body clips overflow-x, so a wide spread here got cropped). */
@media (min-width: 961px) and (max-width: 1220px) {
  .docs-visual.is-in .doc-1, html:not(.js) .doc-1 { transform: translate(-92px, 18px) rotate(-9deg); }
  .docs-visual.is-in .doc-3, html:not(.js) .doc-3 { transform: translate(88px, 30px) rotate(6deg); }
  .docs-visual.is-in:hover .doc-1 { transform: translate(-112px, 12px) rotate(-12deg); }
  .docs-visual.is-in:hover .doc-3 { transform: translate(106px, 22px) rotate(9deg); }
}

@media (max-width: 960px) {
  .hero-inner, .lead-inner, .docs-inner, .all-inner, .signup-inner { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero-visual { order: -1; justify-self: end; margin: -8px -4px -40px 0; }
  .sticker { width: clamp(180px, 42vw, 300px); }
  .hero-rings { background: repeating-radial-gradient(circle at 80% 20%, transparent 0 46px, oklch(1 0 0 / 0.07) 47px 48px); -webkit-mask-image: radial-gradient(circle at 80% 20%, #000 0%, transparent 55%); mask-image: radial-gradient(circle at 80% 20%, #000 0%, transparent 55%); }
  .lead-visual { order: 2; }
  .all-head, .signup-copy { position: static; }
  .docs-visual { order: 2; }
  .fixed-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav { gap: 10px; }
  .nav-name, .nav-status { display: none; }
  .hero { padding-top: 100px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .lead { padding: 0 8px; }
  .lead-inner { padding: 56px 16px; }
  .phone { transform: scale(0.9); margin: -30px 0; }
  .due-head { grid-template-columns: minmax(0, 1fr); }
  .big-num { display: none; }
  .due-head .label-num { display: inline-grid; }
  .due-rail { padding: 22px 12px 18px; border-radius: 24px; }
  .due-dots { min-height: 96px; gap: 4px; }
  .due-month { writing-mode: vertical-rl; transform: rotate(180deg); }
  .is-now .due-month::after { display: none; }
  .docs-visual { height: 320px; }
  .doc { width: 180px; height: 244px; margin-left: -90px; padding: 18px 16px; top: 30px; }
  .doc-kind { margin-bottom: 18px; font-size: 0.66rem; }
  .doc-tag { top: 14px; right: 12px; font-size: 0.58rem; }
  .docs-visual.is-in .doc-1, html:not(.js) .doc-1 { transform: translate(-84px, 14px) rotate(-8deg); }
  .docs-visual.is-in .doc-2, html:not(.js) .doc-2 { transform: translate(-4px, -12px) rotate(-1.5deg); }
  .docs-visual.is-in .doc-3, html:not(.js) .doc-3 { transform: translate(76px, 24px) rotate(6deg); }
  .all-list > div { grid-template-columns: minmax(0, 1fr); }
  .btn-submit { width: 100%; justify-content: space-between; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html.js .reveal, html.js .problem-lines li, html.js .payoff { opacity: 1; transform: none; }
  html.js .due-rail .due-dots i { transform: none; }
  .scanline { display: none; }
  @supports (animation-timeline: view()) {
    html.js .reveal { animation: none; opacity: 1; transform: none; }
  }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
