/* The app's palette (src/constants/theme.ts) and its map: sky, lawn, cream cards, chunky orange buttons. */
:root {
  --bg: #fbf7f2;
  --card: #fff1e4;
  --text: #2b2420;
  --muted: #7a6c60;
  --primary: #f26419;
  --primary-strong: #c2410c;
  --line: #ffe2cc;
  --sky: #cfe9f7;
  --sky-top: #b9def3;
  --lawn: #9ccb7a;
  --lawn-dark: #5e9a4a;
  --good: #5e8c5a;
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary-strong); }
h1, h2, h3 { font-weight: 900; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(26px, 5vw, 36px); text-align: center; margin-bottom: 28px; }
h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
p { margin: 0; }

/* Sky */
.sky {
  position: relative;
  /* The whole first screen: sky down to the lawn at the very bottom edge. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(var(--sky-top), var(--sky) 70%);
  padding: 0 16px 140px;
  overflow: hidden;
}
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: 0.9; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.c1 { width: 120px; height: 34px; top: 90px; left: 6%; }
.c1::before { width: 56px; height: 56px; top: -28px; left: 18px; }
.c1::after { width: 40px; height: 40px; top: -18px; left: 62px; }
.c2 { width: 90px; height: 26px; top: 200px; right: 38%; opacity: 0.7; }
.c2::before { width: 40px; height: 40px; top: -20px; left: 14px; }
.c2::after { width: 30px; height: 30px; top: -12px; left: 46px; }
.c3 { width: 140px; height: 38px; top: 60px; right: 12%; }
.c3::before { width: 62px; height: 62px; top: -32px; left: 24px; }
.c3::after { width: 46px; height: 46px; top: -20px; left: 78px; }
.sun {
  position: absolute; top: 40px; right: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: #f8d77a; box-shadow: 0 0 0 26px rgba(248, 215, 122, 0.25);
}

.top { position: relative; width: 100%; max-width: 1080px; margin: 0 auto; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 10px; }

.hero {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
  padding-top: 24px;
}
.kicker {
  display: inline-block; background: #fff; color: var(--primary-strong); font-weight: 800;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; font-size: 15px;
}
.hero h1 { font-size: clamp(36px, 6.4vw, 60px); }
.lead { font-size: 19px; color: #4a5a66; margin: 18px 0 28px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.note { color: #4a5a66; font-weight: 800; }

/* The app's PrimaryButton: a face on a darker lip */
.button {
  display: inline-block;
  background: var(--primary); color: #fff; font-weight: 900; font-size: 18px;
  padding: 14px 28px; border-radius: 16px;
  box-shadow: 0 5px 0 var(--primary-strong);
  text-decoration: none;
}

.hero-phone { position: relative; justify-self: center; }
.hero-phone .phone { width: min(300px, 70vw); transform: rotate(3deg); }
.bird {
  position: absolute; z-index: 2; width: 130px; height: auto; left: -70px; bottom: 60px;
  animation: bob 2.6s ease-in-out infinite;
}
.jakub-hero { position: absolute; z-index: 2; width: 150px; height: auto; right: -120px; bottom: -40px; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .bird { animation: none; } }

.hill {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 110px;
  background: var(--lawn); border-radius: 50% 50% 0 0;
  box-shadow: inset 0 10px 0 #b6dc98;
}

/* "There's more below": a round button on the lawn, bobbing gently */
.scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 3;
  width: 52px; height: 52px; margin-left: -26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--primary-strong);
  box-shadow: 0 4px 0 #cfe6bd, 0 8px 18px rgba(47, 74, 38, 0.18);
  animation: nudge 1.8s ease-in-out infinite;
}
.scroll svg { width: 26px; height: 26px; }
@keyframes nudge { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll { animation: none; } }

/* Phone frame around a screenshot */
.phone {
  border-radius: 40px; padding: 10px; background: #2b2420;
  box-shadow: 0 24px 48px rgba(43, 36, 32, 0.22);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 31px; }

