/* kiki website. Tokens and type from docs/design/README.md; layout transcribed from the inline styles
   of docs/design/kiki Landing.dc.html and kiki Rechtliches.dc.html. No framework, no build step. */

:root {
  --bg: #F4F1EC;
  --ink: #1C2433;
  --accent: #3E6496;
  --accent-soft: #DCE6F2;
  --accent-light: #8FB0D6;
  --muted: #5A6372;
  --muted-2: #8A93A2;
  --sand: #E8E2D8;
  --line: #D3CCC0;
  --line-2: #E2DCD2;
  --surface: #FFFFFF;
  --dark-text: #C9D2DE;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
}

*, *::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-family: var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
h1, h2, p { margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus: visible for keyboard users, quiet for the mouse. */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .pill:focus-visible { outline-offset: 2px; }

/* content-box like the prototype: 1120px of content plus 24px gutters, so the edges land where they do there. */
.wrap { box-sizing: content-box; max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Wordmark: "kiki." with the accent dot, as in the prototype. */
.brand { font-size: 28px; font-weight: 800; letter-spacing: -1.3px; line-height: 1; color: var(--ink); }
.dot { color: var(--accent); }

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-weight: 700; color: var(--ink);
}
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-ink:hover { background: #2A3447; color: #FFFFFF; }
/* Bordered controls are content-box like the prototype, so borders add to the stated size. */
.btn-outline { box-sizing: content-box; background: var(--surface); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--ink); }
.btn-nav { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; }
.btn-store { min-height: 56px; padding: 0 22px; border-radius: 16px; font-size: 16px; }
.btn-cta { min-height: 56px; padding: 0 26px; border-radius: 16px; font-size: 16px; margin-top: 8px; }

.pill { display: inline-block; border-radius: 999px; font-weight: 700; }

/* Header */
.site-header { padding-top: 22px; padding-bottom: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* Language switch: links to the page in the market's language and in EN (built per page, see tools/build.mjs). */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-2); }
.lang {
  min-height: 38px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font: 700 13px var(--font); letter-spacing: 0.3px;
}
.lang { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.lang:hover { color: var(--ink); }
.lang[aria-pressed="true"], .lang[aria-current="page"] { background: var(--ink); color: #FFFFFF; }
.lang[disabled] { cursor: default; }
.lang[hidden] { display: none; }

/* Hero */
.hero {
  padding: 32px 24px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.pain {
  font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--muted);
  text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 3px;
}
.h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.hero-p { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--muted); max-width: 480px; text-wrap: pretty; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { font-size: 13px; font-weight: 600; color: var(--muted); }
.hero-visual { position: relative; display: flex; justify-content: center; padding: 0 0 24px 24px; }
.hero-main { width: 100%; max-width: 440px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 28px; }
.hero-before { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hero-before img {
  box-sizing: content-box;
  width: clamp(96px, 22vw, 140px); height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px;
  border: 4px solid #FFFFFF; transform: rotate(-5deg); box-shadow: 0 12px 30px rgba(28,36,51,0.18);
}
.tag-white { font-size: 12px; padding: 5px 11px; background: var(--surface); }

/* How it works */
.section-white { background: var(--surface); }
.how { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
.h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step-n { font-size: 14px; font-weight: 800; color: var(--accent); }
.step-t { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.step-d { font-size: 15px; line-height: 1.55; color: var(--muted); }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: stretch; }
.compare-col { display: flex; flex-direction: column; gap: 10px; }
.compare-head { display: flex; align-items: center; gap: 8px; }
.compare-head .note { font-size: 13px; color: var(--muted); }
.tag-sand { font-size: 13px; font-weight: 800; padding: 6px 12px; background: var(--sand); color: var(--muted); }
.tag-ink { font-size: 13px; font-weight: 800; padding: 6px 12px; background: var(--ink); color: #FFFFFF; }
.before-frame { flex: 1; min-height: 360px; border-radius: 22px; overflow: hidden; background: var(--sand); position: relative; }
.before-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); }
.views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.view { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg); }
.view img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.view-label { position: absolute; left: 8px; bottom: 8px; font-size: 12px; padding: 5px 10px; background: rgba(255,255,255,0.92); }

/* Looks */
.looks { padding-top: 88px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.looks-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px 48px; align-items: end; }
.looks-title { display: flex; flex-direction: column; gap: 10px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.looks .h2 { line-height: 1.08; text-wrap: balance; }
.looks-p { font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.look { display: flex; flex-direction: column; gap: 12px; }
.look-frame { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.look-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.look-label { position: absolute; left: 12px; top: 12px; font-size: 12px; padding: 6px 11px; background: rgba(255,255,255,0.94); }
.look-desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.price-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.price-line .note { font-size: 14px; color: var(--muted); }
.pill-ink { font-size: 15px; padding: 12px 16px; background: var(--ink); color: #FFFFFF; }

/* Listing text (dark) */
.section-dark { background: var(--ink); color: #FFFFFF; }
.adtext { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.adtext-copy { display: flex; flex-direction: column; gap: 18px; }
.adtext .kicker { color: var(--accent-light); }
.adtext .h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.adtext-p { font-size: 18px; line-height: 1.55; color: var(--dark-text); text-wrap: pretty; }
.points { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.point { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 700; }
.check { width: 24px; height: 24px; flex-shrink: 0; border-radius: 999px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.card {
  background: var(--bg); color: var(--ink); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 14px;
  max-width: 480px; width: 100%; justify-self: center; box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.tones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--sand); }
.tone {
  min-height: 42px; border: none; border-radius: 11px; cursor: pointer; padding: 0 4px;
  font: 600 14px var(--font); background: transparent; color: var(--muted);
}
.tone[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(28,36,51,0.14); }
.card-inner { background: var(--surface); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ad-head { display: flex; gap: 10px; align-items: center; }
.ad-thumb { width: 40px; height: 52px; object-fit: cover; object-position: 50% 15%; border-radius: 8px; }
.ad-title { font-size: 15px; font-weight: 800; }
.ad-meta { font-size: 12px; color: var(--muted); }
.ad-body { font-size: 14px; line-height: 1.62; white-space: pre-wrap; text-wrap: pretty; height: 360px; overflow-y: auto; }
.card-foot { font-size: 13px; color: var(--muted); text-align: center; }

/* Prices */
.prices { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.prices .h2 { max-width: 720px; text-wrap: balance; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-2); }
.footer-row { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.footer-brand { font-size: 13px; font-weight: 800; letter-spacing: 0; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.social { display: flex; gap: 8px; }
.social a { box-sizing: content-box; width: 36px; height: 36px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; }
.social a:hover { border-color: var(--accent); }
.legal-links { display: contents; }
.region { display: flex; align-items: center; gap: 8px; }
.region span { font-weight: 600; }
.region select {
  box-sizing: content-box; min-height: 36px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 8px;
  font: 600 13px var(--font); color: var(--ink); cursor: pointer;
}
.detect-note { padding-bottom: 24px; font-size: 11px; color: var(--muted-2); }

/* Legal page (/de/rechtliches/, /legal/) */
.legal-page a { color: var(--accent); text-decoration: underline; }
.legal-page a:hover { color: var(--ink); }
.legal-header { position: sticky; top: 0; background: rgba(244,241,236,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2); z-index: 2; }
.legal-header .wrap, .legal-main, .legal-footer .wrap { max-width: 760px; }
.legal-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.legal-header .lang-switch { border-color: var(--line); }
.legal-page .brand { font-size: 24px; letter-spacing: -1.1px; text-decoration: none; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-nav a { min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }
.legal-nav a:hover { color: var(--accent); }
.legal-main { padding-top: 32px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 56px; font-size: 15px; line-height: 1.65; }
.notice-en { background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.55; }
.notice-en[hidden] { display: none; }
.draft-banner { background: var(--accent-soft); border-radius: 14px; padding: 14px 16px; font-size: 13px; line-height: 1.55; }
.draft-banner strong { display: block; font-weight: 800; }
.legal-section { scroll-margin-top: 90px; display: flex; flex-direction: column; gap: 14px; }
.legal-section h1 { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.legal-section .sub { font-size: 13px; color: var(--muted); }
.legal-section h2 { margin: 8px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.legal-section p { white-space: pre-line; text-wrap: pretty; }
.legal-block { display: flex; flex-direction: column; gap: 6px; }
.legal-footer { border-top: 1px solid var(--line-2); }
.legal-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.legal-footer a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* "Last updated" line (legal, guide, FAQ) */
.updated { font-size: 13px; color: var(--muted); }
.updated time { font-weight: 600; }

/* Articles: the guide and the FAQ (generated from Markdown) */
.article { max-width: 760px; padding-top: 24px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 18px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--accent); }
.article-h1 { margin: 4px 0 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.article-body { font-size: 17px; line-height: 1.65; display: flex; flex-direction: column; gap: 16px; text-wrap: pretty; }
.article-body h2 { margin: 28px 0 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; scroll-margin-top: 24px; }
.article-body h3 { margin: 12px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.article-body p, .article-body ul, .article-body ol { margin: 0; }
.article-body ul, .article-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--ink); }
.article-body blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 14px 14px 0; color: var(--muted); }
.article-body hr { border: 0; border-top: 1px solid var(--line-2); margin: 8px 0; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--surface); padding: 1px 5px; border-radius: 5px; }
.article-cta { margin-top: 40px; background: var(--surface); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.article-cta .h2 { font-size: clamp(26px, 3.4vw, 34px); }
.article-cta p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Referral landing (/r/<code>) */
.ref-code { margin: 0; }
.ref-code code { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 28px; font-weight: 700; letter-spacing: 3px; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line-2); }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding-top: 48px; padding-bottom: 48px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
