/* ---- YappyUnc site ---- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&display=swap');

:root {
  --sky: #2f9be0;
  --sky-deep: #1c7fc4;
  --sun: #ffd23f;
  --sun-deep: #f5b400;
  --ink: #16313f;
  --ink-soft: #5d7d90;
  --bg: #ffffff;
  --bg-soft: #f4fafe;
  --border: #e4eef6;
  --shadow: 0 10px 34px rgba(20, 58, 82, 0.10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.62;
  background: var(--bg);
}

.display {
  font-family: "Fredoka", -apple-system, system-ui, sans-serif;
  letter-spacing: 0.2px;
}

a { color: var(--sky-deep); }

.wrap { max-width: 940px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 76px 22px 64px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(47,155,224,0.22), rgba(47,155,224,0) 70%),
    linear-gradient(180deg, #eaf7ff 0%, #ffffff 78%);
}
.cloud {
  position: absolute;
  background: #ffffff;
  border-radius: 100px;
  filter: blur(0.3px);
  opacity: 0.9;
  box-shadow: 0 8px 20px rgba(20,58,82,0.05);
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.c1 { width: 120px; height: 34px; top: 70px; left: 8%; }
.c1::before { width: 54px; height: 54px; top: -22px; left: 18px; }
.c1::after  { width: 40px; height: 40px; top: -14px; left: 60px; }
.c2 { width: 90px; height: 26px; top: 130px; right: 10%; }
.c2::before { width: 42px; height: 42px; top: -18px; left: 14px; }
.c2::after  { width: 30px; height: 30px; top: -10px; left: 46px; }

.app-icon {
  width: 132px; height: 132px;
  border-radius: 29px;
  box-shadow: 0 16px 36px rgba(20,58,82,0.22);
  position: relative;
  z-index: 2;
}
h1.title {
  font-size: 44px;
  font-weight: 700;
  margin: 22px 0 6px;
  position: relative; z-index: 2;
}
.pitch {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 26px;
  position: relative; z-index: 2;
}

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #111; color: #fff;
  padding: 12px 20px 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  position: relative; z-index: 2;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.24); }
.appstore svg { width: 26px; height: 26px; fill: #fff; }
.appstore .lbl { text-align: left; line-height: 1.1; }
.appstore .lbl small { display: block; font-size: 11px; opacity: .85; font-weight: 500; }
.appstore .lbl b { font-size: 19px; font-weight: 600; letter-spacing: .2px; }
.soon { display:block; margin-top: 12px; font-size: 13px; color: var(--ink-soft); position: relative; z-index:2; }

/* Hero interactive icon — 3D tilt + flap + yap bubble */
.hero-icon-scene { perspective: 800px; display: flex; justify-content: center; position: relative; z-index: 2; margin-bottom: 4px; }
.hero-icon { position: relative; width: 132px; height: 132px; cursor: pointer; transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.23,1,.32,1); will-change: transform; }
.hero-icon img { width: 132px; height: 132px; border-radius: 29px; display: block;
  box-shadow: 0 16px 36px rgba(20,58,82,.22); transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.hero-icon:hover img { animation: heroFlap .7s ease-in-out infinite; }
@keyframes heroFlap { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-10px) rotate(-3deg)} }
.hero-bubble { position: absolute; top: -8px; right: -34px; background: #fff; color: var(--ink);
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 15px; padding: 6px 12px;
  border-radius: 13px 13px 13px 3px; box-shadow: 0 6px 14px rgba(20,58,82,.18);
  opacity: 0; transform: translateZ(40px) scale(.4); pointer-events: none;
  transition: opacity .25s ease, transform .45s cubic-bezier(.34,1.56,.64,1); }
.hero-icon:hover .hero-bubble { opacity: 1; transform: translateZ(40px) scale(1); }

/* Chunky push button — pressable game-style */
.btn-chunky { display: inline-block; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 18px;
  cursor: pointer; border: 0; text-decoration: none; background: var(--sun); color: #5a3d00;
  padding: 15px 30px; border-radius: 16px; box-shadow: 0 6px 0 #c98a00;
  transition: transform .08s ease, box-shadow .08s ease; }
