/* tottoolbox.com. The idea is a door frame, the one a family marks a child's height on: painted wall, white casing,
   pencil marks climbing from before birth to age 7. The wall's colour is the app's; the buttons borrow the raised
   tiles of the toddler apps. Caprasimo speaks, Atkinson explains, Reenie Beanie only ever writes on the frame. */
@font-face { font-family: "Caprasimo"; src: url(/fonts/caprasimo.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url(/fonts/atkinson.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Reenie Beanie"; src: url(/fonts/reenie-beanie.woff2) format("woff2"); font-display: swap; }

:root {
  --wall: #FFFDF9;
  --ink: #3B2033;
  --ink-deep: #22101D;
  --button: #3B2033;
  --button-hover: #55304A;
  --sun: #FFC83D;
  /* The four app colours: Bumplings, Flash Cards, Tot Potty, Tot Routines. */
  --c-bump: #FFA9C4;
  --c-cards: #C3A6FF;
  --c-potty: #8ED8F8;
  --c-routines: #7EDDC2;
  /* The door's edge, painted in the four app colours, top to bottom by age. */
  --stripes: linear-gradient(180deg, var(--c-routines) 0 25%, var(--c-potty) 25% 50%, var(--c-cards) 50% 75%, var(--c-bump) 75%);
  --casing: #FFFBF6;
  --groove: #EFE3DA;
  --pencil: #4A2E3F;
  --soft: #6E5466;
  /* Past 80rem the content stops widening and the extra space goes equally to both sides. */
  --gutter: max(0px, (100vw - 80rem) / 2);
  /* The home page's door frame, and the app pages' big screen beside the words. */
  --frame: min(26rem, 40vw);
  --edge: clamp(1.25rem, 5vw, 4rem);
  --pad: calc(var(--edge) + var(--gutter));
  /* A line drawn by hand, for ticks. */
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.4C30 2.2 52 4.3 84 3.1s58-.6 114 .4' fill='none' stroke='%234A2E3F' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  /* The bottom of every painted wall: a soft wave instead of a straight cut. */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v6c-15 0-15 10-30 10S75 6 60 6 45 16 30 16 15 6 0 6z' fill='black'/%3E%3C/svg%3E");
}
/* A painted wall ends in a wave. The wall's own colour fills it, so it works for every app. */
.hero, .app-hero, .plain-hero { position: relative; }
.hero::after, .app-hero::after, .plain-hero::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: clamp(.9rem, 2.2vw, 1.6rem); background: var(--wall); -webkit-mask: var(--wave) 0 0 / clamp(7rem, 16vw, 11rem) 100% repeat-x; mask: var(--wave) 0 0 / clamp(7rem, 16vw, 11rem) 100% repeat-x; z-index: 1; pointer-events: none; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.55 "Atkinson Next", system-ui, sans-serif; color: var(--ink); background: var(--casing); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: .2rem; }
h1, h2 { font-family: "Caprasimo", Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7.2vw, 5.2rem); }
h1 .h1sub { display: block; font-family: inherit; font-size: clamp(1.1rem, 3.4vw, 1.5rem); line-height: 1.25; margin-top: .4rem; opacity: .8; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .6em; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; margin: 0 0 .3rem; }
p { margin: 0 0 .9rem; max-width: 36rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .3rem; max-width: 36rem; }
.lede { font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.4; margin-top: 1rem; }
.small { font-size: .95rem; }
.pencil { font-family: "Reenie Beanie", "Segoe Print", cursive; color: var(--pencil); font-size: 1.75rem; line-height: 1; margin: 0; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 5; }
.skip:focus { left: .5rem; }

/* Top bar: sits on the wall. */
.top { background: var(--wall); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--pad); }
.brand { display: flex; align-items: center; gap: .55rem; font-family: "Caprasimo", Georgia, serif; font-size: 1.25rem; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: .55rem; }
.top nav { display: flex; gap: clamp(.8rem, 2.5vw, 1.8rem); font-weight: 700; }
.top nav a { text-decoration: none; padding: .35rem 0; }
.top nav a:hover { text-decoration: underline; }

