:root {
  --cream: #FBF4E8; --paper: #FFFDF8; --ink: #22201C; --soft: #6B645A;
  --sage: #6E9168; --sage-l: #DCE8D3; --clay: #D8623A; --clay-d: #B84E2B;
  --sun: #F3B53F; --sky: #BFE0EE; --line: #EADFCB;
  --r: 28px; --shadow: 0 18px 40px -18px rgba(80, 50, 20, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 17px/1.55 Nunito, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, .logo, .btn, .who { font-family: Unbounded, Nunito, sans-serif; letter-spacing: -.01em; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--cream) 85%, transparent); backdrop-filter: blur(10px); }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 500; font-size: 15px; }
.logo img { border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 2px var(--clay); }
.logo b { color: var(--clay); font-weight: 700; }
.langs { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.langs button { padding: 7px 11px; border-radius: 99px; font-weight: 800; font-size: 13px; color: var(--soft); transition: .25s var(--ease); }
.langs button[aria-pressed=true] { background: var(--ink); color: var(--paper); }

main { padding: 0 clamp(16px, 4vw, 48px); max-width: 1180px; margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 5vw, 64px) 0; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 99px; background: var(--sage-l); color: #3E5C39; font-weight: 800; font-size: 13px; }
h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; margin: 0 0 18px; font-weight: 700; }
h1 em { font-style: normal; color: var(--clay); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 55%, transparent) 62%); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); margin: 0 0 26px; max-width: 34em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 99px; background: var(--ink); color: var(--paper);
  text-decoration: none; font-size: 15px; font-weight: 500; transition: transform .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--clay); padding: 18px 28px; font-size: 17px; box-shadow: 0 10px 24px -10px var(--clay); }
.btn-main:hover { background: var(--clay-d); }
.mic-ico { width: 18px; height: 18px; background: currentColor; flex: none;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15a3 3 0 0 0 3-3V6a3 3 0 1 0-6 0v6a3 3 0 0 0 3 3Zm6-3a1 1 0 1 0-2 0 4 4 0 0 1-8 0 1 1 0 1 0-2 0 6 6 0 0 0 5 5.9V20H8a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2h-3v-2.1A6 6 0 0 0 18 12Z'/%3E%3C/svg%3E") center/contain no-repeat; }

.hero-video { position: relative; margin: 0; }
.hero-video video { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); background: var(--sky); position: relative; z-index: 1; }
.play { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 20px 12px 12px; border-radius: 99px; background: var(--paper); font-weight: 800; box-shadow: var(--shadow); transition: opacity .3s, transform .3s var(--ease); }
.play:hover { transform: translateX(-50%) scale(1.04); }
.play-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--clay); position: relative; animation: pulse 2s infinite; }
.play-ico::after { content: ""; position: absolute; left: 14px; top: 11px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; }
.hero-video.playing .play { opacity: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; z-index: 0; filter: blur(2px); }
.b1 { width: 120px; height: 120px; background: var(--sun); right: -22px; top: -26px; animation: float 7s ease-in-out infinite; }
.b2 { width: 90px; height: 90px; background: var(--sage); left: -24px; bottom: -20px; animation: float 9s ease-in-out infinite reverse; }

.missions { padding: clamp(32px, 6vw, 80px) 0; }
h2 { font-size: clamp(26px, 3.6vw, 42px); margin: 0 0 8px; font-weight: 700; }
.sub { color: var(--soft); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { position: relative; text-align: left; padding: 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); }
.card:active { transform: scale(.98); }
.card .ico { font-size: 40px; line-height: 1; display: inline-block; transition: transform .4s var(--ease); }
.card:hover .ico { transform: scale(1.2) rotate(-8deg); }
.card h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 500; }
.card .en { color: var(--soft); font-size: 14px; }
.card .got { font-size: 18px; letter-spacing: 2px; }
.card.done { background: var(--sage-l); border-color: transparent; }
.card:nth-child(5n+1) .ico { filter: drop-shadow(0 6px 0 var(--sun)); }

