/* Koalala website: the app's playroom (striped teal wall, wooden floor, cream paper, navy ink, coral paint). Colors are the
   app's DdTokens (mobile/lib/app/theme/tokens.dart). */
@font-face {
  font-family: "Baloo 2";
  src: url("/assets/baloo2.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --wall: #5cc2b5;
  --stripe: #56b9ac;
  --skirting: #47a396;
  --floor: #f0a65a;
  --floor-line: #e2944b;
  --paper: #fff6e6;
  --paper-raised: #fff8ec;
  --white: #ffffff;
  --ink: #26324b;
  --muted: #5a6380;
  --coral: #f2603d;
  --coral-soft: #ffe6df;
  --green: #4cb860;
  --green-dark: #33914a;
  --yellow: #ffc845;
  --yellow-dark: #edaa22;
  --blue: #3f6fd8;
  --wood: #c98a52;
  --wood-dark: #8e5528;
  --shadow: 0 5px 0 var(--ink);
  --shadow-big: 0 8px 0 var(--ink);
  --radius: 22px;
  --page: min(1160px, 100% - 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: var(--page); margin-inline: auto; }

/* The playroom wall: the app's 26 px stripes every 52 px. */
.wall {
  background-color: var(--wall);
  background-image: repeating-linear-gradient(90deg, var(--stripe) 0 26px, transparent 26px 78px);
}
.floor {
  height: 64px;
  background:
    linear-gradient(var(--skirting) 0 12px, transparent 12px),
    repeating-linear-gradient(90deg, transparent 0 130px, var(--floor-line) 130px 133px),
    repeating-linear-gradient(0deg, var(--floor) 0 24px, var(--floor-line) 24px 26px);
}
.title-on-wall {
  color: var(--paper);
  text-shadow: 0 4px 0 rgba(38, 50, 75, 0.28);
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(92, 194, 181, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 3px solid rgba(38, 50, 75, 0.12);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 3px 0 rgba(38, 50, 75, 0.25)); }
.brand span { font-size: 30px; font-weight: 800; color: var(--paper); text-shadow: 0 3px 0 rgba(38, 50, 75, 0.3); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-weight: 700; color: var(--paper); padding: 8px 14px; border-radius: 999px;
  transition: background 0.2s;
}
.nav-links a:hover { background: rgba(38, 50, 75, 0.14); }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 56px; padding: 10px 26px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 20px; text-decoration: none; cursor: pointer;
  border: 3px solid var(--ink); box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-green { background: var(--green); color: var(--white); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn small { font-size: 14px; font-weight: 700; opacity: 0.85; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(38, 50, 75, 0.16); color: var(--paper); font-weight: 800; font-size: 16px;
}
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 200, 69, 0.35); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: end; gap: 30px;
  padding-top: 64px;
}
.hero-copy { padding-bottom: 96px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-lead { color: var(--paper); font-size: 21px; max-width: 34ch; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; color: var(--paper); font-weight: 700; font-size: 16px; }
.hero-trust span::before { content: "✓"; margin-right: 6px; color: var(--yellow); }
.hero-stage { position: relative; height: 640px; }
.phone {
  position: absolute; right: 50px; top: 24px; width: 262px;
  border: 10px solid var(--ink); border-radius: 46px; overflow: hidden; background: var(--ink);
  box-shadow: 0 14px 0 rgba(38, 50, 75, 0.25);
  transform: rotate(4deg);
}
.phone img { border-radius: 36px; }
.hero-koala {
  position: absolute; left: 0; bottom: 34px; width: 250px;
  filter: drop-shadow(0 10px 0 rgba(38, 50, 75, 0.18));
  animation: bob 2.4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.bubble {
  position: absolute; left: 150px; top: 250px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow);
  padding: 10px 16px; font-weight: 800; font-size: 19px; transform: rotate(-4deg);
}
.bubble::after {
  content: ""; position: absolute; left: 34px; bottom: -14px; width: 22px; height: 22px;
  background: var(--paper); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}
.sparkle { position: absolute; width: 30px; height: 30px; color: var(--yellow); animation: twinkle 2.2s ease-in-out infinite; }
.sparkle svg { width: 100%; height: 100%; }
.hero .floor { position: relative; z-index: 2; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(0.7) rotate(0); opacity: 0.6; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* Sections */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(36px, 4.6vw, 56px); }
.section-head p { margin-top: 14px; font-size: 20px; color: var(--muted); font-weight: 600; }
.wall .section-head p { color: var(--paper); }
.kicker { display: inline-block; font-weight: 800; color: var(--coral); text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; margin-bottom: 10px; }
.wall .kicker { color: var(--yellow); }

/* How it works: three hanging frames */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.step { text-align: center; }
.hang { position: relative; padding-top: 46px; }
.hang::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--ink); box-shadow: inset -2px -2px 0 rgba(255, 255, 255, 0.25);
}
.hang .string { position: absolute; top: 6px; left: 50%; width: 48%; height: 44px; transform: translateX(-50%); overflow: visible; }
.frame {
  position: relative; background: var(--wood); padding: 14px; border-radius: 16px;
  border: 3px solid var(--wood-dark); box-shadow: 0 8px 0 rgba(38, 50, 75, 0.18);
  transition: transform 0.3s ease;
}
.frame:hover { transform: rotate(-1.5deg) translateY(-4px); }
.frame img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--paper); border: 3px solid var(--wood-dark); }
.step-num {
  position: absolute; top: -18px; left: -14px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--coral); color: var(--white); font-size: 28px; font-weight: 800;
  display: grid; place-items: center; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); z-index: 2;
}
.plaque {
  display: inline-block; margin-top: 22px; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px;
  padding: 4px 18px; font-weight: 800; font-size: 22px; box-shadow: 0 4px 0 var(--ink);
}
.step p { margin: 12px auto 0; max-width: 30ch; color: var(--muted); font-weight: 600; }

