:root {
  --teal: #149ba1;
  --teal-deep: #0e6f74;
  --teal-pale: #e3f6f5;
  --orange: #ff9233;
  --orange-deep: #e8741a;
  --sun: #ffd24d;
  --ink: #21363b;
  --soft: #5a6c71;
  --paper: #fffdf7;
  --card: #ffffff;
  --line: #e4ece9;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(20, 70, 75, 0.12);
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.brand span { font-family: var(--font-head); font-weight: 600; font-size: 20px; white-space: nowrap; }
.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--teal-pale); color: var(--teal-deep); }
@media (max-width: 640px) { .nav a.optional { display: none; } .brand span { font-size: 18px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 18px;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  border: 0; cursor: pointer;
}
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 5px 0 var(--orange-deep); }
.btn-orange:hover { transform: translateY(1px); box-shadow: 0 4px 0 var(--orange-deep); }
.btn-ghost { background: rgba(255, 255, 255, 0.9); color: var(--teal-deep); box-shadow: 0 5px 0 rgba(14, 111, 116, 0.25); }
.btn small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.btn .stack { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: #8fd6c8 url("img/hero-bg.webp") center 62% / cover no-repeat;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0) 82%, var(--paper) 100%),
    linear-gradient(90deg, rgba(8, 60, 66, 0.66) 0%, rgba(8, 60, 66, 0.38) 45%, rgba(8, 60, 66, 0.05) 70%);
}
@media (max-width: 820px) {
  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 253, 247, 0) 82%, var(--paper) 100%),
      linear-gradient(180deg, rgba(8, 60, 66, 0.25) 0%, rgba(8, 60, 66, 0.6) 40%, rgba(8, 60, 66, 0.45) 75%);
  }
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
  padding-top: 64px; padding-bottom: 96px;
}
.hero h1 { font-size: clamp(42px, 7vw, 72px); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.hero .tagline { font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px); font-weight: 500; margin: 0 0 14px; }
.hero p.lead { font-size: 19px; max-width: 520px; margin: 0 0 26px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .art { display: flex; justify-content: center; }
.hero .art img {
  width: min(320px, 70vw); border-radius: 26%; box-shadow: 0 24px 50px rgba(0, 40, 45, 0.35);
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero .art img { animation: none; } }
@media (max-width: 820px) {
  .hero { background-image: url("img/hero-bg-small.webp"); }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; padding-bottom: 72px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .ctas { justify-content: center; }
  .hero .art { order: -1; }
  .hero .art img { width: min(200px, 50vw); }
}

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 44px); color: var(--teal-deep); }
.section-head p { color: var(--soft); font-size: 18px; margin: 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-deep);
  background: #fff1e2; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* Screenshots */
.shots {
  display: flex; gap: 20px; overflow-x: auto; padding: 8px 16px 24px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  max-width: 1120px; margin: 0 auto;
}
.shots figure {
  flex: 0 0 auto; width: 230px; margin: 0; scroll-snap-align: center;
  border-radius: 28px; padding: 8px; background: #1f2f33; box-shadow: var(--shadow);
}
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 21px; }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card .emoji {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 28px;
  background: var(--teal-pale); border-radius: 16px; margin-bottom: 14px;
}
.card h3 { font-size: 22px; color: var(--ink); }
.card p { margin: 0; color: var(--soft); }

/* Friends */
.friends-band { background: linear-gradient(180deg, var(--teal-pale), var(--paper)); }
.friends { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 4px; }
.friends img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(20, 70, 75, 0.18)); }
@media (max-width: 560px) { .friends img { width: 88px; height: 88px; } }

/* Families */
.families { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .families { grid-template-columns: 1fr; } }
.families .feature-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .dot {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.checks b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 19px; }
.checks span.txt { color: var(--soft); }

/* Premium + support */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }
.card.premium { background: linear-gradient(160deg, #7b55d6, #5a3cb3); color: #fff; border: 0; }
.card.premium h3, .card.premium p { color: #fff; }
.card.premium p { opacity: 0.92; }
.card.support { background: linear-gradient(160deg, var(--teal), var(--teal-deep)); color: #fff; border: 0; }
.card.support h3, .card.support p { color: #fff; }
.card.support a.mail {
  display: inline-block; margin-top: 14px; color: var(--teal-deep); background: #fff;
  font-weight: 800; text-decoration: none; padding: 10px 18px; border-radius: 999px;
}

/* Footer */
.site-footer { background: #17393d; color: #cfe5e3; padding: 36px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 16px 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); color: var(--teal-deep); margin-bottom: 4px; }
.legal .date { color: var(--soft); margin-top: 0; }
.legal h2 { font-size: 23px; margin-top: 36px; color: var(--ink); }
.legal li { margin-bottom: 6px; }
.legal .box { background: var(--teal-pale); border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