.btn-chunky:hover { transform: translateY(-1px); box-shadow: 0 7px 0 #c98a00; }
.btn-chunky:active { transform: translateY(5px); box-shadow: 0 1px 0 #c98a00; }
.btn-chunky.big { font-size: 21px; padding: 18px 46px; border-radius: 18px; box-shadow: 0 8px 0 #c98a00; }
.btn-chunky.big:hover { transform: translateY(-1px); box-shadow: 0 9px 0 #c98a00; }
.btn-chunky.big:active { transform: translateY(6px); box-shadow: 0 2px 0 #c98a00; }
.hero-cta { position: relative; z-index: 2; margin-top: 8px; }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2.section {
  font-size: 27px; font-weight: 700; text-align: center; margin: 0 0 8px;
}
.sub { text-align: center; color: var(--ink-soft); margin: 0 auto 34px; max-width: 540px; }

/* Screenshots */
.shots-wrap {
  display: flex; gap: 26px; justify-content: center; align-items: flex-end; flex-wrap: wrap;
}
.phone {
  width: 210px;
  border-radius: 40px;
  background: #15171a;
  padding: 9px;
  box-shadow: 0 22px 48px rgba(20, 58, 82, 0.22);
  transition: transform .2s ease;
}
.phone:hover { transform: translateY(-6px); }
.phone.center { width: 234px; }
.phone img { width: 100%; display: block; border-radius: 31px; }
.shot-fig { text-align: center; }
.shot-fig .cap { display: block; margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; box-shadow: var(--shadow);
}
.feature .ico { font-size: 34px; line-height: 1; }
.feature h3 { font-size: 17px; margin: 12px 0 6px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* Icon variants strip */
.icons-row { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.icon-pick { text-align: center; }
.icon-pick img { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow); }
.icon-pick span { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* Support / FAQ */
.faq { max-width: 640px; margin: 0 auto; }
details {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 4px 18px; margin: 12px 0; box-shadow: 0 4px 14px rgba(20,58,82,0.05);
}
details[open] { box-shadow: var(--shadow); }
summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--sky); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }

.contact-cta { text-align: center; margin-top: 30px; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 24px; }
.legal h1 { font-size: 30px; margin: 0 0 4px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.legal h3 { font-size: 17px; margin: 26px 0 6px; }
.legal p, .legal li { color: #2c5269; }
.legal .card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 28px 24px; box-shadow: var(--shadow);
}
.back { font-size: 14px; display: inline-block; margin: 24px 0 0; }

/* ---------- Footer ---------- */
footer.site {
  text-align: center; padding: 40px 22px; color: var(--ink-soft); font-size: 14px;
  border-top: 1px solid var(--border); background: var(--bg-soft);
}
footer.site nav a { margin: 0 10px; color: var(--sky-deep); text-decoration: none; font-weight: 600; }
footer.site nav a:hover { text-decoration: underline; }
footer.site .copy { margin-top: 12px; opacity: .8; }

/* ---------- Language switch ---------- */
html[data-lang="en"] .lang-de { display: none !important; }
html[data-lang="de"] .lang-en { display: none !important; }

.lang-toggle {
  position: fixed; top: 12px; right: 12px; z-index: 60;
  display: inline-flex; gap: 2px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px;
  box-shadow: var(--shadow);
}
.lang-toggle button {
  font-family: inherit; font-weight: 700; font-size: 12.5px; letter-spacing: .3px;
  cursor: pointer; border: 0; background: transparent; color: var(--ink-soft);
  padding: 5px 12px; border-radius: 999px; line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.lang-toggle button.active { background: var(--sky); color: #fff; }

/* longer legal content */
.legal h2 { font-size: 21px; margin: 28px 0 8px; }
.legal .card ul { margin: 6px 0 16px; padding-left: 20px; }
.legal .card li { margin: 5px 0; color: #2c5269; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  h1.title { font-size: 36px; }
  .features { grid-template-columns: 1fr; }
  section.block { padding: 44px 0; }
  .hero { padding: 60px 22px 48px; }
  .lang-toggle { top: 10px; right: 10px; }
}
