/* growney.app home (backend/tool/hub_pages.py writes the pages). One light paper world:
   the hero is a full-bleed slider whose tint changes per app, the header sits inside it;
   everything else lives on a 12-column, 1200px grid. Outlines are the apps' pencil, drawn
   by home.js on .pen elements. Concept: docs/ARTIFACTS.md «Growney World». */

@font-face { font-family: "Rubik"; src: url("/assets/fonts/Rubik.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Pangolin"; src: url("/assets/fonts/Pangolin.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: light;
  --paper: #FAF3E3; --card: #FFFBF2; --paper-deep: #F2E6CC;
  --ink: #432E33; --ink-muted: #6E5A5F; --ink-soft: rgba(67, 46, 51, .55);
  --leaf: #4F7059; --leaf-shadow: #3A5442; --leaf-soft: #DCE6D3;
  --sun: #D4AE48; --sun-shadow: #A88830; --sun-soft: #F4E3B0;
  --tint: #E8E6F1; --tint-deep: #D3D0E4;
  --font-hand: "Pangolin", "Comic Sans MS", cursive;
  --font-ui: "Rubik", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 32px; --gap: 24px; --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 8px 16px; border-radius: 12px; background: var(--leaf); color: var(--card); font-weight: 500; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.pen { position: relative; }
.pen > svg.pencil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; color: var(--pen, var(--ink)); }
.pen > svg.pencil path { fill: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--tint); transition: background-color .6s ease; }
.top { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-hand); font-size: 28px; line-height: 1; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav { display: flex; align-items: center; gap: 28px; font-family: var(--font-hand); font-size: 19px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline wavy var(--sun) 2px; text-underline-offset: 6px; }
.langs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(255, 251, 242, .7); --pen: var(--ink-soft); }
.langs a { padding: 3px 10px; border-radius: 10px; font-size: 16px; color: var(--ink-muted); }
.langs a[aria-current] { background: var(--sun-soft); color: var(--ink); }

.slides { display: grid; }
.slide { grid-area: 1 / 1; padding-block: 28px 36px; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s linear .18s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity .35s ease .18s, visibility 0s linear .18s; }
.slide .grid { align-items: center; min-height: 500px; }

