/*
  boxen.site – design tokens
  Idee: roter gegen blauen Ring. Mattenblau als Grund, Handschuh-Rot = "das verbessern",
  Minze nur fuer "das ist gut". Das eine laute Element ist das Analyse-Handy mit
  Telestrator-Markierungen (handgezeichnete Kreise wie im TV-Kampfkommentar).
  Typo: System-Schrift (kein Download, schnell im TikTok-Browser), Headlines 800 eng gesetzt.
  Nummern nur fuer die 3 Schritte (echte Reihenfolge: Runde 1-3).
  Phone-Frame-Idee nach jiji262/claude-design-skill assets/device-frames.md (MIT, @35a20e5ada2c).
*/
:root {
  --mat: #0e1c33;        /* Grund: Wettkampfmatte bei Nacht */
  --mat-2: #15284a;      /* Flaechen */
  --rope: #284170;       /* Linien, Raender */
  --tape: #eef1f6;       /* Text */
  --tape-dim: #a9b6cc;   /* Nebentext */
  --glove: #ff4a3d;      /* Fehler / Aktion */
  --glove-ink: #ffffff;
  --mint: #3ddc97;       /* gut */
  --radius-s: 6px;
  --radius-l: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mat);
  color: var(--tape);
  font: 400 17px/1.55 var(--font);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--glove); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Kopf ---------- */
.top { padding: 14px 0 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.wordmark {
  font-weight: 900; font-size: 22px; letter-spacing: -0.04em; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.wordmark i {
  width: 12px; height: 12px; border-radius: 50%; background: var(--glove);
  box-shadow: 9px 0 0 var(--tape);
  margin-right: 9px;
}
.top-link { font-size: 15px; color: var(--tape-dim); text-decoration: none; }

/* ---------- Typo ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(34px, 9.4vw, 64px); font-weight: 850; }
h2 { font-size: clamp(28px, 7vw, 44px); font-weight: 850; }
h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: 18px; color: var(--tape-dim); max-width: 34em; }
.lead strong { color: var(--tape); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 26px 0 56px; }
.hero .wrap { display: grid; gap: 34px; }
.hero h1 { margin-bottom: 14px; }
.hero h1 span { display: block; color: var(--glove); }
.hero .lead { margin-bottom: 20px; }

/* ---------- Formular ---------- */
.signup { max-width: 470px; }
.signup .row { display: grid; gap: 10px; }
.signup input[type="email"] {
  width: 100%; height: 54px; padding: 0 16px;
  font: inherit; font-size: 17px; color: var(--mat);
  background: var(--tape); border: 2px solid var(--tape); border-radius: var(--radius-s);
}
.signup input[type="email"]::placeholder { color: #6a7891; }
.signup input[type="email"]:focus { outline: none; border-color: var(--mint); }
.signup button {
  height: 54px; padding: 0 22px; border: 0; border-radius: var(--radius-s);
  background: var(--glove); color: var(--glove-ink);
  font: inherit; font-size: 17px; font-weight: 750; cursor: pointer;
}
.signup button:hover { filter: brightness(1.08); }
.signup button:disabled { opacity: .7; cursor: progress; }
.signup .consent { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--tape-dim); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 560px) {
  .signup .row { grid-template-columns: 1fr auto; }
}

/* ---------- Abschnitte ---------- */
section { padding: 64px 0; }
.band { background: var(--mat-2); }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head h2 { margin-bottom: 12px; }

/* Problem */
.problem .pains { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; max-width: 640px; }
.problem .pains li { padding-left: 26px; position: relative; color: var(--tape); }
.problem .pains li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px;
  border: 2px solid var(--glove); border-radius: 50%;
}

/* Runden */
.rounds { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: r; }
.rounds li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--rope); }
.rounds li:last-child { border-bottom: 1px solid var(--rope); }
.rounds .num { font-size: 13px; color: var(--tape-dim); line-height: 1.2; }
.rounds .num b { display: block; font-size: 38px; font-weight: 850; color: var(--tape); letter-spacing: -0.04em; line-height: 1; }
.rounds p { color: var(--tape-dim); margin-top: 6px; }
@media (min-width: 900px) {
  .rounds { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .rounds li, .rounds li:last-child { grid-template-columns: 1fr; border-bottom: 0; }
}

/* Features */
.features { display: grid; gap: 30px; }
.feature { padding-left: 18px; border-left: 3px solid var(--rope); }
.feature p { color: var(--tape-dim); margin-top: 6px; }
.feature.key { border-left-color: var(--glove); }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; gap: 36px 48px; } }

/* Demo */
.demo .wrap { display: grid; gap: 36px; align-items: start; }
.concept-tag {
  display: inline-block; font-size: 13px; color: var(--mat); background: var(--tape);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 14px;
}
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.note { background: var(--mat); border-radius: var(--radius-l); padding: 18px 18px 18px 20px; border: 1px solid var(--rope); }
.note h3 { display: flex; gap: 10px; align-items: baseline; font-size: 18px; }
.note .t { font-size: 13px; font-weight: 500; color: var(--tape-dim); margin-left: auto; font-variant-numeric: tabular-nums; }
.note .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--glove); flex: none; transform: translateY(-1px); }
.note.good .dot { background: var(--mint); }
.note dl { margin: 10px 0 0; display: grid; gap: 6px; font-size: 15px; }
.note dt { font-weight: 650; display: inline; }
.note dd { margin: 0; display: inline; color: var(--tape-dim); }
@media (min-width: 900px) { .demo .wrap { grid-template-columns: 360px 1fr; gap: 64px; } }

