/* WaldFund – Website. "Dunkler Wald": the app's own tokens (src/theme/v2.ts), fonts served from here (no third-party requests). */

@font-face { font-family: 'Urbanist'; src: url('fonts/Urbanist_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Urbanist'; src: url('fonts/Urbanist_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Urbanist'; src: url('fonts/Urbanist_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #0D1511;
  --raised: #16271D;
  --glow: #1D3326;
  --text: #F1F4EE;
  --soft: #C9D3CB;
  --muted: #A8B5AA;
  --faint: #7E8C82;
  --reading: #D6DED8;
  --accent: #B9E27C;
  --accent-pressed: #A5CF66;
  --accent-soft: rgba(185, 226, 124, 0.16);
  --accent-glow: rgba(185, 226, 124, 0.30);
  --on-accent: #10200F;
  --reward: #E9C46A;
  --danger: #F08A8D;
  --danger-soft: rgba(229, 72, 77, 0.14);
  --glass: rgba(241, 244, 238, 0.06);
  --glass-strong: rgba(241, 244, 238, 0.10);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.18);
  --veil: rgba(13, 21, 17, 0.72);

  --display: 'Urbanist', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'Manrope', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;

  --radius-card: 28px;
  --radius-tile: 20px;
  --gutter: 20px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
.kicker {
  margin: 0;
  font: 600 12px/16px var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker.reward { color: var(--reward); }
/* The app's signature headline: a light line, then a bold one. */
.headline { margin: 0; font-family: var(--display); color: var(--text); text-wrap: balance; }
.headline .light, .headline .bold { display: block; }
.headline .light { font-weight: 400; }
.headline .bold { font-weight: 700; }
.headline.h-display { font-size: clamp(42px, 5vw, 66px); line-height: 1.02; letter-spacing: -0.02em; }
.headline.h-section { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.015em; }
.headline.h-card { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.12; letter-spacing: -0.01em; }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--soft); max-width: 34em; }
.copy { margin: 0; color: var(--soft); max-width: 34em; }
.hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Header ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--ground);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(13, 21, 17, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  text-decoration: none;
  font: 600 13px/1 var(--body);
  letter-spacing: 0.2em;
}
.brand:hover { color: var(--text); background: var(--glass-strong); }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 13px/1 var(--body);
  white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(185, 226, 124, 0.18); }