/* Friends on the floor */
.friends { position: relative; }
.friends-row {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 2vw, 30px);
  padding: 0 10px; position: relative; z-index: 2; margin-bottom: -24px;
}
.friend { text-align: center; }
.friend img { height: clamp(130px, 16vw, 210px); width: auto; margin: 0 auto; animation: bob 2.6s ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 8px 0 rgba(38, 50, 75, 0.16)); }
.friend:nth-child(2) img { animation-delay: -0.4s; }
.friend:nth-child(3) img { animation-delay: -0.9s; }
.friend:nth-child(4) img { animation-delay: -1.3s; }
.friend:nth-child(5) img { animation-delay: -1.8s; }
.friend:nth-child(6) img { animation-delay: -2.1s; }
.friend.koala img { height: clamp(170px, 21vw, 270px); }
.name-tag {
  display: inline-block; margin-top: 10px; background: var(--paper); border: 3px solid var(--ink); border-radius: 10px;
  padding: 0 12px; font-weight: 800; font-size: 16px; box-shadow: 0 3px 0 var(--ink); white-space: nowrap;
}
.friends .floor { height: 90px; }

/* Places gallery */
.places { display: grid; grid-template-columns: repeat(7, 1fr); gap: 22px 18px; }
.place { text-align: center; margin: 0; min-width: 0; }
.place .frame { padding: 9px; border-radius: 12px; }
.place .frame img { border-width: 2px; border-radius: 6px; }
.place:nth-child(odd) .frame { transform: rotate(-1.2deg); }
.place:nth-child(even) .frame { transform: rotate(1.2deg); }
.place .frame:hover { transform: rotate(0) translateY(-4px) scale(1.04); }
.place span { display: block; margin-top: 10px; font-weight: 800; font-size: 16px; color: var(--paper); text-shadow: 0 2px 0 rgba(38, 50, 75, 0.3); }

/* Feature split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 90px; }
.split.reverse .split-media { order: 2; }
.split h3 { font-size: clamp(30px, 3.4vw, 44px); margin: 6px 0 16px; }
.split p { font-size: 19px; color: var(--muted); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.ticks li::before {
  content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--white);
  display: grid; place-items: center; font-size: 16px; border: 2px solid var(--ink); margin-top: 1px;
}
.split-media { position: relative; display: flex; justify-content: center; }
.paper-card {
  background: var(--paper-raised); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-big);
}
.screens-duo { display: flex; gap: 18px; align-items: flex-end; }
.screens-duo .phone { position: relative; right: auto; bottom: auto; width: 240px; transform: rotate(-3deg); }
.screens-duo .phone + .phone { transform: rotate(3deg) translateY(-30px); }
.export-cards { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: end; }
.export-portrait { aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; border: 3px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.export-portrait .wallbit { position: absolute; inset: 0; }
.export-portrait .t { position: absolute; top: 8%; width: 100%; text-align: center; font-weight: 800; color: var(--paper); font-size: 15px; text-shadow: 0 2px 0 rgba(38,50,75,.3); }
.export-portrait .canvas { position: absolute; left: 10%; right: 10%; top: 20%; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); padding: 3px; }
.export-portrait .canvas img { aspect-ratio: 1; object-fit: cover; }
.export-portrait .ledge { position: absolute; left: 5%; right: 5%; top: calc(20% + 47%); height: 7px; background: var(--wood); border: 2px solid var(--wood-dark); border-radius: 3px; }
.export-portrait .leg { position: absolute; top: 72%; width: 5px; height: 16%; background: var(--wood); border: 1px solid var(--wood-dark); }
.export-portrait .floorbit { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: var(--floor); border-top: 4px solid var(--skirting); }
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: 1px 10px 1px 4px; font-weight: 800; font-size: 12px; box-shadow: 0 2px 0 var(--ink); white-space: nowrap;
}
.badge-pill img { width: 22px; height: 22px; }
.export-portrait .badge-pill { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); font-size: 9px; }
.export-portrait .badge-pill img { width: 16px; height: 16px; }
.export-square { position: relative; border-radius: 16px; overflow: hidden; border: 3px solid var(--ink); box-shadow: var(--shadow); }
.export-square img.world { aspect-ratio: 1; object-fit: cover; }
.export-square .badge-pill { position: absolute; right: 12px; bottom: 12px; }

/* Dances cloud */
.dances { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.dances span {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 16px; font-weight: 800;
  box-shadow: 0 3px 0 var(--ink); font-size: 17px;
}
.dances span:nth-child(3n) { background: var(--yellow); }
.dances span:nth-child(5n) { background: var(--coral-soft); }
.dances span:nth-child(7n) { background: #dfeefe; }

/* Drawing tips */
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tip { padding: 14px; text-align: center; }
.tip img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--ink); }
.tip h4 { margin: 12px 0 2px; font-size: 20px; }
.tip p { color: var(--muted); font-weight: 600; font-size: 16px; }

