/* Forkast website: the app's playful skin (Sources/UI/Theme.swift) with chunky ink outlines, offset shadows,
   floating ingredient stickers, scroll scenes and small playable demos. Motion turns off with prefers-reduced-motion. */
:root {
  --bg: #FFF3E2;
  --card: #FFFFFF;
  --ink: #2B2118;
  --sub: #7A6A58;
  --body: #5C4D3E;
  --line: #D9C9B3;
  --accent: #EF5B3B;
  --accent-dark: #C63F22;
  --butter: #FFCB47;
  --butter-soft: #FFE8A8;
  --mint: #BFE8D2;
  --green: #1E6B45;
  --blush: #FFD9CC;
  --lilac: #E8D9FF;
  --radius: 24px;
  --shadow: 4px 4px 0 var(--ink);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --glide: cubic-bezier(.65, 0, .35, 1);
  --hdr: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 17px/1.55 var(--text); overflow-x: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(43, 33, 24, .07) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

/* ---------- Header, progress, footer ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 30; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); border-radius: 0 4px 4px 0; }
header.site { position: sticky; top: 0; z-index: 20; padding: 12px 0; background: rgba(255, 243, 226, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid transparent; transition: border-color .2s; }
header.site.scrolled { border-bottom-color: var(--ink); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 27px/1 var(--display); letter-spacing: -0.8px; }
.brand img { width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); transition: transform .4s var(--bounce); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
nav.top { display: flex; align-items: center; gap: 22px; }
nav.top a { text-decoration: none; font-weight: 700; color: var(--sub); }
nav.top a:hover { color: var(--ink); }
nav.top .btn { min-height: 42px; padding: 0 18px; font-size: 15px; color: #fff; }
footer.site { margin-top: 90px; padding: 34px 0 50px; border-top: 2px solid var(--ink); background: var(--card); color: var(--sub); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer.site nav a { margin-right: 18px; font-weight: 600; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -1px; line-height: 1.04; margin: 0 0 14px; text-wrap: balance; }
h1 { font-size: clamp(42px, 7vw, 78px); letter-spacing: -2.4px; }
h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -1.6px; }
h3 { font-size: 23px; letter-spacing: -0.5px; }
h4 { font-size: 21px; letter-spacing: -0.4px; margin-bottom: 8px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--sub); max-width: 34em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.small { font-size: 14px; color: var(--sub); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; background: var(--butter);
  border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; box-shadow: 2px 2px 0 var(--ink); }
.kicker:hover { animation: wiggle .5s ease; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl svg { position: absolute; left: -4%; bottom: -0.12em; width: 108%; height: .5em; z-index: -1; overflow: visible; }
.hl path { fill: none; stroke: var(--butter); stroke-width: 18; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520;
  animation: draw 1s .5s var(--glide) forwards; }
.tilt { display: inline-block; transform: rotate(-3deg); background: var(--accent); color: #fff; padding: 0 .18em .06em; border-radius: 12px; border: 3px solid var(--ink); }
.money { font-variant-numeric: tabular-nums; }
.pop { animation: pop .45s var(--bounce); }

/* ---------- Buttons and forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--accent); color: #fff; font: 800 17px var(--text); text-decoration: none;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.cta { animation: attn 3.6s ease-in-out infinite; }
.waitlist .btn.cta { animation-delay: .9s; }
.btn.cta:hover { animation-play-state: paused; }
.btn.cta.quiet { animation: none; }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 540px; }
.waitlist input[type=email] { flex: 1 1 240px; min-height: 54px; border-radius: 999px; border: 2px solid var(--ink); padding: 0 22px;
  font: 600 16px var(--text); background: var(--card); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(43, 33, 24, .06); }
.waitlist input[type=email]:focus { outline: 3px solid var(--butter); outline-offset: 2px; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist .note { flex-basis: 100%; font-size: 14px; color: var(--sub); margin: 4px 6px 0; }
#join { scroll-margin-top: 30vh; }
.waitlist.nudge input[type=email] { animation: glow 1.1s ease 2; }
.waitlist .done { flex-basis: 100%; font-weight: 800; font-size: 18px; animation: pop .5s var(--bounce); }
.hero .lead { max-width: 25em; }
.perk-line { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; background: var(--butter); border: 2px solid var(--ink);
  border-radius: 14px; padding: 7px 14px; font-weight: 800; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); rotate: -1deg; }
.perk-line b { font: 800 19px var(--display); color: var(--accent-dark); }
.perk-line s { color: var(--sub); font-weight: 700; }
.wl { display: inline-block; margin-top: 14px; font-weight: 800; font-size: 15px; background: var(--butter); border: 2px solid var(--ink); border-radius: 999px;
  padding: 5px 14px; text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--sub); }
.trust span::before { content: "✓ "; color: var(--green); }

/* ---------- Rotating words ---------- */
.rotline { font: 800 clamp(24px, 3.2vw, 34px)/1.2 var(--display); letter-spacing: -.8px; margin: -2px 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rot { position: relative; display: inline-grid; justify-items: start; }
.rot > span { grid-area: 1 / 1; justify-self: start; white-space: nowrap; border: 2px solid var(--ink); border-radius: 14px; padding: 2px 14px 4px; box-shadow: 3px 3px 0 var(--ink); }
.rot > span.enter { animation: rotin .45s .06s var(--bounce) both; }
.rot > span.leave { animation: rotout .22s ease-in both; }

/* ---------- Phones ---------- */
.phone { position: relative; width: 290px; height: 600px; border: 4px solid var(--ink); border-radius: 46px; background: #FFF3E2;
  box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  transform: translateX(104%); transition: transform .65s var(--glide); }
.phone img.on { transform: none; }
.phone img.was { transform: translateX(-104%); }

/* ---------- Hero ---------- */
.hero { padding-block: 40px 30px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: center; }
.stage { position: relative; height: 660px; display: grid; place-items: center; }
.blob { position: absolute; width: 470px; height: 470px; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: var(--butter);
  border: 3px solid var(--ink); animation: morph 12s ease-in-out infinite; }
.stage .phone { rotate: 3deg; animation: hover 6s ease-in-out infinite; }
.dots { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); padding: 0; cursor: pointer; transition: transform .3s var(--bounce), background .3s; }
.dots button.on { background: var(--accent); transform: scale(1.25); }
.sticker { position: absolute; width: 92px; filter: drop-shadow(3px 4px 0 rgba(43, 33, 24, .18)); animation: float 5s ease-in-out infinite; pointer-events: none; }
.tag { position: absolute; z-index: 5; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 10px 14px;
  box-shadow: var(--shadow); font-weight: 700; animation: popin .7s var(--bounce) both, bob 4s 1s ease-in-out infinite; }
.tag small { display: block; color: var(--sub); font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.tag b { font: 800 27px/1.1 var(--display); letter-spacing: -1px; }
.tag .of { color: var(--sub); font-weight: 800; font-size: 14px; }
.tag .ok { display: block; margin-top: 2px; font-size: 13px; color: var(--green); }
.tag.price { left: -44px; top: 58%; animation-delay: .4s, 1.4s; }
.bubble { position: absolute; right: -40px; bottom: 0; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; animation: popin .7s 1.1s var(--bounce) both; }
.bubble img { width: 58px; border-radius: 16px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); animation: wiggle 2.6s 2s ease-in-out infinite; }
.bubble p { margin: 0 30px 0 0; background: var(--card); border: 2px solid var(--ink); border-radius: 16px 16px 4px 16px; padding: 8px 12px;
  font-weight: 800; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); max-width: 170px; }

