/* Kiez Klartext – design system
   Palette "Berlin dusk": deep ink + calm teal (information) + warm coral (community/join) on warm paper.
   System fonts only: fast, and no third-party requests (GDPR-friendly). */

:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #f0ebe3;
  --tint: #e6f1ee;
  --text: #14222b;
  --muted: #56646d;
  --border: #e5ded3;

  --primary: #0d6b66;
  --primary-strong: #09504c;
  --primary-soft: #dcefeb;
  --on-primary: #ffffff;

  --accent: #c24e2c;
  --accent-strong: #a3401f;
  --accent-soft: #fbe8e0;
  --on-accent: #ffffff;

  --ink: #0f1f29;
  --ink-2: #123139;
  --on-ink: #f2f6f5;
  --on-ink-muted: #aac0c2;
  --mint: #7fd3c3;
  --sun: #f2b84b;

  --warn-bg: #fff5dc;
  --warn-border: #e6be5a;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 41, .06);
  --shadow: 0 1px 2px rgba(15, 31, 41, .05), 0 10px 30px -12px rgba(15, 31, 41, .18);
  --max: 1180px;
  --prose: 740px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c151b;
    --surface: #121e26;
    --surface-2: #17262f;
    --tint: #10292b;
    --text: #e6eef0;
    --muted: #9db0b6;
    --border: #22343c;
    --primary: #4cc2b4;
    --primary-strong: #7ad6ca;
    --primary-soft: #133230;
    --on-primary: #06231f;
    --accent: #ff8a66;
    --accent-strong: #ffa385;
    --accent-soft: #3a231b;
    --on-accent: #2a0f06;
    --ink: #08131a;
    --ink-2: #0d2a30;
    --warn-bg: #2f2812;
    --warn-border: #7d6528;
    --shadow-sm: none;
    --shadow: 0 0 0 1px var(--border);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.022em; font-weight: 800; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.18rem; letter-spacing: -.012em; }
p, ul, ol { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 28px; } }