.copy { grid-column: 1 / span 5; max-width: 30em; }
.tag { display: inline-block; margin: 0 0 18px; padding: 4px 12px 5px; font-family: var(--font-hand); font-size: 17px; line-height: 1.2; background: var(--sun-soft); transform: rotate(-1.5deg); }
.tag.soon { background: #F6D6C6; }
.tag.new { background: var(--leaf-soft); }
.tag.wip { background: #DCE5EC; }
.copy h2 { margin: 0; font-family: var(--font-hand); font-weight: 400; font-size: 64px; line-height: 1; letter-spacing: -.5px; }
.sub { margin: 10px 0 20px; font-size: 21px; font-weight: 500; color: var(--ink-muted); }
.lead { margin: 0 0 18px; }
.does { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; }
.does li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.does svg { width: 22px; height: 22px; margin-top: 2px; }
.does svg path { fill: none; stroke: var(--leaf); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cta { display: flex; margin: 0 0 16px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border: 0; border-radius: 18px; background: var(--sun); color: var(--ink); font-family: var(--font-hand); font-size: 21px; line-height: 1; text-decoration: none; box-shadow: 0 5px 0 var(--sun-shadow); cursor: pointer; transition: transform .07s, box-shadow .07s; }
.btn.leaf { background: var(--leaf); color: var(--card); box-shadow: 0 5px 0 var(--leaf-shadow); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 transparent; }
.badge { display: inline-flex; height: 52px; }
.badge img { height: 52px; width: auto; }
.slot { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 12px; border-radius: 12px; text-decoration: none; color: var(--ink-muted); font-size: 13px; line-height: 1.15; --pen: var(--ink-soft); }
.slot b { display: block; color: var(--ink); font-size: 17px; font-weight: 500; }
.slot svg { width: 22px; height: 22px; flex: none; fill: var(--ink-muted); }

.stage { grid-column: 7 / span 6; position: relative; height: 470px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; }
.device { position: relative; flex: none; background: var(--card); padding: 12px; border-radius: 30px; --pen: var(--ink); transform: translateY(14px); opacity: 0; transition: transform .6s cubic-bezier(.2, .8, .3, 1) .08s, opacity .45s .08s; }
.on .device { transform: none; opacity: 1; }
.device::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--tint-deep); transform: translate(12px, 12px); z-index: -1; transition: background-color .6s; }
.device.land { width: 100%; max-width: 600px; }
.device.land .screen { aspect-ratio: 1120 / 778; }
.device.port { height: 430px; }
.device.port .screen { height: 100%; aspect-ratio: 640 / 880; }
.device.phone { height: 430px; border-radius: 34px; padding: 9px; }
.device.phone .screen { height: 100%; aspect-ratio: 520 / 1130; border-radius: 26px; }
.screen { position: relative; overflow: hidden; border-radius: 18px; background: var(--paper-deep); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .5s ease; }
.screen img.cur { opacity: 1; }
.mascot { position: absolute; z-index: 4; left: -96px; bottom: -22px; width: 150px; transform-origin: 50% 100%; transform: scale(.7); opacity: 0; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) .3s, opacity .25s .3s; }
.mascot.wide { width: 190px; left: -128px; }
.on .mascot { transform: none; opacity: 1; }
.under { display: flex; align-items: center; gap: 14px; height: 34px; margin-top: 14px; align-self: stretch; justify-content: flex-end; font-size: 15px; color: var(--ink-muted); }
.dots { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--ink-soft); opacity: .45; cursor: pointer; }
.dots button[aria-current="true"] { opacity: 1; background: var(--ink); }

/* The apps' cards: an icon, the name and what it is; every card reads as a button, the open one is solid. */
.rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 56px; gap: 12px; padding-block: 8px 34px; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 136px; padding: 12px 8px 18px; border: 0; border-radius: 22px; background: rgba(255, 251, 242, .45); text-align: center; cursor: pointer; transition: background-color .2s, transform .15s; }
.tab:hover { background: rgba(255, 251, 242, .8); transform: translateY(-2px); }
.tab[aria-selected="true"] { background: var(--card); transform: none; }
.tab > svg.pencil { transition: opacity .2s; }
.tab[aria-selected="false"] > svg.pencil { opacity: .3; }
.tab img { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 2px; }
.tab > span:not(.bar) { display: block; max-width: 100%; }
.tab b { display: block; font-family: var(--font-hand); font-weight: 400; font-size: 21px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.2; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab .bar { position: absolute; left: 22px; right: 22px; bottom: 9px; height: 3px; border-radius: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; opacity: 0; }
.tab[aria-selected="true"] .bar { opacity: 1; }
.tab.run .bar { transition: transform var(--dur) linear; transform: scaleX(1); }
.pause { width: 56px; height: 56px; align-self: center; border: 0; border-radius: 50%; background: var(--card); cursor: pointer; display: grid; place-items: center; --pen: var(--ink); }
.pause svg { width: 18px; height: 18px; fill: var(--ink); }
.wave { display: block; width: 100%; height: 26px; margin-top: -1px; }
.wave path { fill: var(--paper); }

/* ---------- parents ---------- */
.block { padding-block: 88px 24px; }
.block .grid { align-items: start; }
.note-h { margin: 0 0 16px; font-family: var(--font-hand); font-weight: 400; font-size: 48px; line-height: 1.05; }
.note-h svg { display: block; width: 120px; height: 40px; margin-top: 8px; }
.note-h svg path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.parents-copy { grid-column: 1 / span 4; }
.parents-copy p { margin: 0 0 26px; color: var(--ink-muted); font-size: 18px; }
.steps { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; }
.phone-shot { position: relative; background: var(--card); padding: 8px; border-radius: 30px; --pen: var(--ink); }
.phone-shot img { width: 100%; aspect-ratio: 520 / 1170; object-fit: cover; object-position: top; border-radius: 23px; }
.steps h3 { margin: 22px 0 6px; font-family: var(--font-hand); font-weight: 400; font-size: 23px; line-height: 1.15; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.steps h3::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun-soft); font-size: 19px; }
.steps p { margin: 0 0 0 44px; color: var(--ink-muted); font-size: 16px; }

