/* vanillasystems.ch: white page, ink on white, red only in the logo, alpine green for actions. Light only. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --ink: #0b1220;
  --ink-2: #4a5263;
  --muted: #6e7685;
  --line: #e7eaf0;
  --line-2: #d3d8e1;
  --accent: #2e7d4f;
  --accent-ink: #1f5c39;
  --accent-soft: #eaf2ed;
  --neg: #b42318;
  --neg-soft: #fdecea;
  --pos: #1a7f4b;
  --pos-soft: #e8f5ee;
  --logo: #e3232f;
  --font-heading: "Hanken Grotesk", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(34px, 6vw, 56px); line-height: 1.04; }
h2 { font-weight: 800; font-size: clamp(26px, 4vw, 34px); line-height: 1.12; }
h3 { font-weight: 700; font-size: 18px; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent-ink); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* test-mode banner */
.proto { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 6px 16px; }
.proto a { color: #fff; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: block; flex: none; }
.logo svg { display: block; width: 230px; height: auto; }
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .site-nav { display: none; } .site-head .btn { margin-left: auto; } }
/* On the narrowest phones the logo gives way so the header button fits without sideways scrolling. */
@media (max-width: 380px) { .site-head .wrap { gap: 12px; } .logo { flex: 0 1 auto; min-width: 0; } .logo svg { width: 100%; max-width: 230px; } .site-head .btn { white-space: nowrap; flex: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); font: 600 15px/1.2 var(--font-text);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--bg-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* sections */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head p { color: var(--ink-2); margin-top: 12px; font-size: 18px; }

/* hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 19px; color: var(--ink-2); margin-top: 20px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 14px; color: var(--ink-2); padding: 0; list-style: none; }
.facts li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* report excerpt */
.sheet { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 20px 50px -24px rgba(11,18,32,.28); overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.kpis > div { padding: 12px 16px; }
.kpis > div + div { border-left: 1px solid var(--line); }
.kpis .v { font: 800 26px/1.1 var(--font-heading); }
.kpis .k { font-size: 12px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font: 500 12px/1.5 var(--font-mono); }
.pill.bad { background: var(--neg-soft); color: var(--neg); }
.pill.ok { background: var(--pos-soft); color: #166a3f; }
.sheet-foot { padding: 10px 16px; font-size: 12.5px; color: #5f6673; background: var(--bg-2); border-top: 1px solid var(--line); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font: 700 15px/1 var(--font-mono); margin-bottom: 14px;
}
.steps p { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.steps .time { margin-top: 10px; font: 500 12.5px/1.4 var(--font-mono); color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* channels */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--bg); }
.card p { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
.card .addr { display: block; margin-top: 14px; font: 500 14px/1.4 var(--font-mono); color: var(--ink); word-break: break-all; }
@media (max-width: 820px) { .channels { grid-template-columns: 1fr; } }

/* deliverables */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.ticks b { display: block; }
.ticks span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; gap: 32px; } }

/* prices */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; }
.price { border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.price.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price .amount { font: 800 40px/1 var(--font-heading); margin-top: 14px; letter-spacing: -0.02em; }
.price .amount small { font: 500 14px var(--font-text); color: var(--muted); letter-spacing: 0; }
.price .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.price ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.price li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.price-note { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 820px; }
@media (max-width: 680px) { .prices { grid-template-columns: 1fr; } }

/* AI note */
.ai { background: var(--bg-2); }
.ai .two p + p { margin-top: 12px; }
.ai p { color: var(--ink-2); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font: 400 22px/1 var(--font-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* closing CTA */
.closing { text-align: center; }
.closing .ctas { justify-content: center; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* legal pages */
.legal { max-width: 760px; padding: 56px 16px 88px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal p, .legal ul { margin: 12px 0 0; color: var(--ink-2); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 4px; }
.legal strong { color: var(--ink); }
.legal .cl { font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-right: 6px; }
.legal .draft { background: #fdf3e1; color: #7a4800; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 20px; }
.legal .draft strong { color: inherit; }

/* Grid children may shrink below their content width; the report table scrolls inside its box instead. */
.hero .wrap > *, .two > *, .channels > *, .steps > *, .prices > * { min-width: 0; }

/* expert: portrait.jpg in src/static replaces the initials and the placeholder */
.expert-chip { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; text-decoration: none; color: var(--ink); }
.expert-chip small { display: block; color: var(--muted); font-size: 13px; }
.avatar { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 700 15px/1 var(--font-heading); }
.avatar img, .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.expert .wrap { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.expert .wrap > * { min-width: 0; }
.expert .lead { font-size: 19px; color: var(--ink-2); margin: 16px 0 28px; }
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--bg-2); border: 1px dashed var(--line-2); display: grid; place-items: center; }
.portrait figcaption { color: var(--muted); font-size: 14px; }
@media (max-width: 820px) { .expert .wrap { grid-template-columns: 1fr; gap: 32px; } .portrait { max-width: 320px; } }
.subhead { font: 700 clamp(22px, 3vw, 28px)/1.2 var(--font-heading); letter-spacing: -0.02em; margin-top: 10px; }

/* DeviCheck wordmark: "Devi" in ink, "Check" in alpine green, a green check badge */
.wordmark { display: inline-flex; align-items: baseline; letter-spacing: -0.035em; }
.wordmark span { color: var(--accent); }
.wordmark svg { width: .62em; height: .62em; margin-left: .12em; align-self: center; transform: translateY(-.04em); }
.wordmark svg circle { fill: var(--accent); }
.wordmark svg path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* pain points */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pains > * { min-width: 0; }
.pain-answer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 32px; padding: 22px 24px; border-radius: 14px; background: var(--accent-soft); }
.pain-answer p { max-width: 44em; color: var(--ink); }
@media (max-width: 900px) { .pains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pains { grid-template-columns: 1fr; } }

/* expert: the whole photo, large and landscape */
.expert .wrap { grid-template-columns: 1.35fr 1fr; gap: 48px; }
.portrait { aspect-ratio: 1500 / 972; border: 0; border-radius: 20px; box-shadow: 0 24px 60px -28px rgba(11,18,32,.35); }
.avatar { width: 56px; height: 56px; }
@media (max-width: 900px) { .expert .wrap { grid-template-columns: 1fr; } .portrait { max-width: none; } }

/* how it works: alternating text and screenshot rows */
.how { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.how + .how { margin-top: 72px; }
.how > * { min-width: 0; }
.how.flip { grid-template-columns: 1.4fr 1fr; }
.how.flip .how-text { order: 2; }
.how-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 16px/1 var(--font-mono); margin-bottom: 16px; }
.how h3 { font-size: 24px; font-weight: 800; }
.how-text p { color: var(--ink-2); margin-top: 10px; font-size: 17px; }
.how-text .how-time { font: 500 13px/1.4 var(--font-mono); color: var(--muted); margin-top: 14px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(11,18,32,.35); background: #fff; }
.shot img { display: block; width: 100%; height: auto; }
.shot.phone { border: 0; box-shadow: none; border-radius: 0; max-width: 340px; justify-self: center; }
@media (max-width: 860px) {
  .how, .how.flip { grid-template-columns: 1fr; gap: 24px; }
  .how.flip .how-text { order: 0; }
  .how + .how { margin-top: 56px; }
}
@media (max-width: 420px) { .logo svg { width: 170px; } }

/* offer box above the fold: price, speed, terms in one look */
.offer { margin-top: 24px; padding: 18px 22px; border: 2px solid var(--accent); border-radius: 14px; background: var(--accent-soft); }
.offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.offer .amount { font: 800 40px/1 var(--font-heading); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.offer .per { font-size: 15px; color: var(--ink-2); }
.offer ul { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.offer li { padding-left: 24px; position: relative; }
.offer li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.offer li b { color: var(--ink); }
.btn.big { padding: 14px 22px; font-size: 16px; }

/* company homepage: offerings grid */
.hero.company h1 { font-size: clamp(36px, 6vw, 60px); max-width: 14em; }
.hero.company .wrap { grid-template-columns: 1fr; }
.hero.company .lead { max-width: 38em; }
.offerings { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.offerings > * { min-width: 0; }
.offering { position: relative; display: block; border: 1px solid var(--line); border-radius: 18px; padding: 28px; color: var(--ink); text-decoration: none; }
.offering p { color: var(--ink-2); margin-top: 10px; }
.offering.live { border: 2px solid var(--accent); }
.offering.live:hover { background: var(--accent-soft); }
.offering .who { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.offering .terms { color: var(--ink); }
.offering .more { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--accent-ink); }
.offering.soon { border-style: dashed; background: var(--bg-2); }
.offering .badge { position: absolute; top: 20px; right: 20px; background: var(--accent); color: #fff; font: 600 12px/1 var(--font-text); padding: 6px 10px; border-radius: 99px; }
.wordmark.small { font: 800 36px/1 var(--font-heading); }
@media (max-width: 760px) { .offerings { grid-template-columns: 1fr; } }

/* order form */
.order-form { display: grid; gap: 16px; margin-top: 28px; max-width: 560px; }
.order-form .field { display: grid; gap: 6px; min-width: 0; }
.order-form label { font-weight: 600; font-size: 15px; }
.order-form input, .order-form textarea { font: 400 16px/1.4 var(--font-text); padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 10px; width: 100%; min-width: 0; box-sizing: border-box; }
.order-form input:focus, .order-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.order-form input[aria-invalid="true"] { border-color: var(--neg); box-shadow: inset 0 0 0 1px var(--neg); }
.order-form .small { font-size: 14px; }
.order-form .field-error { margin: 0; color: var(--neg); font-size: 15px; font-weight: 500; }
.order-form .submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.order-form .submit-row .form-error { margin: 0; flex: 1 1 220px; }
.form-error, .order-form .form-error { color: var(--neg); font-weight: 500; }

/* sample report page (devicheck/musterbericht) */
.report { padding-top: 56px; padding-bottom: 88px; }
.report h1 { font-size: clamp(26px, 4vw, 36px); margin-top: 8px; }
.example-note { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #fdf3e1; color: #7a4800; font-size: 14px; }
.report-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.report-meta b { color: var(--ink); font-weight: 600; }
.report-section { margin-top: 40px; }
.report-section > h2 { font-size: 20px; margin-bottom: 14px; }
.report .kpis > div { min-width: 0; }
.pill.warn { background: #fdf3e1; color: #9a5b00; }
.pill.neutral { background: var(--bg-2); color: var(--ink-2); }
.diff-pos { color: var(--neg); }
.qlist { counter-reset: q; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.qlist li { counter-increment: q; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.qlist li::before { content: "R" counter(q); font-family: var(--font-mono); color: var(--muted); font-size: 13px; padding-top: 1px; }
.qlist small { color: var(--muted); display: block; margin-top: 2px; }
.disclaimer { margin-top: 40px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; max-width: 70ch; }
@media (max-width: 480px) { .report .kpis .v { font-size: 18px; } }

/* contact bar: a named person and a phone number on every page, above the fold (UX-26) */
.contact-bar { background: var(--accent-soft); color: var(--ink); font-size: 15px; }
.contact-bar .wrap { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 0 8px; min-height: 44px; }
.contact-bar a { color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* tap targets: every link and button at least 44 px high (WCAG 2.5.5, UX-3) */
.logo, .site-nav a, .site-foot a, .card .addr, .sheet-foot a, .offering .more { display: inline-flex; align-items: center; min-height: 44px; }
.logo svg { margin: auto 0; }
.btn, .btn.small { min-height: 44px; }

/* readable text: body 17 px, nothing below 16 px (UX-4: reading glasses, bright light on site) */
body { font-size: 17px; }
.label, .proto, .contact-bar, .facts, .sheet-head, .kpis .k, table, th, td, .pill, .sheet-foot, .steps p, .steps .time,
.card p, .card .addr, .ticks span, .price .sub, .price ul, .price-note, .offer .per, .offer ul, .faq details p,
.site-foot, .site-nav, .btn.small, .expert-chip small, .offering .who, .how-text .how-time, .order-form .small,
.muted, small { font-size: 16px; }

/* trust note on the order page: where files go and when they are deleted */
.trust-note { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); }
.trust-note li + li { margin-top: 6px; }

/* Phone: the pain points follow the offer directly. The hero report excerpt moves out (the full sample is in #bericht),
   and the six pain cards get tighter so all of them fit in about two screens. */
@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  .hero .sheet { display: none; }
  #probleme { padding-top: 32px; }
  .pains { gap: 10px; }
  .pains .card { padding: 14px 16px; border-left: 3px solid var(--neg); }
  .pains .card h3 { font-size: 17px; }
  .pains .card p { margin-top: 4px; }
  .pain-answer { margin-top: 20px; padding: 18px; }
}

/* WhatsApp button: the logo makes it recognisable at a glance; only the icon carries WhatsApp's colour. */
.btn.wa .wa-icon { width: 22px; height: 22px; flex: none; fill: #25D366; }
@media (max-width: 600px) {
  .ctas { flex-wrap: nowrap; }
  .ctas .btn { justify-content: center; padding-left: 12px; padding-right: 12px; }
  .ctas .btn.primary { flex: 1 1 auto; }
  .ctas .btn.wa { flex: 0 0 auto; }
}