.icon { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.icon-sm { width: 17px; height: 17px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; flex: none; }
.brand img { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name span { color: var(--primary); margin-left: .18em; }
.brand-tagline { font-size: .72rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
@media (max-width: 420px) { .site-header .brand-tagline { display: none; } }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .5rem .7rem; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 550; white-space: nowrap; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .6rem; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .88rem; text-decoration: none; border: 1px solid var(--border); background: var(--surface); }
.lang-switch:hover { color: var(--text); border-color: var(--muted); }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: .45rem; cursor: pointer; line-height: 0; }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: .6rem 16px 1rem; }
  .main-nav a { padding: .75rem .8rem; font-size: 1.02rem; }
  .header-actions { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 22px; height: 22px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-strong); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-light { background: #fff; color: #0f1f29; }
.btn-light:hover { color: #0f1f29; box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { color: #fff; border-color: #fff; }

.btn-join { background: var(--accent); color: var(--on-accent); padding: .45rem .95rem .45rem .45rem; gap: .5rem; font-size: .95rem; box-shadow: 0 6px 18px -8px var(--accent); }
.btn-join:hover { background: var(--accent-strong); color: var(--on-accent); }
.join-icons { display: inline-flex; }
.join-icons .brand { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); }
.join-icons .brand + .brand { margin-left: -4px; }
@media (max-width: 420px) { .btn-join-label { display: none; } .btn-join { padding: .4rem .55rem; } }

.join-buttons { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-social { background: var(--surface); color: var(--text); border-color: var(--border); padding: .6rem 1.15rem .6rem .6rem; box-shadow: var(--shadow-sm); }
.btn-social:hover { color: var(--text); border-color: var(--text); }
.btn-social .brand { width: 30px; height: 30px; }
.join-buttons.on-dark .btn-social { background: #fff; color: #0f1f29; border-color: #fff; }
.join-buttons.on-dark .btn-social:hover { box-shadow: 0 10px 26px -10px rgba(0,0,0,.6); }

/* ---------- Generic sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--surface-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: .5rem 0 0; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: .8rem; }
.eyebrow-on-dark { color: var(--mint); }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s; }
.chip { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: .2rem .65rem; border-radius: 999px; }
.chip-on-tint { background: var(--surface); margin-bottom: .9rem; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-ink);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(76, 194, 180, .28), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(255, 138, 102, .18), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: clamp(3.2rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
}
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.25fr .85fr; gap: 4rem; } }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.9rem); margin-bottom: .45em; }
.hero h1 .hl { color: var(--mint); }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--on-ink-muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1.6rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; color: var(--on-ink-muted); font-size: .92rem; }
.trust li { display: inline-flex; align-items: center; gap: .4rem; }
.trust .icon { color: var(--mint); width: 18px; height: 18px; }

.facts {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 1.5rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.facts h2 { font-size: 1.05rem; color: #fff; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.facts h2 .icon { color: var(--mint); }
.facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0; }
.facts dl div { background: rgba(255,255,255,.06); border-radius: 14px; padding: .85rem .9rem; }
.facts dt { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.facts dd { margin: .2rem 0 0; font-size: .86rem; color: var(--on-ink-muted); line-height: 1.35; }
.facts .facts-foot { margin: 1rem 0 0; font-size: .88rem; }
.facts .facts-foot a { color: var(--mint); font-weight: 700; }

/* ---------- Inner page hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--tint), var(--bg)); padding: 1.6rem 0 2.4rem; border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 860px; }
.page-hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 760px; margin-bottom: .8rem; }
.page-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .35rem; opacity: .5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Prose (article content) ---------- */
.prose { max-width: var(--prose); padding: 2.5rem 0 3.5rem; font-size: 1.08rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.4em; padding-top: .2em; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45em; padding-left: .2rem; }
.prose ul li::marker { color: var(--primary); }
.prose ol li::marker { color: var(--primary); font-weight: 800; }
.prose strong { color: var(--text); }
.prose .lead { font-size: 1.2rem; color: var(--muted); }
.prose .grid { margin: 1.4rem 0; }
.prose .sources { font-size: .93rem; color: var(--muted); }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 0 0 2rem; box-shadow: var(--shadow-sm); }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .6rem; padding: 0; }
.toc ol { margin: 0; columns: 2 220px; column-gap: 2rem; }
.toc li { break-inside: avoid; margin-bottom: .3rem; font-size: .98rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.callout { position: relative; border-radius: var(--radius-sm); padding: 1.1rem 1.25rem 1.1rem 1.35rem; margin: 1.6rem 0; background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--muted); }
.callout > strong:first-child { display: block; margin-bottom: .25rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-info { background: var(--primary-soft); border-color: transparent; border-left-color: var(--primary); }
.callout-warn { background: var(--warn-bg); border-color: transparent; border-left-color: var(--warn-border); }
.callout-emergency { background: var(--accent-soft); border-color: transparent; border-left-color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 1.4rem 0 1.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; line-height: 1.55; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 750; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .65rem; transition: border-color .15s; }
details[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
summary { cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; font-weight: 700; list-style: none; position: relative; line-height: 1.4; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 1.2rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details > div { padding: 0 1.2rem 1.1rem; color: var(--muted); }
details > div p:last-child { margin-bottom: 0; }

.byline { display: flex; gap: .9rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-size: .93rem; color: var(--muted); }
.byline .icon { color: var(--primary); margin-top: .15rem; }
.byline p { margin: 0; }
.byline strong { color: var(--text); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.topic-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.topic-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); color: var(--text); }
.topic-card p { color: var(--muted); font-size: .98rem; }
.topic-card .link-arrow { margin-top: auto; font-size: .95rem; color: var(--primary); }
.icon-tile { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); margin-bottom: 1.1rem; }
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile.coral { background: var(--accent-soft); color: var(--accent); }

.value-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.value h3 { display: flex; align-items: center; gap: .55rem; margin-bottom: .35rem; }
.value h3 .icon { color: var(--primary); }
.value p { color: var(--muted); margin: 0; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.post-art { position: relative; height: 132px; display: grid; place-items: center; overflow: hidden; }
.post-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.2px); background-size: 16px 16px; }
.post-art-icon { position: relative; width: 54px; height: 54px; color: #fff; stroke-width: 1.5; }
.art-teal { background: linear-gradient(135deg, #0d6b66, #123139); }
.art-coral { background: linear-gradient(135deg, #d35a35, #8d3519); }
.art-sun { background: linear-gradient(135deg, #e3a93c, #b4672a); }
.art-ink { background: linear-gradient(135deg, #24485a, #0f1f29); }
.art-mint { background: linear-gradient(135deg, #3fa596, #0d6b66); }
.post-card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.3rem 1.35rem; flex: 1; }
.post-card-body h3 { margin: .2rem 0 0; font-size: 1.15rem; line-height: 1.3; }
.post-card-body p { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-body .chip { align-self: flex-start; }
.post-meta { margin-top: auto; padding-top: .4rem; font-size: .85rem; color: var(--muted); }

/* ---------- Community feature ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.checklist .icon { color: var(--primary); margin-top: .15rem; }
.checklist li.no .icon { color: var(--accent); }

.chat-mock { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; max-width: 460px; justify-self: center; width: 100%; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; background: var(--ink); color: #fff; }
.chat-head img { width: 34px; height: 34px; }
.chat-head small { display: block; color: var(--on-ink-muted); font-size: .78rem; }
.chat-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; background: var(--surface-2); }
.bubble { max-width: 85%; padding: .6rem .85rem; border-radius: 16px; font-size: .92rem; line-height: 1.45; box-shadow: var(--shadow-sm); }
.bubble small { display: block; font-weight: 700; font-size: .75rem; margin-bottom: .1rem; color: var(--primary); }
.bubble.in { background: var(--surface); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.out { background: var(--primary-soft); border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble.mod { align-self: center; max-width: 95%; background: var(--accent-soft); font-size: .82rem; text-align: center; border-radius: 10px; }
.bubble.mod small { color: var(--accent); }

/* group cards on community page */
.group-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin: 1.5rem 0 1rem; }
.group-card { display: flex; flex-direction: column; gap: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.group-card .brand { width: 48px; height: 48px; margin-bottom: .4rem; }
.group-card h3 { margin: 0; }
.group-card p { color: var(--muted); margin: 0 0 .8rem; }
.group-card .btn { margin-top: auto; align-self: flex-start; }
.group-card .btn-tg { background: #1a72b3; color: #fff; }
.group-card .btn-wa { background: #128047; color: #fff; }
.group-card .btn-tg:hover, .group-card .btn-wa:hover { filter: brightness(1.1); color: #fff; }
.rules { counter-reset: rule; list-style: none; padding: 0 !important; display: grid; gap: .7rem; }
.rules li { counter-increment: rule; position: relative; padding: .9rem 1rem .9rem 3.3rem !important; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 0 !important; }
.rules li::before { content: counter(rule); position: absolute; left: .9rem; top: .85rem; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .88rem; }
.rules li:first-child { border-color: var(--accent); background: var(--accent-soft); }
.rules li:first-child::before { background: var(--accent); color: var(--on-accent); }

/* ---------- Join band (end of every page) ---------- */
.join-band { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.join-band-inner {
  display: grid; gap: 1.8rem; align-items: center; color: var(--on-ink);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 138, 102, .28), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(76, 194, 180, .25), transparent 60%),
    linear-gradient(135deg, var(--ink-2), var(--ink));
  border-radius: 28px; padding: clamp(1.8rem, 4.5vw, 3.2rem);
}
@media (min-width: 900px) { .join-band-inner { grid-template-columns: 1.4fr auto; gap: 3rem; } }
.join-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.join-band p { color: var(--on-ink-muted); max-width: 560px; }
.join-band-rule { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .92rem; margin: 0; }
.join-band-rule .icon { color: #ff8a66; }
.join-band-rule a { color: #fff; font-weight: 700; }
.join-band .join-buttons { flex-direction: column; }
@media (max-width: 899px) { .join-band .join-buttons { flex-direction: row; } }

/* ---------- Emergency strip ---------- */
.help-strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.help-item { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.help-item:hover { border-color: var(--accent); color: var(--text); }
.help-item .icon-tile { margin: 0; width: 44px; height: 44px; }
.help-item strong { display: block; font-size: 1.15rem; }
.help-item small { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: .95rem; padding-bottom: 84px; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding-top: 3.5rem; padding-bottom: 2.2rem; }
.footer-brand { grid-column: 1 / -1; max-width: 420px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.brand-on-dark { color: #fff; margin-bottom: .9rem; }
.brand-on-dark .brand-name span { color: var(--mint); }
.brand-on-dark .brand-tagline { color: var(--on-ink-muted); }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: .4rem 0 .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.social-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem .35rem .35rem; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff !important; font-weight: 650; font-size: .9rem; }
.social-pill:hover { background: rgba(255,255,255,.16); text-decoration: none !important; }
.social-pill .brand { width: 26px; height: 26px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem; padding-bottom: 1.4rem; font-size: .85rem; }
.footer-bottom a { color: #fff; }

/* ---------- Floating join dock (on every page) ---------- */
.join-dock {
  position: fixed; z-index: 70; right: 20px; bottom: 20px;
  display: flex; align-items: center; gap: .45rem;
  padding: .45rem .45rem .45rem 1.1rem; border-radius: 999px;
  background: rgba(15, 31, 41, .94); color: #fff;
  box-shadow: 0 14px 40px -12px rgba(15, 31, 41, .55), 0 0 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: dock-in .5s .6s both cubic-bezier(.2, .8, .2, 1);
}
.join-dock-text { display: flex; flex-direction: column; line-height: 1.2; margin-right: .3rem; }
.join-dock-text strong { font-size: .92rem; }
.join-dock-text small { font-size: .74rem; color: var(--on-ink-muted); }
.dock-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: transform .15s; }
.dock-btn:hover { transform: scale(1.08); }
.dock-btn .brand { width: 40px; height: 40px; }
.dock-toggle { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.dock-toggle:hover { background: rgba(255,255,255,.2); }
.join-dock.min { padding-left: .45rem; }
.join-dock.min .join-dock-text { display: none; }
.join-dock.min .dock-toggle { transform: rotate(90deg); }
@keyframes dock-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .join-dock { left: 12px; right: 12px; bottom: 12px; justify-content: flex-end; }
  .join-dock-text { margin-right: auto; }
  .join-dock.min { left: auto; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 5rem 0 3rem; }
.notfound .big { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; letter-spacing: -.05em; color: var(--primary); line-height: 1; margin: 0; }
.notfound .join-buttons, .notfound .hero-actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .join-band, .join-dock { display: none !important; }
}
