/* InnerSteps landing pages: template fixes, motion and the download popup.
   Shared by every landing page. Uses the individual translate / scale / rotate
   properties so it never fights the inline transform on an element.
   Overrides start with "html" so they beat the page's own !important rules. */

/* =========================================================
   1. TEMPLATE FIXES (4 Dec, round 2)
   ========================================================= */

/* Hero: Ricky 10% smaller than the original on every screen; proof badges a touch bigger */
html .r-hero-art>div{width:54%!important;max-width:225px!important}
html .r-badges{zoom:1.026}
@container pg (max-width: 384px){html .r-badges{zoom:.95}} /* small phones: keep the laurels inside the screen */
@container pg (min-width: 760px){
  html .r-hero-art>div{width:90%!important;max-width:396px!important}
  /* Ricky sits on the green bar at the bottom of the hero, not halfway up */
  html .r-hero-art{display:flex!important;align-items:flex-end;justify-content:center}
  html .r-hero-art>div{margin:0!important}
  html .r-badges{zoom:1.235;margin-top:28px!important}
  /* Ricky faces the headline and button, so your eye goes back to them (Ricky pages only) */
  html[data-theme="ricky-calm"] .r-hero-art img,html[data-theme="ricky-school"] .r-hero-art img,html[data-theme="pepper"] .r-hero-art img{transform:scaleX(-1)}
}
/* The green bar under Ricky reaches both edges on the widest screens */
html .r-hero-art>div>div[aria-hidden="true"]{left:-100vw!important;right:-100vw!important}

/* 441 to 759 px (big phones, small tablets): full-width backgrounds, centred content */
@container pg (min-width: 441px) and (max-width: 759px){
  html .is-page{max-width:none!important}
  html .r-hdr{padding-left:max(14px,calc((100cqi - 600px) / 2))!important;padding-right:max(14px,calc((100cqi - 600px) / 2))!important}
  html .is-page>section,html .is-page>footer{padding-left:max(22px,calc((100cqi - 560px) / 2))!important;padding-right:max(22px,calc((100cqi - 560px) / 2))!important}
  html .r-hero-art{margin-left:calc(-1 * max(22px,calc((100cqi - 560px) / 2)))!important;margin-right:calc(-1 * max(22px,calc((100cqi - 560px) / 2)))!important}
  html .r-hero-art>div{max-width:252px!important}
  html .r-in{max-width:560px!important;margin-left:auto!important;margin-right:auto!important}
  /* Watch it / Practise it / Use it: keep the phone layout's size so it isn't 3 screens tall */
  html .r-wpu-m{max-width:400px!important;margin-left:auto!important;margin-right:auto!important}
}

