/* Farben 1:1 aus ToolColor.swift der App */
:root {
  --red: #C23B3B; --green: #1F8F63; --blue: #2661B0; --amber: #C9963B;
  --orange: #B8541F; --violet: #593D9E; --grey: #C7C7CC; --white: #F5F5F5; --pink: #A8385E;
  --bg: #000; --panel: #111113; --panel2: #1c1c1f; --line: #2a2a2e;
  --text: #f5f5f5; --muted: #9a9aa2;
  --r: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden;
  transition: background .25s, color .25s;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 12px max(16px, calc((100vw - 1160px) / 2)); background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #ffffff10;
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.nav-cta {
  text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px;
  background: var(--green); color: #fff;
}

main > section { padding: 0 16px; max-width: 1192px; margin: 0 auto; }

/* HERO */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; min-height: calc(100vh - 60px); padding-top: 40px !important; padding-bottom: 40px !important; }
.kicker { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 #c23b3b88; animation: rec 1.6s infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 #c23b3b99; } 70% { box-shadow: 0 0 0 10px #c23b3b00; } 100% { box-shadow: 0 0 0 0 #c23b3b00; } }
h1 { font-size: clamp(52px, 8.5vw, 112px); line-height: .95; letter-spacing: -.045em; margin: 0 0 24px; font-weight: 800; }
h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.035em; line-height: 1.02; margin: 0 0 12px; font-weight: 800; }
h3 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 16px; display: flex; gap: 12px; align-items: center; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #d6d6dc; max-width: 34em; margin: 0 0 32px; }

