/* CamWipes landing page. System fonts on purpose: no Google Fonts request (GDPR, esp. Germany). */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --ink: #0e1116;
  --muted: #59616d;
  --line: #dedbd3;
  --accent: #1f5bff;
  --accent-ink: #ffffff;
  --glass: #c9d6f5;
  --tint: #eceae3;
  --dark: #0e1116;
  --dark-2: #171c24;
  --dark-ink: #f2f3f5;
  --dark-muted: #a3abb8;
  --ok: #138a4b;
  --err: #c2321f;
  --radius: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
section { padding: clamp(64px, 10vw, 120px) 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.center .lead { margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; margin: 0; }
.mark { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--ink) 0 34%, var(--accent) 35% 52%, var(--ink) 53%); box-shadow: inset 0 0 0 2px var(--ink); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langs a { text-decoration: none; font-size: .78rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.langs a[aria-current] { background: var(--ink); color: var(--bg); }

.btn, .waitlist button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 1rem/1 var(--font); padding: 16px 24px; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover, .waitlist button:hover { background: #1747d1; transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 88px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .85rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; color: var(--muted); }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 8% 8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); filter: blur(30px); }
.lens { position: relative; width: min(460px, 100%); margin-inline: auto; filter: drop-shadow(0 30px 50px rgba(14, 17, 22, .28)); }

/* Wipe animation: dirty hold, the wipe sweeps across with the dirt mask on its edge, clean hold, dirt fades back. */
.dirt-mask, .wipe { transform-box: view-box; animation: sweep 7s cubic-bezier(.65, 0, .35, 1) infinite; }
.wipe { animation-name: sweep, wipe-fade; }
.dirt { animation: dirt 7s linear infinite; }
@keyframes sweep { 0%, 30% { transform: translateX(0); } 62%, 90% { transform: translateX(360px); } 91%, 100% { transform: translateX(0); } }
@keyframes wipe-fade { 0%, 26% { opacity: 0; } 32%, 60% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes dirt { 0%, 62% { opacity: 1; } 64%, 92% { opacity: 0; } 100% { opacity: 1; } }

/* Waitlist form */
.waitlist { margin-top: 28px; max-width: 520px; }
.center .waitlist { margin-inline: auto; }
.field { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(14, 17, 22, .06); }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 1rem var(--font); padding: 0 16px; color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 4px 0; }
.form-msg { font-size: .95rem; font-weight: 600; margin: 8px 4px 0; min-height: 1.5em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.waitlist.done .field { display: none; }

/* Dark sections */
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .lead, .dark .form-note { color: var(--dark-muted); }
.dark .field { background: var(--dark-2); border-color: #2a313b; box-shadow: none; }
.dark .field input { color: var(--dark-ink); }
.dark .form-msg.ok { color: #4ade80; }
.dark .form-msg.err { color: #ff8a73; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card-dark { background: var(--dark-2); border: 1px solid #252b35; border-radius: var(--radius); padding: 28px; }
.card-dark p { color: var(--dark-muted); margin: 0; }
.num { display: block; font-weight: 800; color: var(--accent); font-size: .9rem; margin-bottom: 28px; letter-spacing: .08em; }

/* Steps + features */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.steps li p { color: var(--muted); margin: 0; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: 22px; }
.steps li:nth-child(2) .step-n { background: var(--accent); }
.h2-sub { margin-top: clamp(64px, 9vw, 104px); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.feature { border-top: 2px solid var(--ink); padding-top: 20px; }
.feature svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Cameras */
.tint { background: var(--tint); }
.cams { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.car { width: min(260px, 70%); margin-inline: auto; }
.car text { fill: #fff; font: 800 13px var(--font); }
.car .dot circle { stroke: var(--tint); stroke-width: 4; }
.cam-list { padding: 0; margin: 28px 0; list-style: none; counter-reset: c; display: grid; gap: 10px; }
.cam-list li { counter-increment: c; display: flex; align-items: center; gap: 14px; font-weight: 600; }
.cam-list li::before { content: counter(c); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800; }
.note { font-size: .93rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 14px; max-width: 52ch; }
.box { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.box ul { margin: 0 0 12px; padding-left: 20px; }
.price { margin: 0; font-weight: 700; color: var(--accent); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 32px; }
summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

.join { padding-block: clamp(72px, 11vw, 128px); }

/* Footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 10px; }
.disclaimer, .copy { font-size: .82rem; color: var(--muted); max-width: 80ch; margin: 0; }


/* Subpages: breadcrumbs, page head, brand and model grids */
.page-head { padding-top: clamp(32px, 5vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.h1-page { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
.model-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 36px; }
.brand-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.brand-card h3 { margin-bottom: 10px; }
.brand-card h3 a { text-decoration: none; }
.brand-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.brand-card li a, .chip-links a { display: inline-block; font-size: .88rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; background: var(--bg); }
.brand-card li a:hover, .chip-links a:hover { border-color: var(--accent); color: var(--accent); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 36px 0 8px; }
.model-card { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; transition: border-color .15s, transform .15s; }
.model-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.model-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.model-meta { font-size: .85rem; color: var(--muted); }
.chip-links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-links a { background: var(--surface); }
.tag { display: inline-block; margin-left: 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.dark .lead + .lead { margin-top: 1em; }
.dark .narrow .lead { max-width: none; }

/* Reveal on scroll (main.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .cams, .model-head { grid-template-columns: 1fr; }
  .model-head .car { width: min(170px, 50%); }
  .hero-art { order: -1; max-width: 340px; margin-inline: auto; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .car { width: min(190px, 55%); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-in { gap: 12px; }
  .btn-sm { display: none; }
  .field { flex-direction: column; border-radius: 22px; }
  .field input { padding: 12px 14px; }
  .waitlist button { width: 100%; }
  .grid4 { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dirt-mask, .wipe, .dirt { animation: none; }
  .dirt-mask { transform: translateX(170px); }
  .wipe { opacity: 0; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
