/* Deliberately self-contained: no web fonts from a CDN, no CDN at all, no
   third-party request of any kind. The privacy policy promises exactly that,
   so keep it true -- the display face is served from /assets/fonts. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #f3f6f4;
  --surface: #ffffff;
  --ink: #101a17;
  --ink-soft: #4a5b55;
  --ink-faint: #7d8c87;
  --line: #dce4e0;
  --accent: #0e5a4c;
  --accent-soft: #e2eeea;
  --deep: #0a2a24;
  --deep-2: #061814;
  --mint: #7fe3c4;
  --on-deep: #eaf5f1;
  --on-deep-soft: #9fbdb4;
  --bubble-me: #d6efe4;
  --bubble-bot: #ffffff;
  --shadow-lg: 0 30px 70px rgba(6, 24, 20, .35);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", var(--sans);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0c1211;
    --surface: #141d1a;
    --ink: #e6ece9;
    --ink-soft: #a5b4ae;
    --ink-faint: #7b8b85;
    --line: #253230;
    --accent: #63cfb2;
    --accent-soft: #16302a;
    --deep: #071915;
    --deep-2: #040f0d;
    --bubble-me: #1d3630;
    --bubble-bot: #1a2422;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
h1, h2, h3, .logo { font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; }

/* --- shared chrome ------------------------------------------------------- */
header.site { padding: 24px 0; border-bottom: 1px solid var(--line); }
header.site .wrap, header.site .wrap-wide { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 21px; text-decoration: none; color: var(--ink); }
.logo span { color: var(--accent); }
.claim { color: var(--ink-faint); font-size: 15px; }

footer.site { border-top: 1px solid var(--line); padding: 26px 0 46px; font-size: 15px; color: var(--ink-faint); }
footer.site .wrap, footer.site .wrap-wide { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--ink-soft); }
.spacer { flex: 1; }

h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.14; margin: 0 0 18px; font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 17px; margin: 26px 0 8px; font-family: var(--sans); letter-spacing: 0; }
p, li { max-width: 66ch; }
.lede { font-size: 19px; color: var(--ink-soft); }
main { padding: 44px 0 72px; }
.updated { color: var(--ink-faint); font-size: 15px; }

/* --- legal pages --------------------------------------------------------- */
.trust { padding-left: 20px; }
.trust li { margin-bottom: 8px; }
.note { background: var(--accent-soft); border-radius: 6px; padding: 16px 18px; margin: 30px 0; font-size: 16px; }
.note p { margin: 0; max-width: none; }
.note p + p { margin-top: 10px; }
table.data { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15.5px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--ink-faint); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.tablewrap { overflow-x: auto; }
dl.facts { margin: 18px 0; }
dl.facts dt { font-weight: 600; margin-top: 14px; }
dl.facts dd { margin: 2px 0 0; color: var(--ink-soft); }
main .steps { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
main .steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; max-width: none; }
main .steps b { display: block; margin-bottom: 2px; }
main .steps span { color: var(--ink-soft); font-size: 15.5px; }

/* --- home: hero band ----------------------------------------------------- */
body.home { background: var(--ground); }
.hero {
  background:
    radial-gradient(120% 90% at 78% 15%, rgba(127, 227, 196, .16), transparent 60%),
    radial-gradient(90% 70% at 10% 90%, rgba(127, 227, 196, .07), transparent 55%),
    linear-gradient(168deg, var(--deep) 0%, var(--deep-2) 100%);
  color: var(--on-deep);
  padding: 22px 0 0;
}
.hero .logo { color: var(--on-deep); }
.hero .logo span { color: var(--mint); }
.hero-nav { display: flex; align-items: center; gap: 20px; }
.hero-nav .spacer { flex: 1; }
.hero-nav a.quiet { color: var(--on-deep-soft); text-decoration: none; font-size: 15px; }
.hero-nav a.quiet:hover { color: var(--on-deep); text-decoration: underline; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding-top: 52px; /* horizontal padding stays with .wrap-wide */
}
.hero h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.03; margin: 0 0 20px; }
.hero .lede { color: var(--on-deep-soft); font-size: clamp(17px, 2vw, 20px); max-width: 46ch; }
.eyebrow {
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mint); margin: 0 0 16px; font-weight: 600;
}
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.hero-facts li {
  font-size: 13.5px; color: var(--on-deep-soft); border: 1px solid rgba(127, 227, 196, .28);
  border-radius: 999px; padding: 5px 13px; max-width: none;
}
.hero-bottom { padding-top: 38px; padding-bottom: 44px; }
.hero-bottom p { color: var(--on-deep-soft); margin: 0; font-size: 15px; }

