/* =========================================================
   Pocket Cub: marketing site
   ========================================================= */

:root {
  --cream: #F8F5ED;
  --cream-2: #F0E9DA;
  --cream-3: #E8DFCF;
  --paper: #FFFDF8;
  --brown: #2D251C;
  --brown-2: #4A3D30;
  --amber: #BE7125;
  --amber-d: #A45E1C;
  --amber-soft: #F4E3CC;
  --grey: #797065;
  --grey-2: #6B6157;
  --green: #2F7A45;
  --green-d: #1F5A35;
  --green-soft: #E2EFE4;
  --mint: #DCEFE3;
  --mint-2: #EAF5EE;
  --line: rgba(45, 37, 28, .11);
  --line-2: rgba(45, 37, 28, .2);
  --kid: #BE7125;

  --sh-1: 0 1px 2px rgba(45, 37, 28, .05), 0 10px 28px -14px rgba(45, 37, 28, .22);
  --sh-2: 0 2px 6px rgba(45, 37, 28, .06), 0 28px 60px -26px rgba(45, 37, 28, .4);
  --sh-phone: 0 60px 90px -40px rgba(45, 37, 28, .55), 0 24px 40px -24px rgba(45, 37, 28, .35);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-soft: cubic-bezier(.5, 1.3, .5, 1);

  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23BE7125'%3E%3Cellipse cx='16' cy='21.5' rx='7.5' ry='6.3'/%3E%3Cellipse cx='6.8' cy='13.2' rx='3' ry='3.8' transform='rotate(-18 6.8 13.2)'/%3E%3Cellipse cx='12.6' cy='8.2' rx='3' ry='3.9' transform='rotate(-6 12.6 8.2)'/%3E%3Cellipse cx='19.4' cy='8.2' rx='3' ry='3.9' transform='rotate(6 19.4 8.2)'/%3E%3Cellipse cx='25.2' cy='13.2' rx='3' ry='3.8' transform='rotate(18 25.2 13.2)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
svg { overflow: visible; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--amber-soft); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 10px; }
section[id] { scroll-margin-top: 70px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 12px; background: var(--brown); color: var(--cream); font-weight: 700; }
.skip:focus { top: 16px; }
.amber { color: var(--amber); }
.green { color: var(--green); }

h2, h1:not(.hero__title) { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
h3 { font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 750; font-size: 16px; line-height: 1.2; white-space: nowrap; transition: transform .3s var(--ease-spring), box-shadow .3s, background-color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); transition-duration: .08s; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn--dark { background: var(--brown); color: var(--cream); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), 0 14px 26px -14px rgba(45, 37, 28, .8); }
.btn--sm { padding: 10px 18px; font-size: 14.5px; gap: 8px; }
.btn--amber { background: var(--amber-d); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), 0 14px 26px -14px rgba(164, 94, 28, .9); }
.btn--play { padding: 11px 26px 11px 20px; border-radius: 18px; background: var(--brown); color: var(--cream); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), 0 16px 30px -14px rgba(45, 37, 28, .85); position: relative; overflow: hidden; }
.btn--play::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent); transform: skewX(-20deg); animation: shine 3s infinite; }
@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.btn__play { width: 26px; height: 26px; }
.btn--play:hover .btn__play { animation: wiggle .6s var(--ease-out); }
.btn__stack { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.btn__stack small { font-size: 11px; font-weight: 600; opacity: .72; letter-spacing: .02em; }
.btn__stack span { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.ico { width: 18px; height: 18px; flex: none; }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -14deg; } 60% { rotate: 10deg; } }

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 9px; margin-bottom: 20px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 700; color: var(--brown-2); }
.tag::before { content: ""; width: 17px; height: 17px; background: var(--paw) center / contain no-repeat; }

.avatar { --c: var(--amber); display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: 14px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16); transition: background-color .4s; }
.avatar--sm { width: 26px; height: 26px; font-size: 11.5px; }
.avatar--xs { width: 22px; height: 22px; font-size: 10px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16); }
.kidav { --c: var(--kid); }

.js .reveal { opacity: 0; transform: translateY(28px) scale(0.96); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: translateY(0) scale(1); }
.is-bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 0% { scale: 1; } 35% { scale: 1.16; } 100% { scale: 1; } }

.flycoin { position: fixed; z-index: 150; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(45, 37, 28, .25)); }
.plusfloat { position: fixed; z-index: 150; pointer-events: none; font-weight: 850; font-size: 15px; color: var(--green); }

