/* Uncle Oak: Soft Vector. Rounded shapes, bold #2B3A2E outlines, Fredoka. Palette from CLAUDE.md. */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --outline: #2b3a2e;
  --ink: #22301f;
  --ink-soft: #55624f;
  --bg: #f2f8ea;
  --card: #e4f1d6;
  --sky: #bfe6fa;
  --sky-top: #9dd8f6;
  --meadow: #d6edc4;
  --leaf: #7bd36b;
  --petal: #ffb547;
  --raindrop: #5bc0f8;
  --blush: #ff8fa3;
  --link: #2e7d32;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: var(--link); font-weight: 500; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 22px; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 3px solid var(--outline); }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { text-decoration: underline; }

/* Chunky pill, like the app's buttons */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--leaf); color: var(--outline);
  border: 3px solid var(--outline); box-shadow: 0 5px 0 var(--outline);
  font-weight: 600; font-size: 18px; text-decoration: none; white-space: nowrap;
}
.pill.soon { background: #fff; }
.pill img { width: 18px; }

/* Hero: the app icon's sky fading into a meadow */
.hero { background: linear-gradient(var(--sky-top), var(--sky) 55%, var(--meadow)); border-bottom: 4px solid var(--outline); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: end; gap: 24px; padding-top: 24px; }
.hero-copy { padding: 40px 0 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); color: var(--ink); }
.hero p { font-size: 21px; color: #2f4152; max-width: 30em; margin: 18px 0 28px; }
.hero-note { display: block; margin-top: 14px; font-size: 15px; color: #3c5568; }

.scene { position: relative; height: 440px; }
.scene .hill { position: absolute; z-index: 0; left: -45%; right: -45%; bottom: -70px; height: 170px; background: var(--leaf); border: 4px solid var(--outline); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.scene .oak { position: absolute; z-index: 1; width: 230px; bottom: 62px; left: 4%; }
.scene .frankie { position: absolute; z-index: 1; width: 150px; bottom: 70px; left: 52%; animation: sway 4s ease-in-out infinite; transform-origin: 50% 100%; }
.scene .bubble { position: absolute; z-index: 2; left: 0; top: 34px; max-width: 250px; background: #fff; border: 3px solid var(--outline); border-radius: 22px; padding: 12px 16px; font-size: 16px; color: var(--ink); }
.scene .bubble::after { content: ""; position: absolute; left: 52px; bottom: -14px; width: 22px; height: 22px; background: #fff; border-right: 3px solid var(--outline); border-bottom: 3px solid var(--outline); transform: rotate(45deg); }
.scene .drop { position: absolute; width: 18px; top: -30px; animation: fall 2.6s linear infinite; opacity: 0; }
.scene .drop:nth-child(1) { left: 58%; animation-delay: 0s; }
.scene .drop:nth-child(2) { left: 70%; animation-delay: .9s; }
.scene .drop:nth-child(3) { left: 82%; animation-delay: 1.7s; }
.scene .drop:nth-child(4) { left: 64%; animation-delay: 2.2s; }
@keyframes fall { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(330px); opacity: 0; } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .scene .drop, .scene .frankie { animation: none; } .scene .drop { opacity: 1; top: 120px; } }

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(30px, 4vw, 42px); text-align: center; }
.section-lede { text-align: center; color: var(--ink-soft); font-size: 20px; max-width: 34em; margin: 12px auto 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature { background: #fff; border: 3px solid var(--outline); border-radius: 28px; padding: 26px; display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; box-shadow: 0 5px 0 var(--outline); }
.feature .art { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; border: 3px solid var(--outline); }
.feature .art img { width: 46px; }
.feature h3 { font-size: 22px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-soft); }

.stages-band { background: var(--card); border-top: 4px solid var(--outline); border-bottom: 4px solid var(--outline); }
.stages { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin: 44px auto 0; max-width: 820px; }
.stage { flex: 1; text-align: center; }
.stage img { width: 100%; max-width: 130px; margin: 0 auto 10px; }
.stage span { font-weight: 600; }
.stages-note { text-align: center; color: var(--ink-soft); margin-top: 24px; }

.promise { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; max-width: 900px; margin: 0 auto; }
.promise-art { position: relative; padding-top: 70px; }
.promise-art img { width: 230px; margin: 0 auto; }
.promise h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.promise p { font-size: 20px; color: var(--ink-soft); margin: 0; }
.bubble.small { position: absolute; top: 0; left: 0; right: 0; background: #fff; border: 3px solid var(--outline); border-radius: 22px; padding: 10px 14px; font-size: 16px; }
.bubble.small::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 22px; height: 22px; background: #fff; border-right: 3px solid var(--outline); border-bottom: 3px solid var(--outline); transform: rotate(45deg); }

/* Home Screen mock: a few made-up apps around the widget */
.home-band { background: var(--sky); border-top: 4px solid var(--outline); border-bottom: 4px solid var(--outline); overflow: hidden; }
.home-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; }
.home-copy h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.home-copy p { font-size: 20px; color: #2f4152; margin: 0 0 12px; }
.home-copy .home-how { font-size: 17px; color: #3c5568; }
.phone { width: 320px; margin: 0 auto -110px; border: 4px solid var(--outline); border-radius: 52px; padding: 10px; background: #fff; box-shadow: 0 6px 0 var(--outline); }
.phone-screen { border-radius: 42px; padding: 18px 16px 130px; background: linear-gradient(160deg, #FFD9A8, #F7B3C2 45%, #B9A7E8); position: relative; }
.phone-time { text-align: center; font-weight: 600; font-size: 14px; color: #fff; margin-bottom: 14px; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; }
.app { text-align: center; }
.app b { display: block; aspect-ratio: 1; border-radius: 15px; margin-bottom: 4px; overflow: hidden; }
.app b.oak-icon img { width: 100%; height: 100%; }
.app span { font-size: 10px; color: #fff; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.25); white-space: nowrap; }
.widget { grid-column: span 2; grid-row: span 2; border-radius: 22px; padding: 10px; background: linear-gradient(#9DD8F6, #BFE6FA 55%, #D6EDC4); display: flex; flex-direction: column; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.widget-top { display: flex; justify-content: space-between; align-items: flex-start; }
.widget-top img { width: 46px; }
.widget-temp { background: #fff; border: 2px solid var(--outline); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 600; color: #1D3B4F; }
.widget-status { margin-top: auto; font-size: 11px; font-weight: 600; color: var(--ink); }
.widget-bar { height: 8px; border: 2px solid var(--outline); border-radius: 999px; background: #fff; margin-top: 4px; overflow: hidden; }
.widget-bar i { display: block; height: 100%; width: 80%; background: var(--raindrop); }
.dock { position: absolute; left: 12px; right: 12px; bottom: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 10px; border-radius: 26px; background: rgba(255,255,255,.35); }
.dock b { aspect-ratio: 1; border-radius: 15px; }

.privacy-strip { text-align: center; }

/* Footer */
.site-footer { border-top: 4px solid var(--outline); background: #fff; padding: 32px 0 44px; color: var(--ink-soft); font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink); }
.site-footer p { margin: 0; }

/* Text pages: privacy, support, Impressum */
.page { max-width: 720px; margin: 0 auto; padding: 24px 24px 64px; }
.page h1 { font-size: clamp(34px, 5vw, 44px); margin: 24px 0 8px; }
.page h2 { font-size: 23px; margin: 36px 0 6px; }
.page p, .page li { margin: 8px 0; }
.page .meta { color: var(--ink-soft); font-size: 16px; }
.page .lede { font-size: 21px; color: var(--ink-soft); }
.page address { font-style: normal; }
.page .card { background: #fff; border: 3px solid var(--outline); border-radius: 22px; padding: 18px 22px; margin: 20px 0; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 24px 0 0; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .scene { height: 360px; max-width: 420px; width: 100%; margin: 0 auto; }
  .scene .oak { width: 180px; }
  .scene .frankie { width: 120px; }
  .scene .bubble { font-size: 15px; max-width: 210px; }
  .features { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 76px 1fr; }
  .promise { grid-template-columns: 1fr; text-align: center; }
  .promise-art { width: 100%; max-width: 300px; margin: 0 auto; }
  .promise-art img { width: 180px; }
  .home-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .phone { width: 290px; }
  .site-header nav { gap: 14px; font-size: 16px; }
}
@media (max-width: 520px) {
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .site-header nav { gap: 12px; font-size: 15px; }
  .stages { flex-wrap: wrap; justify-content: center; }
  .stage { flex: 0 0 30%; }
}
@media (max-width: 360px) {
  .pill { font-size: 15px; padding: 12px 16px; }
  .site-header nav a[href="#how"] { display: none; }
}