/* Grown-ups */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 26px; }
.card .icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink); margin-bottom: 16px;
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card p { color: var(--muted); font-weight: 600; font-size: 17px; }

/* Premium */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; max-width: 980px; margin: 0 auto; }
.plan { padding: 34px; position: relative; }
.plan h3 { font-size: 32px; }
.plan .sub { color: var(--muted); font-weight: 700; margin-top: 4px; }
.plan ul { margin-top: 20px; }
.plan.premium { background: var(--coral-soft); border-color: var(--coral); box-shadow: 0 8px 0 var(--ink); }
.plan .tag {
  position: absolute; top: -18px; right: 24px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px;
  padding: 2px 14px; font-weight: 800; box-shadow: 0 3px 0 var(--ink);
}
.options { display: grid; gap: 10px; margin-top: 24px; }
.option { display: flex; justify-content: space-between; gap: 12px; background: var(--white); border: 2px solid rgba(38, 50, 75, 0.2); border-radius: 14px; padding: 12px 16px; font-weight: 700; }
.option b { font-weight: 800; }
.fineprint { max-width: 980px; margin: 26px auto 0; color: var(--muted); font-size: 15px; text-align: center; font-weight: 600; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--paper-raised); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 20px; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--coral); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); font-weight: 600; }

/* CTA band */
.cta-band { text-align: center; padding: 96px 0 40px; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(40px, 5vw, 64px); }
.cta-band p { color: var(--paper); font-size: 21px; font-weight: 600; margin: 14px auto 30px; max-width: 40ch; }
.cta-band .koala-peek { width: 170px; margin: 40px auto -10px; animation: bob 2.4s ease-in-out infinite; transform-origin: 50% 100%; position: relative; z-index: 2; }

/* Footer */
.footer { background: var(--floor); border-top: 12px solid var(--skirting); color: var(--ink); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding: 30px 0 40px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 800; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer small { display: block; font-weight: 600; opacity: 0.85; font-size: 14px; max-width: 60ch; }

/* Legal pages */
.doc-hero { padding: 64px 0 54px; text-align: center; }
.doc-hero h1 { font-size: clamp(40px, 5vw, 60px); }
.doc-hero p { color: var(--paper); font-weight: 700; margin-top: 10px; }
.doc { max-width: 820px; margin: -30px auto 80px; padding: 46px clamp(22px, 5vw, 56px); position: relative; z-index: 3; }
.doc h2 { font-size: 28px; margin: 38px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 21px; margin: 24px 0 8px; }
.doc p, .doc li { color: #3a4560; font-weight: 500; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 2px solid rgba(38, 50, 75, 0.12); vertical-align: top; }
.doc th { font-weight: 800; color: var(--ink); }
.summary-box { background: var(--coral-soft); border: 3px solid var(--coral); border-radius: 18px; padding: 18px 22px; margin-bottom: 30px; }
.summary-box p { color: var(--ink); font-weight: 700; }

/* Motion and small screens */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 10px; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-stage { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .split.reverse .split-media { order: 0; }
  .places { grid-template-columns: repeat(4, 1fr); }
  .cards, .tips { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 70px 0; }
  .steps { grid-template-columns: 1fr; gap: 44px; max-width: 360px; margin: 0 auto; }
  .places { grid-template-columns: repeat(2, 1fr); }
  .cards, .tips { grid-template-columns: 1fr; }
  .hero-stage { height: 470px; }
  .phone { width: 230px; right: 6px; }
  .hero-koala { width: 190px; }
  .bubble { left: 100px; top: 70px; font-size: 16px; }
  .friend:nth-child(n + 5) { display: none; }
  .screens-duo .phone { width: 170px; }
  .export-cards { grid-template-columns: 110px 1fr; }
}