/* handwritten-style annotation */
.scrawl { position: absolute; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 17px; font-style: italic; font-weight: 650; line-height: 1.2; color: var(--amber-d); }
.scrawl svg { flex: none; width: 66px; height: 33px; color: var(--amber); stroke-dasharray: 190; stroke-dashoffset: 190; transition: stroke-dashoffset 1s var(--ease-out) .2s; }
.scrawl.is-drawn svg, html:not(.js) .scrawl svg { stroke-dashoffset: 0; }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 28px; padding: 14px 28px; transition: background-color .5s, box-shadow .4s; }
.nav.is-scrolled { background: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.nav.is-kid { background: rgba(220, 239, 227, .86); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 19px; letter-spacing: -.035em; }
.brand__mark { width: 36px; height: 36px; transition: transform .5s var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.08); }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--brown-2); }
.nav__links a { position: relative; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav__links a:hover { color: var(--brown); }
.nav__links a:hover::after, .nav__links a.is-active::after, .nav__links a[aria-current="page"]::after { transform: none; }
.nav__links a[aria-current="page"] { color: var(--brown); }
.nav__menu { display: none; position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.nav__menu i { position: absolute; left: 13px; right: 13px; top: 17px; height: 2.4px; border-radius: 2px; background: var(--brown); transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.nav__menu i + i { top: 24.6px; }
.nav.is-open .nav__menu i { top: 20.8px; transform: rotate(45deg); }
.nav.is-open .nav__menu i + i { transform: rotate(-45deg); }

/* =========================================================
   PHONE (shared)
   ========================================================= */
.phone { position: relative; flex: none; width: 300px; height: 620px; padding: 10px; border-radius: 50px; background: #2A2219; box-shadow: 0 70px 100px -40px rgba(45, 37, 28, .6), 0 30px 50px -20px rgba(45, 37, 28, .4), inset 0 0 0 2px #4A3D30, inset 0 0 0 5px #1B1611; }
.phone::after { content: ""; position: absolute; right: -3px; top: 150px; width: 4px; height: 70px; border-radius: 0 4px 4px 0; background: #2A2219; }
.phone::before { content: ""; position: absolute; inset: 0; border-radius: 50px; background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 40%); pointer-events: none; z-index: 20; }
.phone__screen { position: relative; text-align: left; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 40px; background: var(--cream); font-size: 13px; line-height: 1.35; transition: background-color .5s; }
.phone__screen--kid { background: var(--mint-2); }
.phone__island { position: absolute; top: 11px; left: 50%; z-index: 8; width: 90px; height: 27px; margin-left: -45px; border-radius: 20px; background: #120E0A; }
.sbar { position: absolute; top: 0; left: 0; right: 0; z-index: 7; display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 6px 26px 0 30px; font-size: 13px; font-weight: 700; pointer-events: none; }
.sbar__r { display: flex; align-items: center; gap: 5px; }
.sbar__r i { display: block; background: currentColor; }
.sbar__r i:nth-child(1) { width: 15px; height: 10px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.sbar__r i:nth-child(2) { width: 14px; height: 10px; background: radial-gradient(circle at 50% 100%, currentColor 0 2.5px, transparent 3px 5px, currentColor 5.5px 7.5px, transparent 8px); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.sbar__r i:nth-child(3) { position: relative; width: 22px; height: 11px; border-radius: 3.5px; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.sbar__r i:nth-child(3)::after { content: ""; position: absolute; inset: 3px 6px 3px 3px; border-radius: 1.5px; background: currentColor; }

/* ---------- app kit (a-*) ---------- */
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 11px; padding: 54px 16px 16px; background: var(--cream); }
.scr--kid { background: var(--mint-2); }
.scr[data-tabbar] { padding-bottom: 88px; }
.a-top { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.a-who small { display: block; font-size: 10.5px; font-weight: 650; color: var(--grey); letter-spacing: .01em; }
.a-who b { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.a-iconbtn, .a-lockbadge { display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.a-lockbadge { background: #fff; color: var(--green-d); box-shadow: 0 0 0 1px rgba(47, 122, 69, .15); }
.a-iconbtn svg, .a-lockbadge svg { width: 17px; height: 17px; }
.a-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 750; }
.a-label span + span { color: var(--amber-d); font-weight: 650; }

.a-bal { position: relative; overflow: hidden; padding: 14px 16px; border-radius: 22px; background: var(--brown); color: var(--cream); }
.a-bal small { font-size: 11px; font-weight: 600; opacity: .72; }
.a-bal > b { display: block; font-size: 30px; font-weight: 850; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.a-bal__delta { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; color: #9ED8AE; }
.a-bal__delta svg { width: 12px; height: 12px; }
.a-bal--kid { background: var(--green); }
.a-bal--kid .a-bal__delta { color: #D3F0DB; }
.a-spark { display: block; width: calc(100% + 32px); height: 40px; margin: 6px -16px -14px; }
.a-spark path { fill: none; stroke: var(--amber); stroke-width: 2.6px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) 1.1s; }
.is-loaded .a-spark path { stroke-dashoffset: 0; }
.a-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-tile { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.a-tile small, .a-tile span { font-size: 10.5px; color: var(--grey); }
.a-tile b { font-size: 18px; font-weight: 850; letter-spacing: -.02em; }

.a-entries { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.entry { display: flex; flex: none; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.scr--kid .entry { background: #fff; box-shadow: 0 0 0 1px rgba(47, 122, 69, .1); }
.entry__ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; }
.entry__ico svg { width: 15px; height: 15px; }
.entry__ico.in { background: var(--green-soft); color: var(--green); }
.entry__ico.out { background: #F1E7DA; color: var(--brown-2); }
.entry__ico.lock { background: var(--amber-soft); color: var(--amber-d); }
.entry__t { flex: 1; min-width: 0; }
.entry__t b { display: block; overflow: hidden; font-size: 12.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.entry__t small { font-size: 10.5px; color: var(--grey); }
.entry__a { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry__a.in { color: var(--green); }
.entry.is-new { animation: entryIn .7s var(--ease-out); }
.entry.is-leaving { opacity: 0; transition: opacity .35s; }
@keyframes entryIn { 0% { margin-top: -54px; opacity: 0; background: var(--amber-soft); } 55% { opacity: 1; } 60% { background: var(--amber-soft); } }

/* sign in */
.a-welcome { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 22px 0 16px; text-align: center; }
.a-welcome svg { width: 66px; height: 66px; margin-bottom: 10px; animation: cubNod 3s ease-in-out infinite; }
.a-welcome b { font-size: 19px; font-weight: 850; letter-spacing: -.025em; }
.a-welcome small { font-size: 12.5px; color: var(--grey-2); }
@keyframes cubNod { 0%, 100% { rotate: 0deg; } 50% { rotate: -6deg; } }
.a-flabel { margin-bottom: -5px; font-size: 11.5px; font-weight: 700; color: var(--grey-2); }
.a-field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.a-cc { display: flex; align-items: center; gap: 2px; padding-right: 10px; border-right: 1px solid var(--line-2); color: var(--grey-2); }
.a-cc svg { width: 13px; height: 13px; }
.a-caret { width: 2px; height: 20px; margin-left: -8px; background: var(--amber); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.a-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: 14px; background: var(--brown); color: var(--cream); font-size: 14.5px; font-weight: 750; transition: transform .15s, filter .15s; }
.a-btn.is-press { transform: scale(.95); filter: brightness(1.35); }
.a-btn--ghost { background: var(--paper); color: var(--brown); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.a-btn--green { background: var(--green-d); color: var(--mint-2); }
.a-btn--end { margin-top: auto; }
.a-g { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brown); color: var(--cream); font-size: 11px; font-weight: 850; }
.a-or { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--grey); }
.a-or::before, .a-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.a-nav { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.a-back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.a-back svg { width: 16px; height: 16px; }
.a-navt { font-size: 15px; font-weight: 800; }
.a-dots3 { display: flex; gap: 5px; margin-left: auto; }
.a-dots3 i { width: 18px; height: 5px; border-radius: 3px; background: var(--cream-3); }
.a-dots3 i.on { background: var(--brown); }
.a-h { margin-top: 10px; font-size: 22px; font-weight: 850; line-height: 1.1; letter-spacing: -.03em; }
.a-h--c { text-align: center; }
.a-s { font-size: 12.5px; color: var(--grey-2); }
.a-s--c { margin-top: -6px; text-align: center; }
.a-lock { display: grid; place-items: center; align-self: center; width: 58px; height: 58px; margin-top: 8px; border-radius: 19px; background: var(--amber-soft); color: var(--amber-d); }
.a-lock svg { width: 27px; height: 27px; }
.a-pdots { display: flex; justify-content: center; gap: 16px; margin: 8px 0 4px; }
.a-pdots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--brown); transition: background-color .15s, scale .35s var(--ease-spring); }
.a-pdots i.on { background: var(--brown); scale: 1.15; }
.a-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.a-keys > * { display: grid; place-items: center; height: 48px; border-radius: 15px; background: var(--paper); font-size: 20px; font-weight: 750; transition: background-color .15s, transform .15s; }
.a-keys > :empty { background: none; }
.a-keys svg { width: 22px; height: 22px; }
.a-keys .is-press { background: var(--cream-3); transform: scale(.9); }

/* add child */
.a-bigav { display: grid; place-items: center; align-self: center; width: 70px; height: 70px; border-radius: 50%; background: var(--kid); color: #fff; font-size: 30px; font-weight: 850; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .16), 0 12px 20px -12px var(--kid); transition: background-color .4s, box-shadow .4s; }
.a-field--kv { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-height: 0; padding: 8px 13px; }
.a-field--kv small { font-size: 10.5px; font-weight: 650; color: var(--grey); }
.a-field--kv b { font-size: 14.5px; font-weight: 800; }
.a-colours { display: flex; justify-content: space-between; padding: 2px 6px; }
.a-colours button { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); transition: transform .35s var(--ease-spring), box-shadow .3s; }
.a-colours button[aria-checked="true"] { transform: scale(1.12); box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--c); }
.a-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a-seg { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px; border-radius: 12px; background: var(--cream-3); }
.a-seg button { position: relative; z-index: 1; padding: 8px 0; font-size: 10.5px; font-weight: 750; color: var(--grey-2); transition: color .3s; }
.a-seg button[aria-checked="true"] { color: var(--brown); }
.a-seg__thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 4); border-radius: 9px; background: var(--paper); box-shadow: 0 1px 3px rgba(45, 37, 28, .2); transform: translateX(calc(var(--seg, 1) * 100%)); transition: transform .45s var(--ease-spring); }

/* parent home */
.a-kidrows { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.a-kidrow { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 12px; background: rgba(248, 245, 237, .08); font-size: 13px; font-weight: 600; }
.a-kidrow b { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.a-switchcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 8px 18px -10px rgba(45, 37, 28, .35); transition: box-shadow .3s, transform .3s var(--ease-spring); cursor: pointer; }
.a-switchcard b { display: block; font-size: 14px; font-weight: 800; }
.a-switchcard small { font-size: 11.5px; color: var(--grey-2); }
.a-switchcard__ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--mint); color: var(--green-d); }
.a-switchcard__ico svg { width: 18px; height: 18px; }
.a-toggle { position: relative; flex: none; width: 46px; height: 27px; margin-left: auto; border-radius: 99px; background: #D6CCBB; transition: background-color .3s; }
.a-toggle i { position: absolute; top: 3.5px; left: 3.5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .4s var(--ease-spring); }
.a-switchcard.is-on .a-toggle { background: var(--green); }
.a-switchcard.is-on .a-toggle i { transform: translateX(19px); }
.a-switchcard.is-pulse { transform: scale(1.03); box-shadow: 0 0 0 3px rgba(47, 122, 69, .35), 0 8px 18px -10px rgba(45, 37, 28, .35); }
.a-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a-actions span { display: flex; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 700; }
.a-actions svg { width: 17px; height: 17px; color: var(--amber-d); }

/* chores */
.a-balchip { margin-left: auto; padding: 6px 12px; border-radius: 99px; background: var(--green-d); color: #fff; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.a-chores { display: flex; flex-direction: column; gap: 8px; }
.a-chore { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(47, 122, 69, .12); text-align: left; transition: transform .3s var(--ease-spring), box-shadow .3s; }
.a-chore:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(47, 122, 69, .3), 0 8px 14px -10px rgba(31, 90, 53, .5); }
.a-chore:active { transform: scale(.97); }
.a-box { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 9px; box-shadow: inset 0 0 0 2px #A9CDB5; color: #fff; transition: background-color .25s, box-shadow .25s, transform .4s var(--ease-spring); }
.a-box svg { width: 15px; height: 15px; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s ease .08s; }
.a-chore__t { flex: 1; min-width: 0; }
.a-chore__t b { display: block; font-size: 13.5px; font-weight: 750; }
.a-chore__t small { display: inline-block; margin-top: 2px; padding: 1px 7px; border-radius: 99px; background: var(--mint); font-size: 10.5px; font-weight: 700; color: var(--green-d); }
.a-chore__r { font-size: 14px; font-weight: 850; color: var(--green); }
.a-chore[aria-pressed="true"] .a-box { background: var(--green); box-shadow: none; transform: scale(1.1); }
.a-chore[aria-pressed="true"] .a-box svg { stroke-dashoffset: 0; }
.a-chore[aria-pressed="true"] .a-chore__t b { color: var(--grey); text-decoration: line-through; text-decoration-color: rgba(45, 37, 28, .3); }
.a-reminder { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 11px 12px; border-radius: 14px; background: rgba(255, 255, 255, .75); font-size: 12px; color: var(--grey-2); }
.a-reminder b { color: var(--brown); }
.a-reminder__bell { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-d); transform-origin: 50% 15%; animation: ring 3.6s ease-in-out infinite; }
.a-reminder__bell svg { width: 15px; height: 15px; }
@keyframes ring { 0%, 70%, 100% { rotate: 0deg; } 74% { rotate: 18deg; } 78% { rotate: -15deg; } 82% { rotate: 10deg; } 86% { rotate: -6deg; } 90% { rotate: 0deg; } }

/* spend */
.a-items { display: flex; gap: 7px; }
.a-items button { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 9px 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(47, 122, 69, .12); font-size: 12px; font-weight: 700; transition: box-shadow .25s, transform .3s var(--ease-spring); }
.a-items button b { font-size: 15px; font-weight: 850; }
.a-items button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--green-d); transform: translateY(-2px); }
.a-ba { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 16px; background: #fff; }
.a-ba small { display: block; font-size: 11px; font-weight: 650; color: var(--grey); }
.a-ba b { font-size: 20px; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.a-ba > svg { width: 20px; height: 20px; color: var(--amber); animation: nudge 1.8s ease-in-out infinite; }
.a-ba__after { text-align: right; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 5px 0; } }
.a-spendact { position: relative; min-height: 48px; }
.a-toast { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; overflow: hidden; border-radius: 14px; background: var(--brown); color: var(--cream); font-size: 12.5px; animation: toastIn .45s var(--ease-spring); }
.a-toast button { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 7px 10px; border-radius: 10px; background: rgba(248, 245, 237, .15); color: var(--cream); font-size: 12.5px; font-weight: 750; }
.a-toast button svg { width: 14px; height: 14px; }
.a-toast__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--amber); transform-origin: left; animation: shrink 5s linear forwards; }
@keyframes toastIn { from { opacity: 0; scale: .85; } }
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.a-note { min-height: 34px; font-size: 12px; color: var(--grey-2); text-align: center; }

/* ---------- tab bars ---------- */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: space-around; padding: 9px 12px 20px; background: var(--paper); border-top: 1px solid var(--line); transform: translateY(105%); transition: transform .45s var(--ease-out); }
.tabbar span { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 34px; border-radius: 12px; color: var(--grey); transition: color .3s; }
.tabbar svg { width: 20px; height: 20px; }
.tabbar--parent span.is-on { color: var(--brown); background: var(--cream-2); }
.tabbar--kid { background: #fff; border-top-color: rgba(47, 122, 69, .12); }
.tabbar--kid span { width: 25%; height: 46px; gap: 1px; font-size: 9.5px; font-weight: 700; }
.tabbar--kid span.is-on { color: var(--green-d); }
.tabbar__pill { position: absolute; top: 9px; left: calc(12px + var(--tab, 0) * (100% - 24px) / 4 + 4px); width: calc((100% - 24px) / 4 - 8px); height: 46px; border-radius: 14px; background: var(--mint); transition: left .5s var(--ease-spring); }
.phone[data-tabbar="parent"] .tabbar--parent, .phone[data-tabbar="kid"] .tabbar--kid { transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: 118px 24px 30px; overflow: hidden; text-align: center; background: radial-gradient(circle at center top, var(--paper) 0%, var(--cream) 70%); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 30%, rgba(226, 239, 228, 0.5) 0%, transparent 40%), radial-gradient(circle at 85% 70%, rgba(244, 227, 204, 0.4) 0%, transparent 40%); pointer-events: none; }
.hero__title { font-size: clamp(3.2rem, 8.6vw, 7.6rem); font-weight: 850; line-height: .93; letter-spacing: -.055em; }
.rise { display: inline-block; overflow: hidden; padding: 0 .03em .1em; margin: 0 -.03em -.1em; vertical-align: top; }
.rise > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 90ms + 100ms); }
.is-loaded .rise > span, html:not(.js) .rise > span { transform: none; }
.hero__sub { max-width: 32ch; margin: 24px auto 0; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--grey-2); }
.js .fade { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out) var(--d), transform .8s var(--ease-out) var(--d); }
.is-loaded .fade { opacity: 1; transform: none; }

.namer { position: relative; display: inline-flex; align-items: baseline; gap: 12px; margin-top: 30px; font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; color: var(--grey-2); }
.namer__field { position: relative; display: inline-block; }
.namer input { width: 5.6ch; min-width: 3ch; padding: 0 2px; border: 0; background: transparent; color: var(--amber-d); font-weight: 850; letter-spacing: -.03em; caret-color: var(--amber); outline: none; transition: width .25s var(--ease-out); }
.namer input::placeholder { color: #CDBFA9; }
.namer__line { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--amber); opacity: .35; transition: opacity .3s, transform .4s var(--ease-spring); transform-origin: left; }
.namer:focus-within .namer__line { opacity: 1; }
.namer__hint { position: absolute; left: calc(100% + 10px); top: 50%; display: flex; align-items: center; gap: 4px; width: 190px; font-size: 15px; font-style: italic; font-weight: 650; color: var(--amber-d); white-space: nowrap; letter-spacing: 0; transform: translateY(-40%); }
.namer__hint svg { flex: none; width: 46px; height: 24px; color: var(--amber); transform: scaleX(-1) rotate(-12deg); }
.namer.is-edited .namer__hint { opacity: 0; transition: opacity .4s; }
.hero__cta { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 30px; }
.hero__cta-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero__fine { font-size: 14px; color: var(--grey); text-align: left; line-height: 1.3; }
.hero__fine b { color: var(--brown-2); }
.hero__social-proof { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--grey-2); }
.hero__social-proof .stars { color: #F59E0B; font-size: 14px; letter-spacing: 1px; }

.hero__stage { position: relative; display: flex; justify-content: center; max-width: 1040px; margin: 60px auto 0; padding-bottom: 20px; }
.hero__phone { animation: floaty 7s ease-in-out infinite; }
.js .hero__phone { opacity: 0; translate: 0 80px; }
.is-loaded .hero__phone { opacity: 1; translate: 0 0; transition: opacity .9s ease .35s, translate 1.2s var(--ease-out) .35s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero__cub { position: absolute; z-index: 3; left: calc(50% - 345px); bottom: 50px; width: 210px; height: auto; transform-origin: 50% 100%; animation: cheer 2.8s ease-in-out infinite; filter: drop-shadow(0 22px 18px rgba(45, 37, 28, .2)); }
@keyframes cheer { 0%, 100% { transform: rotate(-3deg) translateY(0); } 30% { transform: rotate(2deg) translateY(-12px); } 50% { transform: rotate(3deg) translateY(-4px); } 70% { transform: rotate(-1deg) translateY(-10px); } }
.scrawl--l { right: calc(50% + 172px); top: 64px; }
.scrawl--r { left: calc(50% + 172px); top: 420px; }
.scrawl--r svg { transform: scaleX(-1); }
.hero__scr { padding-bottom: 14px; }
.hero__scr.bump .a-who b { animation: bump .5s var(--ease-spring); display: inline-block; }

/* =========================================================
   WHY
   ========================================================= */
.why { padding: 150px 24px 120px; }
.why__inner { max-width: 1080px; margin: 0 auto; }
.why__text { font-size: clamp(1.75rem, 3.9vw, 3.3rem); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; color: var(--brown); }
.js .why__text { color: #D4CAB9; }
.why__text + .why__text { margin-top: 1.1em; }
.why__text em { font-style: normal; }
.wd { transition: color .35s; }
.wd.is-lit { color: var(--brown); }
.wd--em.is-lit { color: var(--amber-d); }
.tok { display: inline-flex; align-items: center; gap: .25em; margin: 0 .08em; padding: .2em .55em; border-radius: 99px; font-size: .52em; font-weight: 850; letter-spacing: -.01em; vertical-align: .35em; transition: transform .6s var(--ease-spring), opacity .3s; }
.js .tok { opacity: 0; transform: scale(.2) rotate(-18deg); }
.tok.is-lit { opacity: 1; transform: none; }
.tok svg { width: 1em; height: 1em; }
.tok--in { background: var(--green-soft); color: var(--green); }
.tok--out { background: #EFE3D3; color: var(--brown-2); }
.tok--lock { background: var(--amber-soft); color: var(--amber-d); }
.tok--coin { padding: 0; vertical-align: -.08em; }
.tok--coin svg { width: 1.9em; height: 1.9em; filter: drop-shadow(0 6px 6px rgba(45, 37, 28, .2)); }
.tok--coin.is-lit svg { animation: coinspin 3.5s ease-in-out infinite; }
@keyframes coinspin { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }

/* =========================================================
   WHAT THEY LEARN (report card)
   ========================================================= */
.learn { padding: 0 24px 150px; }
.learn__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 90px; align-items: center; max-width: 1200px; margin: 0 auto; }
.learn__copy h2 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -.05em; line-height: .98; }
.learn__copy p { max-width: 36ch; margin-top: 22px; font-size: 18px; color: var(--grey-2); }
.learn__copy p b { color: var(--amber-d); }
.learn .learn__age { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--brown-2); }
.learn__age::before { content: ""; width: 18px; height: 18px; background: var(--paw) center / contain no-repeat; }

.rc-wrap { position: relative; }
.rc { position: relative; padding: 38px 40px 32px; border-radius: 8px; background: #FFFDF7; box-shadow: var(--sh-2), 0 0 0 1px var(--line), inset 0 0 0 12px #FFFDF7, inset 0 0 0 14px rgba(190, 113, 37, .3); transform: rotate(1.2deg); transition: transform .6s var(--ease-spring); }
.rc:hover { transform: rotate(0deg) translateY(-4px); }
.rc::before { content: ""; position: absolute; top: -15px; left: 50%; width: 130px; height: 32px; margin-left: -65px; background: rgba(190, 113, 37, .22); transform: rotate(-3deg); }
.rc__teacher { position: absolute; z-index: 2; left: -118px; bottom: 34px; width: 150px; height: auto; transform-origin: 50% 100%; filter: drop-shadow(0 16px 12px rgba(45, 37, 28, .2)); animation: guideBob 3.2s ease-in-out infinite; }
.rc__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 16px; border-bottom: 4px double rgba(45, 37, 28, .3); }
.rc__title small, .rc__meta small, .rc__comment small, .rc__cols { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.rc__title small { color: var(--amber-d); }
.rc__title b { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.rc__meta { display: flex; gap: 24px; text-align: right; }
.rc__meta b { font-size: 18px; font-style: italic; font-weight: 750; color: var(--amber-d); }
.rc__cols, .rc__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 52px; align-items: center; gap: 16px; }
.rc__cols { padding: 14px 0 4px; }
.rc__row { padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.rc__subj { font-size: 17.5px; font-weight: 850; letter-spacing: -.02em; }
.rc__how { font-size: 15px; color: var(--grey-2); }
.sticker { justify-self: center; width: 46px; height: 46px; transform: rotate(var(--r)); transform-origin: 80% 50%; }
.sticker svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 2px rgba(45, 37, 28, .28)); }
.rc__row:hover .sticker svg { animation: wiggle .6s var(--ease-out); }
.js .rc__row { opacity: 0; transform: translateX(-14px); transition: opacity .5s, transform .6s var(--ease-out); transition-delay: calc(var(--i) * 120ms + 150ms); }
.rc.is-in .rc__row { opacity: 1; transform: none; }
.js .sticker { opacity: 0; transform: rotate(calc(var(--r) + 40deg)) scale(2.1); }
.rc.is-in .sticker { animation: stick .45s cubic-bezier(.2, 1.5, .4, 1) forwards; animation-delay: calc(var(--i) * 140ms + 700ms); }
@keyframes stick { to { opacity: 1; transform: rotate(var(--r)) scale(1); } }
.rc__foot { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.rc__comment { flex: 1; min-width: 0; }
.rc__note { margin-top: 5px; font-size: 19px; font-style: italic; font-weight: 650; line-height: 1.35; color: var(--amber-d); }
.js .rc__note { clip-path: inset(0 100% 0 0); }
.rc.is-in .rc__note { clip-path: inset(0 0 0 0); transition: clip-path 1.8s cubic-bezier(.45, 0, .55, 1) 1.6s; }
.rc__sig { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 16px; font-style: italic; font-weight: 800; color: var(--brown-2); }
.rc__sig::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .5; }
.rc__seal { flex: none; width: 96px; height: 96px; color: var(--green); mix-blend-mode: multiply; transform: rotate(-12deg); transform-origin: 100% 50%; }
.js .rc__seal { opacity: 0; transform: rotate(-12deg) scale(1.9); }
.rc.is-in .rc__seal { animation: seal .42s cubic-bezier(.2, 1.5, .4, 1) 2.9s forwards; }
@keyframes seal { to { opacity: .9; transform: rotate(-12deg) scale(1); } }
.rc__ring { transform-box: view-box; transform-origin: 50% 50%; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.lesson { order: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 6px; border-radius: 99px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 750; letter-spacing: 0; color: var(--brown-2); white-space: nowrap; }
.lesson svg { width: 18px; height: 18px; }
.tstep .tstep__n::after { order: 1; }
.kicker .lesson { margin-left: 6px; }

/* =========================================================
   TOUR (pinned product walkthrough)
   ========================================================= */
.tour { position: relative; }
.js .tour { height: calc(6 * 95vh + 100vh); }
.tour__pin { position: relative; }
.js .tour__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.tour__bg { position: absolute; inset: 0; background: var(--cream-2); transition: background-color .8s ease; }
.tour[data-mode="kid"] .tour__bg { background: var(--mint); }
.tour__bg::before, .tour__bg::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: transform 1.2s var(--ease-out), opacity .8s; }
.tour__bg::before { width: 46vw; height: 46vw; right: -10vw; top: -14vw; }
.tour__bg::after { width: 24vw; height: 24vw; left: 38%; bottom: -12vw; opacity: 0; transform: scale(.5); }
.tour[data-mode="kid"] .tour__bg::after { opacity: 1; transform: none; }
.tour__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; height: 100%; max-width: 1240px; margin: 0 auto; padding: 90px 32px 30px; }
.tour__text { display: flex; flex-direction: column; gap: 44px; }

.bars { display: flex; gap: 16px; max-width: 440px; }
.bars__group { display: flex; flex-direction: column; gap: 4px; flex: 3; }
.bars__label { font-size: 12px; font-weight: 750; color: var(--grey-2); }
.bars__group--kid .bars__label { color: var(--green-d); }
.bars__row { display: flex; gap: 5px; }
.bar { position: relative; flex: 1; height: 22px; }
.bar::after, .bar i { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 99px; }
.bar::after { background: rgba(45, 37, 28, .13); transition: background-color .2s; }
.bar:hover::after { background: rgba(45, 37, 28, .24); }
.bar i { z-index: 1; background: var(--brown); transform-origin: left; transform: scaleX(var(--f, 0)); }
.bars__group--kid .bar i { background: var(--green); }

.tsteps { display: grid; }
.tour__ctrl { display: none; gap: 8px; }
.tctrl { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(45, 37, 28, .4); color: var(--brown); transition: transform .3s var(--ease-spring); }
.tctrl:active { transform: scale(.9); }
.tctrl svg { width: 18px; height: 18px; }
.tctrl--next svg { transform: scaleX(-1); }
.tstep { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(26px); transition: opacity .45s, transform .6s var(--ease-out), visibility 0s .6s; }
.tstep.is-past { transform: translateY(-26px); }
.tstep.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity .5s .12s, transform .75s var(--ease-out) .12s, visibility 0s; }
html:not(.js) .tstep { visibility: visible; opacity: 1; transform: none; grid-area: auto; margin-bottom: 40px; }
.tstep .tstep__n { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 15px; font-weight: 850; letter-spacing: .04em; color: var(--amber-d); }
.tstep .tstep__n::after { content: ""; width: 44px; height: 2px; background: currentColor; opacity: .45; }
.tour[data-mode="kid"] .tstep .tstep__n { color: var(--green-d); }
.tstep h2 { margin-bottom: 18px; font-size: clamp(2.3rem, 4.3vw, 3.9rem); }
.tstep p { max-width: 36ch; font-size: 18px; color: var(--grey-2); }
.tstep .tstep__meta { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14.5px; font-weight: 650; color: var(--brown-2); }
.tstep__meta::before { content: ""; flex: none; width: 18px; height: 2px; background: var(--line-2); }
.tstep__meta--try::before { width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(190, 113, 37, .5); animation: tapPing 1.8s var(--ease-out) infinite; }
@keyframes tapPing { 0% { box-shadow: 0 0 0 0 rgba(190, 113, 37, .5); } 100% { box-shadow: 0 0 0 12px rgba(190, 113, 37, 0); } }

.tour__stage { position: relative; display: grid; place-items: center; height: 100%; min-height: 0; }
.tour__phonewrap { position: relative; zoom: var(--pz, 1); }
html:not(.js) .tour__stage { padding: 40px 0; }
.tour__phone.is-handing { animation: handover 1.1s var(--ease-soft); }
@keyframes handover { 0% { transform: none; } 40% { transform: translate(-46px, 14px) rotate(-9deg); } 100% { transform: none; } }
.screens { position: absolute; inset: 0; }
.screens .scr { visibility: hidden; transform: translateX(100%); transition: transform .55s var(--ease-out), visibility 0s .55s; }
.screens .scr.is-on { z-index: 2; visibility: visible; transform: none; transition: transform .55s var(--ease-out), visibility 0s; }
.screens .scr.to-left { transform: translateX(-30%); }
.screens .scr.to-right { z-index: 3; transform: translateX(100%); }
.screens .scr.from-left { transform: translateX(-30%); transition: none; }
.screens .scr.from-right { transform: translateX(100%); transition: none; }
.screens .scr.to-left::after { content: ""; position: absolute; inset: 0; background: rgba(45, 37, 28, .12); }
html:not(.js) .screens .scr[data-scr="signin"] { visibility: visible; transform: none; }

.guide { position: absolute; z-index: 5; left: -142px; bottom: 26px; width: 150px; height: auto; transform-origin: 50% 100%; filter: drop-shadow(0 18px 14px rgba(45, 37, 28, .2)); animation: guideBob 3.2s ease-in-out infinite; }
.guide.is-swap { animation: guideIn .6s var(--ease-spring), guideBob 3.2s ease-in-out .6s infinite; }
@keyframes guideBob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -8px; rotate: -3deg; } }
@keyframes guideIn { from { scale: .4; opacity: 0; } }
.scrawl--note { left: calc(100% + 18px); top: var(--ny, 30%); flex-direction: column; align-items: flex-start; width: 200px; transition: top .6s var(--ease-out); }
.scrawl--note svg { transform: scaleX(-1) rotate(8deg); }
.scrawl--note span { transition: opacity .3s; }
.scrawl--note.is-out span { opacity: 0; }

/* =========================================================
   SAVINGS JAR (kept from v1)
   ========================================================= */
.save { padding: 130px 24px 60px; }
.save__wrap { max-width: 1200px; margin: 0 auto; }
.card { background: var(--paper); border-radius: 28px; box-shadow: var(--sh-1); }
.feat { position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden; border-radius: 34px; }
.feat h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -.035em; line-height: 1.06; }
.feat p { max-width: 48ch; font-size: 16px; color: var(--grey-2); }
.feat--invest { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 44px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 750; color: var(--amber-d); }
.kicker svg { width: 18px; height: 18px; }
.feat__copy { display: flex; flex-direction: column; gap: 14px; }
.inst { display: inline-flex; gap: 4px; width: fit-content; margin-top: 6px; padding: 5px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.inst button { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--grey-2); transition: background-color .3s, color .3s; }
.inst button[aria-checked="true"] { background: var(--brown); color: var(--cream); }
.sliders { display: grid; gap: 14px; margin-top: 4px; }
.sl { display: block; }
.sl__top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14.5px; font-weight: 650; color: var(--grey-2); }
.sl output { font-weight: 850; color: var(--brown); font-variant-numeric: tabular-nums; }
.sl input { --fill: 0%; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.sl input:disabled { cursor: not-allowed; opacity: .6; }
.sl input::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--amber) 0 var(--fill), var(--cream-3) var(--fill) 100%); }
.sl input::-moz-range-track { height: 8px; border-radius: 99px; background: var(--cream-3); }
.sl input::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--amber); }
.sl input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--paper); border: 3px solid var(--brown); box-shadow: 0 4px 10px -2px rgba(45, 37, 28, .35); transition: transform .25s var(--ease-spring); }
.sl input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 3px solid var(--brown); }
.sl input:active::-webkit-slider-thumb { transform: scale(1.18); }
.sl input:focus-visible { outline: none; }
.sl input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(190, 113, 37, .35); }
.note { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 11px 14px; border-radius: 14px; background: var(--green-soft); color: var(--green-d); font-size: 14px; font-weight: 650; }
.note svg { flex: none; width: 18px; height: 18px; }
.invest { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 44px 28px 30px; border-radius: 28px; background: var(--cream); background-image: radial-gradient(rgba(45, 37, 28, .07) 1px, transparent 1.5px); background-size: 16px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.jar-wrap { position: relative; width: 176px; height: 250px; }
.padlock { position: absolute; top: -30px; left: 50%; z-index: 4; width: 46px; height: 54px; margin-left: -23px; filter: drop-shadow(0 6px 6px rgba(45, 37, 28, .2)); }
.padlock__shackle { transform-box: view-box; transform-origin: 34px 26px; transition: transform .6s var(--ease-spring); }
.is-open .padlock__shackle { transform: translateY(-8px) rotate(32deg); }
.is-open .padlock { animation: unlock .6s var(--ease-out); }
@keyframes unlock { 30% { rotate: -12deg; } 60% { rotate: 8deg; } }
.jar-lid { position: absolute; top: 14px; left: 50%; z-index: 3; width: 124px; height: 24px; margin-left: -62px; border-radius: 9px; background: #8C6A4A; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), inset 0 3px 0 rgba(255, 255, 255, .15); }
.jar { position: absolute; top: 34px; left: 0; right: 0; bottom: 0; overflow: hidden; border-radius: 34px 34px 44px 44px; background: rgba(255, 253, 248, .7); box-shadow: inset 0 0 0 3px rgba(45, 37, 28, .14), inset 0 -14px 0 rgba(45, 37, 28, .03), 0 24px 30px -20px rgba(45, 37, 28, .4); }
.jar.is-ticking { animation: jarTick .18s ease; }
@keyframes jarTick { 50% { translate: 0 -2px; } }
.jar__coins { position: absolute; inset: 0; }
.cs { --x: 0px; position: absolute; left: 50%; bottom: calc(14px + var(--i) * 11px); width: 96px; height: 22px; margin-left: -48px; border-radius: 50%; background: #D98B3A; box-shadow: inset 0 -5px 0 #A85E1C, inset 0 2px 0 #F2B46E; transform: translateX(var(--x)); }
.cs.is-drop { animation: csDrop .6s var(--ease-spring) both; animation-delay: var(--dl, 0ms); }
.cs.is-out { animation: csOut .3s ease forwards; }
.cs--green { background: #58A870; box-shadow: inset 0 -5px 0 #2F7A45, inset 0 2px 0 #A4DDB3; }
@keyframes csDrop { from { transform: translate(var(--x), -240px); opacity: 0; } 40% { opacity: 1; } }
@keyframes csOut { to { transform: translate(var(--x), -40px); opacity: 0; } }
.jar__label { position: absolute; top: 40%; left: 50%; z-index: 2; padding: 7px 12px; border-radius: 9px; background: var(--paper); box-shadow: 0 2px 6px rgba(45, 37, 28, .15), 0 0 0 1px var(--line); font-size: 13px; font-weight: 800; white-space: nowrap; transform: translate(-50%, -50%) rotate(-4deg); }
.jar__shine { position: absolute; top: 22px; left: 16px; z-index: 3; width: 11px; height: 58%; border-radius: 99px; background: rgba(255, 255, 255, .75); }
.jar__plus { position: absolute; top: 36px; right: -46px; z-index: 5; padding: 6px 11px; border-radius: 99px; background: var(--green); color: #fff; font-size: 14px; font-weight: 850; opacity: 0; scale: .4; transition: opacity .3s, scale .5s var(--ease-spring); }
.is-open .jar__plus { opacity: 1; scale: 1; transition-delay: .5s; }
.payout { text-align: center; }
.payout__line { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 28px; font-weight: 850; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.payout__line svg { width: 22px; height: 22px; color: var(--grey); }
.payout__line b { color: var(--green); }
.payout small { font-size: 14px; color: var(--grey-2); }
.ff { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; max-width: 320px; }
.ff__bar { width: 100%; height: 10px; overflow: hidden; border-radius: 99px; background: var(--cream-3); }
.ff__bar i { display: block; height: 100%; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--amber) 0 8px, #D08A3E 8px 16px); transform-origin: left; transform: scaleX(var(--ff, 0)); transition: transform .15s linear; }
.is-open .ff__bar i { background: var(--green); }
.ff__day { font-size: 13px; font-weight: 700; color: var(--grey-2); font-variant-numeric: tabular-nums; }
.is-open .ff__day { color: var(--green); }

/* =========================================================
   MODES (kept from v1)
   ========================================================= */
.modes { position: relative; padding: clamp(80px, 9vw, 128px) 0; }
.modes__bg { position: absolute; inset: 0 16px; border-radius: 44px; background: var(--cream-2); transition: background-color .8s ease; }
.modes[data-mode="kid"] .modes__bg { background: var(--mint); }
.modes__bg::before, .modes__bg::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); opacity: 0; transform: scale(.6); transition: opacity .8s, transform 1.2s var(--ease-out); }
.modes__bg::before { width: 220px; height: 220px; right: 8%; top: 12%; }
.modes__bg::after { width: 120px; height: 120px; left: 42%; bottom: 10%; }
.modes[data-mode="kid"] .modes__bg::before, .modes[data-mode="kid"] .modes__bg::after { opacity: 1; transform: none; }
.modes__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin: 30px 0 26px; padding: 6px; border-radius: 999px; background: var(--paper); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.switch button { position: relative; z-index: 1; padding: 12px 22px; border-radius: 999px; font-size: 15.5px; font-weight: 750; color: var(--grey-2); transition: color .35s; }
.switch button[aria-selected="true"] { color: var(--cream); }
.switch__thumb { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: var(--brown); transition: transform .55s var(--ease-spring), background-color .45s; }
.modes[data-mode="kid"] .switch__thumb { transform: translateX(100%); background: var(--green); }
.modes__panels { display: grid; }
.mpanel { grid-area: 1 / 1; }
.mpanel__lead { margin-bottom: 8px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px dashed var(--line-2); font-size: 16.5px; animation: liIn .5s var(--ease-out) both; }
.ticks li:nth-child(2) { animation-delay: .06s; }
.ticks li:nth-child(3) { animation-delay: .12s; }
.ticks li:nth-child(4) { animation-delay: .18s; }
.ticks li:nth-child(5) { animation-delay: .24s; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.modes[data-mode="parent"] .ticks li::before { background-color: var(--brown); }
.ticks li.no { color: var(--grey-2); }
.ticks li.no::before { background: #CDBFA9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 7.5l9 9M16.5 7.5l-9 9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
@keyframes liIn { from { opacity: 0; transform: translateX(-12px); } }
.modes__note { display: flex; gap: 12px; margin-top: 22px; padding: 15px 17px; border-radius: 18px; background: rgba(255, 253, 248, .6); font-size: 14.5px; color: var(--grey-2); }
.modes__note svg { flex: none; width: 20px; height: 20px; color: var(--amber-d); }
.modes__stage { position: relative; display: grid; place-items: center; min-height: 690px; perspective: 1800px; }
.flip { position: relative; width: 300px; height: 620px; transform-style: preserve-3d; transition: transform 1.1s var(--ease-soft); }
.modes[data-mode="kid"] .flip { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip__face--kid { transform: rotateY(180deg); }
.app { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 11px; padding: 54px 16px 0; }
.app__top { display: flex; align-items: center; gap: 10px; }
.app__who small { display: block; font-size: 10.5px; font-weight: 650; color: var(--grey); }
.app__who b { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.app__iconbtn { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.app__iconbtn svg { width: 17px; height: 17px; }
.app__label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 750; }
.app__cub { width: 46px; height: auto; margin-left: auto; transform-origin: 50% 100%; animation: cubNod 2.4s ease-in-out infinite; }
.bal { position: relative; overflow: hidden; padding: 14px 16px 0; border-radius: 22px; background: var(--brown); color: var(--cream); }
.bal small { font-size: 11px; opacity: .7; font-weight: 600; }
.bal__num { font-size: 30px; font-weight: 850; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bal__delta { display: flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 650; }
.bal__delta svg { width: 12px; height: 12px; }
.bal--kid { background: var(--green); }
.bal--kid .bal__delta { color: #D3F0DB; padding-bottom: 14px; }
.pkids { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 14px; }
.pkid { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 12px; background: rgba(248, 245, 237, .08); font-size: 13px; font-weight: 600; }
.pkid b { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.pactions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pactions span { display: flex; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 700; }
.pactions svg { flex: none; width: 17px; height: 17px; color: var(--amber-d); }
.prules { display: flex; flex-direction: column; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.prules > span { display: flex; justify-content: space-between; padding: 11px 12px; font-size: 12.5px; color: var(--grey-2); }
.prules > span + span { border-top: 1px solid var(--line); }
.prules b { font-weight: 800; color: var(--brown); }
.prules b.green { color: var(--green); }
.mtabbar { display: flex; justify-content: space-around; padding: 10px 18px 20px; background: var(--paper); border-top: 1px solid var(--line); }
.mtabbar span { display: grid; place-items: center; width: 44px; height: 32px; border-radius: 12px; color: var(--grey); }
.mtabbar span.is-on { color: var(--brown); background: var(--cream-2); }
.mtabbar svg { width: 20px; height: 20px; }
.kchores { display: flex; flex-direction: column; gap: 7px; }
.kchores li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; font-size: 13px; font-weight: 650; }
.kchores li b { margin-left: auto; font-weight: 800; color: var(--green); }
.kchores li.is-done { color: var(--grey); }
.kbox { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px #A9CDB5; color: #fff; }
.kbox svg { width: 13px; height: 13px; }
.is-done .kbox { background: var(--green); box-shadow: none; }
.kinv { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: #fff; font-size: 13px; }
.kinv__top { display: flex; justify-content: space-between; }
.kinv__top > span { font-weight: 700; }
.kinv__bar { height: 8px; border-radius: 99px; background: #D5EADB; }
.kinv__bar i { display: block; width: 57%; height: 100%; border-radius: inherit; background: var(--green); }
.kinv small { color: var(--grey); }
.kbtn { display: block; margin-top: auto; margin-bottom: 18px; padding: 13px; border-radius: 16px; background: var(--green-d); color: var(--mint-2); font-size: 14px; font-weight: 750; text-align: center; }
.modes__try { position: absolute; left: 50%; bottom: 0; font-size: 13.5px; font-weight: 650; color: var(--grey-2); white-space: nowrap; transform: translateX(-50%); transition: opacity .4s; }
.passcode { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; border-radius: 40px; background: rgba(220, 239, 227, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.passcode__card { width: 304px; padding: 12px 22px 22px; border-radius: 34px; background: var(--paper); box-shadow: var(--sh-2), 0 0 0 1px var(--line); text-align: center; animation: pcIn .55s var(--ease-spring); }
@keyframes pcIn { from { opacity: 0; scale: .8; translate: 0 30px; } }
.pc-cub { position: relative; width: 104px; height: 104px; margin: -62px auto 6px; }
.pc-cub svg { width: 100%; height: 100%; overflow: hidden; }
.pc-eyes, .pc-happy { transition: opacity .2s; }
.pc-happy { opacity: 0; }
.pc-cub.is-happy .pc-eyes { opacity: 0; }
.pc-cub.is-happy .pc-happy { opacity: 1; }
.pc-paw { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease-spring); }
.pc-cub.is-typing .pc-paw--l { transform: translate(3px, -75px) rotate(12deg); }
.pc-cub.is-typing .pc-paw--r { transform: translate(-3px, -75px) rotate(-12deg); transition-delay: .05s; }
.pc-bubble { position: absolute; left: 92px; top: 0; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: var(--brown); color: var(--cream); font-size: 12.5px; font-weight: 750; white-space: nowrap; opacity: 0; scale: .5; transform-origin: 0 100%; transition: opacity .25s, scale .45s var(--ease-spring); }
.pc-cub.is-typing .pc-bubble, .pc-cub.is-talking .pc-bubble { opacity: 1; scale: 1; }
.pc-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.pc-hint { margin-top: 2px; font-size: 13px; color: var(--grey-2); }
.pc-dots { display: flex; justify-content: center; gap: 14px; margin: 16px 0; }
.pc-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--brown); transition: background-color .15s, scale .35s var(--ease-spring), box-shadow .2s; }
.pc-dots i.on { background: var(--brown); scale: 1.15; }
.passcode__card.is-wrong .pc-dots { animation: shake .45s; }
.passcode__card.is-wrong .pc-dots i.on { background: #B4533E; box-shadow: inset 0 0 0 2px #B4533E; }
.passcode__card.is-right .pc-dots i.on { background: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
@keyframes shake { 20% { translate: -9px 0; } 40% { translate: 8px 0; } 60% { translate: -6px 0; } 80% { translate: 3px 0; } }
.pc-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc-keys button { display: grid; place-items: center; height: 52px; border-radius: 16px; background: var(--cream); font-size: 21px; font-weight: 750; transition: transform .15s, background-color .15s; }
.pc-keys button:hover { background: var(--cream-2); }
.pc-keys button:active { transform: scale(.92); background: var(--cream-3); }
.pc-keys .pc-key--muted { background: transparent; font-size: 13.5px; color: var(--grey-2); }
.pc-keys svg { width: 24px; height: 24px; }

/* =========================================================
   PAGE TOPS (sections that open their own page)
   ========================================================= */
.pkick, .ptitle > .pkick { display: flex; max-width: none; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 750; letter-spacing: .01em; color: var(--amber-d); }
.pkick::before { content: ""; width: 30px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; }
.phead { padding: 150px 32px 20px; background: var(--cream-2); }
.phead + .tour .tour__bg::before { top: 7vw; right: -14vw; }
.phead__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; max-width: 1176px; margin: 0 auto; }
.phead h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); letter-spacing: -.05em; line-height: .95; }
.phead__sub { max-width: 42ch; font-size: 18px; color: var(--grey-2); }
.phead__sub b { color: var(--amber-d); }
.modes.is-first { padding-top: calc(84px + clamp(60px, 7vw, 100px)); }
.modes.is-first .modes__bg { top: 84px; }
.chat.is-first { padding-top: 150px; }

/* =========================================================
   KEEP EXPLORING (contents-page index of the other pages)
   ========================================================= */
.more { padding: 30px 24px 20px; }
.more__wrap { max-width: 1140px; margin: 0 auto; }
.more__h { margin-bottom: 26px; font-size: clamp(2rem, 4vw, 3.1rem); }
.more__list { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--brown); }
.more__row { --tint: var(--paper); position: relative; isolation: isolate; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 28px 22px 28px 14px; overflow: hidden; border-bottom: 1px dashed var(--line-2); }
.more__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tint); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease-out); }
a.more__row:hover::before, a.more__row:focus-visible::before { transform: none; }
.more--amber { --tint: #F6E6CF; }
.more--mint { --tint: var(--mint); }
.more--cream { --tint: #EFE6D6; }
.more--paper { --tint: var(--paper); }
.more__n { font-size: 14px; font-weight: 800; color: var(--amber-d); font-variant-numeric: tabular-nums; }
.more__t b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 850; letter-spacing: -.045em; line-height: 1; }
.more__t small { display: block; margin-top: 8px; font-size: 16.5px; color: var(--grey-2); }
.more__here { padding: 4px 10px; border-radius: 99px; background: var(--brown); color: var(--cream); font-size: 12.5px; font-style: normal; font-weight: 750; letter-spacing: 0; }
.more__row.is-here .more__t b { color: var(--grey-2); }
.more__cub { position: absolute; right: 100px; bottom: -128px; width: 118px; height: auto; pointer-events: none; transform: translateY(-26px); transition: transform .55s var(--ease-spring); }
a.more__row:hover .more__cub, a.more__row:focus-visible .more__cub { transform: translateY(-116px) rotate(-5deg); }
.more__go { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--brown); color: var(--cream); transition: transform .45s var(--ease-spring); }
a.more__row:hover .more__go, a.more__row:focus-visible .more__go { transform: translateX(6px); }
@media (hover: none) {
  .more__row { grid-template-columns: 48px minmax(0, 1fr) 76px 40px; }
  .more__cub { position: static; width: 76px; transform: none !important; }
  .more__go { width: 40px; height: 40px; padding: 10px; }
}

/* =========================================================
   TRUST (stamps)
   ========================================================= */
.trust { max-width: 1200px; margin: 0 auto; padding: 150px 24px 120px; }
.trust__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 50px; }
.trust__head :is(h1, h2) { font-size: clamp(2.8rem, 6.4vw, 5.4rem); letter-spacing: -.05em; line-height: .95; }
.trust__head p { max-width: 40ch; font-size: 18px; color: var(--grey-2); }
.trust__rows { border-top: 3px solid var(--brown); }
.trow { display: flex; align-items: center; gap: 22px; padding: 16px 0; border-bottom: 1px dashed var(--line-2); }
.trow dt { flex: none; font-size: clamp(1.3rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; }
.trow::after { content: ""; order: 1; flex: 1; min-width: 20px; border-bottom: 3px dotted #D6CAB6; transform: translateY(6px); }
.trow dd { order: 2; flex: none; }
.stamp { --rot: -5deg; display: inline-block; padding: 5px 16px; border: 3px solid var(--green); border-radius: 10px; color: var(--green); font-size: clamp(.95rem, 1.6vw, 1.3rem); font-weight: 900; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; mix-blend-mode: multiply; transform: rotate(var(--rot)); transform-origin: 100% 50%; }
.trow:nth-child(even) .stamp { --rot: 4deg; }
.stamp--amber { border-color: var(--amber-d); color: var(--amber-d); }
.stamp--brown { border-color: var(--brown-2); color: var(--brown-2); }
.js .stamp { opacity: 0; transform: rotate(var(--rot)) scale(2.4); }
.trust__rows.is-in .stamp { animation: stamp .42s cubic-bezier(.2, 1.5, .4, 1) forwards; animation-delay: var(--sd, 0ms); }
@keyframes stamp { to { opacity: .92; transform: rotate(var(--rot)) scale(1); } }
.trust__rows.is-in .trow { animation: thud .35s ease-out; animation-delay: calc(var(--sd, 0ms) + 120ms); }
@keyframes thud { 40% { translate: 0 2px; } }

/* =========================================================
   CHAT
   ========================================================= */
.chat { padding: 110px 24px 130px; }
.chat__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; max-width: 1140px; margin: 0 auto; }
.chat__side { position: sticky; top: 110px; }
.chat__side :is(h1, h2) { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.chat__cub { width: 190px; height: auto; margin-top: 30px; transform-origin: 50% 100%; animation: cubNod 3.4s ease-in-out infinite; }
.thread { display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; align-items: flex-end; gap: 10px; max-width: 82%; }
.msg--q { align-self: flex-end; }
.msg--a { align-self: flex-start; margin-bottom: 18px; }
.msg--a::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--paper) url("../favicon.svg") center 55% / 30px no-repeat; box-shadow: 0 0 0 1px var(--line); }
.bubble { padding: 13px 18px; border-radius: 22px; font-size: 16.5px; line-height: 1.45; }
.msg--q .bubble { border-bottom-right-radius: 6px; background: var(--brown); color: var(--cream); font-weight: 650; }
.msg--a .bubble { border-bottom-left-radius: 6px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); color: var(--brown-2); }
.bubble ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.bubble li { padding: 2px 0; }
.bubble li::marker { color: var(--amber); }
.js .msg { opacity: 0; translate: 0 14px; }
.msg.is-in, .msg.is-typing { opacity: 1; translate: 0 0; transition: opacity .4s, translate .5s var(--ease-out); }
.msg.is-typing .bubble { display: none; }
.typing { display: none; gap: 5px; padding: 16px 18px; border-radius: 22px 22px 22px 6px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.msg.is-typing .typing { display: flex; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--grey); animation: typingDot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 60%, 100% { translate: 0 0; opacity: .4; } 30% { translate: 0 -5px; opacity: 1; } }

/* =========================================================
   END (cub in a pocket)
   ========================================================= */
.end { position: relative; padding: 110px 24px 0; overflow: hidden; text-align: center; }
.end h2 { font-size: clamp(2.8rem, 7vw, 6rem); letter-spacing: -.05em; line-height: .98; }
.end p { margin-top: 16px; font-size: 18px; color: var(--grey-2); }
.end__cta { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; }
.end__ios { font-size: 14.5px; font-weight: 650; color: var(--grey); }
.pocket { position: relative; width: min(560px, 100%); height: 330px; margin: 50px auto 0; }
.pocket__rain svg { position: absolute; z-index: 1; top: 0; left: var(--x); width: 34px; height: 34px; animation: drop var(--t) ease-in var(--dl) infinite; }
@keyframes drop { 0% { transform: translateY(-40px) rotate(0); opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 100% { transform: translateY(240px) rotate(320deg); opacity: 0; } }
.pocket__back { position: absolute; left: 3%; right: 3%; bottom: 186px; height: 22px; border-radius: 50%; background: #1A140F; }
.pocket__cub { position: absolute; z-index: 2; left: 50%; bottom: 58px; width: 240px; height: auto; margin-left: -120px; transform-origin: 50% 100%; animation: peek 3.6s ease-in-out infinite; }
@keyframes peek { 0%, 100% { transform: translateY(0) rotate(-2deg); } 45% { transform: translateY(-26px) rotate(3deg); } 60% { transform: translateY(-20px) rotate(-1deg); } }
.pocket__front { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 200px; background: #5B4331; clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%); }
.pocket__front::before { content: ""; position: absolute; inset: 14px; clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%); background: repeating-linear-gradient(90deg, rgba(244, 222, 196, .8) 0 10px, transparent 10px 18px) top / 100% 3px no-repeat; }
.pocket__front::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: rgba(0, 0, 0, .25); }
.pocket__tag { position: absolute; left: 50%; top: 58px; padding: 7px 16px; border-radius: 6px; background: var(--amber); color: var(--cream); font-size: 14px; font-weight: 850; letter-spacing: .04em; transform: translateX(-50%) rotate(-3deg); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 30px 32px; background: var(--brown); color: var(--cream); }
.foot .brand__mark { width: 30px; height: 30px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; font-size: 14px; color: rgba(248, 245, 237, .75); }
.foot__links a:hover { color: var(--cream); }
.foot__c { width: 100%; font-size: 13px; color: rgba(248, 245, 237, .55); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { gap: 18px; }
  .hero__stage { zoom: .88; }
  .feat--invest { padding: 34px; gap: 30px; }
  .scrawl--note { display: none; }
}

@media (max-width: 900px) {
  .nav { gap: 10px; padding: 12px 16px; }
  .nav.is-open { background: var(--cream); box-shadow: 0 1px 0 var(--line); }
  .nav .btn--sm { margin-left: auto; }
  .nav__menu { display: block; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; max-height: calc(100vh - 70px); margin: 0; padding: 4px 16px 22px; overflow-y: auto; background: var(--cream); box-shadow: 0 26px 40px -26px rgba(45, 37, 28, .45); font-size: 1.55rem; font-weight: 800; letter-spacing: -.035em; color: var(--brown); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .22s, transform .35s var(--ease-out), visibility 0s .35s; }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition: opacity .22s, transform .35s var(--ease-out); }
  .nav__links a { display: flex; align-items: center; justify-content: space-between; padding: 15px 2px; border-bottom: 1px dashed var(--line-2); }
  .nav__links a::after { position: static; flex: none; width: 10px; height: 10px; border-radius: 50%; transform: scale(0); transform-origin: 50% 50%; }
  .nav__links a[aria-current="page"] { color: var(--amber-d); }
  .phead__inner { grid-template-columns: 1fr; gap: 18px; }
  .scrawl--l, .scrawl--r { display: none; }
  .hero__cub { left: calc(50% - 250px); width: 150px; bottom: 30px; }
  .namer { flex-wrap: wrap; justify-content: center; }
  .namer__hint { position: static; width: 100%; justify-content: center; margin-top: 4px; transform: none; }
  .namer__hint svg { transform: scaleX(-1) rotate(-60deg); }

  .js .tour.is-story { height: auto; }
  .js .tour.is-story .tour__pin { position: relative; height: auto; }
  .tour__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; gap: 8px; padding: 84px 16px 64px; }
  .tour__text { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 12px; }
  .bars { max-width: none; gap: 10px; }
  .tour__ctrl { display: flex; }
  .tsteps { grid-column: 1 / -1; touch-action: pan-y; }
  .tstep h2 { margin-bottom: 10px; font-size: clamp(1.9rem, 7.6vw, 2.6rem); }
  .tstep p { max-width: none; font-size: 16px; }
  .tstep .tstep__meta { margin-top: 12px; font-size: 14px; }
  .tstep .tstep__n { margin-bottom: 10px; font-size: 13px; }
  .tour__stage { height: auto; padding-top: 74px; }
  .guide { left: auto; right: -34px; top: -100px; bottom: auto; width: 116px; }

  .feat--invest { grid-template-columns: 1fr; }
  .learn__grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .rc__teacher { left: auto; right: -8px; top: -96px; bottom: auto; width: 110px; }
  .modes__grid { grid-template-columns: 1fr; gap: 0; }
  .modes__copy { display: contents; }
  .modes__copy > .tag { order: 1; justify-self: start; }
  .modes__copy > :is(h1, h2) { order: 2; }
  .modes__copy > .switch { order: 3; justify-self: start; margin-bottom: 8px; }
  .modes__stage { order: 4; min-height: 0; padding: 20px 0 44px; }
  .modes__panels { order: 5; }
  .modes__note { order: 6; }
  .trust__head, .chat__grid { grid-template-columns: 1fr; gap: 20px; }
  .chat__side { position: static; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .chat__cub { width: 120px; margin: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .btn--sm { padding: 9px 14px; font-size: 13.5px; }
  .hero { padding: 100px 16px 20px; }
  .hero__cta { flex-direction: column; gap: 14px; }
  .hero__fine { text-align: center; }
  .hero__stage { zoom: .72; margin-top: 40px; }
  .hero__cub { left: calc(50% - 235px); }
  .why { padding: 90px 16px 100px; }
  .save { padding: 80px 16px 40px; }
  .learn { padding: 0 16px 100px; }
  .rc { padding: 30px 22px 24px; transform: rotate(.6deg); }
  .rc__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rc__meta { text-align: left; }
  .rc__cols { display: none; }
  .rc__row { grid-template-columns: minmax(0, 1fr) 42px; grid-template-areas: "s k" "h k"; gap: 2px 12px; }
  .rc__subj { grid-area: s; }
  .rc__how { grid-area: h; font-size: 14px; }
  .sticker { grid-area: k; width: 40px; height: 40px; }
  .rc__note { font-size: 17px; }
  .rc__seal { width: 74px; height: 74px; }
  .rc__teacher { width: 88px; top: -80px; }
  .feat--invest { padding: 22px; border-radius: 28px; }
  .invest { padding: 40px 16px 22px; }
  .jar__plus { right: -30px; }
  .payout__line { font-size: 24px; }
  .modes__bg { inset: 0 8px; border-radius: 32px; }
  .modes__grid { padding: 0 16px; }
  .modes__stage { zoom: .82; }
  .switch button { padding: 11px 16px; font-size: 14.5px; }
  .trust { padding: 100px 16px 80px; }
  .trow { gap: 12px; padding: 13px 0; }
  .trow dt { flex: 0 1 auto; min-width: 0; font-size: 1.2rem; line-height: 1.15; }
  .trow::after { min-width: 12px; }
  .stamp { padding: 4px 9px; border-width: 2.5px; font-size: .8rem; }
  .chat { padding: 70px 16px 90px; }
  .msg { max-width: 92%; }
  .bubble { font-size: 15px; }
  .end { padding: 80px 16px 0; }
  .end__cta { flex-direction: column; gap: 12px; }
  .pocket { height: 290px; }
  .pocket__cub { width: 200px; margin-left: -100px; }
  .foot { padding: 26px 16px; }
  .phead { padding: 110px 16px 10px; }
  .phead__sub { font-size: 16.5px; }
  .chat.is-first { padding-top: 110px; }
  .modes.is-first { padding-top: 124px; }
  .modes.is-first .modes__bg { top: 72px; }
  .more { padding: 10px 16px 0; }
  .more__row, a.more__row { grid-template-columns: 26px minmax(0, 1fr) 64px; gap: 12px; padding: 20px 4px; }
  .more__t b { font-size: 1.65rem; }
  .more__t small { font-size: 14.5px; }
  .more__cub { position: static; width: 64px; transform: none !important; }
  .more__go { display: none; }
  .foot__links { margin-left: 0; }
}

@media (max-width: 400px) {
  .hero__stage { zoom: .64; }
  .modes__stage { zoom: .76; }
  .trow dt { font-size: 1.1rem; }
  .nav .btn--sm { padding: 9px 12px; font-size: 13px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand__mark { width: 32px; height: 32px; }
}

/* =========================================================
   REDUCED MOTION: calmer, never frozen
   ========================================================= */
html.rm { scroll-behavior: auto; }
.rm .screens .scr, .rm .screens .scr.is-on, .rm .screens .scr.to-left, .rm .screens .scr.to-right { transform: none !important; transition: opacity .35s, visibility 0s .35s; opacity: 0; }
.rm .screens .scr.is-on { opacity: 1; transition: opacity .35s, visibility 0s; }
.rm .screens .scr.to-left::after { display: none; }
.rm .tour__phone.is-handing { animation: none; }
.rm .flip { transition-duration: .5s; }
.rm .hero__cub, .rm .pocket__cub { animation-duration: 5s; }
.rm .hero__phone { animation: none; }
.rm .rc__ring { animation-duration: 40s; }
