/* Shared styles for app pages (home, privacy, support). Used by every app under _apps/.
   Per-app colours are set with CSS variables in a small <style> block generated into each page. */

@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('fonts/Barlow_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('fonts/Barlow_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('fonts/Barlow_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap;
  src: url('fonts/BarlowCondensed_800ExtraBold.ttf') format('truetype'); }

:root {
  --bg: #F4F0E6;
  --surface: #FFFFFF;
  --border: #E2DBCB;
  --ink: #1B1F1C;
  --muted: #4F5750;
  --primary: #1F4E79;
  --link: #1F4E79; /* text colour for links and accents: needs 4.5:1 on the page background */
  --on-primary: #FFFFFF;
  --soft: #DCE7F2;
  --focus: #1F4E79;
  --nalle-shirt: #1F4E79;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --surface: #1B1E21;
    --border: #2C3136;
    --ink: #F2EFE8;
    --muted: #B3BAB5;
    --primary: #2F6FB0;
    --link: #8FB8E6;
    --soft: #1C2B3A;
    --focus: #8FB8E6;
    --nalle-shirt: #2F6FB0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

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

/* ---- header ---- */
.site-header { padding: 16px 0 8px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; display: block; }
.brand span { font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 800; font-size: 30px; line-height: 1; color: var(--link); }

.lang { display: flex; flex-wrap: wrap; gap: 6px; }
.lang a {
  min-height: 40px; padding: 6px 12px; display: inline-flex; align-items: center;
  border: 2px solid var(--border); border-radius: 12px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px;
}
.lang a:hover { border-color: var(--primary); }
.lang a[aria-current='true'] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 4px 0 8px; }
.nav a {
  padding: 6px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 17px;
}
.nav a:hover { background: var(--soft); }
.nav a[aria-current='page'] { background: var(--soft); color: var(--link); }

/* ---- main ---- */
main { flex: 1; padding-bottom: 48px; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 6vw, 46px); }
h2 { font-size: clamp(24px, 4vw, 30px); margin-top: 40px; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }

.hero { display: grid; gap: 24px; align-items: center; padding: 24px 0 8px; }
.hero .tagline { font-size: clamp(20px, 3.4vw, 24px); font-weight: 600; color: var(--link); margin-bottom: 14px; }
.hero .mascot { width: min(240px, 60vw); justify-self: center; }
.hero .mascot svg { width: 100%; height: auto; display: block; overflow: visible; }
@media (min-width: 720px) {
  .hero { grid-template-columns: 1.3fr 1fr; gap: 40px; padding-top: 40px; }
  .hero .mascot { width: 280px; }
}

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; min-height: 56px;
  background: var(--surface); border: 2px dashed var(--border); border-radius: 14px; color: var(--ink);
}
.badge svg { width: 24px; height: 24px; flex: none; color: var(--link); }
.badge .small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.badge .big { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; }
.badge.live { border-style: solid; text-decoration: none; }
.badge.live:hover { border-color: var(--link); }
.badge .soon { margin-left: 4px; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--link); padding: 2px 10px; border-radius: 999px; }
.stores-note { color: var(--muted); font-size: 16px; }

.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 16px 0 0; padding: 0; list-style: none; }
.features li {
  margin: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
}
.features h3 { color: var(--link); margin-bottom: 6px; }
.features p { margin: 0; font-size: 17px; }

/* ---- documents (privacy, support) ---- */
.doc { max-width: 720px; padding-top: 24px; }
.doc .meta { color: var(--muted); font-size: 16px; }
.doc section { margin-top: 8px; }
.doc h2 { margin-top: 32px; }
.doc .callout {
  background: var(--soft); border-radius: 14px; padding: 14px 18px; margin: 18px 0;
}
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font-weight: 700; position: relative; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 600; color: var(--link);
}
.faq details[open] summary::after { content: '–'; }
.faq .answer { padding: 0 18px 6px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 32px; font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--link); }
.site-footer p { margin: 0 0 6px; }
.site-footer .trademark { margin-top: 10px; }

@media print {
  .site-header .lang, .skip, .badges { display: none; }
  body { background: #fff; color: #000; }
}