/* ---------- the same in every app ---------- */
.same { padding-block: 72px 80px; }
.same-h { grid-column: 1 / -1; }
.traits { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 8px 0 0; padding: 0; list-style: none; }
.traits li { display: grid; grid-template-rows: 48px auto auto; gap: 8px; }
.traits svg { width: 44px; height: 44px; }
.traits svg .s { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.traits svg .f { fill: var(--sun-soft); }
.traits b { font-family: var(--font-hand); font-weight: 400; font-size: 23px; line-height: 1.15; }
.traits span { color: var(--ink-muted); font-size: 16px; }

/* ---------- footer ---------- */
.foot { padding-block: 0 48px; }
.foot-line { display: block; width: 100%; height: 8px; margin-bottom: 28px; }
.foot-line path { fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round; }
.foot .grid { align-items: center; row-gap: 18px; }
.foot .brand { grid-column: 1 / span 3; font-size: 24px; }
.foot nav { grid-column: 4 / span 6; display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; color: var(--ink-muted); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot .copy-r { grid-column: 10 / span 3; justify-self: end; margin: 0; font-size: 14px; color: var(--ink-muted); text-align: right; }

/* ---------- what people write (feedback.js) ---------- */
/* Approved reviews as paper notes taped to the page, in a row that scrolls; the form is a sheet in a dialog. */
.voices { padding-block: 24px 96px; }
.voices-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.voices-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-bottom: 22px; }
.quiet { padding: 6px 2px; border: 0; background: none; font-family: var(--font-hand); font-size: 19px; color: var(--ink-muted); text-decoration: underline wavy var(--ink-soft) 1.5px; text-underline-offset: 6px; cursor: pointer; }
.quiet:hover { color: var(--ink); text-decoration-color: var(--sun); }
.board { grid-column: 1 / -1; position: relative; }
.notes { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; margin: 0 calc(var(--gutter) * -1); padding: 26px var(--gutter) 30px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.notes::-webkit-scrollbar { display: none; }
.note { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; min-height: 230px; padding: 30px 26px 22px; background: var(--card); box-shadow: 0 1px 0 rgba(67, 46, 51, .06), 0 12px 22px -14px rgba(67, 46, 51, .35); transform: rotate(-1deg); }
.note:nth-child(3n + 2) { transform: rotate(.8deg); background: #FFF8E6; }
.note:nth-child(3n) { transform: rotate(-.4deg); background: #FBF6EC; }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: rgba(212, 174, 72, .38); transform: rotate(-3deg); }
.note:nth-child(3n + 2)::before { background: rgba(79, 112, 89, .26); transform: rotate(2.5deg); }
.from { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font-hand); font-size: 19px; line-height: 1; }
.from img { width: 28px; height: 28px; border-radius: 8px; }
.said { flex: 1; margin: 0 0 18px; font-size: 17px; overflow-wrap: anywhere; }
.said::before { content: "\201C"; display: block; height: 30px; font-family: var(--font-hand); font-size: 64px; line-height: 1; color: var(--sun); }
.who { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0; font-size: 14px; color: var(--ink-muted); }
.who b { font-family: var(--font-hand); font-weight: 400; font-size: 21px; color: var(--ink); }
.note.empty { grid-column: span 2; justify-content: center; min-height: 160px; transform: rotate(-.6deg); }
.note.empty p { margin: 0; max-width: 34em; font-family: var(--font-hand); font-size: 22px; line-height: 1.3; color: var(--ink-muted); }
.notes-nav { display: flex; justify-content: flex-end; gap: 12px; }
.notes-nav[hidden] { display: none; }
.arrow { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--card); cursor: pointer; --pen: var(--ink); }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow:disabled { cursor: default; opacity: .35; }

.fb { width: min(640px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; background: none; color: var(--ink); overflow: visible; }
.fb::backdrop { background: rgba(67, 46, 51, .45); }
.sheet { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 34px 36px 30px; background: var(--card); background-image: repeating-linear-gradient(transparent 0 31px, rgba(110, 90, 95, .1) 31px 32px); box-shadow: 0 24px 48px -20px rgba(40, 24, 28, .55); }
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 22px; width: 2px; background: rgba(212, 120, 110, .3); }
.sheet h2 { margin: 0 52px 18px 0; font-family: var(--font-hand); font-weight: 400; font-size: 40px; line-height: 1.05; }
.x { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); cursor: pointer; z-index: 2; }
.x svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.sheet fieldset { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.sheet legend, .field > span { display: block; margin-bottom: 8px; padding: 0; font-family: var(--font-hand); font-size: 20px; }
.picks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.picks legend { grid-column: 1 / -1; }
.pick, .kind { position: relative; cursor: pointer; }
.pick input, .kind input { position: absolute; opacity: 0; pointer-events: none; }
.pick > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 16px; background: rgba(250, 243, 227, .8); --pen: var(--ink-soft); transition: background-color .15s; }
.pick img { width: 40px; height: 40px; border-radius: 11px; }
.pick b { font-family: var(--font-hand); font-weight: 400; font-size: 16px; line-height: 1.1; }
.kinds { display: flex; flex-wrap: wrap; gap: 10px; }
.kinds legend { width: 100%; }
.kind > span { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 14px; background: rgba(250, 243, 227, .8); font-family: var(--font-hand); font-size: 19px; --pen: var(--ink-soft); transition: background-color .15s; }
.pick input:checked + span { background: var(--sun-soft); --pen: var(--ink); }
.kind input:checked + span { background: var(--sun-soft); --pen: var(--ink); }
.pick input:focus-visible + span, .kind input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 3px; }
.shots { margin: 0 0 16px; }
.shots .lbl { display: block; margin-bottom: 8px; font-family: var(--font-hand); font-size: 20px; }
.shots small { font-family: var(--font-ui); font-size: 14px; color: var(--ink-muted); }
.thumbs { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin: 0; padding: 0; list-style: none; }
.thumbs:not(:empty) { margin-bottom: 12px; }
.thumbs li { position: relative; padding: 6px; background: #fff; box-shadow: 0 6px 12px -8px rgba(67, 46, 51, .5); transform: rotate(-1.5deg); }
.thumbs li:nth-child(2n) { transform: rotate(1.2deg); }
.thumbs canvas { display: block; max-width: 96px; max-height: 96px; }
.thumbs .rm { position: absolute; top: -12px; right: -12px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; }
.thumbs .rm svg { width: 14px; height: 14px; fill: none; stroke: var(--card); stroke-width: 2.6; stroke-linecap: round; }
.add { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px; border-radius: 14px; background: rgba(250, 243, 227, .8); font-family: var(--font-hand); font-size: 18px; cursor: pointer; --pen: var(--ink-soft); }
.add[hidden] { display: none; }
.add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.add:focus-within { outline: 3px solid var(--sun); outline-offset: 3px; }
.add svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.field { display: block; margin: 0 0 16px; }
.field textarea, .field input { display: block; width: 100%; padding: 10px 14px; border: 1.5px solid rgba(67, 46, 51, .35); border-radius: 12px; background: rgba(255, 255, 255, .7); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.5; }
.field textarea { min-height: 132px; resize: vertical; }
.field textarea:focus, .field input:focus { outline: 3px solid var(--sun-soft); border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-note { margin: 0 0 6px; font-size: 15px; color: var(--ink-muted); }
.fb-err { min-height: 1.5em; margin: 0 0 8px; font-size: 15px; font-weight: 500; color: #A2463A; }
.fb-go { display: flex; justify-content: flex-end; }
.btn:disabled { opacity: .6; cursor: progress; }
.sheet.done { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 40px 36px; text-align: center; }
.sheet.done[hidden], .sheet[hidden] { display: none; }
.sheet.done img { width: 170px; }
.sheet.done p { margin: 0; max-width: 24em; font-family: var(--font-hand); font-size: 24px; line-height: 1.3; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .device, .mascot { transform: none; opacity: 1; }
}
@media (max-width: 1180px) {
  .rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(148px, 1fr); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
}
@media (max-width: 980px) {
  :root { --gutter: 20px; --gap: 16px; }
  .nav .hide-m { display: none; }
  .hero { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .slide:not(.on) { display: none; }
  .slide { padding-block: 8px 28px; }
  .slide .grid { min-height: 0; row-gap: 28px; }
  .copy, .stage { grid-column: 1 / -1; }
  .stage { grid-row: 1; }
  .copy { grid-row: 2; }
  /* The cards sit under the thumb, pinned to the bottom while the slider is on screen. */
  .rail-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: none; padding-inline: 0; background: rgba(250, 243, 227, .96); box-shadow: 0 -10px 24px rgba(67, 46, 51, .08); transition: transform .3s ease; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .rail-wrap.away { transform: translateY(110%); }
  .rail { margin-inline: 0; padding: 10px var(--gutter) 10px; grid-auto-columns: 92px; gap: 6px; }
  .tab { height: 78px; gap: 4px; padding: 8px 4px 12px; border-radius: 18px; }
  .tab img { width: 40px; height: 40px; border-radius: 11px; margin: 0; }
  .tab b { font-size: 15px; }
  .tab small { display: none; }
  .tab .bar { left: 14px; right: 14px; bottom: 6px; }
  .pause { width: 48px; height: 48px; }
  .copy h2 { font-size: 48px; }
  .stage { height: auto; align-items: center; padding-left: 64px; padding-top: 12px; }
  .under { justify-content: center; }
  .device.port, .device.phone { height: 380px; }
  .parents-copy, .steps, .traits { grid-column: 1 / -1; }
  .notes { grid-auto-columns: calc((100% - 24px) / 2); }
  .steps { margin-top: 12px; }
  .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .foot .brand, .foot nav, .foot .copy-r { grid-column: 1 / -1; justify-self: start; text-align: left; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .top { height: 68px; }
  .brand { font-size: 24px; }
  .nav { gap: 14px; font-size: 17px; }
  .copy h2 { font-size: 42px; }
  .sub { font-size: 18px; margin-bottom: 14px; }
  .does { margin-bottom: 24px; }
  .stage { padding-left: 44px; }
  .mascot { width: 104px; left: -58px; bottom: -16px; }
  .rail { grid-auto-columns: 80px; }
  .tab b { font-size: 14px; }
  .mascot.wide { width: 130px; left: -78px; }
  .device.port, .device.phone { height: 330px; }
  .device { padding: 8px; border-radius: 22px; }
  .screen { border-radius: 14px; }
  .note-h { font-size: 38px; }
  .block { padding-block: 64px 8px; }
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .steps li { scroll-snap-align: start; }
  .traits { grid-template-columns: 1fr; }
  .voices { padding-bottom: 72px; }
  .voices-act { padding-bottom: 4px; }
  .notes { grid-auto-columns: 84%; gap: 16px; }
  .note.empty { grid-column: auto; }
  .sheet { padding: 28px 20px 24px 30px; }
  .sheet::before { left: 14px; }
  .sheet h2 { font-size: 32px; }
  .picks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
}