/* ---------- Marquees ---------- */
.band { margin-top: 30px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: var(--butter); overflow: hidden;
  transform: rotate(-1.2deg); width: 104%; margin-left: -2%; }
.shift { will-change: transform; }
.marquee { display: flex; width: max-content; }
.marquee.go { animation: marquee 34s linear infinite; }
.band:hover .marquee { animation-play-state: paused; }
.band .marquee span { display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px; font: 800 22px var(--display); letter-spacing: -.5px; white-space: nowrap; }
.band .marquee span::after { content: "✦"; color: var(--accent); font-size: 18px; margin-left: 18px; }
.plates { overflow: hidden; padding: 36px 0 26px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 34px; width: max-content; padding: 6px 40px; will-change: transform; }
.plate { display: block; width: 168px; flex: none; padding: 0; border: 0; background: none; text-align: center; font: 800 14px/1.25 var(--text); color: var(--ink); cursor: pointer; }
.plate .disc { display: block; width: 168px; height: 168px; margin: 0 auto; border-radius: 50%; box-shadow: 4px 4px 0 var(--ink); position: relative;
  transition: scale .45s var(--bounce), translate .45s var(--bounce), box-shadow .3s; }
@media (hover: hover) {
  .plate:hover .disc { scale: 1.24; translate: 0 -10px; box-shadow: 6px 8px 0 var(--ink); z-index: 2; }
  .plate:hover .name, .plate:hover em { translate: 0 16px; }
}
.plate.big .disc { scale: 1.32; translate: 0 -10px; box-shadow: 6px 8px 0 var(--ink); z-index: 2; }
.plate img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--ink); background: #fff; display: block; }
.plate .name { display: block; margin-top: 12px; transition: translate .45s var(--bounce); }
.plate.big .name { translate: 0 18px; }
.plate em { display: inline-block; white-space: nowrap; margin-top: 6px; transition: translate .45s var(--bounce); font-style: normal; font-size: 12px; font-weight: 800; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 9px; background: var(--card); }
.plate.big em { translate: 0 18px; }
.plate em.s-breakfast { background: var(--butter-soft); } .plate em.s-dessert { background: var(--lilac); }
.plate em.s-lunch { background: var(--mint); } .plate em.s-dinner { background: var(--blush); }