.kit { margin: 0 0 64px; padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--r) + 8px); background: var(--ink); color: var(--paper); }
.kit .eyebrow { background: rgba(255,255,255,.1); color: var(--sun); }
.kit .sub { color: #CFC6B8; max-width: 44em; }
.kit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kit-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 22px; }
.kit-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 500; }
.kit-card ol { padding-left: 20px; margin: 0 0 18px; color: #E7DFD2; }
.kit-card li { margin: 6px 0; }
.kit .btn { background: var(--clay); }
.kit-more a { color: var(--sun); font-weight: 800; }
footer { text-align: center; color: var(--soft); font-size: 14px; padding: 0 16px 40px; }

/* chat */
dialog#chat { width: min(560px, 100vw); max-width: 100vw; height: min(760px, 100dvh); max-height: 100dvh; padding: 0; border: 0; border-radius: var(--r);
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); overflow: hidden; }
dialog#chat[open] { display: flex; flex-direction: column; animation: sheet .45s var(--ease); }
dialog::backdrop { background: rgba(34,32,28,.5); backdrop-filter: blur(4px); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.avatar { border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 0 0 3px var(--sage); transition: box-shadow .2s; }
.avatar.talking { animation: talk .5s ease-in-out infinite alternate; box-shadow: 0 0 0 3px var(--clay), 0 0 0 9px color-mix(in srgb, var(--clay) 25%, transparent); }
.who { margin: 0; font-size: 14px; font-weight: 700; }
.mtitle { margin: 0; color: var(--soft); font-size: 14px; }
.stars { margin-left: auto; font-size: 22px; letter-spacing: 1px; }
.stars .off { filter: grayscale(1); opacity: .3; }
.stars .pop { display: inline-block; animation: pop .6s var(--ease); }
.x { font-size: 30px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; color: var(--soft); }
.x:hover { background: var(--cream); }
.log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 22px; font-size: 18px; line-height: 1.4; animation: bubble .4s var(--ease) both; }
.msg.guide { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.kid { background: var(--sage); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; font-weight: 700; }
.msg.wait { color: var(--soft); font-style: italic; }
.msg.end { align-self: center; background: var(--sun); font-weight: 800; text-align: center; }
.msg.end button { display: block; margin: 10px auto 0; padding: 8px 16px; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 700; }
.chat-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.hint { margin: 0 0 8px; font-size: 14px; color: var(--soft); }
.note { margin: 0 0 8px; font-size: 13px; color: var(--clay-d); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips button { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--cream); border: 1px solid var(--line); font-weight: 700; font-size: 15px; transition: .2s var(--ease); }
.chips button:hover { background: var(--sage-l); }
.say { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 8px 0; }
.mic { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--clay); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 26px -10px var(--clay); transition: transform .2s var(--ease), background .2s; }
.mic .mic-ico { width: 32px; height: 32px; }
.mic:active { transform: scale(.94); }
.mic:disabled { background: #C9BFB0; box-shadow: none; }
.mic .ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--clay); opacity: 0; }
.mic.on { background: var(--ink); }
.mic.on .ring { animation: ring 1.2s ease-out infinite; }
.mic-label { margin: 0; font-size: 14px; font-weight: 700; color: var(--soft); min-height: 1.4em; }
.type { display: flex; gap: 8px; }
.type input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--cream); font: inherit; }
.type .btn { padding: 12px 18px; }
.confetti { position: fixed; pointer-events: none; z-index: 99; font-size: 22px; animation: fly 1.1s var(--ease) forwards; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-video { order: -1; }
  .kit-cols { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card { min-height: 150px; padding: 18px; }
  dialog#chat { width: 100vw; height: 100dvh; border-radius: 0; }
}
@media (max-width: 380px) { .langs button { padding: 7px 8px; } .logo { font-size: 13px; } }

/* motion */
.rise { animation: rise .9s var(--ease) both; }
.hero-text .rise:nth-child(2) { animation-delay: .08s; } .hero-text .rise:nth-child(3) { animation-delay: .16s; } .hero-text .rise:nth-child(4) { animation-delay: .24s; }
.hero-video.rise { animation-delay: .1s; }
.reveal, .card { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .35s; }
.reveal.in, .card.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes float { 50% { transform: translate(8px, -12px) scale(1.06); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--clay) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes talk { to { transform: scale(1.06) rotate(-2deg); } }
@keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes pop { 0% { transform: scale(0) rotate(-40deg); } 60% { transform: scale(1.5) rotate(10deg); } }
@keyframes sheet { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .card { opacity: 1; transform: none; }
}
.switch a { color: var(--clay-d); font-weight: 800; }
@media (min-width: 821px) { [data-audience="teens"] .grid { grid-template-columns: repeat(3, 1fr); } }
