/* My Little Baby website, round 2: bright, with all four babies up front.
   Colour schemes: html[data-scheme] (sky, sunshine, bubblegum, mint, lilac). Font pairings: html[data-fonts]
   (playground, toybox, storybook, crisp). The default is set on the <html> tag of each page; the review-only style
   switcher (assets/js/style-switcher*.js) can change both. Every font is SIL Open Font Licence (assets/fonts/licences). */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/bricolage-grotesque-latin.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(../fonts/figtree-latin.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/fredoka-latin.woff2) format('woff2'); }
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/young-serif-latin.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(../fonts/dm-sans-latin.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin.woff2) format('woff2'); }

/* ---------------------------------------------------------------- the four babies' own colours (from the app) */
:root {
  --hero: #0A6A61;        --hero-soft: #D7F3EE;   --hero-bright: #14B8A6;
  --warrior: #AE2D32;     --warrior-soft: #FDE2E1; --warrior-bright: #EF4444;
  --dancer: #A82E6E;      --dancer-soft: #FCE1EF;  --dancer-bright: #EC5FA6;
  --footballer: #0F6A45;  --footballer-soft: #DCF5E7; --footballer-bright: #22A06B;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1.2vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.4rem, 1.5rem + 4.2vw, 4.6rem);

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --measure: 36rem;
  --max: 74rem;
  --r-stage: 1.75rem;
  --r-soft: 1.25rem;
  --r-pill: 999px;
}