/* ---------- Sections ---------- */
section { padding: 96px 0 0; }
.card { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--sub); }

/* Pinned scenes: the stage sticks under the header and scrolling drives its animation; the page moves on after. */
.pin { position: relative; padding: 0; height: calc(100vh - var(--hdr) + var(--len, 100vh)); }
.pin-stage { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr)); overflow: hidden; }
.center-stage { display: flex; flex-direction: column; justify-content: center; }
[data-fit] { transform-origin: 50% 50%; }
.anchor { position: absolute; left: 0; top: calc(195vh - var(--hdr)); }
.scroll-hint { position: absolute; z-index: 4; bottom: 14px; left: 50%; translate: -50% 0; margin: 0; font-weight: 800; font-size: 14px; color: var(--sub); transition: opacity .3s; }
.scroll-hint span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
.journey[data-phase="steps"] .scroll-hint { opacity: 0; }

/* Journey, phase 1: the daily questions crowd around "Sound familiar?". */
.thoughts { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.thought { position: absolute; left: 50%; top: 50%; margin: 0; white-space: nowrap; background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 10px 15px;
  font-weight: 800; font-size: clamp(14px, 1.3vw, 16px); box-shadow: 3px 3px 0 var(--ink); opacity: 0;
  translate: calc(-50% + var(--x, 0px) * var(--k, 1)) calc(-50% + var(--y, 0px));
  transform: scale(.3) rotate(var(--r)); transition: opacity .25s, transform .45s var(--bounce); }
.thought.show { opacity: 1; transform: scale(1) rotate(var(--r)); animation: drift 3s ease-in-out infinite; }
.thought.warm.show { animation-duration: 3.7s; animation-delay: -1.2s; }
.thought.gone { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(.4) rotate(calc(var(--r) * 5)); transition: opacity .45s, transform .6s ease-in; }
.thought.warm { background: var(--blush); }
/* Offsets from the centre of "Sound familiar?", in the order they pop in. */
.t1 { --x: -330px; --y: -130px; } .t2 { --x: 330px; --y: -125px; } .t3 { --x: -400px; --y: 25px; } .t4 { --x: 370px; --y: 30px; }
.t5 { --x: -300px; --y: 125px; } .t6 { --x: 0px; --y: -135px; } .t7 { --x: 380px; --y: -40px; } .t8 { --x: -420px; --y: -45px; }
.t9 { --x: 300px; --y: 125px; } .t10 { --x: -170px; --y: -200px; } .t11 { --x: 230px; --y: -200px; } .t12 { --x: 0px; --y: 195px; }
@media (max-width: 1120px) { .thoughts { --k: .86; } }
.j-problem { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; padding: 0 24px; pointer-events: none; transition: opacity .35s, transform .6s var(--bounce); }
.j-problem h2 { font-size: clamp(40px, 5.6vw, 64px); }
.j-problem .lead { margin: 0 auto; }
.journey:not([data-phase="problem"]) .j-problem { opacity: 0; transform: scale(.85); }

/* Phase 2: the app rises in as the answer. Phase 3: it slides left and the steps begin beside it. */
.story { position: relative; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; height: 100%; align-items: center; }
.story-phone { position: relative; z-index: 3; display: grid; place-items: center; height: 660px; transition: transform 1s var(--glide), opacity .5s; }
.journey[data-phase="problem"] .story-phone { transform: translate(var(--toRight, 0px), 125%); }
.journey[data-phase="solution"] .story-phone { transform: translate(var(--toRight, 0px), 0); }
.story-phone::before { content: ""; position: absolute; width: 350px; height: 350px; border-radius: 50%; background: var(--butter); border: 3px solid var(--ink); transition: background-color .5s; }
.story-phone[data-step="0"]::before { background: var(--mint); }
.story-phone[data-step="1"]::before { background: var(--butter-soft); }
.story-phone[data-step="2"]::before { background: var(--lilac); }
.story-phone[data-step="3"]::before { background: var(--blush); }
.story-phone[data-step="4"]::before { background: var(--butter); }
.story-phone[data-step="5"]::before { background: var(--mint); }
.story-phone .phone { rotate: -2deg; }
.j-solution { position: absolute; z-index: 3; left: 0; top: 50%; width: min(500px, 46%); translate: 0 -50%; transition: opacity .45s, transform .7s var(--bounce); }
.journey:not([data-phase="solution"]) .j-solution { opacity: 0; transform: translateX(-80px); pointer-events: none; }
.j-solution h2 { font-size: clamp(46px, 6vw, 76px); margin-bottom: 8px; }
.j-solution .lead { font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); font-weight: 700; margin: 0; }
.badges { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.badges li { display: flex; align-items: center; gap: 12px; width: fit-content; font-weight: 800; font-size: 18px; background: var(--card); border: 2px solid var(--ink);
  border-radius: 16px; padding: 7px 16px 7px 7px; box-shadow: 3px 3px 0 var(--ink); opacity: 0; transform: translateX(-30px) scale(.9); transition: opacity .3s, transform .5s var(--bounce); }
.journey[data-phase="solution"] .badges li { opacity: 1; transform: none; }
.journey[data-phase="solution"] .badges li:nth-child(1) { transition-delay: .35s; }
.journey[data-phase="solution"] .badges li:nth-child(2) { transition-delay: .5s; }
.journey[data-phase="solution"] .badges li:nth-child(3) { transition-delay: .65s; }
.journey[data-phase="solution"] .badges li:nth-child(4) { transition-delay: .8s; }
.badges .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--ink); }
.badges .ico svg { width: 28px; height: 28px; }
.story-panel { min-width: 0; transition: opacity .5s .25s, transform .7s .25s var(--bounce); }
.journey:not([data-phase="steps"]) .story-panel { opacity: 0; transform: translateX(90px); pointer-events: none; }
.rail { margin-bottom: 22px; max-width: 520px; }
.rail-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.rail-steps button { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 11px; font-weight: 800; font-size: 13px; background: var(--card); cursor: pointer; transition: background .2s, color .2s, transform .3s var(--bounce); }
.rail-steps button.done { background: var(--butter-soft); }
.rail-steps button.on { background: var(--ink); color: #fff; transform: translateY(-2px); }
.rail-bar { height: 6px; border-radius: 999px; background: rgba(43, 33, 24, .12); margin-top: 10px; overflow: hidden; }
.rail-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.chapters { display: grid; }
.chapter { grid-area: 1 / 1; opacity: 0; transform: translateY(46px); visibility: hidden; pointer-events: none;
  transition: opacity .3s, transform .5s var(--bounce), visibility 0s linear .5s; }
.chapter.past { transform: translateY(-46px); }
.chapter.active { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .45s .08s, transform .6s .08s var(--bounce), visibility 0s; }
.ch-head > div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.ch-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; border: 2px solid var(--ink);
  font: 800 22px var(--display); box-shadow: 2px 2px 0 var(--ink); }
