:root {
  --bg: #f6efdf; --card: #fffdf7; --ink: #2b2118; --ink-2: #5a4a3a; --muted: #8c7f68; --line: #e2d6bd;
  --night: #2b2118; --night-2: #3a2e22; --night-line: #524232; --on-night: #f8f1e1; --on-night-2: #c8b99d;
  --lime: #f0771a; --coral: #f0771a; --green: #f0771a; --orange-dark: #db6810; --peach: #fbdcbb; --brown: #8a765e; --splash: #241a10;
  --heat-lo: #cfe9d2; --heat-mid: #ffe3a3; --heat-hi: #ec6a3c;
  --display: "Baloo 2", "Karla", system-ui, sans-serif; --body: "Karla", system-ui, sans-serif;
  --r-sm: 12px; --r: 18px; --r-lg: 28px; --pill: 999px;
  --shadow: 0 1px 2px rgb(43 33 24 / 0.05), 0 12px 28px -14px rgb(43 33 24 / 0.2);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wrap: 1160px; --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.2vw, 5.25rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.75rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.1; }
h2:focus { outline: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 8px 16px; border-radius: var(--pill); background: var(--ink); color: var(--bg); }
.skip:focus-visible { top: 16px; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.sub { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); max-width: 44ch; }
.note { font-size: 0.875rem; color: var(--muted); }
.chip { display: inline-block; padding: 6px 14px; border-radius: var(--pill); background: var(--card); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-weight: 700; font-size: 1rem; cursor: pointer; white-space: nowrap; transition: transform 0.25s var(--spring), background-color 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgb(22 33 27 / 0.5); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--big { min-height: 60px; padding: 0 30px; font-size: 1.1rem; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.btn--line { background: transparent; color: var(--on-night); border: 1px solid var(--night-line); }
.link { padding: 8px 0; border: 0; background: none; font-size: 0.9375rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.wordmark { font: 500 1.35rem/1 var(--display); letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.wordmark b { font-weight: 800; }

/* hero */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-top: 20px; }
.hero .lead { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.mark { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.mark::before { content: ""; position: absolute; inset: 8% -0.12em 4%; z-index: -1; border-radius: 0.18em; background: var(--lime); transform: rotate(-1.2deg); transform-origin: left center; }
.js .mark::before { animation: swipe 0.7s var(--ease) 0.55s both; }
@keyframes swipe { from { transform: rotate(-1.2deg) scaleX(0); } to { transform: rotate(-1.2deg) scaleX(1); } }
.js .rise { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* the week chart in the hero */
.weeks { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.weeks__head { display: grid; gap: 6px; }
.weeks__head b { font: 700 1.25rem/1 var(--display); letter-spacing: -0.02em; }
.weeks__head span, .weeks__foot { font-size: 0.875rem; color: var(--muted); }
.weeks__chart { --gap: 10px; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); align-items: end; height: clamp(220px, 28vw, 300px); margin-top: 44px; }
.wk { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; text-align: center; }
.wk__p { font-weight: 700; font-size: 0.9375rem; }
.wk i { display: block; flex: 0 0 calc(var(--v) * 72%); border-radius: var(--r-sm); background: var(--line); transform-origin: bottom; }
.wk__d { font-size: 0.8125rem; color: var(--muted); }
.wk--from i { background: var(--coral); }
.wk--to i { background: var(--green); }
.js .wk i { animation: grow 0.9s var(--ease) both; animation-delay: calc(0.35s + var(--n) * 80ms); }
.js .wk__p { animation: rise 0.5s var(--ease) both; animation-delay: calc(0.9s + var(--n) * 80ms); }
.js .wk--to i { animation: grow 0.9s var(--ease) both, togreen 0.4s ease 2.5s both; animation-delay: calc(0.35s + var(--n) * 80ms), 2.5s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes togreen { from { background: var(--line); } to { background: var(--green); } }
.weeks__pin { position: absolute; top: -34px; left: calc((100% - 4 * var(--gap)) / 5 + var(--gap)); width: calc((100% - 4 * var(--gap)) / 5); padding: 5px 0; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-size: 0.8125rem; font-weight: 700; text-align: center; transform: translateX(calc(200% + 2 * var(--gap))); }
.js .weeks__pin { animation: hop 1s var(--spring) 1.9s both; }
@keyframes hop { 0% { transform: translateX(0); } 40% { transform: translateX(calc(100% + var(--gap))) translateY(-14px); } 100% { transform: translateX(calc(200% + 2 * var(--gap))); } }
.weeks__sticker { position: absolute; right: -18px; top: -30px; display: grid; place-content: center; width: 112px; height: 112px; border-radius: 50%; background: var(--lime); font-size: 0.8125rem; font-weight: 500; text-align: center; line-height: 1.2; transform: rotate(10deg); box-shadow: var(--shadow); }
.weeks__sticker b { display: block; font: 800 1.3rem/1 var(--display); letter-spacing: -0.03em; }
.js .weeks__sticker { animation: pop 0.6s var(--spring) 2.9s both; }
@keyframes pop { from { transform: rotate(-20deg) scale(0); } to { transform: rotate(10deg) scale(1); } }
.weeks__foot { margin-top: 16px; }

/* the destination ticker, moved by scroll */
.ticker { padding-block: 8px; border-block: 1px solid var(--line); overflow: clip; }
.ticker__row { display: flex; align-items: center; gap: 28px; width: max-content; font: 800 clamp(2.5rem, 7vw, 5.5rem)/1.1 var(--display); letter-spacing: -0.04em; white-space: nowrap; will-change: transform; }
.ticker__row i { width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--coral); flex: none; }

/* sections */
.sec { padding-block: clamp(64px, 9vw, 128px); }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .reveal.in { opacity: 1; transform: none; }

.sec--tight { padding-top: 0; }
/* money and hours */
.backs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.back { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--lime); min-height: 380px; }
.back--hours { background: var(--card); box-shadow: var(--shadow); }
.back__tag, .win__tag { align-self: flex-start; padding: 5px 12px; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-size: 0.8125rem; font-weight: 700; }
.back h3 { margin-top: 20px; font-size: clamp(1.6rem, 2.6vw, 2.25rem); max-width: 16ch; }
.back > p { margin-top: 14px; max-width: 36ch; color: var(--ink-2); }
.swing { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: auto; padding-top: 24px; }
.swing i { flex: 1; height: calc(var(--v) * 100%); border-radius: 8px; background: var(--ink); opacity: 0.16; transform-origin: bottom; }
.swing i.is-low { background: var(--ink); opacity: 1; }
.js .back .swing i { transform: scaleY(0); transition: transform 0.9s var(--ease); }
.js .back.in .swing i { transform: scaleY(1); }
.js .back.in .swing i:nth-child(2) { transition-delay: 60ms; } .js .back.in .swing i:nth-child(3) { transition-delay: 120ms; } .js .back.in .swing i:nth-child(4) { transition-delay: 180ms; } .js .back.in .swing i:nth-child(5) { transition-delay: 240ms; } .js .back.in .swing i:nth-child(6) { transition-delay: 300ms; } .js .back.in .swing i:nth-child(7) { transition-delay: 360ms; } .js .back.in .swing i:nth-child(8) { transition-delay: 420ms; } .js .back.in .swing i:nth-child(9) { transition-delay: 480ms; }
.chores { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.chores li { position: relative; align-self: start; justify-self: start; padding: 10px 16px; border-radius: var(--pill); background: var(--bg); font-size: 0.975rem; transition: color 0.4s ease, opacity 0.4s ease; }
.chores li::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.back.in .chores li { color: var(--muted); }
.back.in .chores li::after { transform: scaleX(1); }
.back.in .chores li:nth-child(1), .back.in .chores li:nth-child(1)::after { transition-delay: 0.5s; }
.back.in .chores li:nth-child(2), .back.in .chores li:nth-child(2)::after { transition-delay: 0.85s; }
.back.in .chores li:nth-child(3), .back.in .chores li:nth-child(3)::after { transition-delay: 1.2s; }
.back.in .chores li:nth-child(4), .back.in .chores li:nth-child(4)::after { transition-delay: 1.55s; }
.chores__done { margin-top: auto; padding-top: 24px; font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.js .chores__done { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease 2s, transform 0.6s var(--spring) 2s; }
.js .back.in .chores__done { opacity: 1; transform: none; }

/* what a saving looks like */
.wins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.win { display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); transition: transform 0.3s var(--spring); }
.win:hover { transform: translateY(-6px) rotate(-0.6deg); }
.win--big { grid-column: 1 / -1; background: var(--night); color: var(--on-night); }
.win--big .win__tag { background: var(--lime); color: var(--ink); }
.win blockquote { margin: 0; font: 700 1.3rem/1.2 var(--display); letter-spacing: -0.02em; }
.win--big blockquote { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 24ch; }
.win figcaption { margin-top: auto; font-size: 0.95rem; color: var(--muted); }
.win--big figcaption { color: var(--on-night-2); }
.win figcaption b { display: block; font: 800 clamp(2rem, 3.4vw, 2.75rem)/1 var(--display); letter-spacing: -0.04em; color: var(--green); }
.win--big figcaption b { color: var(--lime); font-size: clamp(2.5rem, 5vw, 4rem); }
.wins + .note { margin-top: 20px; }

/* the two travellers */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.person { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.person--dark { background: var(--night); color: var(--on-night); }
.person header { display: flex; align-items: center; gap: 14px; }
.person header b { display: block; font: 700 1.3rem/1.1 var(--display); letter-spacing: -0.02em; }
.person header span:not(.avatar) { font-size: 0.9rem; color: var(--muted); }
.person--dark header span:not(.avatar), .person--dark .bar span { color: var(--on-night-2); }
.avatar { display: grid; place-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--ink); font: 800 1.2rem/1 var(--display); flex: none; }
.person > p { margin-top: 20px; max-width: 38ch; }
.bars { display: grid; gap: 12px; margin-top: 28px; }
.bar { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 0.9rem; }
.bar span { color: var(--muted); }
.bar i { display: block; height: 14px; border-radius: var(--pill); background: var(--coral); transform: scaleX(var(--w)); transform-origin: left; }
.bar--good i { background: var(--green); }
.person--dark .bar--good i { background: var(--lime); }
.js .person .bar i { transform: scaleX(0); transition: transform 1.1s var(--ease) 0.3s; }
.js .person.in .bar i { transform: scaleX(var(--w)); }
.js .person.in .bar--good i { transition-delay: 0.55s; }
.saved { margin-top: 28px; font-size: 1rem; color: inherit; }
.saved b { display: block; font: 800 clamp(2.5rem, 5vw, 3.75rem)/1 var(--display); letter-spacing: -0.04em; }
.people + .note { margin-top: 20px; }

/* how it works: steps scroll, the picture stays */
.how { background: var(--night); color: var(--on-night); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.how + .sec { background: var(--night); padding-top: 0; }
.how__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.35; transition: opacity 0.4s ease; }
.step.is-on { opacity: 1; }
.step__n { font: 700 0.9rem/1 var(--display); color: var(--lime); }
.step h3 { margin-top: 14px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.step p { margin-top: 14px; color: var(--on-night-2); max-width: 36ch; }
.how__stick { position: sticky; top: 16vh; height: 68vh; align-self: start; }
.how__visual { position: relative; height: 100%; border-radius: var(--r-lg); background: var(--night-2); overflow: hidden; }
.pane { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(24px, 4vw, 56px); opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.how__visual[data-active="0"] .pane--quiz, .how__visual[data-active="1"] .pane--scan, .how__visual[data-active="2"] .pane--result { opacity: 1; transform: none; }
.pane__q { font: 700 clamp(1.4rem, 2.4vw, 2rem)/1.1 var(--display); letter-spacing: -0.025em; margin-bottom: 8px; }
.opt { padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--night-line); font-weight: 500; transition: background-color 0.35s ease 0.5s, color 0.35s ease 0.5s, transform 0.5s var(--spring) 0.5s; }
.how__visual[data-active="0"] .opt--pick { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: scale(1.03); }
.pane__big { font: 800 clamp(3.5rem, 7vw, 6rem)/0.95 var(--display); letter-spacing: -0.045em; color: var(--lime); margin-bottom: 12px; }
.why { align-self: flex-start; padding: 10px 16px; border-radius: var(--pill); background: var(--night); font-size: 0.95rem; opacity: 0; transform: translateX(-16px); transition: opacity 0.4s ease, transform 0.5s var(--ease); }
.how__visual[data-active="2"] .why { opacity: 1; transform: none; }
.how__visual[data-active="2"] .why:nth-of-type(2) { transition-delay: 0.35s; }
.how__visual[data-active="2"] .why:nth-of-type(3) { transition-delay: 0.5s; }
.how__visual[data-active="2"] .why:nth-of-type(1) { transition-delay: 0.2s; }

/* the small heatmap used in the story and the engine */
.mini { display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); gap: 3px; }
.mini i { aspect-ratio: 1; border-radius: 3px; background: var(--night-line); transform: scale(0.4); opacity: 0.5; transition: transform 0.35s var(--spring), opacity 0.3s ease, background-color 0.3s ease; }
.mini i.is-in { transform: none; opacity: 1; background: var(--c); }
.mini i.is-none { visibility: hidden; }

/* the closing call */
.closer { padding: clamp(36px, 6vw, 80px); border-radius: var(--r-lg); background: var(--night-2); color: var(--on-night); text-align: center; }
.closer p { margin: 16px auto 32px; color: var(--on-night-2); max-width: 40ch; }
.foot { background: var(--night); color: var(--on-night); padding-block: 32px; }
.foot .wordmark { color: var(--on-night); }
.foot .note { color: var(--on-night-2); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- the flow ---------- */
.stage { min-height: calc(100svh - 69px); display: grid; place-items: center; padding: 32px var(--gutter) 64px; }
.stage--dark { background: var(--night); color: var(--on-night); }
.quiz { width: 100%; max-width: 620px; }
.quiz__top { display: grid; grid-template-columns: 4rem 1fr 4rem; align-items: center; gap: 16px; margin-bottom: 40px; }
.quiz__top .note { text-align: right; }
.dots { display: flex; justify-content: center; gap: 6px; }
.dots i { width: 28px; height: 6px; border-radius: var(--pill); background: var(--line); transition: background-color 0.3s ease, transform 0.4s var(--spring); }
.dots i.is-done { background: var(--ink); }
.dots i.is-on { background: var(--coral); transform: scaleX(1.25); }
.quiz__q { font-size: clamp(2rem, 5vw, 3.25rem); }
.quiz__opts { display: grid; gap: 12px; margin-top: 32px; }
.quiz__opts--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz__opts button { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; padding: 14px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-weight: 700; font-size: 1.0625rem; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgb(22 33 27 / 0.04); transition: transform 0.25s var(--spring), border-color 0.2s ease, background-color 0.2s ease; }
.quiz__opts button span { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.quiz__opts button:hover { transform: translateY(-2px); border-color: var(--ink); }
.quiz__opts button:active { transform: scale(0.98); }
.quiz__opts button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); }
.quiz__free { display: flex; gap: 10px; }
.quiz__free input { flex: 1; min-width: 0; min-height: 64px; padding: 0 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 1.15rem; font-weight: 500; }
.quiz__free input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.quiz__opts .quiz__free .btn { min-height: 64px; padding: 0 26px; border: 0; border-radius: var(--r); background: var(--ink); color: var(--bg); justify-content: center; }
.quiz__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz__opts .quiz__chips button { min-height: 44px; padding: 0 18px; border-radius: var(--pill); font-size: 0.95rem; font-weight: 500; }
.js .quiz__body.swap .quiz__free { animation: rise 0.5s var(--ease) both; animation-delay: 60ms; }
.js .quiz__body.swap .quiz__q { animation: rise 0.5s var(--ease) both; }
.js .quiz__body.swap .quiz__opts button { animation: rise 0.5s var(--ease) both; animation-delay: calc(60ms + var(--n) * 50ms); }

.engine { width: 100%; max-width: 560px; text-align: center; }
.ring { position: relative; width: 220px; height: 220px; margin: 0 auto 32px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring__bg { stroke: var(--night-line); }
.ring__fg { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 0.2s linear; }
.ring__in { position: absolute; inset: 0; display: grid; place-content: center; }
.ring__in b { font: 800 3rem/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ring__in span { font-size: 0.875rem; color: var(--on-night-2); }
.engine h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
.checks { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.checks li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-radius: var(--r-sm); background: var(--night-2); color: var(--on-night-2); font-size: 0.95rem; opacity: 0.45; transition: opacity 0.3s ease, transform 0.4s var(--spring), color 0.3s ease; }
.checks li b { font-weight: 700; }
.checks li.is-on { opacity: 1; color: var(--on-night); transform: scale(1.02); }
.checks li.is-on b { color: var(--lime); }
.checks li.is-done { opacity: 1; }
.checks li.is-done b { color: var(--on-night); }
.engine__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.stage--dark .note { color: var(--on-night-2); }
.stage--dark .link { color: var(--on-night); }

/* results */
.res { padding-block: 40px 96px; }
.res__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.res__head h2 { margin-top: 16px; font-size: clamp(2rem, 4vw, 3.25rem); }
.res__head .lead { margin-top: 16px; max-width: 44ch; }
.save { padding: 28px; border-radius: var(--r-lg); background: var(--lime); transition: background-color 0.3s ease; }
.save p:first-child { font-weight: 700; }
.save__fig { font: 800 clamp(3rem, 6vw, 4.75rem)/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.save .note { color: var(--ink-2); margin-top: 6px; }
.save.is-more { background: var(--heat-hi); }
.panel { margin-top: 20px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.panel--dark { background: var(--night); color: var(--on-night); box-shadow: none; }
.tune { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px; }
.tune__ctl label, .pills legend { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 0; margin-bottom: 4px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.tune__ctl b { color: var(--ink); font-weight: 700; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: var(--pill); background: var(--line); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: var(--pill); background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border: 4px solid var(--card); border-radius: 50%; background: var(--ink); box-shadow: 0 2px 8px rgb(22 33 27 / 0.3); transition: transform 0.2s var(--spring); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 4px solid var(--card); border-radius: 50%; background: var(--ink); box-shadow: 0 2px 8px rgb(22 33 27 / 0.3); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.pills { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.pills__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--bg); font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--spring); }
.pills label:hover { transform: translateY(-2px); }
.pills input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pills input:focus-visible + label { outline: 3px solid var(--coral); outline-offset: 3px; }

.addplace { display: flex; gap: 8px; margin-top: 12px; max-width: 360px; }
.addplace input { flex: 1; min-width: 0; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); font-size: 0.9375rem; }
.heat { --months: 6; display: grid; grid-template-columns: 2.75rem repeat(31, minmax(0, 1fr)); gap: 4px; margin-top: 28px; }
.heat .m { align-self: center; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.heat .c { aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 5px; background: var(--c, var(--line)); cursor: pointer; transition: transform 0.2s var(--spring); }
.js .heat .c { animation: cell 0.45s var(--spring) both; animation-delay: calc(var(--d) * 4ms); }
@keyframes cell { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
.heat .c.is-none { visibility: hidden; }
.heat .c.is-off { background: color-mix(in srgb, var(--c, var(--line)) 28%, var(--card)); }
.heat .c:hover { transform: scale(1.35); position: relative; z-index: 2; }
.heat .c.is-typ { outline: 2px dashed var(--ink); outline-offset: 1px; }
.heat .c.is-stay { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat .c.is-sel { background: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; transform: scale(1.15); position: relative; z-index: 1; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.legend__ramp { width: 110px; height: 10px; border-radius: var(--pill); background: linear-gradient(90deg, var(--heat-lo), var(--heat-mid), var(--heat-hi)); }
.legend__key { display: inline-flex; align-items: center; gap: 6px; }
.key { width: 12px; height: 12px; border-radius: 3px; }
.key--typ { outline: 2px dashed var(--ink); outline-offset: -1px; }
.key--sel { background: var(--ink); }
.tip { margin-left: auto; padding: 6px 14px; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tip:empty { display: none; }
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.compare > div { padding: 16px 18px; border-radius: var(--r); background: var(--bg); }
.compare b { display: block; margin-top: 2px; font: 700 1.4rem/1.2 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.why-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.reasons { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; min-height: 12rem; }
.reasons li { padding: 14px 18px; border-radius: var(--r); background: var(--night-2); color: var(--on-night-2); font-size: 0.975rem; }
.js .reasons li { animation: rise 0.5s var(--ease) both; }
.reasons li b { display: block; color: var(--lime); font-weight: 700; font-size: 0.875rem; margin-bottom: 2px; }
.moves { display: grid; }
.move h3 { margin-top: 6px; font-size: 1.35rem; }
.move__fig { margin: 10px 0 16px; font: 800 2rem/1 var(--display); letter-spacing: -0.03em; color: var(--green); }
.tours__why { margin-top: 10px; max-width: 62ch; color: var(--ink-2); }
.tours__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 16px; }
.tour { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r); background: var(--bg); }
.tour header b { display: block; font: 700 1.3rem/1.1 var(--display); letter-spacing: -0.02em; }
.tour header span { font-size: 0.9rem; color: var(--muted); }
.tour__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tour__tags span { padding: 4px 10px; border-radius: var(--pill); background: var(--lime); font-size: 0.8125rem; font-weight: 700; }
.tour__row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; color: var(--ink-2); }
.tour__row b { font-variant-numeric: tabular-nums; color: var(--ink); }
.tour__row.is-total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.tour__row.is-total b { font: 800 1.4rem/1 var(--display); }
.tour__less { color: var(--green); font-weight: 700; }
.tour .btn { align-self: flex-start; background: var(--card); }
.closer--form { margin-top: 20px; }
.form { display: flex; gap: 10px; max-width: 520px; margin-inline: auto; }
.form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border: 1px solid var(--night-line); border-radius: var(--pill); background: var(--night); color: var(--on-night); }
.form input::placeholder { color: var(--on-night-2); }
.form input[aria-invalid] { border-color: var(--coral); }
.form .btn { min-height: 52px; }
.closer .form__help { margin: 14px auto 0; min-height: 1.5em; font-size: 0.9rem; color: var(--on-night); }
.ask { margin-top: 20px; }
.closer .ask p { margin: 0 auto 14px; color: var(--on-night); font-weight: 700; }
.ask div { display: flex; justify-content: center; gap: 10px; }

@media (max-width: 900px) {
  .hero__grid, .how__grid, .res__head, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .people, .backs, .tours__list { grid-template-columns: minmax(0, 1fr); }
  .wins { grid-template-columns: minmax(0, 1fr); }
  .back { min-height: 0; }
  .swing { margin-top: 24px; }
  .weeks__sticker { right: 8px; top: -34px; width: 96px; height: 96px; }
  .how__stick { position: static; height: auto; display: none; }
  .step { min-height: 0; opacity: 1; padding-block: 24px; border-top: 1px solid var(--night-line); }
  .how__steps h2 { margin-bottom: 32px; }
}
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .nav .btn { padding: 0 14px; font-size: 0.875rem; }
  .hero__cta .btn, .closer .btn--big { width: 100%; }
  .heat { grid-auto-flow: column; grid-template-columns: repeat(var(--months), minmax(0, 1fr)); grid-template-rows: auto repeat(31, 16px); gap: 3px; }
  .heat .c { aspect-ratio: auto; border-radius: 3px; }
  .heat .c:hover, .heat .c.is-sel { transform: none; }
  .heat .m { text-align: center; }
  .tune { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .quiz__opts--two { grid-template-columns: minmax(0, 1fr); }
  .bar { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .bar b { grid-column: 2; }
  .form { flex-direction: column; }
  .tip { margin-left: 0; }
  .mini { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .person .bar i { transform: scaleX(var(--w)); }
  .js .back .swing i { transform: none; }
  .js .chores__done { opacity: 1; transform: none; }
  .step { opacity: 1; }
  .mini i { transform: none; opacity: 1; }
}

/* ---------- Bato look: cream paper, brown ink, one orange, Baloo 2 and Karla ---------- */
h1, h2, h3 { letter-spacing: -0.01em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.wordmark { display: inline-flex; align-items: baseline; font: 800 1.75rem/1 var(--display); letter-spacing: 0; }
.wordmark b { color: var(--lime); font-weight: 800; }
.wordmark span { margin-left: 10px; font: 700 0.6875rem/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--brown); }
.foot .wordmark span { color: var(--on-night-2); }
.chip { padding: 0; border: 0; background: none; font: 700 0.75rem/1.4 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--brown); }
.btn { border-radius: 16px; background: var(--lime); color: var(--card); box-shadow: 0 8px 18px -10px rgb(240 119 26 / 0.7); }
.btn:hover { background: var(--orange-dark); box-shadow: 0 12px 22px -10px rgb(240 119 26 / 0.8); }
.btn--lime { background: var(--lime); color: var(--card); }
.btn--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--bg); border-color: var(--lime); box-shadow: none; }
.btn--line { background: transparent; box-shadow: none; }
.btn--line:hover { background: var(--night-2); box-shadow: none; }
.quiz__opts .quiz__free .btn { background: var(--lime); color: var(--card); }
.mark::before, .save, .back, .avatar, .tour__tags span { background: var(--peach); }
.back--hours { background: var(--card); }
.weeks__sticker { background: var(--lime); color: var(--card); }
.wk--from i, .bar i { background: var(--brown); }
.bar--good i, .person--dark .bar--good i { background: var(--lime); }
.win--big .win__tag { color: var(--card); }
.how__visual[data-active="0"] .opt--pick { color: var(--card); }
.quiz__opts button[aria-pressed="true"] { background: var(--peach); border-color: var(--lime); }
.quiz__opts button, .panel, .person, .win, .weeks, .back--hours { border: 1px solid var(--line); }
.panel--dark, .person--dark, .win--big { border-color: transparent; }
.closer__split { margin: 14px auto 0; font-size: 0.95rem; }
.closer__split a, .foot a { color: var(--lime); font-weight: 700; }
.swing i.is-low { background: var(--lime); }

/* the splash, built like the Bato app's: excuses struck out, then the logo */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--splash); color: var(--on-night); overflow: hidden; cursor: pointer; animation: splashOut 0.45s ease 6.1s forwards; }
.splash.is-skip { animation: splashOut 0.25s ease forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
.rupee { position: absolute; left: var(--x); top: var(--y); font: 700 var(--s)/1 var(--display); font-style: normal; color: var(--lime); opacity: 0; animation: rupeeFloat 3.6s ease-in-out var(--d) infinite; }
@keyframes rupeeFloat { 0% { opacity: 0; transform: translateY(30px) rotate(-8deg); } 20%, 80% { opacity: 0.5; } 100% { opacity: 0; transform: translateY(-60px) rotate(10deg); } }
.excuse { position: absolute; inset: auto 24px; text-align: center; font: 700 clamp(1.4rem, 5vw, 2.4rem)/1.2 var(--display); opacity: 0; animation: excuseCycle 1s ease var(--d) both; }
.excuse span { position: relative; display: inline-block; }
.excuse span::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 3px; border-radius: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; animation: strikeGrow 0.3s ease calc(var(--d) + 0.45s) both; }
@keyframes excuseCycle { 0% { opacity: 0; transform: translateY(14px) scale(0.96); } 14% { opacity: 1; transform: none; } 72% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes strikeGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.splash__brand { text-align: center; }
.splash__logo { position: relative; display: inline-block; font: 800 clamp(4rem, 16vw, 7rem)/1 var(--display); opacity: 0; animation: logoDrop 0.6s var(--ease) 2.05s both; }
.splash__logo b { color: var(--lime); }
@keyframes logoDrop { 0% { opacity: 0; transform: translateY(26px) scale(0.9); } 60% { opacity: 1; transform: translateY(-4px) scale(1.02); } 100% { opacity: 1; transform: none; } }
.splash__stamp { position: absolute; right: -0.5em; bottom: -0.15em; padding: 0.3em 0.7em; border: 3px solid var(--lime); border-radius: 10px; background: var(--splash); color: var(--lime); font: 800 0.22em/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; opacity: 0; animation: stampIn 0.45s var(--ease) 4.8s both; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(2.2) rotate(-14deg); } 60% { opacity: 1; transform: scale(0.96) rotate(-6deg); } 100% { opacity: 1; transform: scale(1) rotate(-6deg); } }
.splash__names { position: relative; min-height: 3.2rem; margin-top: 18px; }
.altname { position: absolute; inset: 0 0 auto; text-align: center; font: 600 1.25rem/1.3 var(--display); color: var(--on-night-2); opacity: 0; animation: excuseCycle var(--t, 0.9s) ease var(--d) both; }
.altname span { position: relative; display: inline-block; }
.altname span::after { content: none; }
.splash__tag { margin-top: 12px; font: 700 0.8rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.24em; color: var(--on-night-2); opacity: 0; animation: taglineIn 0.9s ease 4.9s both; }
@keyframes taglineIn { 0% { opacity: 0; letter-spacing: 0.5em; } 40% { opacity: 0; } 100% { opacity: 1; letter-spacing: 0.24em; } }
.has-splash .rise, .has-splash .mark::before, .has-splash .wk i, .has-splash .wk__p, .has-splash .weeks__pin, .has-splash .weeks__sticker { animation-play-state: paused; }
.wins + .people { margin-top: 20px; }
.person .saved { margin-top: auto; padding-top: 28px; }
.person { display: flex; flex-direction: column; }

/* ---------- the engine: the agent at work ---------- */
.engine { max-width: 600px; }
.agent { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 16px; border: 1px solid var(--night-line); border-radius: var(--pill); font-weight: 700; font-size: 0.9rem; color: var(--on-night); }
.agent i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.agent i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); animation: ping 1.3s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3.4); opacity: 0; } }
.scene { position: relative; aspect-ratio: 13 / 6; margin-bottom: 26px; border-radius: var(--r-lg); background: var(--night-2); overflow: hidden; }
.sc { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(0.96); transition: opacity 0.4s ease, transform 0.5s var(--ease); pointer-events: none; }
.scene[data-scene="style"] [data-sc="style"], .scene[data-scene="flight"] [data-sc="flight"], .scene[data-scene="hotel"] [data-sc="hotel"], .scene[data-scene="cal"] [data-sc="cal"], .scene[data-scene="places"] [data-sc="places"] { opacity: 1; transform: none; }
.sc--chips { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 24px; }
.sc--chips span { padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--night-line); background: var(--night); font-weight: 700; animation: popIn 0.5s var(--spring) both; animation-delay: calc(var(--n) * 140ms); }
.sc--chips span b { margin-left: 8px; color: var(--lime); }
@keyframes popIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
.sc--cal { display: grid; align-content: center; padding: 22px 26px; }
.s-rule { stroke: var(--night-line); stroke-width: 3; stroke-linecap: round; }
.s-trail { fill: none; stroke: var(--on-night-2); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.s-dot { fill: var(--lime); }
.s-label { fill: var(--on-night); font: 700 15px var(--body); }
.s-plane { fill: var(--on-night); }
.s-tag rect { fill: var(--night); stroke: var(--night-line); }
.s-tag text { fill: var(--on-night-2); font: 700 13px var(--body); }
.s-tag--low rect { fill: var(--lime); stroke: var(--lime); }
.s-tag--low text { fill: var(--card); }
.s-tag { opacity: 0; animation: tagPulse 2.8s ease var(--d) infinite; }
@keyframes tagPulse { 0% { opacity: 0; } 15%, 75% { opacity: 1; } 100% { opacity: 0; } }
.s-build { fill: var(--night); stroke: var(--night-line); stroke-width: 2; }
.s-side { fill: var(--night); opacity: 0.6; }
.hs { fill: var(--night-line); }
.s-door { fill: var(--night-line); }
.hw { fill: var(--night-line); animation: winOn 2.6s ease infinite; animation-delay: calc(var(--r) * 0.24s); }
@keyframes winOn { 0%, 8% { fill: var(--night-line); } 16%, 78% { fill: var(--lime); } 100% { fill: var(--night-line); } }
.s-scan { fill: var(--lime); }
.engine h2 { min-height: 2.2em; }
.engine__sub { margin-top: 6px; color: var(--on-night-2); }
.engine__sub b { color: var(--lime); font: 800 1.25rem/1 var(--display); font-variant-numeric: tabular-nums; }
.ebar { height: 6px; margin: 18px 0; border-radius: var(--pill); background: var(--night-line); overflow: hidden; }
.ebar i { display: block; height: 100%; border-radius: var(--pill); background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.2s linear; }
.found { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; align-content: flex-start; gap: 8px; min-height: 5.4rem; margin: 0; padding: 0; }
.found li { padding: 6px 12px; border-radius: var(--pill); background: var(--night-2); font-size: 0.85rem; color: var(--on-night-2); animation: popIn 0.4s var(--spring) both; }
.found li b { color: var(--on-night); }
@media (max-width: 600px) { .scene { aspect-ratio: 4 / 3; } .s-label { font-size: 19px; } .s-tag text { font-size: 15px; } }