/* SIGNUP */
.signup .row { display: flex; gap: 10px; }
.signup input, .signup select {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--text); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .15s;
}
.signup select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.signup input:focus, .signup select:focus { border-color: var(--green); }
.btn {
  font: inherit; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; color: #fff; background: var(--green);
  border-radius: 14px; padding: 14px 22px; white-space: nowrap; transition: transform .15s ease-out, filter .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.wide { width: 100%; }
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.msg { min-height: 1.4em; margin: 8px 0 0; font-weight: 600; }
.msg.ok { color: #4fd39a; } .msg.err { color: #ff7b7b; }
.signup.done input, .signup.done select, .signup.done .row, .signup.done .btn { display: none; }

/* PHONE MOCKUPS */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  margin: 0; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #2c2c30, #0c0c0e);
  box-shadow: 0 0 0 1px #ffffff1a, 0 40px 80px -20px #000, 0 0 120px -30px #2661b055;
}
.phone img { border-radius: 34px; }
.hero .phone { width: min(340px, 78vw); transform: rotate(3deg); }
.float {
  position: absolute; font-family: var(--mono); font-weight: 700; font-size: 15px; padding: 10px 14px;
  border-radius: 14px; color: #fff; box-shadow: 0 12px 30px -8px #000a; animation: bob 5s ease-in-out infinite;
}
.f1 { background: var(--orange); top: 14%; left: 0; }
.f2 { background: var(--grey); color: #000; bottom: 22%; left: 4%; animation-delay: -1.7s; }
.f3 { background: var(--blue); top: 40%; right: 0; animation-delay: -3.1s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }

/* SECTIONS */
.section-head { max-width: 46em; margin: 0 0 32px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.board-wrap, .features, .honest, .cta { padding-top: 96px !important; }

/* BOARD */
.board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile {
  aspect-ratio: 1; border: 0; border-radius: var(--r); background: var(--c); color: var(--l, #fff);
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 8px; text-align: center;
  transition: transform .15s ease-out, box-shadow .2s; box-shadow: inset 0 1px 0 #ffffff22;
}
.tile .ico { font-size: 28px; line-height: 1; font-weight: 600; letter-spacing: -.05em; }
.tile:active { transform: scale(.96); }
.tile.on { box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--c), 0 0 28px -2px var(--c); }
.stage { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: relative; overflow: hidden; }
.stage-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.stage-title { font-weight: 700; }
.stage-readout { color: #4fd39a; font-size: 15px; text-align: right; }
#stage-canvas { width: 100%; height: auto; aspect-ratio: 800 / 440; background: #000; border-radius: 14px; display: block; }
.stage-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; min-height: 0; }
.stage-controls:empty { display: none; }
.stage-controls button { font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; cursor: pointer; font-family: var(--mono); }
.stage-controls button.sel { background: var(--grey); color: #000; border-color: var(--grey); }
.stage-controls input[type=range] { flex: 1; min-width: 120px; accent-color: var(--green); }
.stage-controls label { font-size: 13px; color: var(--muted); }
.stage-caption { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* FEATURES */
.cat {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center;
  padding: 40px; margin-bottom: 20px; border-radius: 32px; background: var(--panel); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.cat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c); }
.dot { width: 16px; height: 16px; border-radius: 5px; background: var(--c); flex: none; }
.cat ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: #c9c9d0; }
.cat li b { color: var(--text); }
.cat li i { color: var(--muted); font-style: normal; }
.shots { display: flex; gap: 14px; justify-content: center; align-items: center; }
.shots .phone.sm { width: 31%; max-width: 190px; border-radius: 26px; padding: 6px; }
.shots .phone.sm img { border-radius: 21px; }
.shots .phone.sm:nth-child(2) { transform: translateY(-16px); }
.shots .landscape { margin: 0; width: 50%; border-radius: 16px; overflow: hidden; border: 6px solid #1f1f22; box-shadow: 0 30px 60px -20px #000; }
.cat:nth-child(odd of .cat) .cat-text { order: 2; }

/* COMPACT FEATURES */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fcol { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; border-top: 4px solid var(--c); }
.fcol h3 { font-size: 20px; margin-bottom: 12px; }
.fcol ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.fcol li b { color: var(--text); font-weight: 600; }
.strip { display: flex; gap: 18px; justify-content: center; margin: 40px 0 0; }
.strip .phone.sm { width: 22%; max-width: 200px; border-radius: 28px; padding: 6px; }
.strip .phone.sm img { border-radius: 23px; }
.strip .phone.sm:nth-child(even) { transform: translateY(24px); }
.fine.center { text-align: center; margin-top: 48px; }

/* HONEST */
.honest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.honest-grid div { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: #c9c9d0; font-size: 15px; }
.honest-grid b { display: block; color: var(--text); margin-bottom: 6px; font-size: 16px; }

/* CTA */
.cta { padding-bottom: 96px !important; }
.cta-card { max-width: 560px; margin: 0 auto; text-align: center; background: linear-gradient(180deg, #16161a, #0b0b0d); border: 1px solid var(--line); border-radius: 32px; padding: 40px 28px; }
.cta-icon { margin: 0 auto 20px; border-radius: 22px; box-shadow: 0 20px 50px -10px #2661b066; }
.cta-card > p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.signup.big { display: grid; gap: 10px; text-align: left; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px max(16px, calc((100vw - 1160px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* TORCH: die ganze Seite wird zur Taschenlampe */
body.torch { background: #fff; color: #000; }
body.torch .nav { background: #ffffffcc; }
body.torch .stage, body.torch .cat, body.torch .honest-grid div, body.torch .cta-card { background: #fff; border-color: #ddd; }
body.torch .lead, body.torch .cat ul, body.torch .honest-grid div { color: #333; }

/* PATTERN OVERLAY */
.pattern-overlay { position: fixed; inset: 0; z-index: 100; background: #000; cursor: pointer; }
.pattern-overlay canvas { width: 100%; height: 100%; display: block; }
.pattern-overlay p { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; margin: 0; text-shadow: 0 1px 3px #000; }

/* LEVEL: Seite schief */
main.tilted { transition: transform .6s cubic-bezier(.3,1.6,.5,1); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; gap: 40px; }
  .hero-visual { order: 2; }
  .board { grid-template-columns: 1fr; }
  .cat { grid-template-columns: 1fr; padding: 28px 20px 28px 26px; gap: 28px; }
  .cat:nth-child(odd of .cat) .cat-text { order: 0; }
  .honest-grid { grid-template-columns: 1fr 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .signup .row { flex-direction: column; }
  .tiles { gap: 8px; }
  .tile { font-size: 11px; border-radius: 16px; }
  .tile .ico { font-size: 22px; }
  .honest-grid { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .strip { gap: 8px; }
  .strip .phone.sm { width: 24%; border-radius: 16px; padding: 3px; }
  .strip .phone.sm img { border-radius: 13px; }
  .float { font-size: 13px; }
  .f1 { top: auto; bottom: 8%; left: auto; right: 0; }
  .f3 { top: 30%; }
  .shots .landscape { width: 100%; }
  .shots:has(.landscape) { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Official Apple badge (replaces the waitlist forms since the release). Apple asks for at least
   40px height and clear space of a quarter of the badge height around it. */
.store-badge { display: inline-block; margin: 6px 0; padding: 0; line-height: 0; transition: transform .15s ease-out; }
.store-badge img { height: 60px; width: auto; display: block; }
.store-badge:active { transform: scale(.96); }