/* "proven" links: blue like a real link everywhere except the hero line */
html .is-page a[href="/science"]{color:#1E66C8!important;text-decoration:underline!important;text-decoration-thickness:1.5px!important;text-underline-offset:3px!important}
html .is-page a[href="/science"]:hover{color:#174F9C!important}
html .is-page .r-sub a[href="/science"]{color:inherit!important;text-decoration:none!important}

/* Footer links on the lighter green */
html .is-foot a:hover{color:#FFFFFF!important;text-decoration:underline;text-underline-offset:4px}

/* Awards hang like tags (the shelf bar is gone) */
html img[src*="award-"]{filter:drop-shadow(0 8px 10px rgba(24,56,41,.18))}

/* Header gets a soft shadow once you scroll */
.r-hdr{transition:box-shadow .3s ease,translate .35s cubic-bezier(.2,.8,.2,1)}
.lp-scrolled .r-hdr{box-shadow:0 8px 20px -14px rgba(24,56,41,.45)}

/* =========================================================
   2. NAV OPTIONS (pick one; switch with ?nav=a / b / c)
   A: current. B: logo + Download only. C: jump links that hide as you read.
   ========================================================= */
.lp-nav-b .r-desk-nav,.lp-nav-b .r-menu{display:none!important}
.lp-nav-c.lp-hdr-hide .r-hdr{translate:0 -105%}
.lp-switch{position:fixed;left:12px;bottom:12px;z-index:90;display:flex;gap:4px;align-items:center;padding:6px 8px;border-radius:999px;background:#183829;color:#fff;font:700 12px/1 Nunito,system-ui,sans-serif;box-shadow:0 6px 16px rgba(0,0,0,.25)}
.lp-switch b{margin:0 4px 0 2px;font-weight:800;opacity:.75}
.lp-switch button{width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:#fff;font:800 13px/1 Nunito,system-ui,sans-serif;cursor:pointer}
.lp-switch button[aria-pressed="true"]{background:#7AB838;color:#183829}

/* Reading progress line along the very top */
.lp-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:60;background:#7AB838;transform-origin:0 50%;scale:0 1;pointer-events:none}

/* =========================================================
   3. FIRST SCREEN (plays once on load)
   ========================================================= */
@keyframes lp-up{from{opacity:0;translate:0 18px}}
/* Round 6: the first screen no longer fades or slides in. It shows straight away. */
/* Round 7: the two badges (4.8 App Store, Education Platform of the Year) swing in about a second after the page appears */
@keyframes lp-pop-in{0%{opacity:0;scale:.6;rotate:-6deg}70%{opacity:1;scale:1.06;rotate:1deg}100%{opacity:1;scale:1;rotate:0deg}}
.lp-js .r-badges>*{animation:lp-pop-in .6s cubic-bezier(.34,1.4,.5,1) both}
.lp-js .r-badges>*:nth-child(1){animation-delay:1s}
.lp-js .r-badges>*:nth-child(2){animation-delay:1.2s}

/* Download buttons: a soft shine sweeps across every few seconds */
html .is-btn{position:relative}
.is-btn::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.5) 50%,transparent 62%) no-repeat;background-size:250% 100%;background-position:130% 0;animation:lp-shine 7s ease-in-out 4s infinite}
@keyframes lp-shine{0%{background-position:130% 0}14%,100%{background-position:-30% 0}}
.lp-nudge .is-arrow{animation:is-nudge 1.1s ease-in-out .3s 3!important}

/* =========================================================
   4. SCROLL REVEALS
   ========================================================= */
.lp-rv{opacity:0;translate:0 20px;transition:opacity .6s ease,translate .8s cubic-bezier(.16,1,.3,1),scale .7s cubic-bezier(.34,1.3,.5,1),rotate .7s cubic-bezier(.34,1.3,.5,1);transition-delay:var(--lp-d,0s)}
.lp-from-l{translate:-56px 0}
.lp-slap-off{scale:1.5;rotate:9deg;transition-timing-function:ease,cubic-bezier(.16,1,.3,1),cubic-bezier(.5,1.7,.6,1),cubic-bezier(.5,1.7,.6,1)}
.lp-rv.lp-on{opacity:1;translate:none;scale:none;rotate:none}
/* Round 7: footer links come in more gently */
.lp-rv.lp-soft{translate:0 6px;transition:opacity .5s ease,translate .6s ease;transition-delay:var(--lp-d,0s)}
.lp-rv.lp-soft.lp-on{translate:none}
.is-rv{transition-delay:var(--lp-d,0s)}

/* Award tags swing onto their hooks one at a time */
.lp-swing{transform-origin:50% 0;opacity:0}
.lp-swing.lp-on{animation:lp-swing 1.5s cubic-bezier(.3,.7,.4,1) var(--lp-d,0s) both}
@keyframes lp-swing{0%{opacity:0;translate:0 -30px;rotate:-16deg}25%{opacity:1;translate:0 0;rotate:10deg}45%{rotate:-6deg}65%{rotate:3deg}82%{rotate:-1deg}100%{opacity:1;rotate:0deg}}

/* Report card A+ stamp */
.lp-stamp{opacity:0;scale:1.8;rotate:-14deg;transition:opacity .25s ease,scale .45s cubic-bezier(.5,1.6,.6,1),rotate .45s cubic-bezier(.5,1.6,.6,1);transition-delay:var(--lp-d,0s)}
.lp-stamp.lp-on{opacity:1;scale:none;rotate:none}

/* Pepper waves hello on the pricing card */
.lp-wave.lp-on{animation:lp-wave 1.3s ease-in-out .6s}
@keyframes lp-wave{0%,100%{rotate:0deg}15%{rotate:-14deg}30%{rotate:10deg}45%{rotate:-10deg}60%{rotate:6deg}75%{rotate:-3deg}}

/* Closing headline: words rise in one by one */
.lp-w2{display:inline-block;opacity:0;translate:0 .45em;transition:opacity .5s ease,translate .75s cubic-bezier(.16,1,.3,1)}
.lp-words.lp-on .lp-w2{opacity:1;translate:none}

/* Counting numbers keep their width */
.lp-count{font-variant-numeric:tabular-nums}

/* =========================================================
   5. THE ROAD BETWEEN THE 3 STEPS
   Draws along its own route as you scroll, with a dot leading the way.
   Each picture gives a little bounce when the road reaches it.
   ========================================================= */
.lp-road-dot{position:absolute;z-index:1;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:#7AB838;border:3px solid #FFFCF6;box-shadow:0 0 0 2px #183829,0 0 0 9px rgba(122,184,56,.22);pointer-events:none;opacity:0;transition:opacity .35s ease}
.lp-road-dot.lp-on{opacity:1}
@keyframes lp-hit{0%{scale:1}35%{scale:1.07}70%{scale:.98}100%{scale:1}}
.lp-hit{animation:lp-hit .6s cubic-bezier(.34,1.4,.5,1)}
.lp-chip{scale:0;transition:scale .45s cubic-bezier(.34,1.7,.5,1)}
.lp-chip.lp-on{scale:1}

/* Highlighter marks sweep across ("calm down", "I'm fine") */
.lp-mark{background-repeat:no-repeat!important;background-size:0% 100%!important;transition:background-size .7s cubic-bezier(.6,0,.2,1) .35s}
.lp-mark.lp-on{background-size:100% 100%!important}

/* =========================================================
   6. SMALL TOUCHES
   ========================================================= */
@keyframes lp-wiggle{0%{rotate:0deg;scale:1}25%{rotate:-4deg;scale:1.08}50%{rotate:3deg;scale:1.08}75%{rotate:-1.5deg;scale:1.03}100%{rotate:0deg;scale:1}}
.is-pill.lp-pill-on{animation:lp-wiggle .7s cubic-bezier(.34,1.4,.5,1)}

/* Pressed state on phones */
.lp-going{pointer-events:none}
.lp-going .is-arrow,.lp-going svg{display:none}
.lp-going::before{content:"";width:18px;height:18px;margin-right:10px;border:3px solid rgba(24,56,41,.25);border-top-color:#183829;border-radius:50%;animation:lp-spin .8s linear infinite;flex:none}
@keyframes lp-spin{to{rotate:360deg}}

/* Hover lifts (mouse only) */
.r-car>figure,.r-notes>div>div,.is-page details,.sc-step,.sc-card,.r13-off-c>div{transition:translate .25s cubic-bezier(.34,1.3,.5,1),rotate .25s cubic-bezier(.34,1.3,.5,1),box-shadow .25s ease}
@media (hover:hover){
  .r-car>figure:hover,.r-notes>div>div:hover,.sc-step:hover{translate:0 -4px;rotate:-.4deg}
  .is-page details:not(.r-menu):hover{translate:0 -2px}
  html img[src*="award-"]:hover{rotate:-3deg;transition:rotate .3s cubic-bezier(.34,1.6,.5,1)}
}

/* FAQ: smooth open (height from JS), plus turns into a cross */
.is-page details .is-plus{transition:transform .3s cubic-bezier(.34,1.4,.5,1)}
.lp-faq-body{overflow:hidden}

/* Review dots follow the swipe */
.r-dots span{transition:width .25s ease,background-color .25s ease}

/* =========================================================
   7. DOWNLOAD POPUP (computers)
   ========================================================= */
.lp-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}
.lp-modal[hidden]{display:none}
.lp-modal-bg{position:absolute;inset:0;background:rgba(24,56,41,.66);animation:lp-fade .25s ease both}
.lp-modal-card{position:relative;width:100%;max-width:420px;max-height:calc(100vh - 40px);overflow:auto;padding:30px;text-align:center;background:#FFFCF6;border:2.5px solid #183829;border-radius:28px;box-shadow:7px 8px 0 #183829;color:#183829;font-family:Nunito,'Avenir Next',system-ui,sans-serif;animation:lp-card .45s cubic-bezier(.34,1.35,.5,1) both}
.lp-modal.lp-closing .lp-modal-bg{animation:lp-fade .2s ease reverse both}
.lp-modal.lp-closing .lp-modal-card{animation:lp-card-out .2s ease both}
@keyframes lp-fade{from{opacity:0}}
@keyframes lp-card{from{opacity:0;translate:0 24px;scale:.92}}
@keyframes lp-card-out{to{opacity:0;translate:0 12px;scale:.96}}
.lp-x{position:absolute;top:12px;right:12px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:2px solid #183829;border-radius:50%;background:#fff;color:#183829;cursor:pointer;transition:rotate .25s ease,background-color .2s ease}
.lp-x:hover{rotate:90deg;background:#FFDB6E}
.lp-modal-peek{width:120px;height:auto;margin:-6px auto 0;display:block;animation:lp-peek-up .6s cubic-bezier(.34,1.4,.5,1) .15s both}
@keyframes lp-peek-up{from{opacity:0;translate:0 20px}}
.lp-modal h2{margin:8px 0 0;font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:700;font-size:28px;line-height:1.12;letter-spacing:-.01em}
.lp-x+h2{margin-top:36px!important}
.lp-qr{position:relative;box-sizing:border-box;display:grid;place-items:center;width:214px;height:214px;margin:20px auto 0;padding:0;background:#fff;border:2.5px solid #183829;border-radius:22px;box-shadow:4px 5px 0 #183829}
.lp-qr img.qr{display:block;width:172px;height:172px}
.lp-qr img.mid{position:absolute;top:50%;left:50%;width:40px;height:40px;translate:-50% -50%;border-radius:10px;border:3px solid #fff;background:#fff}
.lp-cap{margin:14px 0 20px;font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:500;font-size:18px}
.lp-stores{display:flex;flex-direction:column;gap:12px;align-items:center}
.lp-store{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:300px;min-height:54px;padding:0 22px;border:2.5px solid #183829;border-radius:999px;background:#7AB838;color:#183829!important;text-decoration:none;font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:600;font-size:19px;box-shadow:inset 0 3px 0 rgba(255,255,255,.35),4px 4px 0 #183829;transition:translate .16s ease,rotate .16s ease,box-shadow .16s ease}
.lp-store.alt{background:#FFDB6E}
.lp-store:hover{translate:-1px -2px;rotate:-.7deg;box-shadow:inset 0 3px 0 rgba(255,255,255,.35),5px 6px 0 #183829}
.lp-store:active{translate:4px 4px;box-shadow:inset 0 3px 0 rgba(255,255,255,.35),0 0 0 #183829}
.lp-store svg{flex:none}
html.lp-lock{overflow:hidden}

/* =========================================================
   8. People who turn motion off get none of it
   ========================================================= */
@media (prefers-reduced-motion:reduce){
  .lp-js .r-hero-text>h1{opacity:1!important}
  .lp-js .r-hero-text>*,.lp-w,.lp-js .r-badges>*,.lp-js .r-hero-art>div,.lp-js .sc-hero .sc-in>*,.is-pill.lp-pill-on,.lp-modal-bg,.lp-modal-card,.lp-modal-peek,.is-btn::after,.lp-swing.lp-on,.lp-wave.lp-on,.lp-hit{animation:none!important}
  .lp-rv,.lp-stamp,.lp-swing,.lp-chip,.lp-w2{transition:none!important;opacity:1!important;translate:none!important;scale:none!important;rotate:none!important}
  .lp-mark{background-size:100% 100%!important;transition:none!important}
  .lp-road-dot,.lp-progress{display:none!important}
}


/* =========================================================
   5. THE OTHER PAGES (5 Dec): Ricky school, Pepper, Home
   Each page is the calm page with its own words and pictures.
   Only the hero size, the green bar and the Home layout differ.
   ========================================================= */

/* Green bar under the hero: same thickness as the calm page at every size.
   The picture sits so the character's hands rest over the bar (overlap from the art handoff). */
html[data-theme="pepper"] .r-hero-art>div>div[aria-hidden="true"],
html[data-theme="home"] .r-hero-art>div>div[aria-hidden="true"]{height:13px!important;top:auto!important;bottom:0!important}
html[data-theme="pepper"] .r-hero-art img{margin-bottom:calc(13px - 2.97%)}
html[data-theme="home"] .r-hero-art img{margin-bottom:calc(13px - 1.96%)}
@container pg (min-width: 441px){
  html[data-theme="pepper"] .r-hero-art>div>div[aria-hidden="true"],
  html[data-theme="home"] .r-hero-art>div>div[aria-hidden="true"]{height:16px!important}
  html[data-theme="pepper"] .r-hero-art img{margin-bottom:calc(16px - 2.97%)}
  html[data-theme="home"] .r-hero-art img{margin-bottom:calc(16px - 1.96%)}
}
@container pg (min-width: 760px){
  html[data-theme="pepper"] .r-hero-art>div>div[aria-hidden="true"],
  html[data-theme="home"] .r-hero-art>div>div[aria-hidden="true"]{height:21px!important}
  html[data-theme="pepper"] .r-hero-art img{margin-bottom:calc(21px - 2.97%)}
  html[data-theme="home"] .r-hero-art img{margin-bottom:calc(21px - 1.96%)}
}
@container pg (min-width: 1000px){
  html[data-theme="pepper"] .r-hero-art>div>div[aria-hidden="true"],
  html[data-theme="home"] .r-hero-art>div>div[aria-hidden="true"]{height:25px!important}
  html[data-theme="pepper"] .r-hero-art img{margin-bottom:calc(25px - 2.97%)}
  html[data-theme="home"] .r-hero-art img{margin-bottom:calc(25px - 1.96%)}
}

/* ---------- Ricky school: no bar, Ricky walks in on the hopscotch ---------- */
html[data-theme="ricky-school"] .r-hero-art>div>div[aria-hidden="true"]{display:none!important}
html[data-theme="ricky-school"] .r-hero-art>div{width:64%!important;max-width:262px!important;padding-bottom:6px}
@container pg (min-width: 441px) and (max-width: 759px){html[data-theme="ricky-school"] .r-hero-art>div{max-width:300px!important}}
@container pg (min-width: 760px){html[data-theme="ricky-school"] .r-hero-art>div{width:100%!important;max-width:400px!important;padding-bottom:18px}}
@container pg (min-width: 1000px){html[data-theme="ricky-school"] .r-hero-art>div{max-width:470px!important}}

/* ---------- Pepper ---------- */
html[data-theme="pepper"] .r-hero-art>div{width:56%!important;max-width:232px!important}
@container pg (min-width: 441px) and (max-width: 759px){html[data-theme="pepper"] .r-hero-art>div{max-width:270px!important}}
@container pg (min-width: 760px){html[data-theme="pepper"] .r-hero-art>div{width:100%!important;max-width:350px!important}}
@container pg (min-width: 1000px){html[data-theme="pepper"] .r-hero-art>div{max-width:420px!important}}

/* ---------- Home: the whole group on the green bar ---------- */
html[data-theme="home"] .r-hero-art>div{width:96%!important;max-width:460px!important}
.hm-join{position:absolute;z-index:2;left:61%;top:1%;padding:5px 9px 5px;border:2px solid #183829;border-radius:999px;background:#D9CCF5;box-shadow:2px 2px 0 #183829;font-family:Nunito,'Avenir Next',system-ui,sans-serif;font-weight:800;font-size:11.5px;line-height:1;color:#183829;white-space:nowrap;rotate:-6deg}
.hm-qr{display:none}
@container pg (min-width: 441px) and (max-width: 759px){html[data-theme="home"] .r-hero-art>div{max-width:560px!important}}
/* iPad: text centred on top, the group wide underneath */
@container pg (min-width: 760px) and (max-width: 999px){
  html[data-theme="home"] .r-hero{display:flex!important;flex-direction:column;align-items:center;text-align:center!important}
  html[data-theme="home"] .r-hero-text{align-items:center!important;padding:0!important}
  html[data-theme="home"] .r-btnwrap{align-items:center!important}
  html[data-theme="home"] .r-badges{justify-content:center!important;margin:28px 0 0!important}
  html[data-theme="home"] .r-sub{max-width:520px!important}
  html[data-theme="home"] .r-hero-art{width:100%;margin-top:30px!important}
  html[data-theme="home"] .r-hero-art>div{width:100%!important;max-width:680px!important}
  .hm-join{font-size:13.5px;padding:6px 11px}
}
/* Computers: text on the left, a big group on the right, QR code beside the button */
@container pg (min-width: 1000px){
  html[data-theme="home"] .r-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.18fr)!important;column-gap:28px!important;padding:48px max(32px,calc((100% - 1120px) / 2)) 0!important}
  html[data-theme="home"] .r-hero-text{padding-bottom:64px!important}
  html[data-theme="home"] .r-h1{font-size:58px!important}
  html[data-theme="home"] .r-sub{max-width:470px!important;font-size:20px!important}
  html[data-theme="home"] .r-hero-art>div{width:100%!important;max-width:720px!important}
  html[data-theme="home"] .r-btnwrap{flex-direction:row!important;align-items:center!important;gap:18px}
  html[data-theme="home"] .r-btnwrap>.is-btn{max-width:280px!important;flex:1 1 auto}
  html[data-theme="home"] .r-badges{margin-top:26px!important}
  .hm-join{font-size:14.5px;padding:7px 12px;border-width:2.5px;box-shadow:3px 3px 0 #183829}
  .hm-qr{display:flex;align-items:center;gap:12px;flex:none}
  .hm-qrbox{box-sizing:border-box;display:grid;place-items:center;flex:none;width:84px;height:84px;border:2px solid #183829;border-radius:16px;background:#fff;box-shadow:3px 3px 0 #183829}
  .hm-qr svg{display:block;width:66px;height:66px}
  .hm-qr p{max-width:132px;margin:0;font-family:Nunito,'Avenir Next',system-ui,sans-serif;font-weight:600;font-size:13.5px;line-height:1.35;color:#36503F}
  .hm-qr strong{display:block;color:#183829;font-weight:800}
}

/* Meet the friends from Crystal Creek */
.hm-intro{max-width:340px;margin:14px auto 0;text-align:center;font-family:Nunito,'Avenir Next',system-ui,sans-serif;font-weight:600;font-size:17px;line-height:1.45;color:#36503F;text-wrap:balance}
/* 5 friends on a swipe rail. Phones: swipe, the next card peeks in. Computers: the rail runs
   off the right edge of the screen, with arrows and a progress line. All art is one 600x600 canvas. */
.hm-rail{position:relative;margin:30px -18px 0}
.hm-cards{list-style:none;margin:0;display:flex;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:18px;padding:8px 18px 16px;scrollbar-width:none;-webkit-overflow-scrolling:touch;outline:none}
.hm-cards::-webkit-scrollbar{display:none}
.hm-cards:focus-visible{outline:3px solid #7AB838;outline-offset:-3px;border-radius:12px}
.hm-cards.is-drag{scroll-snap-type:none;cursor:grabbing}
.hm-cards.is-drag *{pointer-events:none}
.hm-card{flex:0 0 min(78%,300px);scroll-snap-align:start;display:flex;flex-direction:column;background:#fff;border:2px solid #183829;border-radius:26px;box-shadow:4px 5px 0 rgba(24,56,41,.28);overflow:hidden;text-align:left;user-select:none;-webkit-user-select:none}
.hm-art{position:relative;aspect-ratio:1;background:var(--bg);overflow:hidden}
.hm-sun{position:absolute;left:50%;top:7%;width:74%;aspect-ratio:1;border-radius:50%;background:var(--sun);translate:-50% 0}
.hm-sun::after{content:"";position:absolute;inset:-11%;border-radius:50%;border:2px dashed var(--sun)}
.hm-art img{position:absolute;z-index:1;left:0;bottom:0;display:block;width:100%;height:auto;-webkit-user-drag:none}
.hm-ledge{position:absolute;z-index:0;left:0;right:0;bottom:0;height:4.33%;background:linear-gradient(#000 0 16.5%,#0B532F 16.5% 67%,#02381C 67% 85.5%,#000 85.5% 100%)}
.hm-txt{flex:1;display:flex;flex-direction:column;padding:18px 20px 22px}
.hm-txt h3{margin:0;font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:700;font-size:25px;line-height:1.05;color:#183829}
.hm-txt p{margin:8px 0 0;font-family:Nunito,'Avenir Next',system-ui,sans-serif;font-weight:600;font-size:15.5px;line-height:1.45;color:#36503F}
.hm-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:14px}
.hm-tag,.hm-soon{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:var(--bg);font-family:Nunito,'Avenir Next',system-ui,sans-serif;font-weight:800;font-size:12.5px;line-height:1.15;color:#183829}
.hm-soon{background:#fff;border:1.5px dashed #8E74C9;padding:3.5px 9px}
.hm-ricky{--bg:#E4F1D5;--sun:#CDE6B1}
.hm-pepper{--bg:#EEE8FA;--sun:#DBCEF5}
.hm-jojo{--bg:#FFEBD6;--sun:#FFD2A3}
.hm-frankie{--bg:#DCF1ED;--sun:#BCE4DB}
.hm-waffle{--bg:#E2E8F8;--sun:#C9D4F1}
.hm-milly{--bg:#FCE4E4;--sun:#F8C7C4}
.hm-railbar{display:flex;align-items:center;gap:12px;padding:6px 18px 0}
.hm-track{position:relative;flex:1;max-width:280px;height:4px;border-radius:4px;background:rgba(24,56,41,.14);overflow:hidden}
.hm-thumb{position:absolute;top:0;bottom:0;left:var(--x,0%);width:var(--w,30%);border-radius:4px;background:#183829;transition:left .12s linear}
.hm-swipe{margin-left:auto;font-family:Nunito,'Avenir Next',system-ui,sans-serif;font-weight:700;font-size:13.5px;color:#4D6556}
.hm-arrow{display:none;align-items:center;justify-content:center;width:50px;height:50px;padding:0;border:2px solid #183829;border-radius:50%;background:#fff;box-shadow:3px 3px 0 #183829;cursor:pointer;transition:translate .15s ease,box-shadow .15s ease,background-color .15s ease,opacity .2s ease}
.hm-prev svg{rotate:180deg}
.hm-arrow:hover:not(:disabled){background:#FFDB6E;translate:-1px -1px;box-shadow:4px 4px 0 #183829}
.hm-arrow:active:not(:disabled){translate:2px 2px;box-shadow:1px 1px 0 #183829}
.hm-arrow:disabled{opacity:.32;cursor:default;box-shadow:none}
@container pg (min-width: 441px) and (max-width: 759px){
  html[data-theme="home"] .hm-friends .r-in{max-width:520px!important}
  .hm-card{flex-basis:300px}
}
@container pg (min-width: 760px){
  .hm-friends .r-in{max-width:1080px!important}
  .hm-intro{max-width:520px;font-size:19px}
  .hm-rail{margin:44px -32px 0}
  .hm-cards{gap:22px;padding:10px 32px 18px;scroll-padding-inline:32px}
  .hm-card{flex-basis:300px;border-radius:28px}
  .hm-txt{padding:20px 24px 26px}
  .hm-txt h3{font-size:27px}
  .hm-txt p{font-size:16.5px}
  .hm-railbar{gap:14px;padding:12px 32px 0}
  .hm-swipe{display:none}
  .hm-arrow{display:inline-flex}
  .hm-prev{margin-left:auto}
}
@container pg (min-width: 1300px){.hm-card{flex-basis:316px}}
@media (hover:hover){.hm-card{transition:translate .25s cubic-bezier(.34,1.4,.5,1),box-shadow .25s ease}.hm-card:hover{translate:0 -4px;box-shadow:5px 9px 0 rgba(24,56,41,.24)}}

/* Parent guides (Home) */
.hm-gin{display:flex!important;flex-direction:column;gap:22px;max-width:420px;margin:0 auto}
.hm-eyebrow{font-family:Nunito,'Avenir Next',system-ui,sans-serif;font-weight:800;font-size:13px;line-height:1.2;letter-spacing:.12em;text-transform:uppercase;color:#3F7219}
.hm-ghead h2{margin:8px 0 0;font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:700;font-size:31px;line-height:1.08;letter-spacing:-.01em;color:#183829}
.hm-ghead p{margin:10px 0 0;font-family:Nunito,'Avenir Next',system-ui,sans-serif;font-weight:600;font-size:17px;line-height:1.45;color:#36503F}
.hm-all{display:inline-block;margin-top:14px;font-family:Nunito,'Avenir Next',system-ui,sans-serif;font-weight:800;font-size:16px;color:#183829!important;text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:#7AB838;text-underline-offset:4px}
.hm-glist{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.hm-glist a{display:flex;flex-direction:column;gap:6px;height:100%;padding:18px 20px;background:#fff;border:2px solid #183829;border-radius:20px;box-shadow:4px 5px 0 rgba(24,56,41,.22);color:#183829;text-decoration:none}
.hm-gk{font-family:Nunito,'Avenir Next',system-ui,sans-serif;font-weight:800;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#3F7219}
.hm-gt{font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:600;font-size:20px;line-height:1.2;text-wrap:pretty}
.hm-gr{margin-top:auto;padding-top:6px;font-family:Nunito,'Avenir Next',system-ui,sans-serif;font-weight:700;font-size:14.5px;color:#36503F}
@media (hover:hover){.hm-glist a{transition:translate .2s ease,box-shadow .2s ease}.hm-glist a:hover{translate:-1px -3px;box-shadow:5px 8px 0 rgba(24,56,41,.24)}}
@container pg (min-width: 760px){
  .hm-gin{display:grid!important;grid-template-columns:minmax(0,.75fr) minmax(0,1.7fr);gap:44px;align-items:center;max-width:1080px}
  .hm-glist{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container pg (min-width: 1000px){.hm-ghead h2{font-size:42px}}

/* Pepper page: the "included" card shows Ricky, so it takes his green instead of Pepper's lavender */
html[data-theme="pepper"] .r13-off-i>div:has(img[src*="ricky-avatar"]){background:#EAF4DF!important;border-color:#9CC46C!important}
/* Home, small laptops (1000 to 1239 px): a compact QR card so the button keeps to one line */
@container pg (min-width: 1000px) and (max-width: 1239px){
  html[data-theme="home"] .r-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  html[data-theme="home"] .r-btnwrap>.is-btn{white-space:nowrap;max-width:250px!important;padding:0 18px!important}
  .hm-qr{gap:9px}
  .hm-qrbox{width:74px;height:74px;border-radius:14px}
  .hm-qr svg{width:58px;height:58px}
  .hm-qr p{max-width:84px;font-size:12.5px}
  .hm-qr p span{display:none}
}

/* =========================================================
   10. ROUND 5 (5 Dec): gate hero on school, Jesse's original group on Home
   ========================================================= */
/* School: the first-day gate picture is wide, so it gets more room */
html[data-theme="ricky-school"] .r-hero-art>div{width:94%!important;max-width:370px!important;padding-bottom:4px}
@container pg (min-width: 441px) and (max-width: 759px){html[data-theme="ricky-school"] .r-hero-art>div{max-width:450px!important}}
@container pg (min-width: 760px){html[data-theme="ricky-school"] .r-hero-art>div{width:100%!important;max-width:470px!important;padding-bottom:14px}}
@container pg (min-width: 1000px){html[data-theme="ricky-school"] .r-hero-art>div{max-width:570px!important}}
/* 5 Dec round 21: on computers and iPads Ricky sits in the middle of the hero, level with the words, not down at the bottom */
@container pg (min-width: 760px){html[data-theme="ricky-school"] .r-hero-art{align-items:center!important}html[data-theme="ricky-school"] .r-hero-art>div{padding-bottom:0!important}}

/* Home: the picture keeps its own dark bar. The page bar takes the same colour and exactly
   the same thickness (12 of 717 px = 1.674% of the picture width), so it runs on across the page. */
html[data-theme="home"] .r-hero-art>div>div[aria-hidden="true"]{height:0!important;padding-top:1.674%;background:#1B1A28!important}
html[data-theme="home"] .r-hero-art img{margin-bottom:0!important}
html[data-theme="home"] .hm-join{left:64%;top:21%}


/* ---- 5 Dec audit fixes ---- */
/* iPad portrait: reviews run to the screen edge like a proper swipe row; parent guides stack under their heading;
   the report card label stays on one line */
@container pg (min-width: 760px) and (max-width: 999px){
  .r-root .r-carwrap{margin:28px -32px 0!important;width:auto!important}
  .r-root .r-car{padding-left:32px!important;padding-right:32px!important;scroll-padding:0 32px!important}
  .r-root .hm-gin{grid-template-columns:minmax(0,1fr)!important;max-width:720px!important;gap:26px!important}
  .r-root .lp-rate-l{white-space:nowrap;letter-spacing:.01em!important;font-size:12px!important}
}
.hm-gr{white-space:nowrap}
/* Tablets and phones: no "On a computer? Scan" box */
@media (hover:none) and (pointer:coarse){.hm-qr{display:none!important}}
/* Home: the episodes heading gets room for two even lines on wide screens */
html[data-theme="home"] h2[style*="max-width: 640px"]{max-width:780px!important}
/* Reviews: one quote style on phones and iPads, matching desktop */
@container pg (max-width: 999px){
  .r-car blockquote{font-family:Nunito,'Avenir Next',system-ui,sans-serif!important;font-weight:700!important;font-size:16.5px!important;line-height:1.5!important;letter-spacing:0!important}
}
/* Bigger tap area on the top menu links without moving them */
nav[aria-label="Main"] a{padding-top:13px;padding-bottom:13px;margin-top:-13px;margin-bottom:-13px}
/* Pricing v2 (5 Dec, round 28): Today tab + Then card. Built by tools/offer_v2.py */
.ofv{--ink:#183829;--ink2:#36503F;--lime:#7AB838;--leaf:#3F7219;--mint:#E9F2DE;--sun:#FFD45E;display:flex;flex-direction:column;gap:26px;max-width:420px;margin:0 auto;color:var(--ink);font-family:Nunito,'Avenir Next',system-ui,sans-serif}
.ofv *{box-sizing:border-box}
.ofv-h{display:flex;flex-direction:column;align-items:center;text-align:center}
.ofv-eb{font-weight:800;font-size:13px;line-height:1.2;letter-spacing:.14em;text-transform:uppercase;color:var(--leaf)}
.ofv-h h2{margin:10px 0 0;font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:700;font-size:clamp(32px,4cqi,48px);line-height:1.05;letter-spacing:-.015em;color:var(--ink);text-wrap:balance}
.ofv-lede{max-width:380px;margin:12px 0 0;font-weight:600;font-size:17px;line-height:1.45;color:var(--ink2);text-wrap:pretty}
.ofv-pep-d{display:none!important}
.ofv-stack{position:relative;container-type:inline-size}
.ofv-today{position:relative;z-index:2;display:flex;align-items:center;gap:14px;margin:0 -4px;padding:20px 18px 20px 22px;background:var(--sun);border:2.5px solid var(--ink);border-radius:22px;transform:rotate(-1.5deg);box-shadow:4px 5px 0 rgba(24,56,41,.16)}
.ofv-t{flex:1;min-width:0}
.ofv-k{display:block;font-weight:800;font-size:12.5px;line-height:1;letter-spacing:.14em;text-transform:uppercase;color:var(--ink2)}
.ofv-big{display:block;margin-top:6px;font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:700;font-size:clamp(25px,8.6cqi,34px);line-height:1.05;color:var(--ink);white-space:nowrap}
.ofv-sl{display:block;margin-top:6px;font-weight:700;font-size:15px;line-height:1.3;color:var(--ink2)}
.ofv-today img{flex:none;width:clamp(56px,19cqi,72px);height:auto;aspect-ratio:1;border:2.5px solid var(--ink);border-radius:18px}
.ofv-then{position:relative;z-index:1;margin-top:-16px;padding:34px 16px 20px;background:#fff;border:2.5px solid var(--ink);border-radius:26px;box-shadow:5px 6px 0 rgba(24,56,41,.14)}
.ofv-then>.ofv-k{padding-left:4px}
.ofv-row{position:relative;display:flex;align-items:center;gap:14px;width:100%;margin:14px 0 0;padding:18px 16px 16px;border:2.5px solid rgba(24,56,41,.2);border-radius:20px;background:#fff;text-align:left;font:inherit;color:inherit;cursor:pointer}
.ofv-row.on{margin-top:24px;padding-top:24px;border-color:var(--ink);background:var(--mint);box-shadow:4px 4px 0 rgba(24,56,41,.16)}
.ofv-rd{flex:none;display:grid;place-items:center;width:26px;height:26px;border:2.5px solid var(--ink);border-radius:50%;background:#fff}
.ofv-row.on .ofv-rd:after{content:"";width:14px;height:14px;border-radius:50%;background:var(--lime)}
.ofv-c{display:flex;flex-direction:column;gap:6px;min-width:0}
.ofv-lab{font-weight:800;font-size:13px;line-height:1;letter-spacing:.12em;text-transform:uppercase;color:var(--ink2)}
.ofv-p{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 9px}
.ofv-p b{font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:700;font-size:32px;line-height:1;color:var(--ink)}
.ofv-p span{font-weight:800;font-size:15px;line-height:1;color:var(--ink)}
.ofv-p s{font-weight:700;font-size:16px;line-height:1;color:var(--ink2);text-decoration-thickness:2px;text-decoration-color:#E5604F}
.ofv-sub{font-weight:700;font-size:15px;line-height:1.3;color:var(--ink2)}
.ofv-st{position:absolute;top:-14px;padding:5px 11px;border:2px solid var(--ink);border-radius:999px;font-weight:800;font-size:11.5px;line-height:1;letter-spacing:.07em;text-transform:uppercase;color:var(--ink)}
.ofv-trial{left:14px;background:var(--lime)}
.ofv-lp{right:14px;background:var(--sun)}
.ofv-row:not(.on) .ofv-st{display:none}
.ofv-pep{margin-top:18px}
.ofv-cta{display:flex;flex-direction:column;align-items:center;width:100%;margin-top:24px}
@container pg (min-width:760px){
 .ofv{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,430px);column-gap:clamp(32px,5cqi,72px);align-items:center;max-width:1040px}
 .ofv-h{align-items:flex-start;text-align:left}
 .ofv-lede{max-width:460px;font-size:18px}
 .ofv-pep-d{display:flex!important;margin-top:24px}
 .ofv-pep-m{display:none!important}
}
html[data-theme="pepper"] .ofv-pep:has(img[src*="ricky-avatar"]){background:#EAF4DF!important;border-color:#9CC46C!important}
.ofv-backed{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px;font-weight:600;font-size:15px;line-height:1;color:var(--ink)}
.ofv-backed img{display:block;height:36px;width:auto}
/* round 30: selling points as ticks on tablet and computer only; nothing on phones */
.ofv-ticks{display:none;list-style:none;margin:22px 0 0;padding:0;flex-direction:column;gap:12px;text-align:left}
.ofv-ticks li{display:flex;align-items:flex-start;gap:12px;font-weight:700;font-size:17px;line-height:1.35;color:var(--ink)}
.ofv-ticks svg{flex:none;margin-top:0}
@container pg (min-width:760px){.ofv-ticks{display:flex}}
/* round 31: iPad portrait (760-999): one centred column like the phone, ticks under the headline */
@container pg (min-width:760px) and (max-width:999px){
 .ofv{display:flex;flex-direction:column;gap:28px;max-width:600px}
 .ofv-h{align-items:center;text-align:center}
 .ofv-ticks{align-self:center;margin-top:20px}
 .ofv-pep-d{display:none!important}
 .ofv-pep-m{display:flex!important}
 .ofv-r{width:100%;max-width:460px;margin:0 auto}
}

/* round 35 (5 Dec): "Hundreds more stories and games" pill at the top of the Then card, every size (like the app's pill) */
.ofv-more{display:flex;align-items:center;gap:9px;margin:12px 0 18px;padding:6px 14px 6px 7px;background:#FFF1CC;border-radius:999px;font-weight:800;font-size:clamp(13.5px,4.1cqi,16.5px);line-height:1.25;color:var(--ink);text-wrap:balance}
.ofv-more img{flex:none;display:block;width:42px;height:42px}
@container pg (min-width:760px){.ofv-more{gap:12px;padding:7px 18px 7px 8px;font-size:17px;margin:12px 0 16px}.ofv-more img{width:46px;height:46px}}
html[data-theme="pepper"] .ofv-pep:has(img[src*="avatar-ricky"]){background:#EAF4DF!important;border-color:#9CC46C!important}

/* round 36 (5 Dec): Yearly gets a "7-day free trial" band across its top, and "Launch price" sits as a small tilted sticker beside YEARLY (was two floating tabs) */
.ofv-row.ofv-yr{overflow:hidden;margin-top:16px;padding-top:52px}
.ofv-row.ofv-yr.on{margin-top:16px;padding-top:52px}
.ofv-row.on:not(.ofv-yr){margin-top:14px;padding-top:18px}
.ofv-band{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:8px;height:34px;background:var(--lime);border-bottom:2.5px solid var(--ink);font-weight:800;font-size:13px;line-height:1;letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
.ofv-row.ofv-yr:not(.on) .ofv-band{background:#E3EFD6;border-bottom-color:rgba(24,56,41,.2)}
.ofv-band:before,.ofv-band:after{content:"";width:6px;height:6px;border-radius:50%;background:var(--ink);opacity:.5}
.ofv-lpi{display:inline-block;margin:-4px 0 0 10px;padding:4px 9px;border:2px solid var(--ink);border-radius:999px;background:var(--sun);font-size:10.5px;letter-spacing:.07em;line-height:1;color:var(--ink);vertical-align:middle;transform:rotate(-4deg)}
/* round 37: the pill is phone only; tablet and computer show "Hundreds of stories and games" as the first tick */
@container pg (min-width:760px){.ofv-more{display:none}}

/* Round 38: no menu on phones or iPad portrait (logo + Download only); the full menu shows on laptops (1000px+).
   The footer carries every page link. The A/B/C nav preview switcher is retired. */
.r-menu{display:none!important}
.lp-switch{display:none!important}
/* Round 38: the blue in-text style for science links doesn't apply to the footer menu */
html .is-page .r-footnav a[href="/science"]{color:inherit!important;text-decoration:none!important}
/* Round 41: Ricky school hero: a little cream space under his feet on phones and tablets */
@media (max-width:999px){html[data-theme=ricky-school] .r-hero-art{padding-bottom:30px}}

/* B.4 nav dropdown (7 Dec 2026) START */
.nav-dd{position:relative;display:flex;align-items:center}
.nav-dd-btn{display:flex;align-items:center;gap:6px;height:44px;margin:0;padding:0;border:0;background:none;font:inherit;color:#183829;cursor:pointer}
.nav-dd-chev{transition:transform .2s ease}
.nav-dd-btn[aria-expanded="true"] .nav-dd-chev{transform:rotate(180deg)}
.nav-dd-menu{position:absolute;top:calc(100% + 6px);left:-14px;z-index:50;min-width:240px;margin:0;padding:8px;list-style:none;background:#FFFCF6;border:2px solid #183829;border-radius:18px;box-shadow:5px 6px 0 rgba(24,56,41,.18);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .15s ease,transform .15s ease,visibility 0s linear .15s}
.nav-dd-menu::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}
.nav-dd-btn[aria-expanded="true"]+.nav-dd-menu,html:not(.nav-js) .nav-dd:focus-within .nav-dd-menu{opacity:1;visibility:visible;transform:none;transition-delay:0s}
/* MED5: with JS, aria-expanded alone shows the menu; hover is the no-JS fallback */
@media (hover:hover){html:not(.nav-js) .nav-dd:hover .nav-dd-menu{opacity:1;visibility:visible;transform:none;transition-delay:0s}}
.r-desk-nav .nav-dd-menu a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 12px;border-radius:12px;color:#183829;text-decoration:none}
.r-desk-nav .nav-dd-menu a::after{display:none}
.r-desk-nav .nav-dd-menu a:hover,.r-desk-nav .nav-dd-menu a:focus-visible{background:#E9F2DE}
.nav-dd-tag{padding:3px 9px;border-radius:999px;background:#D9CCF5;font-size:13px}
.r-desk-nav a:focus-visible,.nav-dd-btn:focus-visible{outline:3px solid #3F7219;outline-offset:3px;border-radius:8px}
@media (prefers-reduced-motion:reduce){.nav-dd-menu,.nav-dd-chev{transition:none}}
/* QA 7 Dec: lp.css gives every link in nav[aria-label="Main"] -13px top and bottom margins (tap-target trick); undo it inside the dropdown so the two links don't overlap */
.r-desk-nav .nav-dd-menu a{margin:0}
/* QA 7 Dec: same overlap in the phone menu (hidden by the Round 38 rule above; fixed so it is ready if switched on) */
.r-menu .is-menu a{margin:0}
/* QA 7 Dec: Esc also closes a menu that is open only because the pointer is over it (nav.js adds .nav-dd-x until the pointer leaves) */
@media (hover:hover){.nav-dd.nav-dd-x:hover .nav-dd-menu{opacity:0;visibility:hidden;transform:translateY(-4px);transition-delay:0s,0s,.15s}}
/* QA 7 Dec: "Adventures" gets the same green hover underline as the other nav links */
.nav-dd-btn{position:relative}
.nav-dd-btn::after{content:"";position:absolute;left:0;right:100%;bottom:4px;height:3px;border-radius:2px;background:#7AB838;transition:right .25s ease}
.nav-dd:hover .nav-dd-btn::after,.nav-dd-btn[aria-expanded="true"]::after{right:18px}
.r-desk-nav a[aria-current="page"]:not(.nav-dd-menu a)::after{right:0}
.r-desk-nav .nav-dd-menu a[aria-current="page"]{background:#E9F2DE}
@media (prefers-reduced-motion:reduce){.nav-dd-btn::after{transition:none}}
/* B.4 nav dropdown END */