/* Beta */
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 640px; }
.perks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.perks svg { width: 24px; height: 24px; margin-top: 2px; }
.perks p { color: var(--tape-dim); }

/* FAQ */
.faq { max-width: 720px; }
.faq details { border-top: 1px solid var(--rope); }
.faq details:last-child { border-bottom: 1px solid var(--rope); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-weight: 650; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--tape-dim); border-bottom: 2px solid var(--tape-dim);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 18px; color: var(--tape-dim); max-width: 38em; }

/* Finaler CTA */
.final { text-align: left; }
.final h2 { margin-bottom: 12px; max-width: 14em; }
.final .lead { margin-bottom: 22px; }

/* Footer */
footer { padding: 34px 0 44px; border-top: 1px solid var(--rope); font-size: 14px; color: var(--tape-dim); }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- Handy-Mockup ---------- */
.phone {
  width: min(280px, 78vw); aspect-ratio: 9 / 19; margin: 0 auto;
  background: #05080f; border-radius: 42px; padding: 10px; position: relative;
  box-shadow: 0 0 0 1px #2c3a55 inset, 0 30px 60px rgba(0, 0, 0, .45);
}
.phone::before { /* Dynamic Island */
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 22px; background: #000; border-radius: 14px; z-index: 3;
}
.phone .screen { width: 100%; height: 100%; border-radius: 33px; overflow: hidden; position: relative; background: #0b1424; }
.phone .scene { width: 100%; height: 100%; }
.phone .ui-top {
  position: absolute; top: 48px; left: 14px; right: 14px; display: flex; justify-content: space-between;
  font-size: 11px; color: #dfe6f2; z-index: 2;
}
.phone .ui-top b { font-weight: 650; }
.phone .live { display: inline-flex; align-items: center; gap: 5px; }
.phone .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glove); }
.phone .label {
  position: absolute; z-index: 2; font-size: 11px; line-height: 1.25; font-weight: 650;
  padding: 5px 8px; border-radius: 6px; background: var(--glove); color: #fff; max-width: 46%;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.phone .label.good { background: var(--mint); color: #062a1b; }
.phone .label.l-chin { top: 19%; left: 6%; }
.phone .label.l-guard { top: 37%; right: 4%; }
.phone .label.l-hip { top: 55%; left: 5%; }
.phone .scrub { position: absolute; left: 14px; right: 14px; bottom: 20px; z-index: 2; font-size: 10px; color: #c6d0e0; }
.phone .track { position: relative; height: 4px; background: rgba(255,255,255,.22); border-radius: 2px; margin-bottom: 6px; }
.phone .track i { position: absolute; top: -3px; width: 4px; height: 10px; border-radius: 2px; background: var(--glove); }
.phone .track i.g { background: var(--mint); }
.phone .track .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 34%; background: #fff; border-radius: 2px; }
.phone .scrub span { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }

/* Demo-Animation: ein einziger Moment, wenn das Handy ins Bild scrollt */
.phone.animate .fill { width: 0; }
.phone.animate .label, .phone.animate .ring { opacity: 0; }
.phone.play .fill { animation: fill 3.2s ease-out forwards; }
.phone.play .label, .phone.play .ring { animation: pop .45s ease-out forwards; }
.phone.play .ring { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .7s ease-out forwards; opacity: 1; }
.phone.play .l-chin, .phone.play .ring-chin { animation-delay: .7s; }
.phone.play .l-guard, .phone.play .ring-guard { animation-delay: 1.5s; }
.phone.play .l-hip, .phone.play .ring-hip { animation-delay: 2.3s; }
@keyframes fill { to { width: 34%; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .phone.animate .fill { width: 34%; }
  .phone.animate .label, .phone.animate .ring { opacity: 1; animation: none; stroke-dashoffset: 0; }
}

/* Hero auf grossen Screens: zweispaltig */
@media (min-width: 900px) {
  .hero { padding: 56px 0 80px; }
  .hero .wrap { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 56px; }
  .hero .phone { width: 300px; }
}

/* ---------- Unterseiten ---------- */
.page { padding: 48px 0 72px; min-height: 62vh; }
.page h1 { font-size: clamp(32px, 8vw, 52px); margin-bottom: 16px; }
.page .lead { margin-bottom: 22px; }
.page ol { padding-left: 1.2em; color: var(--tape-dim); max-width: 36em; }
.page ol li { margin-bottom: 8px; }
.btn {
  display: inline-block; margin-top: 10px; padding: 14px 20px; border-radius: var(--radius-s);
  background: var(--glove); color: #fff; font-weight: 700; text-decoration: none;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.legal { max-width: 760px; }
.legal h2 { font-size: 24px; margin: 34px 0 10px; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--tape-dim); margin-bottom: 10px; }
.legal .draft {
  border: 2px dashed var(--glove); border-radius: var(--radius-s); padding: 12px 14px; color: var(--tape); margin-bottom: 24px;
}
.phone .scene.rings { position: absolute; inset: 0; z-index: 1; }
