/* Chat Inspector - one stylesheet for every page.
   Colours are the store-screenshot palette (tools/store-screenshots/template.html). */

@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(/assets/fonts/fredoka-600.woff2) format("woff2"); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(/assets/fonts/fredoka-700.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/assets/fonts/nunito-400.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(/assets/fonts/nunito-600.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/assets/fonts/nunito-800.woff2) format("woff2"); }

:root {
  --green: #1E6B4F;
  --green-deep: #155239;
  --green-soft: #E6F2EB;
  --green-line: #CFE4D7;
  --ink: #2B2B2B;
  --ink-soft: #5A5A55;
  --bg: #FBF5E6;
  --bg-2: #F2E6CC;
  --surface: #FFFDF7;
  --line: #E9DDC2;
  --fox: #E8791E;
  --on-green: #FFFFFF;
  --shadow: 0 1px 2px rgba(58, 42, 20, .06), 0 8px 28px rgba(58, 42, 20, .08);
  --radius: 22px;
  --display: Fredoka, Nunito, "Segoe UI", system-ui, sans-serif;
  --body: Nunito, "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #8ED9B7;
    --green-deep: #B5E8D0;
    --green-soft: #1C2A24;
    --green-line: #2A3D34;
    --ink: #F2F2EE;
    --ink-soft: #B9BDB6;
    --bg: #121714;
    --bg-2: #0E1210;
    --surface: #1A211D;
    --line: #28312C;
    --on-green: #0F1512;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--fox); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.site-nav .btn { color: var(--on-green); }
/* Phones keep only the language switch and the button. */
@media (max-width: 640px) { .site-nav a:not(.btn):not(.lang-switch) { display: none; } }
/* Narrow phones: brand + language switch only; the store badges are right below in the hero. */
@media (max-width: 480px) { .site-nav .btn { display: none; } }
.brand, .site-nav .btn { white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--green); color: var(--on-green); font-weight: 800; text-decoration: none; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.btn:hover { background: var(--green-deep); color: var(--on-green); }
.btn-lg { padding: 15px 26px; font-size: 18px; }
.btn-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 520px at 78% 20%, var(--green-soft), transparent 70%), linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: var(--green-soft); border: 1px solid var(--green-line); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-family: var(--display); font-weight: 700; color: var(--green); font-size: clamp(42px, 7vw, 72px); line-height: 1.02; letter-spacing: -.015em; margin: 18px 0 16px; text-wrap: balance; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink); margin: 0 0 28px; max-width: 34ch; }
.hero-fox { justify-self: center; width: min(100%, 320px); filter: drop-shadow(0 18px 30px rgba(58, 42, 20, .18)); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.hero-notes li::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 800; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 36px; gap: 8px; }
  .hero-fox { order: -1; width: 180px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .badges, .hero-notes { justify-content: center; }
}

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges a { display: block; line-height: 0; border-radius: 10px; }
.badges .apple { height: 48px; width: auto; }
/* Google's PNG includes its own padding; at 1.45x it lines up with Apple's badge. */
.badges .google { height: 70px; width: auto; margin: -11px -9px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
h2 { font-family: var(--display); font-weight: 700; color: var(--green); font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 12px; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.25; margin: 0 0 8px; color: var(--ink); }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }

/* Screenshots: one row that scrolls sideways on every width. */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 24px; margin: 0 auto; max-width: 1240px; scrollbar-width: thin; }
.shots img { flex: 0 0 auto; width: 250px; aspect-ratio: 9 / 16; border-radius: 20px; scroll-snap-align: center; box-shadow: var(--shadow); background: var(--bg-2); }
@media (min-width: 1100px) { .shots { justify-content: safe center; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .icon { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 16px; }
.card li + li { margin-top: 4px; }

.band { background: var(--green-soft); border-top: 1px solid var(--green-line); border-bottom: 1px solid var(--green-line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--on-green); font-family: var(--display); font-weight: 700; font-size: 19px; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 32px; margin: 0 0 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.cta { text-align: center; }
.cta img.fox { width: 150px; margin: 0 auto 8px; }
.cta .badges { justify-content: center; margin-top: 24px; }

/* ---------- Prose pages (privacy, terms, impressum...) ---------- */
.page-head { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--display); font-weight: 700; color: var(--green); font-size: clamp(34px, 5vw, 50px); line-height: 1.05; margin: 0; }
.page-head p { margin: 10px 0 0; color: var(--ink-soft); }
.prose { padding: 40px 0 72px; }
.prose h2 { font-size: 26px; margin: 36px 0 10px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.note { background: var(--green-soft); border: 1px solid var(--green-line); border-radius: 16px; padding: 16px 18px; margin: 24px 0; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.fill { background: #FFE9A8; color: #5A4300; padding: 0 4px; border-radius: 4px; font-weight: 700; }
address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--ink-soft); }
.site-footer .wrap { display: grid; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.site-footer p { margin: 0; max-width: 80ch; }

/* ---------- Quiz landing (/q/CODE) and 404 ---------- */
.center-page { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 16px 56px; background: radial-gradient(900px 480px at 50% 0%, var(--green-soft), transparent 70%), var(--bg); }
.quiz-card { width: 100%; max-width: 400px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px 24px 26px; box-shadow: var(--shadow); }
.quiz-card img.fox { width: 128px; margin: -4px auto 6px; }
.quiz-card h1 { font-family: var(--display); font-weight: 700; color: var(--green); font-size: 28px; line-height: 1.1; margin: 0 0 6px; }
.quiz-card .sub { margin: 0; color: var(--ink-soft); }
.code-label { margin-top: 18px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.code { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 20px; padding: 10px 12px 10px 20px; border-radius: 16px; background: var(--green-soft); border: 1px solid var(--green-line); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; font-size: 28px; letter-spacing: .18em; color: var(--ink); }
.copy { font: inherit; font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: 0; padding: 6px 10px; border-radius: 10px; border: 0; background: var(--surface); color: var(--green); cursor: pointer; }
.quiz-card .btn { width: 100%; }
.quiz-card .fine { font-size: 14px; color: var(--ink-soft); margin: 18px 0 0; line-height: 1.45; }
.quiz-card .badges { justify-content: center; margin-top: 12px; }

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

/* ---------- Languages ---------- */
.lang-switch { font-weight: 800; font-size: 14px; letter-spacing: .04em; color: var(--ink) !important; text-decoration: none; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.lang-switch:hover { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green) !important; }
.lang-hint { background: var(--green-soft); border-bottom: 1px solid var(--green-line); font-size: 15px; }
.lang-hint .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.lang-hint a { font-weight: 800; }
.lang-hint button { font: inherit; border: 0; background: none; color: var(--ink-soft); cursor: pointer; padding: 2px 6px; font-size: 18px; line-height: 1; }

/* ---------- Tables in prose (privacy policy) ---------- */
.table-scroll { overflow-x: auto; margin: 16px 0 24px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 800; color: var(--ink); background: var(--green-soft); }
.prose td { color: var(--ink-soft); }
.prose .updated { color: var(--ink-soft); font-size: 15px; }