/* Buttons: a raised tile, like the toddler apps'. */
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin: .4rem 0 .9rem; }
.btn { display: inline-block; background: var(--button); color: #fff; font-weight: 800; font-size: 1.1rem; line-height: 1.2; text-decoration: none; padding: .85rem 1.6rem; border: 3px solid var(--ink-deep); border-radius: 1.1rem; box-shadow: 0 5px 0 var(--ink-deep); }
.btn:hover { background: var(--button-hover); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink-deep); }
.btn.quiet { background: #fff; color: var(--ink); }
.btn.quiet:hover { background: var(--casing); }

/* The frame: white casing with two routed grooves, then the door's edge. */
.frame { position: relative; background:
    linear-gradient(90deg, transparent 0 1.1rem, var(--groove) 1.1rem 1.2rem, transparent 1.2rem calc(100% - 3.7rem), var(--groove) calc(100% - 3.7rem) calc(100% - 3.6rem), transparent calc(100% - 3.6rem)),
    var(--casing);
  border-right: 2rem solid color-mix(in srgb, var(--wall) 55%, var(--ink)); box-shadow: -5px 0 0 rgba(59, 32, 51, .14); }

/* Home: words on the wall, frame beside them, running from the page's top into the next section. */
.home .top { position: absolute; left: 0; right: 0; background: none; z-index: 2; }
.home .top nav { margin-right: 0; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--wall); }
.hero-say { padding: 6.5rem var(--pad) 2.8rem; }
.hero .frame { min-height: 34rem; margin-left: var(--pad); padding: 2rem 0 1.5rem; }
.marks { list-style: none; margin: 0; padding: 0; height: 100%; min-height: 31rem; display: flex; flex-direction: column-reverse; justify-content: space-between; }
.marks li { margin: 0; max-width: none; }
.marks a { display: flex; align-items: flex-end; gap: .6rem; padding: .3rem 0 .35rem 1.9rem; text-decoration: none; position: relative; }
.marks img { flex: none; width: 2.6rem; height: 2.6rem; border-radius: .75rem; box-shadow: 0 3px 0 rgba(59, 32, 51, .2); transform: rotate(-4deg); animation: appear .3s ease-out both; }
.marks li:nth-child(even) img { transform: rotate(3deg); }
/* Each mark is drawn in its app's colour, a thick crayon line. */
.marks a::before { content: ""; position: absolute; left: 0; bottom: -.3rem; width: min(100%, 21rem); height: 12px; background: color-mix(in srgb, var(--tint, var(--pencil)) 75%, var(--ink)); -webkit-mask: var(--tick) center / 100% 100% no-repeat; mask: var(--tick) center / 100% 100% no-repeat; transform-origin: left; animation: draw .5s ease-out both; }
.marks b { font-weight: 400; font-size: 2.35rem; display: inline; }
.marks i { font-style: normal; font-size: 1.6rem; margin-left: .3rem; opacity: .85; }
.marks .pencil { display: inline-block; transform: rotate(-1.2deg); transform-origin: left bottom; animation: appear .3s ease-out both; }
.marks a:hover b, .marks a:focus-visible b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .12em; }
.marks li:nth-child(even) .pencil { transform: rotate(.7deg); }
/* The marks go up the frame once, on arrival, from before birth to age 7. */
.marks li:nth-child(2) a::before, .marks li:nth-child(2) .pencil { animation-delay: .18s; }
.marks li:nth-child(3) a::before, .marks li:nth-child(3) .pencil { animation-delay: .36s; }
.marks li:nth-child(4) a::before, .marks li:nth-child(4) .pencil { animation-delay: .54s; }
.marks li:nth-child(5) a::before, .marks li:nth-child(5) .pencil { animation-delay: .72s; }
.marks li:nth-child(6) a::before, .marks li:nth-child(6) .pencil { animation-delay: .9s; }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes redraw { from { transform: scaleX(0); } }
@keyframes appear { from { opacity: 0; } }
/* Then the icons sway on the frame, each on its own beat, and a mark is drawn again and its icon hops when pointed at. */
.marks img { animation: appear .3s ease-out both, sway 4.6s ease-in-out infinite; }
.marks li:nth-child(2) img { animation-delay: .18s, -1.1s; }
.marks li:nth-child(3) img { animation-delay: .36s, -2.3s; }
.marks li:nth-child(4) img { animation-delay: .54s, -3.4s; }
.marks li:nth-child(5) img { animation-delay: .72s, -.6s; }
.marks a:hover img, .marks a:focus-visible img { animation: hop .55s ease-out; }
.marks a:hover::before, .marks a:focus-visible::before { animation: redraw .45s ease-out; }
.marks a:hover .pencil, .marks a:focus-visible .pencil { translate: .35rem 0; }
.marks .pencil { transition: translate .25s ease; }
@keyframes sway { 0%, 100% { rotate: -3deg; translate: 0 0; } 50% { rotate: 4deg; translate: 0 -.18rem; } }
@keyframes hop { 30% { translate: 0 -.7rem; rotate: -8deg; } 60% { translate: 0 0; rotate: 6deg; } 80% { translate: 0 -.2rem; } }
/* Screens in a box float a little, as if bobbing in it. */
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3%; } }
.box .peek .shot { animation: bob 5s ease-in-out infinite; }
.box .peek .shot:nth-child(2) { animation-delay: -1.7s; }
.box .peek .shot:nth-child(3) { animation-delay: -3.3s; }