/* --- the phone ----------------------------------------------------------- */
.stage { display: flex; justify-content: center; align-items: flex-end; }
.phone {
  width: 300px; height: 604px; flex: none; position: relative;
  background: #0b1310; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(127, 227, 196, .16), inset 0 0 0 1.5px #1d2b27;
}
.screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: #eef3f0; display: flex; flex-direction: column;
  color: var(--ink); /* the phone sits inside the dark hero -- do not inherit */
}
@media (prefers-color-scheme: dark) { .screen { background: #0f1614; } }
.island {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 14px; background: #0b1310; z-index: 3;
}
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px 6px; font-size: 12px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.statusbar .bat { width: 22px; height: 11px; border: 1.4px solid currentColor; border-radius: 3px; position: relative; opacity: .8; }
.statusbar .bat::after { content: ""; position: absolute; inset: 1.5px; right: 6px; background: currentColor; border-radius: 1px; }
.chathead {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 17px;
}
@media (prefers-color-scheme: dark) { .avatar { color: #061814; } }
.chathead b { font-size: 15px; display: block; line-height: 1.2; }
.chathead small { color: var(--ink-faint); font-size: 12px; }

.thread {
  flex: 1; overflow: hidden; padding: 14px 12px 8px;
  display: flex; flex-direction: column; gap: 8px;
  /* A chat sits at its newest message: if anything is cut off it must be the
     old top, never the answer at the bottom. */
  justify-content: flex-end;
  background:
    radial-gradient(circle at 20% 10%, rgba(14, 90, 76, .05) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(14, 90, 76, .05) 0 2px, transparent 2px);
  background-size: 46px 46px;
}
.msg {
  max-width: 84%; padding: 8px 11px; border-radius: 14px; font-size: 13.5px;
  line-height: 1.45; white-space: pre-line; box-shadow: 0 1px 1px rgba(6, 24, 20, .07);
  opacity: 0; transform: translateY(8px);
  animation: pop .32s cubic-bezier(.2, .8, .3, 1) forwards;
}
.msg.me { align-self: flex-end; background: var(--bubble-me); border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: var(--bubble-bot); border-bottom-left-radius: 5px; }
.msg .meta { display: block; font-size: 10.5px; color: var(--ink-faint); text-align: right; margin-top: 3px; }
@keyframes pop { to { opacity: 1; transform: none; } }
.msg.shown, .divider.shown { opacity: 1; transform: none; animation: none; }

.divider {
  align-self: center; font-size: 11px; color: var(--ink-faint);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 11px;
  opacity: 0; animation: pop .32s ease forwards;
}
.voice { display: flex; align-items: center; gap: 9px; }
.voice .play {
  width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--accent);
  display: grid; place-items: center;
}
.voice .play::after { content: ""; border-left: 8px solid var(--surface); border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.wave i { width: 2.5px; border-radius: 2px; background: var(--accent); opacity: .55; height: 30%; display: block; }
.playing .wave i { animation: bob 1s ease-in-out infinite; }
@keyframes bob { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.dur { font-size: 11.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 13px;
  background: var(--bubble-bot); border-radius: 14px; border-bottom-left-radius: 5px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); display: block; animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.composer {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px 16px;
  background: var(--surface); border-top: 1px solid var(--line);
}
.composer .field {
  flex: 1; height: 34px; border-radius: 999px; background: var(--ground);
  border: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 13px; font-size: 12.5px; color: var(--ink-faint);
}
.mic {
  width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--accent);
  display: grid; place-items: center; position: relative;
}
.mic::before { content: ""; width: 9px; height: 15px; border-radius: 5px; background: var(--surface); }
.mic::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(14, 90, 76, .45);
}
.recording .mic::after { animation: ring 1.5s ease-out infinite; }
@keyframes ring { to { box-shadow: 0 0 0 18px rgba(14, 90, 76, 0); } }
.recording .field::before { content: "Nimmt auf …"; color: var(--accent); font-weight: 600; }
.caption { text-align: center; color: var(--on-deep-soft); font-size: 13.5px; margin: 18px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg, .divider { opacity: 1; transform: none; animation: none; }
  .playing .wave i, .recording .mic::after, .typing i { animation: none; }
}

/* --- home: content ------------------------------------------------------- */
.band { padding: 66px 0; }
.band + .band { padding-top: 0; }
.band h2 { margin-bottom: 10px; }
.band .lede { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 0; list-style: none; padding: 0; }
.cards li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 20px; max-width: none;
}
.cards .num {
  font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--accent);
  display: block; margin-bottom: 10px; letter-spacing: .04em;
}
.cards b { display: block; margin-bottom: 5px; font-size: 16.5px; }
.cards span { color: var(--ink-soft); font-size: 15px; }

.pledges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; list-style: none; padding: 0; margin: 24px 0 0; }
.pledges li { max-width: none; padding-left: 26px; position: relative; color: var(--ink-soft); font-size: 15.5px; }
.pledges li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.pledges b { color: var(--ink); }

.soon { background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 22px 24px; margin-top: 24px; }
.soon h3 { margin-top: 0; }
.soon .tag {
  display: inline-block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 3px;
  padding: 1px 7px; margin-bottom: 12px; font-weight: 600;
}
.soon ul { padding-left: 20px; margin: 0; color: var(--ink-soft); }
.soon li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 38px; }
  .cards { grid-template-columns: 1fr; }
  .pledges { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .phone { width: 100%; max-width: 300px; height: 560px; }
}