/* ---------------------------------------------------------------- colour schemes */
:root, [data-scheme="sky"] {
  --bg: #EAF5FF; --bg-2: #FFFFFF; --bg-3: #D9ECFF; --surface: #FFFFFF;
  --ink: #15233F; --ink-soft: #46557A; --line: rgba(21, 35, 63, .12);
  --accent: #FFC53D; --accent-hover: #FFD46A; --accent-ink: #15233F; --link: #1D55B4;
  --stage-a: #FFFFFF; --stage-b: #CFE6FF; --glow: rgba(255, 236, 190, .9);
  --wash: radial-gradient(60% 70% at 15% 0%, #FFF6D8 0%, rgba(255,246,216,0) 60%), radial-gradient(60% 70% at 90% 10%, #FFE3EF 0%, rgba(255,227,239,0) 60%);
}
[data-scheme="sunshine"] {
  --bg: #FFF5D6; --bg-2: #FFFCF2; --bg-3: #FFEAB0; --surface: #FFFFFF;
  --ink: #2A2140; --ink-soft: #5B5070; --line: rgba(42, 33, 64, .12);
  --accent: #FF6F5B; --accent-hover: #FF8B7A; --accent-ink: #2A1420; --link: #B23A1E;
  --stage-a: #FFFFFF; --stage-b: #FFE7A3; --glow: rgba(255, 255, 255, .9);
  --wash: radial-gradient(60% 70% at 10% 0%, #FFFFFF 0%, rgba(255,255,255,0) 60%), radial-gradient(50% 60% at 90% 10%, #FFE0C8 0%, rgba(255,224,200,0) 60%);
}
[data-scheme="bubblegum"] {
  --bg: #FFEEF5; --bg-2: #FFFAFC; --bg-3: #FFDCEA; --surface: #FFFFFF;
  --ink: #2B1A3D; --ink-soft: #5E4A72; --line: rgba(43, 26, 61, .12);
  --accent: #6D4AFF; --accent-hover: #8467FF; --accent-ink: #FFFFFF; --link: #5B36E0;
  --stage-a: #FFFFFF; --stage-b: #FFD3E5; --glow: rgba(255, 255, 255, .9);
  --wash: radial-gradient(60% 70% at 10% 0%, #E9E3FF 0%, rgba(233,227,255,0) 60%), radial-gradient(50% 60% at 90% 10%, #FFF3D6 0%, rgba(255,243,214,0) 60%);
}
[data-scheme="mint"] {
  --bg: #E5F7EF; --bg-2: #F7FDFA; --bg-3: #CDEFDF; --surface: #FFFFFF;
  --ink: #10302A; --ink-soft: #3F6158; --line: rgba(16, 48, 42, .12);
  --accent: #FF8A3D; --accent-hover: #FFA066; --accent-ink: #2A1406; --link: #0B6B57;
  --stage-a: #FFFFFF; --stage-b: #C5EEDB; --glow: rgba(255, 250, 230, .9);
  --wash: radial-gradient(60% 70% at 10% 0%, #FFF8DC 0%, rgba(255,248,220,0) 60%), radial-gradient(50% 60% at 90% 10%, #E1F1FF 0%, rgba(225,241,255,0) 60%);
}
[data-scheme="lilac"] {
  --bg: #F1ECFF; --bg-2: #FBF9FF; --bg-3: #E2D9FF; --surface: #FFFFFF;
  --ink: #211A45; --ink-soft: #544C7A; --line: rgba(33, 26, 69, .12);
  --accent: #FFB52E; --accent-hover: #FFC65C; --accent-ink: #211A45; --link: #5A3FD1;
  --stage-a: #FFFFFF; --stage-b: #DCD1FF; --glow: rgba(255, 244, 214, .9);
  --wash: radial-gradient(60% 70% at 10% 0%, #FFF1D8 0%, rgba(255,241,216,0) 60%), radial-gradient(50% 60% at 90% 10%, #FFE1F0 0%, rgba(255,225,240,0) 60%);
}

/* ---------------------------------------------------------------- font pairings */
:root, [data-fonts="playground"] {
  --head: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; --head-weight: 760; --head-track: -.025em; --head-var: 'opsz' 96;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; --body-weight: 450;
}
[data-fonts="toybox"] {
  --head: 'Fredoka', 'Trebuchet MS', sans-serif; --head-weight: 600; --head-track: -.01em; --head-var: normal; --head-scale: .94;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; --body-weight: 450;
}
[data-fonts="storybook"] {
  --head: 'Young Serif', Georgia, serif; --head-weight: 400; --head-track: -.015em; --head-var: normal; --head-scale: .8;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --body-weight: 420;
}
[data-fonts="crisp"] {
  --head: 'Plus Jakarta Sans', system-ui, sans-serif; --head-weight: 800; --head-track: -.03em; --head-var: normal; --head-scale: .88;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --body-weight: 450;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--wash), var(--bg); background-repeat: no-repeat; background-size: 100% 70rem, auto; color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6; font-weight: var(--body-weight);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--head); font-weight: var(--head-weight); line-height: 1.06; letter-spacing: var(--head-track); margin: 0; font-variation-settings: var(--head-var); text-wrap: balance; color: var(--ink); }
h1 { font-size: calc(var(--step-4) * var(--head-scale, 1)); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.15; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.small { font-size: var(--step--1); }
h3.minor, .does-list h3 { font-family: var(--body); font-weight: 800; font-size: 1.15rem; letter-spacing: 0; font-variation-settings: normal; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: var(--r-pill); font-weight: 800; z-index: 30; }
.skip:focus { left: .5rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- header */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: var(--head-weight); font-variation-settings: var(--head-var); font-size: 1.3rem; letter-spacing: var(--head-track); white-space: nowrap; }
.brand img { width: 2.1rem; height: 2.1rem; }
.top nav { display: flex; gap: 1.1rem; align-items: center; }
.top nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .95rem; padding: .5rem .1rem; }
.top nav a:not(.btn):hover, .top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: .4em; }
@media (max-width: 40rem) { .top nav a.hide-sm { display: none; } .top .btn.small-btn { padding: .45rem .85rem; font-size: .84rem; } .top .brand { font-size: 1.12rem; } .top .brand img { width: 1.8rem; height: 1.8rem; } }
.top .btn { white-space: nowrap; }
@media (max-width: 22rem) { .top .brand { font-size: 1rem; } .top .btn.small-btn { font-size: .78rem; padding: .4rem .7rem; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .8rem 1.6rem;
  border: 0; border-radius: var(--r-pill); font: inherit; font-weight: 800; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 24px -12px rgba(0,0,0,.35);
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn.small-btn { min-height: 2.6rem; padding: .5rem 1.15rem; font-size: .95rem; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 6px 16px -12px rgba(0,0,0,.3); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.linkish { background: none; border: 0; padding: .4rem .2rem; color: var(--link); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* ---------------------------------------------------------------- the stage (the app's lit plinth) */
.stage {
  position: relative; border-radius: var(--r-stage); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 60% at 50% 65%, var(--glow) 0%, rgba(255,255,255,0) 70%), radial-gradient(120% 100% at 50% 100%, var(--stage-a) 0%, var(--stage-b) 100%);
  box-shadow: 0 0 0 1px var(--line) inset, 0 24px 60px -36px rgba(0,0,0,.4);
}
.stage svg.baby { width: 100%; height: 100%; display: block; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.stage .chip {
  position: absolute; left: 1rem; top: 1rem; z-index: 2; padding: .35rem .85rem; border-radius: var(--r-pill);
  background: var(--accent-c, var(--ink)); color: #fff; font-weight: 800; font-size: .82rem;
}
.sound {
  position: absolute; right: .8rem; bottom: .8rem; z-index: 2; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line);
}
.sound svg { width: 1.3rem; height: 1.3rem; }
.sound .off { display: none; }
.sound[aria-pressed="false"] .on { display: none; }
.sound[aria-pressed="false"] .off { display: block; }

/* ---------------------------------------------------------------- hero: four names like a cross, four babies side by side */
.hero { position: relative; padding: .5rem 0 3rem; }
.hero-head { text-align: center; padding-top: .75rem; }
.hero-head h1 span { display: block; }
.hero-head h1 { font-size: calc(clamp(2.4rem, 1.4rem + 4vw, 4.4rem) * var(--head-scale, 1)); }

.line-up { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.lu { display: grid; gap: .35rem; justify-items: center; }
.lu-stage { width: 100%; height: clamp(10.5rem, 42vw, 15rem); border-radius: var(--r-soft); background: radial-gradient(60% 55% at 50% 70%, var(--glow), rgba(255,255,255,0) 70%), linear-gradient(180deg, var(--soft) 0%, #FFFFFF 100%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 18%, transparent); overflow: hidden; }
.lu-stage svg { width: 100%; height: 100%; }
.lu-name { font-family: var(--head); font-weight: var(--head-weight); font-variation-settings: var(--head-var); color: var(--c); text-decoration: none; font-size: clamp(1rem, .85rem + .8vw, 1.15rem); letter-spacing: var(--head-track); text-align: center; line-height: 1.2; }
.lu-name:hover { text-decoration: underline; }
.lu-hero { --c: var(--hero); --soft: var(--hero-soft); } .lu-warrior { --c: var(--warrior); --soft: var(--warrior-soft); }
.lu-dancer { --c: var(--dancer); --soft: var(--dancer-soft); } .lu-footballer { --c: var(--footballer); --soft: var(--footballer-soft); }
@media (min-width: 40rem) { .line-up { grid-template-columns: repeat(4, 1fr); } .lu-stage { height: clamp(11rem, 26vw, 15rem); } .lu-name { font-size: 1.05rem; } }
@media (min-width: 52rem) {
  .line-up { grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
  .lu-stage { height: clamp(14rem, 22vw, 19rem); }
  .lu-name { font-size: 1.35rem; }
}
.hero .still { width: 100%; height: auto; margin-top: 1rem; }
.js .hero .still { display: none; }
html:not(.js) .line-up { display: none; }

.hero-foot { display: grid; justify-items: center; text-align: center; gap: .8rem; margin-top: 1.4rem; }
.hero-foot .lede { max-width: 40rem; margin: 0; }
.play-hint { color: var(--ink-soft); font-size: .95rem; margin: 0; max-width: none; }
.play-hint .count { color: var(--warrior); font-weight: 800; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(3.25rem, 8vw, 6.5rem) 0; }
.section-head { display: grid; gap: .9rem; align-content: start; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--ink-soft); }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center p { max-width: 42rem; }

/* choose: the heart of the page */
.choose { background: var(--bg-2); border-radius: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 0 0; box-shadow: 0 -1px 0 var(--line); }
.choose h2 { font-size: clamp(2.2rem, 1.5rem + 3.6vw, 4rem); }
.picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
@media (min-width: 52rem) { .picker { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.pick {
  position: relative; display: grid; justify-items: center; gap: .15rem; padding: .6rem .5rem 1rem; cursor: pointer; font: inherit; color: var(--ink);
  border: 0; border-radius: var(--r-soft); background: var(--soft); box-shadow: inset 0 0 0 2px transparent; transition: transform .2s, box-shadow .2s;
}
.pick:hover { transform: translateY(-3px); }
.pick-baby { width: 100%; height: clamp(7.5rem, 30vw, 11rem); pointer-events: none; }
.pick-name { font-family: var(--head); font-weight: var(--head-weight); font-variation-settings: var(--head-var); letter-spacing: var(--head-track); font-size: clamp(1rem, .9rem + .6vw, 1.3rem); color: var(--c); line-height: 1.1; }
.pick-tag { font-size: .86rem; color: var(--ink-soft); font-weight: 700; }
.pick[aria-selected="true"] { box-shadow: inset 0 0 0 3px var(--c), 0 16px 30px -20px var(--c); background: #fff; }
.pick[aria-selected="true"]::after { content: ''; position: absolute; top: .6rem; right: .6rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat; }
.p-hero { --c: var(--hero); --soft: var(--hero-soft); } .p-warrior { --c: var(--warrior); --soft: var(--warrior-soft); }
.p-dancer { --c: var(--dancer); --soft: var(--dancer-soft); } .p-footballer { --c: var(--footballer); --soft: var(--footballer-soft); }

.meet { display: grid; gap: 1.5rem; margin-top: 1.5rem; padding: clamp(1rem, 3vw, 2rem); border-radius: var(--r-stage); background: var(--tc-soft, var(--bg)); }
.meet .stage { height: min(96vw, 26rem); --accent-c: var(--tc); }
.meet-text { display: grid; gap: 1rem; align-content: center; }
.baby-panel { display: grid; gap: .5rem; }
.baby-panel[hidden] { display: none; }
.baby-panel h3 { font-size: var(--step-3); color: var(--tc); }
.baby-panel .tag { font-weight: 800; font-size: var(--step-1); color: var(--ink); margin: 0; }
.baby-panel p { margin: 0; }
.hint { color: var(--ink-soft); font-size: .95rem; }
.looks { padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.looks p { color: var(--ink-soft); margin: 0; }
.tones { display: flex; gap: .55rem; flex-wrap: wrap; }
.tone { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; cursor: pointer; background: var(--sw); box-shadow: inset 0 -4px 8px rgba(0,0,0,.18), 0 0 0 2px #fff; }
.tone[aria-pressed="true"] { box-shadow: inset 0 -4px 8px rgba(0,0,0,.18), 0 0 0 2px #fff, 0 0 0 5px var(--ink); }
/* make them look like yours: five tabs, then big finger-sized choices from the app's own list */
.looks-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.looks-tab { flex: none; min-height: 2.75rem; padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.looks-tab[aria-selected="true"] { background: var(--tc, var(--ink)); border-color: var(--tc, var(--ink)); color: #fff; }
.looks-panel { min-height: 3.4rem; }
.looks-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.looks .looks-sub { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: .2rem 0 .1rem; }
.looks .looks-sub:first-child { margin-top: 0; }
.look-pill { min-height: 2.75rem; padding: .45rem .9rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; }
.look-pill[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.look-sw { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; cursor: pointer; background: var(--sw); box-shadow: inset 0 -4px 8px rgba(0,0,0,.18), 0 0 0 2px #fff; }
.look-sw[aria-pressed="true"] { box-shadow: inset 0 -4px 8px rgba(0,0,0,.18), 0 0 0 2px #fff, 0 0 0 5px var(--ink); }
.looks .looks-now { font-size: .9rem; min-height: 1.4em; }
@media (hover: hover) { .looks-tab:hover, .look-pill:hover { border-color: var(--ink-soft); } .look-pill[aria-pressed="true"]:hover { border-color: var(--ink); } }
/* on phones the choices sit straight under the baby, so the baby stays in view while choosing */
@media (max-width: 51.99rem) { .meet-text { display: contents; } .meet .stage { order: 0; } .meet .looks { order: 1; } .meet .baby-panel, .meet .hint { order: 2; } }
@media (min-width: 52rem) { .meet { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; } .meet .stage { height: 30rem; } }

/* what it does */
.does { background: var(--bg-2); }
.does .wrap { display: grid; gap: 2rem; }
.does-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.does-list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; align-items: start; }
.does-list .ic { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); color: var(--ink); }
.does-list .ic svg { width: 1.3rem; height: 1.3rem; }
.does-list h3 { margin-bottom: .2rem; }
.does-list p { color: var(--ink-soft); }
.try { display: grid; gap: .9rem; }
.try .stage { height: min(92vw, 25rem); --accent-c: var(--footballer); }
.try .caption { min-height: 1.6em; text-align: center; font-family: var(--head); font-weight: var(--head-weight); font-variation-settings: var(--head-var); font-size: 1.3rem; color: var(--ink); margin: 0 auto; }
.log-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.log-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.9rem; padding: .55rem 1.05rem; border-radius: var(--r-pill); cursor: pointer;
  border: 0; background: var(--bg); color: var(--ink); font: inherit; font-weight: 800; font-size: .98rem; box-shadow: inset 0 0 0 1.5px var(--line);
}
.log-btn svg { width: 1.15rem; height: 1.15rem; }
.log-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.log-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
@media (min-width: 52rem) { .does .wrap { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } .does .section-head { grid-column: 1 / -1; margin-bottom: 0; } }

/* milestones */
.milestones { background: var(--bg); }
.milestones h2 { font-size: clamp(2.1rem, 1.5rem + 3.2vw, 3.8rem); }
.ms-grid { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .ms-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; } }
.ms-card { background: var(--surface); border-radius: var(--r-stage); padding: clamp(1.1rem, 3vw, 1.8rem); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -34px rgba(0,0,0,.35); display: grid; gap: 1rem; }
.ms-card-top { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .8rem; align-items: center; }
.ms-mini { width: 3.4rem; height: auto; filter: grayscale(1) opacity(.45); transition: filter .4s; }
.ms-mini.on { filter: none; }
.ms-area { margin: 0; font-size: .85rem; font-weight: 800; color: #B93E0E; }
.ms-card h3 { font-family: var(--body); font-weight: 800; letter-spacing: 0; font-variation-settings: normal; font-size: 1.15rem; line-height: 1.3; }
.ms-pct { font-weight: 900; font-size: 1.15rem; color: #B93E0E; }
.ms-bar { height: .55rem; border-radius: var(--r-pill); background: var(--bg-3); overflow: hidden; }
.ms-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #FF8A65, #E64A19); transition: width .5s; }
.ms-q p { font-weight: 700; margin-bottom: .6rem; }
.ms-answers { display: flex; flex-wrap: wrap; gap: .5rem; }
.ms-answers button { min-height: 2.75rem; min-width: 5.5rem; padding: .45rem 1.1rem; border-radius: var(--r-pill); border: 0; cursor: pointer; font: inherit; font-weight: 800; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.ms-answers button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ms-done, .ms-later { text-align: center; display: grid; justify-items: center; gap: .3rem; }
.ms-done[hidden], .ms-later[hidden], .ms-q[hidden], .ms-again[hidden] { display: none; }
.ms-done img { width: 7.5rem; height: auto; animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }
.ms-done-title { font-family: var(--head); font-weight: var(--head-weight); font-variation-settings: var(--head-var); font-size: 1.5rem; margin: 0; }
.ms-done p, .ms-later p { margin: 0; color: var(--ink-soft); }
.ms-again { justify-self: center; }
.ms-note { font-size: .85rem; color: var(--ink-soft); margin: 0; }
@keyframes pop { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ms-side { display: grid; gap: 1rem; }
.ms-side > p { color: var(--ink-soft); }
.areas { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.areas li { display: grid; grid-template-columns: 3.5rem 1fr; gap: .9rem; align-items: center; }
.areas img { width: 3.5rem; height: auto; }
.areas strong { display: block; font-size: 1.05rem; }
.areas span { color: var(--ink-soft); }

.journey { margin-top: clamp(2.5rem, 6vw, 4rem); background: var(--surface); border-radius: var(--r-stage); padding: clamp(1.1rem, 3vw, 2rem); box-shadow: 0 0 0 1px var(--line); --jc: var(--hero); }
.journey-head { display: grid; gap: 1rem; margin-bottom: 1.4rem; }
@media (min-width: 52rem) { .journey-head { grid-template-columns: 1fr auto; align-items: center; } }
.journey-head h3 { font-size: var(--step-2); }
.jtabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.jtab { min-height: 2.6rem; padding: .4rem 1rem; border-radius: var(--r-pill); border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .92rem; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.jtab[aria-pressed="true"] { background: var(--jc); color: #fff; box-shadow: none; }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 40rem) { .track { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 72rem) { .track { grid-template-columns: repeat(9, 1fr); gap: .5rem; } .track li { padding: .75rem .65rem; } .track strong { font-size: .95rem; } }
.track li { display: grid; gap: .1rem; padding: .8rem .9rem; border-radius: 1rem; background: var(--bg); position: relative; }
.track .node { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .9rem; color: #fff; background: var(--jc); margin-bottom: .35rem; }
.track .belt { display: inline-block; width: 2.2rem; height: .7rem; border-radius: .2rem; background: var(--b); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); margin-bottom: .35rem; }
.track strong { font-size: 1rem; line-height: 1.25; }
.track li > span:last-child { font-size: .85rem; color: var(--ink-soft); }
.journey-notes { display: grid; gap: .8rem; margin-top: 1.4rem; }
@media (min-width: 52rem) { .journey-notes { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.journey-notes p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.journey-notes strong { color: var(--ink); display: block; }

/* why you'll love it */
/* every day in between: the tracking gallery, carrying straight on from the milestones (same background, no gap) */
.tracking { background: var(--bg); padding-top: 0; overflow: hidden; }
.tracking h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); max-width: 18ch; }
.tr-kicker { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--ink-soft); margin: 0; }
.tr-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: 0 auto 1.5rem; max-width: 46rem; }
.tr-tab { min-height: 2.75rem; padding: .45rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.tr-tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tr-gallery { position: relative; }
.tr-track { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: .5rem var(--gutter) 1.5rem; display: flex; gap: clamp(1rem, 3vw, 1.75rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tr-track::-webkit-scrollbar { display: none; }
.tr-tile { flex: 0 0 min(58vw, 13.5rem); scroll-snap-align: center; display: grid; gap: .35rem; align-content: start; }
.tr-phone { position: relative; aspect-ratio: 450 / 974; border-radius: 1.9rem; overflow: hidden; background: #111; border: 6px solid var(--ink); box-shadow: 0 26px 50px -30px rgba(0,0,0,.5); margin-bottom: .6rem; }
.tr-phone img, .tr-phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-phone video { opacity: 0; transition: opacity .3s; }
.tr-phone video.on { opacity: 1; }
.tr-tile h3 { font-family: var(--body); font-weight: 800; font-size: 1.15rem; letter-spacing: 0; font-variation-settings: normal; margin: 0; }
.tr-tile p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.tr-arrow { display: none; position: absolute; top: 40%; z-index: 2; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -12px rgba(0,0,0,.4); cursor: pointer; place-items: center; }
.tr-arrow svg { width: 1.3rem; height: 1.3rem; }
.tr-arrow[disabled] { opacity: .35; cursor: default; }
.tr-prev { left: -.75rem; } .tr-next { right: -.75rem; }
@media (hover: hover) and (min-width: 52rem) { .tr-arrow { display: grid; } }
@media (min-width: 52rem) { .tr-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); } }
@media (max-width: 51.99rem) { .tr-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 1rem; padding: .2rem var(--gutter); max-width: none; } .tr-tabs::-webkit-scrollbar { display: none; } .tr-tab { flex: none; } }
.tr-note { text-align: center; color: var(--ink-soft); font-size: .9rem; max-width: 40rem; margin: .5rem auto 0; }
.love { background: var(--bg-2); }
.loves { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .loves { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.love-item { display: grid; gap: .9rem; align-content: start; padding: 1.4rem; border-radius: var(--r-soft); background: var(--bg); }
.love-item p { color: var(--ink-soft); margin: 0; }
.love-item h3 { font-size: 1.45rem; }
.love-art { display: grid; place-items: center; height: 12rem; border-radius: 1rem; overflow: hidden; }
.love-art img { height: auto; }
.love-art.garden { background: #DCEBF0; }
.love-art.morning { background: radial-gradient(70% 90% at 50% 100%, #FFD9A8, #FFEBD6 60%, #FFF6EC); }
.love-art.record { background: #fff; place-items: center start; padding: 1rem 1.25rem; }
.week { display: grid; gap: .3rem; font-size: .95rem; color: var(--ink-soft); }
.week strong { font-family: var(--head); font-weight: var(--head-weight); font-variation-settings: var(--head-var); font-size: 1.2rem; color: var(--ink); margin-bottom: .2rem; }

/* privacy */
.privacy-block { background: var(--bg); }
.privacy-block .wrap { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .privacy-block .wrap { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.promises li { padding-left: 2.1rem; position: relative; color: var(--ink-soft); max-width: 36rem; }
.promises li strong { color: var(--ink); display: block; font-size: 1.1rem; }
.promises li::before {
  content: ''; position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--footballer-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* FAQ */
.faq { background: var(--bg-2); }
.faq .wrap { max-width: 48rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-weight: 800; font-size: 1.15rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: .3rem; top: 50%; width: .7rem; height: .7rem; margin-top: -.5rem; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -.15rem; }
.faq details > div { padding: 0 0 1.3rem; color: var(--ink-soft); }

/* the film */
.film { background: var(--bg); }
.film .frame { position: relative; border-radius: var(--r-stage); overflow: hidden; background: var(--bg-3); aspect-ratio: 9 / 16; width: min(100%, 46vh); margin: 0 auto; container-type: inline-size; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -40px rgba(0,0,0,.45); }
@media (min-width: 40rem) { .film .frame { aspect-ratio: 16 / 9; width: auto; } }
.film .frame img, .film .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film .frame .poster-wide { display: none; }
@media (min-width: 40rem) { .film .frame .poster-wide { display: block; } .film .frame .poster-tall { display: none; } }
/* the play button (18 Oct 2026): it sits in the space the cover leaves for it, under the words, and scales with the cover
   (cqw is a hundredth of the frame's width), so it always lands in the same place. The whole cover is still the link.
   The film only starts downloading when it is pressed. */
.film-play { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: row; align-items: flex-start; justify-content: center; gap: .55em;
  padding-top: 150cqw; font-size: max(4.45cqw, 1.15rem); text-decoration: none; color: var(--ink); }
@media (min-width: 40rem) { .film-play { justify-content: flex-start; padding: 40cqw 0 0 7.5cqw; font-size: 2.5cqw; } }
.film-play-icon { flex: none; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 .5em 1.2em -.5em rgba(0,0,0,.45), inset 0 -.2em .4em rgba(0,0,0,.08); transition: transform .2s; }
.film-play-icon svg { width: 46%; height: 46%; margin-left: 8%; }
.film-play:hover .film-play-icon, .film-play:focus-visible .film-play-icon { transform: scale(1.06); }
.film-play-text { display: grid; align-self: flex-start; margin-top: .4em; font-family: var(--head); font-weight: var(--head-weight); font-variation-settings: var(--head-var); font-size: 1em; line-height: 1.1; letter-spacing: -.02em; }
.film-play-text small { font-family: var(--body); font-weight: 800; font-size: max(.55em, .8rem); color: var(--ink-soft); letter-spacing: 0; }
.film-play:focus-visible { outline: 4px solid var(--accent); outline-offset: -8px; border-radius: var(--r-stage); }
.film .frame.playing .film-play, .film .frame.playing img { display: none; }
.film .frame video { z-index: 3; object-fit: contain; background: #000; }
.film-missing { position: absolute; left: 50%; bottom: 1.25rem; z-index: 4; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); margin: 0; padding: .6rem 1.1rem; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-weight: 800; text-align: center; }

/* sign-up */
.download { background: var(--bg-3); }
.download .wrap { display: grid; gap: 2rem; align-items: center; }
.download .mini-stage { height: 15rem; max-width: 22rem; width: 100%; margin: 0 auto; }
/* the two store buttons: plain placeholders for now; Apple's and Google's official badges can replace them once the links exist */
.stores { display: flex; flex-wrap: wrap; gap: .75rem; }
.store { display: inline-flex; align-items: center; gap: .65rem; min-height: 3.5rem; padding: .55rem 1.25rem .55rem 1rem; border-radius: .9rem; background: #15233F; color: #fff; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(0,0,0,.55); }
.store:hover { background: #22345C; }
.store svg { width: 1.6rem; height: 1.6rem; flex: none; }
.store span { display: grid; line-height: 1.1; font-weight: 800; font-size: 1.15rem; }
.store small { font-weight: 600; font-size: .75rem; opacity: .85; }
.store:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* the offer beside the Download now buttons: the trial leads, loud; the price sits underneath, small and grey but always readable */
.offer { display: grid; gap: .15rem; margin-top: .2rem; }
.offer p { margin: 0; max-width: none; }
.offer-trial { font-family: var(--head); font-weight: var(--head-weight); font-variation-settings: var(--head-var); letter-spacing: var(--head-track); color: var(--ink); font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); line-height: 1.15; }
.offer-price { color: var(--ink-soft); font-weight: 600; font-size: 1rem; }
.hero-foot .offer { justify-items: center; text-align: center; }
.download .offer { margin-top: 1rem; }
.store-msg { min-height: 1.5em; margin: .4rem 0 0; font-weight: 800; color: var(--ink); }
@media (min-width: 52rem) { .download .wrap { grid-template-columns: 1fr 1.3fr; gap: 4rem; } .download .mini-stage { height: 20rem; } }

/* footer */
.foot { background: var(--ink); color: rgba(255,255,255,.78); padding: 2.5rem 0 3rem; font-size: .95rem; }
.foot .wrap { display: grid; gap: 1.25rem; }
.foot .brand { color: #fff; }
.foot .brand img { background: #fff; border-radius: 50%; padding: .15rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot nav a { color: #fff; font-weight: 700; }
.foot .fine { max-width: 44rem; }
.foot :focus-visible { outline-color: #fff; }
.placeholder { background: #FFF0C8; border: 1px dashed #B7791F; border-radius: .4rem; padding: 0 .35rem; color: #3A2A06; font-weight: 800; }

/* ---------------------------------------------------------------- the document pages (privacy, support) */
.doc { padding: clamp(2rem, 6vw, 4rem) 0 5rem; background: var(--bg-2); }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: var(--step-3); margin-bottom: .6rem; }
.doc h2 { font-size: 1.6rem; margin: 2.6rem 0 .8rem; }
.doc h2.flush { margin-top: 0; }
.doc h3 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; font-family: var(--body); font-weight: 800; letter-spacing: 0; font-variation-settings: normal; }
.doc p, .doc li { color: var(--ink-soft); max-width: 40rem; }
.doc ul { padding-left: 1.25rem; margin: 0 0 1em; }
.doc li { margin-bottom: .5rem; }
.doc li::marker { color: var(--warrior-bright); }
.doc strong { color: var(--ink); }
.doc code { font-family: inherit; font-weight: 800; background: var(--bg-3); padding: 0 .3rem; border-radius: .3rem; }
.doc .meta { margin-bottom: 2rem; }
.doc .spaced { margin-top: 2.5rem; }
.doc .callout { background: var(--bg); border-radius: var(--r-soft); padding: 1.25rem 1.4rem; margin: 1.5rem 0; box-shadow: 0 0 0 1px var(--line); }
.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; border-radius: var(--r-soft); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.doc table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.doc th { font-weight: 800; color: var(--ink); background: var(--bg); }
.doc tr:last-child td { border-bottom: 0; }
@media (max-width: 40rem) {
  .doc table { min-width: 0; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc tr { display: block; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
  .doc tr:last-child { border-bottom: 0; }
  .doc td { display: block; padding: .15rem 0; border: 0; }
  .doc td:first-child { font-weight: 800; color: var(--ink); font-size: 1.05rem; padding-bottom: .3rem; }
  .doc td:not(:first-child)::before { content: attr(data-label) ': '; font-weight: 800; color: var(--ink); }
}

/* ---------------------------------------------------------------- without JavaScript, and with reduced motion */
html:not(.js) .play-hint, html:not(.js) .try, html:not(.js) .picker, html:not(.js) .meet .stage, html:not(.js) .tones, html:not(.js) .looks-tabs,
html:not(.js) .download .mini-stage, html:not(.js) .ms-card, html:not(.js) .jtabs, html:not(.js) .hint { display: none; }
html:not(.js) .baby-panel[hidden] { display: grid; margin-bottom: 1.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 22rem) { .hero-head h1 { font-size: calc(2.05rem * var(--head-scale, 1)); } .lu-name { font-size: .88rem; letter-spacing: -.01em; } .line-up { gap: .45rem; } }