main { background: var(--bg); }
section { max-width: 1080px; margin: 0 auto; padding: 72px 16px 0; }

/* Steps, numbered like the birdhouses on the map */
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--card); border-radius: 24px; padding: 24px; text-align: center; }
.num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 12px;
  border-radius: 12px; background: #fff; border: 3px solid var(--line);
  color: var(--good); font-weight: 900; font-size: 22px;
}
.steps p, .card p { color: var(--muted); }

.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.screens figure { margin: 0; text-align: center; }
.screens .phone { max-width: 260px; margin: 0 auto; }
.screens figure:nth-child(2) .phone { transform: translateY(-20px); }
figcaption { margin-top: 18px; font-weight: 800; }

.card { background: var(--card); border-radius: 24px; padding: 22px; border-bottom: 4px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon svg { width: 38px; height: 38px; }

.jakub { display: flex; align-items: flex-end; justify-content: center; gap: 24px; }
.jakub img { width: 170px; height: auto; flex-shrink: 0; }
.bubble {
  position: relative; background: #fff; border: 3px solid var(--line); border-radius: 28px;
  padding: 26px 28px; max-width: 520px; margin-bottom: 120px;
}
.bubble::after {
  content: ''; position: absolute; left: -16px; bottom: 40px; width: 28px; height: 28px; background: #fff;
  border-left: 3px solid var(--line); border-bottom: 3px solid var(--line); transform: rotate(45deg);
}
.bubble h2 { text-align: left; font-size: 28px; margin-bottom: 10px; }
.bubble p { color: var(--muted); }

.privacy { text-align: center; max-width: 760px; margin-top: 72px; padding: 32px 28px; background: #e9f4df; border-bottom-color: #cfe6bd; }
.privacy h2 { margin-bottom: 10px; }
.privacy p { color: #4f6b48; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.plan .price { font-size: 30px; font-weight: 900; color: var(--text); margin: 4px 0 10px; }
.plan .price span { font-size: 16px; color: var(--muted); font-weight: 800; }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plan.best { background: #fff; border: 3px solid var(--primary); border-bottom-width: 6px; }
.plan.best .price { color: var(--primary-strong); }

footer { position: relative; margin-top: 96px; background: var(--lawn); text-align: center; padding: 56px 16px 40px; color: #2f4a26; }
.lawn { position: absolute; left: -10%; right: -10%; top: -50px; height: 100px; background: var(--lawn); border-radius: 50% 50% 0 0; box-shadow: inset 0 10px 0 #b6dc98; }
.links { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 10px; }
footer a { color: #2f4a26; font-weight: 800; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .bird { width: 100px; left: -36px; }
  .jakub-hero { width: 96px; right: -34px; bottom: -24px; }
  .steps ol, .plans { grid-template-columns: 1fr; }
  /* Phones side by side, swiped like a carousel */
  .screens {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 16px; scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens figure { flex: 0 0 62%; scroll-snap-align: center; }
  .screens figure:nth-child(2) .phone { transform: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid .card { padding: 16px; }
  .grid .icon { width: 52px; height: 52px; border-radius: 15px; margin-bottom: 10px; }
  .grid .icon svg { width: 32px; height: 32px; }
  .grid h3 { font-size: 17px; }
  .grid p { font-size: 15px; line-height: 1.45; }
  .jakub { flex-direction: column; align-items: center; }
  .jakub img { width: 130px; order: 2; }
  .bubble { margin-bottom: 0; }
  .bubble::after { left: 50%; bottom: -16px; transform: translateX(-50%) rotate(-45deg); }
  .sun { width: 110px; height: 110px; right: -30px; }
}

/* Documents (the privacy policy) */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 16px 64px; }
.doc h1 { font-size: 32px; line-height: 1.2; margin: 0 0 4px; }
.doc h2 { font-size: 21px; text-align: left; margin: 32px 0 6px; }
.doc .date { color: var(--muted); margin: 0 0 24px; }
.doc ul { padding-left: 22px; }
.doc p { margin: 0 0 12px; }
.back { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 800; }