/* The toybox: a box for each app, its screens standing up out of it and its name on the front. The whole box is a link. */
.path { padding: clamp(3rem, 7vw, 5.5rem) var(--pad); }
.boxes { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.8rem; }
.boxes li { margin: 0; max-width: none; }
.box { --deep: color-mix(in srgb, var(--tint) 70%, var(--ink)); display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; border-radius: 2rem; background: color-mix(in srgb, var(--tint) 30%, #fff); box-shadow: 0 8px 0 color-mix(in srgb, var(--tint) 55%, var(--ink) 12%); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.box:hover, .box:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 0 color-mix(in srgb, var(--tint) 55%, var(--ink) 12%), 0 22px 40px rgba(59, 32, 51, .14); }
.box:focus-visible { outline: 4px solid var(--button); outline-offset: 4px; }
/* Three screens, fanned: the middle one in front, the others tipped out behind it. All three whole. */
.peek { display: flex; justify-content: center; align-items: flex-end; padding: 2rem 1.2rem 1.4rem; }
.peek .shot { width: 31%; flex: none; border-width: 4px; transition: transform .25s ease; }
.peek .shot:nth-child(1) { transform: rotate(-7deg) translate(14%, 5%); }
.peek .shot:nth-child(2) { width: 36%; position: relative; z-index: 1; box-shadow: 0 10px 24px rgba(59, 32, 51, .22); }
.peek .shot:nth-child(3) { transform: rotate(7deg) translate(-14%, 5%); }
.box:hover .peek .shot:nth-child(1) { transform: rotate(-10deg) translate(8%, 4%); }
.box:hover .peek .shot:nth-child(3) { transform: rotate(10deg) translate(-8%, 4%); }
/* The front of the box, in the app's own colour. */
.front { flex: 1; display: flex; flex-direction: column; gap: .55rem; padding: 1.5rem 1.6rem 1.6rem; background: var(--tint); border-top: 6px solid var(--deep); }
.front .name { display: flex; align-items: center; gap: .9rem; }
.front .name img { width: 4rem; height: 4rem; border-radius: 1.1rem; box-shadow: 0 4px 0 rgba(59, 32, 51, .18); }
.front .name b { display: block; font-family: "Caprasimo", Georgia, serif; font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1; }
.front .age { display: inline-block; margin-top: .4rem; padding: .15rem .7rem; border-radius: 99px; background: rgba(255, 255, 255, .7); font-style: normal; font-weight: 700; font-size: .9rem; }
.front .line { font-weight: 800; font-size: 1.25rem; margin-top: .3rem; }
.front .text { font-size: 1.02rem; }
.front .go { margin-top: auto; padding-top: .5rem; font-weight: 800; }
.box:hover .go { text-decoration: underline; }
.shot { border-radius: 1.3rem; border: 4px solid #fff; box-shadow: 0 6px 0 rgba(59, 32, 51, .16); background: #f1e6ee; }

.promise { background: var(--ink); color: #fff; padding: clamp(3rem, 7vw, 5rem) var(--pad); }
.promise + .promise { padding-top: 0; }
.promise ul { list-style: none; padding: 0; display: grid; gap: 1.1rem 3rem; margin-bottom: 1.8rem; }
.promise li { margin: 0; max-width: 32rem; }
.promise b { font-weight: 700; color: var(--sun); }

.local { background: var(--wall); padding: clamp(3rem, 7vw, 5rem) var(--pad); }
.local .btn { margin-top: .4rem; }

/* An app's page: the app's own toybox, opened up. The same box as on the home page, big: its screens fanned in the
   lighter half, its name, words and install buttons on the front in the app's colour. */
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 var(--gutter); }
.app-say { padding: clamp(1.2rem, 4vw, 2.5rem) var(--edge) 2.5rem; min-width: 0; }
.app-say .pencil { font-size: 2.1rem; margin-bottom: .2rem; }
.light .app-hero::after { display: none; }
/* On a wide screen the app's first screen stands beside the words, big, propped up at a slant. */
.app-look { display: none; }
.app-top { padding: 1rem var(--pad) 0; }
/* The box holds what's in the app: what it's for on the front, then each part of it. */
.app-box h2 { margin: .6rem 0 .5em; }
.app-box .age { margin-top: 0; align-self: flex-start; }
.app-box .groups { margin-top: 1.6rem; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.app-box .groups > div { background: rgba(255, 255, 255, .45); border-radius: 1.2rem; padding: 1.1rem 1.3rem; }
.app-box { --deep: color-mix(in srgb, var(--tint) 70%, var(--ink)); display: flex; flex-direction: column-reverse; border-radius: 2.2rem; overflow: hidden; background: color-mix(in srgb, var(--tint) 30%, #fff); box-shadow: 0 10px 0 color-mix(in srgb, var(--tint) 55%, var(--ink) 12%); }
.app-box .front { padding: clamp(1.5rem, 4vw, 3rem); border-top: 6px solid var(--deep); }
.age { display: inline-block; margin-top: .5rem; padding: .15rem .75rem; border-radius: 99px; background: rgba(255, 255, 255, .7); font-style: normal; font-weight: 700; font-size: .92rem; }
/* Up to five screens fanned out of the top of the box along an arc, the middle one in front. They're dealt out on
   arrival, bob gently, spread wider when the box is pointed at, and open big when tapped. */
.fan { display: flex; justify-content: center; align-items: flex-end; padding: 2.6rem 1rem 2.4rem; }
.fan .fs { flex: none; width: min(20.5%, 12rem); margin-inline: -1%; position: relative; z-index: var(--z);
  rotate: calc(var(--o) * 6deg); translate: 0 calc(var(--a) * var(--a) * 4%);
  transition: rotate .4s ease, translate .4s ease, scale .25s ease;
  animation: deal .8s cubic-bezier(.2, .9, .3, 1.15) backwards; animation-delay: calc(var(--a) * .14s + .15s); }
.fan .shot { width: 100%; animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--o) * -1.4s); }
.fan .fs:nth-child(odd) .shot { animation-duration: 6s; }
.app-box:hover .fan .fs { rotate: calc(var(--o) * 8deg); translate: calc(var(--o) * 10%) calc(var(--a) * var(--a) * 5%); }
.app-box .fan .fs:hover { scale: 1.07; z-index: 20; }
@keyframes deal { from { rotate: 0deg; translate: 0 40%; opacity: 0; } }
/* Any screen on an app's page opens big when tapped (site.js). */
.app-look .shot, .fan .shot, .screens .shot { cursor: zoom-in; }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; overflow: hidden; }
.viewer::backdrop { background: rgba(34, 16, 29, .82); backdrop-filter: blur(4px); animation: appear .3s ease-out; }
.viewer .big { position: fixed; border-radius: 1.6rem; border: 6px solid #fff; background: #f1e6ee; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); cursor: zoom-out; }
.viewer button { position: fixed; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border: 3px solid var(--ink-deep); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--ink-deep); cursor: pointer; }
.viewer button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink-deep); }
.viewer .close { top: 1rem; right: 1rem; }
.viewer .prev { left: 1rem; top: calc(50% - 1.6rem); }
.viewer .next { right: 1rem; top: calc(50% - 1.6rem); }
.viewer button[hidden] { display: none; }
html:has(.viewer[open]) { overflow: hidden; }
.viewer .count { position: fixed; left: 0; right: 0; bottom: .8rem; margin: 0 auto; max-width: none; text-align: center; color: #fff; font-weight: 700; }
.get { display: grid; gap: 1.5rem; margin-top: 1.6rem; }
.get ol { margin-bottom: .6rem; }
/* Each part of an app's page is a card in a soft wash of its colour. */
.card { background: color-mix(in srgb, var(--tint, var(--wall)) 22%, #fff); border-radius: 1.6rem; padding: 1.4rem 1.6rem; box-shadow: 0 5px 0 color-mix(in srgb, var(--tint, var(--wall)) 40%, transparent); }
.card ul { padding-left: 1.2rem; }

.screens { padding: 3rem 0 1rem; }
.screens h2 { padding-inline: var(--pad); }
/* The margin sits outside the row: padding inside it would leave room for the next screen to peek in at the edge. */
.screens .carousel { margin-inline: var(--pad); }

/* Screens to swipe through, --n whole screens at a time: each is sized to fit, so none is ever cut off at the edge, and
   the row stops with a screen at its left edge. Arrows and a dot each once site.js has set them up. */
.track { --n: 2; --gap: .9rem; position: relative; display: flex; gap: var(--gap); overflow-x: auto; padding: .3rem 0 .6rem; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.track .shot { flex: none; width: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); scroll-snap-align: start; }
[data-os] .track { scrollbar-width: none; }
[data-os] .track::-webkit-scrollbar { display: none; }
.ctl { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: .5rem; }
.ctl[hidden] { display: none; }
.ctl > button { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 3px solid var(--ink-deep); border-radius: 50%; background: var(--button); color: #fff; box-shadow: 0 4px 0 var(--ink-deep); cursor: pointer; }
.ctl > button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink-deep); }
.ctl > button:disabled { opacity: .3; cursor: default; transform: none; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; flex: 0 1 auto; }
.dots button { width: 1.15rem; height: 1.6rem; padding: 0; border: 0; cursor: pointer; background: radial-gradient(circle, var(--dot, rgba(59, 32, 51, .25)) .26rem, transparent .29rem); }
.dots button.on { --dot: var(--button); }

.terms { padding: 2rem var(--pad); }
.groups { display: grid; gap: 1.2rem; }
.groups ul { margin-bottom: 0; }
.groups h3 { font-size: 1.3rem; font-weight: 800; }
.terms { display: grid; gap: 1.2rem; padding-bottom: 3rem; }
.terms h2 { font-size: 1.7rem; margin-bottom: .4em; }
.source { color: var(--soft); margin: 0; }

/* The apps either side, as little boxes: the whole box is the link. */
.along { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; padding: 0 var(--pad) 3rem; }
.mini { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 1.6rem; background: var(--tint); color: var(--ink); text-decoration: none; box-shadow: 0 6px 0 color-mix(in srgb, var(--tint) 60%, var(--ink)); transition: transform .2s ease; }
.mini:hover, .mini:focus-visible { transform: translateY(-3px); }
.mini img { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
.mini b { display: block; font-family: "Caprasimo", Georgia, serif; font-weight: 400; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.1; margin-top: .3rem; }
.mini .age { margin-top: 0; font-size: .82rem; }
.mini.up { grid-column: 2; flex-direction: row-reverse; text-align: right; }

/* Plain pages: how to install, Supporter. */
.plain-hero { background: var(--wall); padding: clamp(1.2rem, 4vw, 3rem) var(--pad) 2.8rem; }

/* Light pages (home, install, charts, terms): no painted wall. The glows sit on the page itself, so the top bar and
   heading share them without a seam, and nothing needs a wavy edge. The door's edge carries the app colours. */
/* The glows drift slowly about: two offsets on different clocks, each glow moved by them in its own way. */
@property --d1 { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --d2 { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes drift1 { 0%, 100% { --d1: -7%; } 50% { --d1: 7%; } }
@keyframes drift2 { 0%, 100% { --d2: 6%; } 50% { --d2: -6%; } }
body.light:not(.home) { background-color: var(--casing); background-size: 100% 52rem; background-repeat: no-repeat; animation: drift1 19s ease-in-out infinite, drift2 27s ease-in-out infinite;
  /* Kept clear of the bottom of the 52rem box so no glow is cut off. */
  background-image:
    radial-gradient(26rem 20rem at calc(6% + var(--d1)) calc(14% + var(--d2)), color-mix(in srgb, var(--c-bump) 50%, transparent), transparent 70%),
    radial-gradient(24rem 18rem at calc(48% - var(--d2)) calc(0% + var(--d1)), color-mix(in srgb, var(--c-potty) 45%, transparent), transparent 70%),
    radial-gradient(22rem 18rem at calc(96% - var(--d1)) calc(36% - var(--d2)), color-mix(in srgb, var(--c-cards) 45%, transparent), transparent 70%),
    radial-gradient(24rem 16rem at calc(30% + var(--d2)) calc(66% - var(--d1)), color-mix(in srgb, var(--c-routines) 35%, transparent), transparent 70%); }
.light .top, .light .plain-hero { background: none; }
.light .hero { animation: drift1 17s ease-in-out infinite, drift2 23s ease-in-out infinite; background:
    radial-gradient(28rem 22rem at calc(8% + var(--d1)) calc(18% + var(--d2)), color-mix(in srgb, var(--c-bump) 55%, transparent), transparent 70%),
    radial-gradient(24rem 20rem at calc(46% - var(--d2)) calc(8% + var(--d1)), color-mix(in srgb, var(--c-potty) 50%, transparent), transparent 70%),
    radial-gradient(26rem 22rem at calc(40% - var(--d1)) calc(88% - var(--d2)), color-mix(in srgb, var(--c-routines) 50%, transparent), transparent 70%),
    radial-gradient(22rem 20rem at calc(2% + var(--d2)) calc(92% - var(--d1)), color-mix(in srgb, var(--c-cards) 55%, transparent), transparent 70%),
    var(--wall); }
.light .hero::after, .light .plain-hero::after { display: none; }
.light .hero .frame { border-image: var(--stripes) 1; box-shadow: -4px 0 0 rgba(59, 32, 51, .08), 0 0 0 1px var(--groove); }
.plain-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); max-width: 16em; }
.plain-hero .lede { max-width: 34rem; }
.plain { padding: 2.5rem var(--pad) 4rem; max-width: 48rem; }
.plain h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.6rem; }
.plain h2:first-child { margin-top: 0; }
.steps { padding-left: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 .7rem 2.6rem; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.05em; font-family: "Reenie Beanie", cursive; font-size: 2.2rem; line-height: 1; color: var(--pencil); }
.steps li p { margin-bottom: .5rem; }
.scroll-table { overflow-x: auto; margin: 1.2rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem 1rem .7rem 0; border-bottom: 2px solid var(--groove); }
thead th { font-weight: 700; color: var(--soft); }
tbody th { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Supporter's plans on a phone: one card per plan, each value labelled, so no column hides off the side. */
@media (max-width: 40rem) {
  .plans { overflow: visible; }
  .plans table { min-width: 0; }
  .plans thead { display: none; }
  .plans table, .plans tbody, .plans tr, .plans th, .plans td { display: block; }
  .plans tr { background: color-mix(in srgb, var(--wall) 22%, #fff); border-radius: 1.2rem; padding: 1rem 1.2rem; margin-bottom: 1rem; box-shadow: 0 4px 0 color-mix(in srgb, var(--wall) 40%, transparent); }
  .plans th, .plans td { border: 0; padding: .15rem 0; }
  .plans tbody th { font-family: "Caprasimo", Georgia, serif; font-weight: 400; font-size: 1.3rem; margin-bottom: .3rem; }
  .plans td { display: flex; gap: 1rem; justify-content: space-between; }
  .plans td::before { content: attr(data-label); color: var(--soft); font-weight: 700; flex: none; }
  .plans td { text-align: right; }
}

/* The charts to print, as cards on /charts/. */
.charts-list { padding-top: 1rem; }
.chart-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.chart-card { display: flex; flex-direction: column; gap: .4rem; height: 100%; box-sizing: border-box; padding: 1.3rem 1.4rem; border-radius: 1.6rem; background: color-mix(in srgb, var(--tint) 30%, #fff); color: var(--ink); text-decoration: none; box-shadow: 0 6px 0 color-mix(in srgb, var(--tint) 60%, var(--ink)); transition: transform .2s ease; }
.chart-card:hover, .chart-card:focus-visible { transform: translateY(-3px); }
.chart-pics { font-size: 2rem; letter-spacing: .15em; line-height: 1.2; color: #e0b400; }
.chart-card b { font-family: "Caprasimo", Georgia, serif; font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.chart-card .go { margin-top: auto; padding-top: .4rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

.foot { background: var(--ink); color: #fff; padding: 2.5rem var(--pad) 2rem; display: grid; gap: 1.5rem 3rem; font-size: .98rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot p { margin-bottom: .6rem; }

/* By the visitor's phone, once site.js has looked: iPhones aren't offered an APK. */
[data-os="ios"] .android { display: none; }
[data-os="android"] .hero-say .iphone { display: none; }

@media (min-width: 40rem) {
  .get { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }
  .promise ul, .groups, .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screens .track { --n: 3; }
  .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem; }
  .source { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1fr 1.3fr 1.6fr; }
}
@media (min-width: 56rem) {
  .home .top { right: calc(var(--frame) + var(--pad)); padding-right: var(--edge); }
  .hero { grid-template-columns: minmax(0, 1fr) var(--frame); min-height: min(100vh, 52rem); padding-right: var(--pad); }
  .hero-say { padding-top: 8.5rem; padding-bottom: 4rem; padding-right: var(--edge); align-self: center; }
  .hero .frame { margin-left: 0; min-height: 100%; padding: 2.5rem 0 2rem; }
  .marks { min-height: 100%; }
  .app-hero { grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); align-items: center; }
  .app-look { display: flex; justify-content: center; padding: 1.5rem var(--edge) 3rem 0; }
  .app-look .shot { width: 100%; border-width: 6px; transform: rotate(3deg); box-shadow: 0 10px 0 rgba(59, 32, 51, .18), 0 24px 40px rgba(59, 32, 51, .18); animation: swing-in .9s cubic-bezier(.2, .9, .3, 1.15) backwards, bob 6s ease-in-out .9s infinite; transition: transform .3s ease; }
  .app-look .shot:hover { transform: rotate(0deg) scale(1.03); }
  @keyframes swing-in { from { transform: rotate(14deg) translateY(12%); opacity: 0; } }
  /* App pages: screens fanned out of the top of the box, the parts of the app across its front. */
  .fan { padding: 3rem 2rem 2.8rem; }
  .fan .fs { width: min(19%, 13rem); }
  .app-box .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screens .track { --n: 4; }
}
@media (max-width: 26rem) {
  .brand { font-size: 1.1rem; }
  .brand img { width: 30px; height: 30px; }
  .marks b { font-size: 2.1rem; }
  .marks i { font-size: 1.45rem; }
}
@media (max-width: 23rem) {
  .top { gap: .2rem 1rem; }
  .top nav { gap: .7rem; font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The charts to print. On paper only .sheet shows. */
.sheet { max-width: 44rem; margin: 2rem auto 0; padding: 1.5rem var(--pad); background: #fff; color: #222; }
.sheet h2 { font-size: 3rem; margin: .2rem 0 1rem; }
.whose, .prize { font-size: 1.2rem; margin: .4rem 0; }
.sheet-steps { list-style: none; margin: 0; padding: 0; }
.sheet-steps li { display: flex; align-items: center; gap: 1rem; border-top: 2px solid #ddd; padding: .55rem 0; }
.sheet-steps .pic { font-size: 2.6rem; line-height: 1; width: 3.4rem; text-align: center; }
.sheet-steps .word { flex: 1; font-size: 1.6rem; }
.sheet-steps .tickbox { width: 2.4rem; height: 2.4rem; border: 3px solid #222; border-radius: .4rem; }
.sheet-stars { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.sheet-stars li { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid #bbb; border-radius: .5rem; color: #e4e4e4; font-size: 2.4rem; }
.sheet-foot { margin: 1rem 0 0; font-size: .85rem; color: #666; text-align: right; }
@media print {
  @page { margin: .5in; }
  body { background: #fff; }
  .top, .foot, .skip, .noprint { display: none !important; }
  .sheet { max-width: none; margin: 0; padding: 0; }
  .sheet-steps li, .sheet-stars { break-inside: avoid; }
}