.chapter.active .ch-num { animation: pop .5s .1s var(--bounce) both; }
.ch-head h3 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -1.2px; margin: 0; }
.ch-head p { grid-column: 1 / -1; color: var(--sub); font-size: 18px; margin: 10px 0 0; }
.demo-card { margin-top: 20px; max-width: 520px; }

/* Demo: store and budget */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--ink); background: var(--card); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px;
  cursor: pointer; transition: transform .3s var(--bounce), background .2s, color .2s; }
.chip:hover { transform: translateY(-3px) rotate(-2deg); }
.chip.on { background: var(--ink); color: #fff; animation: pop .4s var(--bounce); }
.chip.more { border-style: dashed; color: var(--sub); cursor: default; }
.chip.more:hover { transform: none; }
.storeline { margin: 14px 0 18px !important; font-weight: 700; color: var(--ink) !important; padding-bottom: 16px; border-bottom: 2px dashed var(--line); }
.storeline .money { font: 800 26px var(--display); letter-spacing: -.5px; display: inline-block; }
.budget-out { display: flex; align-items: baseline; gap: 8px; }
.budget-out b { font: 800 44px var(--display); letter-spacing: -1.5px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; border-radius: 999px; border: 2px solid var(--ink);
  background: linear-gradient(90deg, var(--accent) var(--fill, 40%), #fff var(--fill, 40%)); margin: 12px 0 14px; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--butter);
  border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--butter); border: 3px solid var(--ink); }
.fitbar { height: 22px; border: 2px solid var(--ink); border-radius: 999px; background: repeating-linear-gradient(45deg, #fff 0 8px, var(--butter-soft) 8px 16px); overflow: hidden; }
.fitbar i { display: block; height: 100%; background: var(--mint); border-right: 2px solid var(--ink); transition: width .5s var(--bounce), background .3s; }
.fitbar i.over { background: var(--blush); border-right: 0; }
.fitline { margin: 8px 0 0 !important; font-size: 14px; font-weight: 700; color: var(--ink) !important; }

.pill-b { background: var(--butter-soft); } .pill-l { background: var(--mint); } .pill-d { background: var(--blush); }

/* Demo: the whole week planned in a blink */
.wf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.wf-head b { font: 800 24px var(--display); letter-spacing: -.5px; }
.wf-time { font-weight: 800; font-size: 14px; color: var(--sub); }
.wf-time.done { color: var(--green); animation: pop .45s var(--bounce); }
.wf-grid { display: grid; grid-template-columns: 26px repeat(7, minmax(0, 1fr)); gap: 7px 6px; align-items: center; justify-items: center; }
.wf-grid .dl { font-size: 12px; font-weight: 800; color: var(--sub); border: 0; background: none; cursor: pointer; padding: 2px 5px; border-radius: 8px; }
.wf-grid .dl.on { background: var(--ink); color: #fff; }
.wf-grid .ml { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.wf-cell { position: relative; width: 100%; max-width: 50px; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(43, 33, 24, .25); background: #fff; }
.wf-cell img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.wf-cell.filled { border: 2px solid var(--ink); animation: pop .35s var(--bounce); }
.wf-cell.hl { box-shadow: 0 0 0 3px var(--butter); }
.wf-cell .lo { position: absolute; right: -6px; top: -7px; font-size: 9px; font-weight: 900; background: var(--mint); border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 3px; line-height: 1.4; }
.wf-day { min-height: 2.9em; margin: 14px 0 12px !important; font-weight: 700; font-size: 15px; color: var(--ink) !important; }

/* Demo: plan ahead */
.cal { display: grid; gap: 8px; margin-bottom: 16px; }
.wk { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 14px; padding: 8px 10px; background: #fff; transition: background .3s; }
.wk.planned { background: var(--butter-soft); }
.wk .lbl { font-weight: 800; font-size: 13px; }
.wk .days { display: flex; gap: 4px; }
.wk .days i { flex: 1; height: 12px; max-width: 22px; border-radius: 6px; border: 2px solid rgba(43, 33, 24, .2); transition: background .25s, border-color .25s; }
.wk.planned .days i { background: var(--accent); border-color: var(--ink); }
.wk .days i:nth-child(2) { transition-delay: .04s; } .wk .days i:nth-child(3) { transition-delay: .08s; } .wk .days i:nth-child(4) { transition-delay: .12s; }
.wk .days i:nth-child(5) { transition-delay: .16s; } .wk .days i:nth-child(6) { transition-delay: .2s; } .wk .days i:nth-child(7) { transition-delay: .24s; }
.wk .st { font-weight: 800; font-size: 13px; color: var(--sub); white-space: nowrap; }
.wk.planned .st { color: var(--green); animation: pop .45s var(--bounce); }

/* Demo: swap */
.swapcard { display: flex; align-items: center; gap: 20px; background: var(--lilac); }
.swapcard .dish { width: 150px; height: 150px; flex: none; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); object-fit: cover; background: #fff; }
.swapcard .dish.spin { animation: spin .6s var(--bounce); }
.swapcard .slot { display: inline-block; font-weight: 900; font-size: 10px; letter-spacing: .6px; padding: 2px 8px; border-radius: 6px; border: 1.5px solid var(--ink); margin-bottom: 8px; }
.swapcard h4 { min-height: 2.1em; }
.swapline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.delta { border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 13px; background: var(--mint); }
.delta.up { background: var(--blush); }

/* Demo: shopping list */
.listcard { background: var(--butter-soft); }
.listcard .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.listcard .head b { font: 800 30px var(--display); letter-spacing: -1px; }
.bar { height: 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; margin-bottom: 10px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--bounce); }
#listItems { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.item { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 2px dashed rgba(43, 33, 24, .15); cursor: pointer; user-select: none; }
.item .box { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 14px; transition: background .2s, transform .3s var(--bounce); }
.item .name { flex: 1; font-weight: 700; }
.item .name small { display: block; color: var(--sub); font-weight: 600; font-size: 12px; }
.item .cost { font-weight: 800; }
.item.done .box { background: var(--accent); transform: scale(1.12); }
.item.done .name, .item.done .cost { text-decoration: line-through; color: var(--sub); }

/* Demo: cook mode. The steps are a deck of cards: the next two peek out behind, and the top card flies off to reveal the next. */
.cook { background: var(--bg); display: flex; flex-direction: column; }
.cook-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill-step { font-weight: 800; font-size: 14px; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; background: var(--butter-soft); }
.cook-bar { height: 10px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); margin: 12px 0 16px; overflow: hidden; }
.cook-bar i { display: block; height: 100%; width: 20%; background: var(--butter); transition: width .5s var(--bounce); }
.cook-deck { display: grid; overflow: hidden; margin: -4px; padding: 4px 8px 8px 4px; }
.cstep { grid-area: 1 / 1; background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: 3px 3px 0 var(--ink);
  opacity: 0; pointer-events: none; transform: translateX(70%); transition: transform .5s var(--bounce), opacity .3s; }
.cstep.active { opacity: 1; pointer-events: auto; transform: none; z-index: 2; }
.cstep.past { opacity: 0; transform: translateX(-70%); transition: transform .45s ease-in, opacity .3s; }
.cstep .stepno { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 800 20px var(--display); border: 2px solid var(--ink); margin-bottom: 10px; }
.cstep .text { font-size: 18px; font-weight: 600; line-height: 1.45; margin: 0 0 12px; color: var(--ink); }
.timer { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 800; background: var(--butter); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); margin-bottom: 12px; }
.timer.running { background: var(--mint); }
.timer.done { background: var(--accent); color: #fff; animation: wiggle .6s ease 2; }
.need { border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px; }
.need b { display: block; font-size: 13px; color: var(--sub); margin-bottom: 2px; }
.need div { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; padding: 3px 0; }
.cook-nav { display: flex; gap: 10px; margin-top: 4px; }
.cook-nav .btn:last-child { flex: 1; }
.cstep.cooked { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--mint); }
.cooked .plate-big { width: 140px; height: 140px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); object-fit: cover; }
.cstep.cooked.active .plate-big { animation: spin .7s var(--bounce); }
.cooked h4 { font-size: 32px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: var(--radius); z-index: 9; }
.confetti i { position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 3px; animation: fall 1.6s ease-in forwards; }

/* Savings calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; margin-top: 34px; align-items: stretch; }
.calc .card { padding: 26px; }
.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; font-weight: 800; }
.field label b { font: 800 24px var(--display); }
.result { background: var(--mint); display: flex; flex-direction: column; justify-content: center; text-align: center; overflow: hidden; }
.result .keep { font: 800 clamp(52px, 7vw, 76px)/1 var(--display); letter-spacing: -2px; margin: 6px 0; color: var(--green); }
.result .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 10px; }
.result .vs div { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 10px; }
.result .vs small { display: block; font-weight: 800; font-size: 12px; color: var(--sub); text-transform: uppercase; letter-spacing: .5px; }
.result .vs b { font: 800 24px var(--display); }
.jar { height: 18px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.jar i { display: block; height: 100%; background: var(--green); width: 0; transition: width .6s var(--bounce); }
.result p { color: var(--ink) !important; font-weight: 700; }

/* Countries, pricing, FAQ, final CTA */
.countries { display: grid; grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.country { display: flex; align-items: center; gap: 14px; background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 16px; box-shadow: 3px 3px 0 var(--ink); transition: background-color .4s; }
.country.lit { background: var(--mint); animation: hop .6s var(--bounce); }
.country.lit .code { background: var(--accent); }
.country > div { min-width: 0; }
.country .code { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 18px var(--display); transition: background-color .4s; }
.country small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--sub); }
.country b { display: block; font: 800 20px/1.2 var(--display); letter-spacing: -.4px; margin: 2px 0 6px; }
.country .rot > span { font-weight: 800; font-size: 14px; padding: 1px 10px 2px; border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }
.country.live { grid-row: span 2; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px; }
.country.live .code { width: 70px; height: 70px; font-size: 24px; }
.country.live b { font-size: 28px; }
.country.live .rot > span { font-size: 18px; padding: 3px 14px 4px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.prices .card p { color: var(--body); }
.prices .card .big { font: 800 40px var(--display); letter-spacing: -1.4px; margin: 4px 0 8px; color: var(--ink); }
.bell { display: inline-block; font-size: 38px; line-height: 1; transform-origin: 50% 10%; animation: ring 3s ease-in-out infinite; }
.bell.still { animation: wiggle 3s 1s ease-in-out infinite; }
.faq { margin-top: 26px; }
details { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 3px 3px 0 var(--ink); }
details summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font: 800 24px/1 var(--display); transition: transform .3s var(--bounce); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--sub); margin: 10px 0 0; animation: fadeup .35s ease; }
.final { margin-top: 30px; text-align: center; background: var(--accent); color: #fff; border: 3px solid var(--ink); border-radius: 36px;
  padding: 56px 24px; box-shadow: 8px 8px 0 var(--ink); position: relative; overflow: hidden; }
.final h2 { color: #fff; }
.final .lead { color: #FFE3D9; margin: 0 auto; }
.final .waitlist { margin: 26px auto 0; justify-content: center; }
.final .waitlist .btn { background: var(--butter); color: var(--ink); }
.final .waitlist .note { color: #FFE3D9; text-align: center; }
.final .mascot { width: 84px; margin: 0 auto 18px; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); animation: jump 2.4s ease-in-out infinite; }
.lost { width: 110px; margin: 40px auto 20px; border-radius: 26px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); animation: wiggle 2.4s ease-in-out infinite; }

/* Long-form pages */
.doc { padding-top: 30px; }
.doc h1 { font-size: clamp(40px, 6vw, 62px); }
.doc h2 { font-size: 28px; letter-spacing: -0.6px; margin-top: 38px; }
.doc p, .doc li { color: #4A3D30; }
.doc .updated { color: var(--sub); font-size: 15px; }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 2px solid var(--ink); border-radius: 18px;
  overflow: hidden; font-size: 16px; box-shadow: var(--shadow); }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare th { background: var(--butter); font-family: var(--display); }
.tablewrap { overflow-x: auto; padding: 0 6px 8px 0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s var(--bounce); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Keyframes */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 8deg)); } }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes morph { 0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; transform: rotate(0); } 50% { border-radius: 58% 42% 55% 45% / 44% 58% 42% 56%; transform: rotate(14deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes popin { from { opacity: 0; transform: scale(.4) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes spin { from { transform: rotate(-200deg) scale(.6); } to { transform: none; } }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(16deg); } 80% { transform: rotate(-14deg); } 85% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }
@keyframes jump { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-14px) rotate(-6deg); } 55% { transform: translateY(0) rotate(4deg); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rotin { from { opacity: 0; transform: translateY(70%) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes rotout { to { opacity: 0; transform: translateY(-50%) scale(.8); } }
@keyframes drift { 50% { margin-top: -7px; } }
@keyframes nudge { 50% { transform: translateY(5px); } }
@keyframes attn { 0%, 70%, 100% { rotate: 0deg; scale: 1; } 74% { rotate: -6deg; scale: 1.1; } 78% { rotate: 6deg; scale: 1.1; } 82% { rotate: -4deg; scale: 1.07; } 86% { rotate: 3deg; scale: 1.04; } 90% { rotate: 0deg; scale: 1; } }
@keyframes hop { 0% { transform: none; } 35% { transform: translateY(-16px) scale(1.04) rotate(-2deg); } 65% { transform: translateY(2px) scale(.98); } 100% { transform: none; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 203, 71, 0); } 50% { box-shadow: 0 0 0 7px rgba(255, 203, 71, .9); } }
@keyframes fall { to { transform: translateY(380px) rotate(540deg); opacity: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .stage { height: 600px; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .journey .story-phone { position: absolute; left: 0; right: 0; bottom: 2%; height: auto; }
  .journey .story-phone .phone { width: 210px; height: 440px; border-radius: 34px; }
  .journey .story-phone::before { width: 250px; height: 250px; }
  .journey[data-phase="problem"] .story-phone { transform: translateY(130%); }
  .journey[data-phase="solution"] .story-phone { transform: none; }
  .journey[data-phase="steps"] .story-phone { transform: translateY(130%); opacity: 0; }
  .j-solution { left: 16px; right: 16px; top: 3%; width: auto; translate: none; text-align: center; }
  .journey:not([data-phase="solution"]) .j-solution { transform: translateY(-40px); }
  .j-solution .kicker, .badges { display: none; }
  .j-solution h2 { font-size: 44px; }
  .journey[data-phase="solution"] .scroll-hint { opacity: 0; }
  .rail, .demo-card { max-width: none; }
  .ch-head p { font-size: 15px; }
  .ch-num { width: 38px; height: 38px; font-size: 18px; }
  .calc, .prices { grid-template-columns: 1fr; }
  .countries { grid-template-columns: 1fr 1fr; }
  .country.live { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; }
  nav.top a:not(.btn) { display: none; }
}
@media (max-width: 980px) {
  .thought { white-space: normal; max-width: 70vw; padding: 9px 13px; text-align: center; }
  .t1 { --x: -40px; --y: -102px; } .t2 { --x: 40px; --y: 98px; } .t3 { --x: 40px; --y: -166px; }
  .t4 { --x: -40px; --y: 162px; } .t6 { --x: -30px; --y: -230px; } .t7 { --x: 30px; --y: 222px; }
  .t5, .t8, .t9, .t10, .t11, .t12 { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .stage { height: 540px; }
  .blob { width: 320px; height: 320px; }
  .stage .phone { width: 228px; height: 476px; border-radius: 38px; }
  .sticker { width: 64px; }
  .tag.price { left: -12px; top: 52%; padding: 8px 11px; }
  .tag b { font-size: 22px; }
  .bubble { right: -10px; }
  .bubble p { font-size: 12px; max-width: 132px; margin-right: 22px; }
  .bubble img { width: 48px; }
  .rail-steps button { padding: 3px 9px; font-size: 12px; }
  .rail-steps button span { display: none; }
  .rail { margin-bottom: 14px; }
  #listItems { grid-template-columns: 1fr; }
  .listcard .item { padding: 5px 2px; }
  .item .name small { display: none; }
  .ch-num { width: 36px; height: 36px; font-size: 17px; }
  .ch-head > div { column-gap: 10px; }
  .ch-head h3 { font-size: 25px; }
  .ch-head p { margin-top: 6px; font-size: 14.5px; }
  .demo-card { padding: 16px; margin-top: 14px; }
  .cstep { padding: 13px; }
  .cstep .text { font-size: 16px; }
  .wf-grid { grid-template-columns: 22px repeat(7, minmax(0, 1fr)); gap: 6px 4px; }
  .wf-grid .ml { width: 20px; height: 20px; font-size: 10px; }
  .wf-grid .dl { font-size: 11px; padding: 2px 3px; }
  .plate, .plate .disc { width: 120px; }
  .plate .disc { height: 120px; }
  .plate { font-size: 12.5px; }
  .plates { padding: 28px 0 20px; }
  .plate em { font-size: 11px; padding: 1px 7px; }
  .track { gap: 24px; }
  .swapcard { flex-direction: column; text-align: center; }
  .swapcard .swapline { justify-content: center; }
  .countries { gap: 12px; }
  .country:not(.live) { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .country:not(.live) .code { width: 40px; height: 40px; font-size: 14px; }
  .country:not(.live) b { font-size: 17px; }
  .wk { grid-template-columns: 74px 1fr auto; padding: 8px; gap: 8px; }
  .wk .lbl, .wk .st { font-size: 12px; }
  .j-problem h2 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hl path { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