@media (max-width: 760px) { .nav a { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: url('img/forest-bokeh.jpg') center / cover no-repeat;
  opacity: 0.75;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 74% 46%, rgba(185, 226, 124, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(13, 21, 17, 0.35) 0%, rgba(13, 21, 17, 0.55) 60%, var(--ground) 100%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: 48px;
  padding-block: clamp(48px, 8vw, 110px) clamp(56px, 8vw, 120px);
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.promises { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.promises li { display: flex; align-items: center; gap: 14px; color: var(--soft); font-size: 16px; }
.promises img { width: 36px; height: 36px; flex: none; }

.stores { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-start; margin-top: 8px; }
.store { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.store img { height: 50px; width: auto; }
/* Google's badge carries clear space above and below (visible 192 of 250 px): scaled so both badges show the same height. */
.store img.google-play { height: 65px; margin-block: -7.5px; }
.store .soon { font: 600 11px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.hero-phone { position: relative; display: flex; justify-content: center; min-width: 0; }
.phone {
  position: relative;
  width: min(330px, 76vw);
  padding: 11px;
  border-radius: 58px;
  background: linear-gradient(160deg, #26332B, #0A0F0C 45%, #1A231E);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.10),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.06),
    0 50px 90px rgba(0, 0, 0, 0.55),
    0 0 140px rgba(185, 226, 124, 0.14);
  flex: none;
}
.phone .screen { display: block; width: 100%; aspect-ratio: 1206 / 2622; border-radius: 47px; object-fit: cover; }
.phone .island {
  position: absolute;
  top: calc(11px + 1.3%);
  left: 50%;
  width: 31%;
  height: 3.7%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

/* Leaves fall through the hero like on the app's start screen. */
.leaves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.leaf {
  position: absolute;
  top: -60px;
  width: 34px;
  opacity: 0.9;
  animation: fall 16s linear infinite;
}
.leaf:nth-child(1) { left: 8%;  animation-delay: -2s;  animation-duration: 17s; }
.leaf:nth-child(2) { left: 46%; animation-delay: -9s;  animation-duration: 19s; width: 26px; }
.leaf:nth-child(3) { left: 63%; animation-delay: -5s;  animation-duration: 15s; width: 30px; }
.leaf:nth-child(4) { left: 88%; animation-delay: -13s; animation-duration: 21s; width: 24px; }
.leaf:nth-child(5) { left: 28%; animation-delay: -16s; animation-duration: 23s; width: 22px; }
@keyframes fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  25%  { transform: translate3d(40px, 25vh, 0) rotate(80deg); }
  50%  { transform: translate3d(-20px, 50vh, 0) rotate(160deg); }
  75%  { transform: translate3d(30px, 75vh, 0) rotate(250deg); }
  100% { transform: translate3d(0, 110vh, 0) rotate(340deg); }
}
@media (prefers-reduced-motion: reduce) { .leaves { display: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-phone { order: 2; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }

/* Feature rows: the app's own cards, cut out of the real screens. */
.features { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 128px); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.feature:nth-child(even) .shot { order: 2; }
.feature .text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.shot {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 440px);
}
.shot::before {
  content: "";
  position: absolute;
  inset: 10% -8% -6%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(185, 226, 124, 0.16), transparent);
  filter: blur(10px);
}
.shot img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--glass-border);
}
/* Cards the app's welcome fades at the bottom keep that fade here. */
.shot.fade img {
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  box-shadow: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--soft);
  font: 600 13px/1.2 var(--body);
}
.chips li.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 30em;
}
.note b { color: var(--soft); font-weight: 600; }
@media (max-width: 820px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .shot { order: 0; }
}

/* Two smaller tiles side by side. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(72px, 10vw, 128px); }
.tile {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(241, 244, 238, 0.07), rgba(241, 244, 238, 0.025));
  border: 1px solid var(--glass-border);
  overflow: hidden;
  min-width: 0;
}
.tile .shot { width: 100%; margin-top: 8px; }
.tile .shot img { box-shadow: none; }
@media (max-width: 820px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Stufen ---------- */
.ladder {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  counter-reset: stufe;
}
.ladder li {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 10px 18px;
  border-radius: var(--radius-tile);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  text-align: center;
  counter-increment: stufe;
}
.ladder li::before {
  content: "Stufe " counter(stufe);
  font: 600 11px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.ladder img { width: 84px; height: 84px; }
.ladder strong { font: 600 18px/1.2 var(--display); color: var(--text); }
.ladder span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.ladder li:last-child { border-color: rgba(233, 196, 106, 0.45); background: linear-gradient(180deg, rgba(233, 196, 106, 0.14), rgba(233, 196, 106, 0.03)); }
.ladder li:last-child strong { color: var(--reward); }
@media (max-width: 980px) { .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Safety band ---------- */
.safety { position: relative; isolation: isolate; overflow: hidden; }
.safety::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: url('img/forest-path.jpg') center 30% / cover no-repeat;
}
.safety::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--ground) 0%, rgba(13, 21, 17, 0.86) 18%, rgba(13, 21, 17, 0.9) 82%, var(--ground) 100%);
}
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rule {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px;
  border-radius: var(--radius-tile);
  background: rgba(13, 21, 17, 0.72);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  min-width: 0;
}
.rule h3 { margin: 0; font: 600 21px/1.25 var(--display); color: var(--text); }
.rule p { margin: 0; color: var(--soft); font-size: 15px; }
.rule .num { font: 700 13px/1 var(--body); letter-spacing: 0.12em; color: var(--accent); }
.rule.stop { border-color: rgba(229, 72, 77, 0.4); background: linear-gradient(180deg, rgba(43, 21, 23, 0.82), rgba(26, 18, 19, 0.82)); }
.rule.stop .num { color: var(--danger); }
.emergency {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--danger-soft);
  border: 1px solid rgba(229, 72, 77, 0.32);
  color: var(--soft);
  font-size: 15px;
}
.emergency strong { color: var(--text); }
@media (max-width: 900px) { .rules { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  border-radius: var(--radius-tile);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px;
  font: 600 18px/1.35 var(--display);
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > p { margin: 0; padding: 0 22px 20px; color: var(--soft); max-width: 40em; }

/* ---------- Closing call ---------- */
.closing { text-align: center; }
.closing .card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 36px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(185, 226, 124, 0.16), transparent 70%),
    linear-gradient(180deg, var(--raised), var(--ground));
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.closing .wreath { width: 132px; height: 132px; }
.closing .stores { justify-content: center; }
.closing .lead { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 20px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.trademarks { margin: 0; font-size: 12px; line-height: 1.5; color: var(--faint); max-width: 70em; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.legal .wrap { max-width: 820px; }
.legal-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.legal-head .stand { margin: 0; color: var(--muted); font-size: 14px; }
.legal-body { color: var(--reading); font-size: 16px; line-height: 1.7; }
.legal-body h2 { margin: 48px 0 12px; font: 700 26px/1.2 var(--display); color: var(--text); letter-spacing: -0.01em; text-wrap: balance; }
.legal-body h3 { margin: 28px 0 8px; font: 600 19px/1.3 var(--display); color: var(--text); }
.legal-body p { margin: 0 0 14px; max-width: 42em; }
.legal-body ul { margin: 0 0 16px; padding-left: 1.2em; max-width: 42em; }
.legal-body li { margin: 0 0 6px; }
.legal-body li::marker { color: var(--accent); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { word-break: break-word; }
.legal-body .todo { background: rgba(233, 196, 106, 0.18); color: var(--reward); border-radius: 6px; padding: 0 6px; font-weight: 600; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.legal-toc a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--soft);
  text-decoration: none;
  font: 600 13px/1.2 var(--body);
}
.legal-toc a:hover { color: var(--text); background: var(--glass-strong); }
