/* Divvyroo: group money for friends. A concept site by heyim.london.
	 Hand-written, mobile first. Tokens and base, the header and the first
	 screen, then every section in page order. Motion sits at the end of each
	 half: transform and opacity only. */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks keep the swap from shifting layout. */
@font-face { font-family: "Bricolage Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arial"); font-weight: 800; size-adjust: 97%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 101%; ascent-override: 94%; descent-override: 25%; line-gap-override: 0%; }
:root { --plum: #1e1030; --plum-2: #54466a; --plum-3: #2e1d47; --plum-4: #3d2a5a; --ink-edge: #0c0614; --tang: #ff6b2b; --tang-600: #f2581a; --tang-ink: #b53c0a; --peach: #ffe0cc; --peach-2: #ffc9a3; --mint: #35d99a; --mint-deep: #0b7a52; --mint-soft: #d3f7e7; --pink: #ff8cc6; --pink-ink: #a8175e; --rust: #9a3412; --oat: #fff7ec; --oat-2: #f8ecdc; --oat-3: #e8d7c0; --white: #fff; --line: rgb(30 16 48 / 0.12); --on-dark: #fff7ec; --on-dark-2: #c9bcdd; --f-display: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif; --f-text: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", sans-serif; --t-h1: clamp(2.875rem, 1.35rem + 5.6vw, 5.75rem); --t-h2: clamp(2rem, 1.3rem + 3vw, 3.625rem); --t-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem); --t-lede: clamp(1.125rem, 1.02rem + 0.42vw, 1.3125rem); --t-body: 1.0625rem; --t-small: 0.9375rem; --t-micro: 0.8125rem; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --gutter: clamp(16px, 4vw, 40px); --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px)); --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px)); --section: clamp(72px, 8.5vw, 124px); --maxw: 1200px; --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-xl: clamp(28px, 3.5vw, 44px); --r-pill: 999px; --shadow-sm: 0 1px 2px rgb(30 16 48 / 0.06), 0 6px 16px -4px rgb(30 16 48 / 0.08); --shadow-md: 0 2px 6px rgb(30 16 48 / 0.06), 0 18px 40px -12px rgb(30 16 48 / 0.18); --shadow-lg: 0 6px 12px rgb(30 16 48 / 0.08), 0 40px 80px -24px rgb(30 16 48 / 0.35); --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; scroll-padding-bottom: 72px; }
body { margin: 0; background: var(--oat); color: var(--plum); font-family: var(--f-text); font-size: var(--t-body); line-height: 1.6; font-weight: 450; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: inherit; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Line icons: one stroke style for the whole set, inherited into each <use>. */
use[href^="#i-"] { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
.safety :focus-visible, .footer :focus-visible, .bill-card :focus-visible { outline-color: var(--mint); }
.safety .ask :focus-visible { outline-color: var(--plum); }
::selection { background: var(--tang); color: var(--plum); }
.skip { position: fixed; top: 8px; left: max(8px, env(safe-area-inset-left, 0px)); z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--plum); color: var(--on-dark); font-weight: 700; text-decoration: none; transform: translateY(-160%); }
.skip:focus-visible { transform: none; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-left: var(--pad-l); padding-right: var(--pad-r); }
.section { padding-block: var(--section); }
/* Friends' colours: fills, and a darker ink for their names in text. */
.c-tang { --c: var(--tang); --on: var(--plum); }
.c-plum { --c: var(--plum); --on: var(--on-dark); }
.c-mint { --c: var(--mint); --on: var(--plum); }
.c-pink { --c: var(--pink); --on: var(--plum); }
.c-peach { --c: var(--peach-2); --on: var(--plum); }
.c-mintdeep { --c: var(--mint-deep); --on: var(--white); }
.c-dusk { --c: var(--plum-2); --on: var(--white); }
.c-rust { --c: var(--rust); --on: var(--white); }
.n-tang { color: var(--tang-ink); }
.n-plum { color: var(--plum); }
.n-mint { color: var(--mint-deep); }
.n-pink { color: var(--pink-ink); }

/* ---------- Type ---------- */
.h2 { font-family: var(--f-display); font-size: var(--t-h2); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--plum-2); max-width: 34em; text-wrap: pretty; }

/* ---------- Buttons ----------
	 One tactile idea: a hard bottom edge, and the button presses down onto it. */
.btn { --btn-h: 48px; --edge: var(--ink-edge); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--btn-h); padding: 0 22px; border: 0; border-radius: var(--r-pill); font-family: var(--f-text); font-size: 1rem; font-weight: 700; line-height: 1.1; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 0 var(--edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--edge); }
.btn--sm { --btn-h: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--lg { --btn-h: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; flex: none; }
.btn--plum { background: var(--plum); color: var(--on-dark); }
.btn--tang { --edge: var(--plum); background: var(--tang); color: var(--plum); }
.btn--quiet { --edge: var(--oat-3); background: var(--oat-2); color: var(--plum); }
@media (hover: hover) {
	.btn--plum:hover { background: var(--plum-4); }
	.btn--tang:hover { background: #ff8247; }
	.btn--quiet:hover { background: var(--oat-3); }
	.textlink:hover { text-decoration-color: var(--tang); }
}
.textlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }


/* ---------- Header + concept badge ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--oat); border-bottom: 1px solid transparent; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-bar { display: flex; align-items: center; gap: var(--s-4); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; border-radius: var(--r-sm); }
.brand__mark { width: 36px; height: 36px; }
.brand__word { font-family: var(--f-display); font-size: 1.625rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; padding-bottom: 3px; }
.nav { margin-left: auto; position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 10px; border: 0; border-radius: var(--r-pill); background: var(--oat-2); font-weight: 700; font-size: 0.9375rem; }
.nav__toggle svg { width: 20px; height: 20px; }
.nav__list { display: none; }
.js .nav__list.is-open { display: grid; position: absolute; top: calc(100% + 12px); right: 0; width: min(260px, calc(100vw - 32px)); padding: 8px; border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-lg); animation: pop-in 0.2s var(--ease-out) both; }
.nav__list a { display: block; padding: 12px 14px; border-radius: var(--r-sm); font-weight: 650; text-decoration: none; }
/* No JS: the menu button can't open anything, so show the links inline. */
html:not(.js) .nav__toggle { display: none; }
html:not(.js) .nav__list { display: flex; flex-wrap: wrap; gap: 0 4px; }
@media (max-width: 899px) {
	html:not(.js) .site-header { position: relative; }
	html:not(.js) .header-bar { flex-wrap: wrap; height: auto; padding-block: 12px 4px; }
	html:not(.js) .nav { flex-basis: 100%; margin-left: -10px; }
	html:not(.js) .nav__list a { display: flex; align-items: center; min-height: 44px; padding-block: 0; }
}
html:not(.js) .wl-form, html:not(.js) .add-person, html:not(.js) .chip__x, html:not(.js) .settle-btn, html:not(.js) .split-hint, html:not(.js) .ask__btns { display: none; }
html:not(.js) .chip { padding-right: 16px; }
html:not(.js) .nav__list a { padding: 8px 10px; font-size: 0.9375rem; }
.header-cta { display: none; }
.concept { position: relative; z-index: 51; }
.concept-badge { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; background: var(--plum); color: var(--on-dark); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.concept-badge b { font-weight: 800; }
.concept-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tang); }
.concept-badge__icon { width: 14px; height: 14px; }
.concept-badge:focus-visible { outline: 3px solid var(--tang); outline-offset: -3px; border-radius: 0; }
.capture .concept { display: none; }
@media (min-width: 768px) {
	html { scroll-padding-top: 92px; }
	.concept { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 60; }
	.concept-badge { min-height: 36px; padding: 0 14px 0 12px; border-radius: var(--r-pill); font-size: var(--t-micro); box-shadow: var(--shadow-md); }
	.concept-badge:focus-visible { outline-color: var(--plum); outline-offset: 3px; border-radius: var(--r-pill); }
}
/* Touch screens wide enough for the pill (tablets, phones on their side) get a full-size target. */
@media (min-width: 768px) and (pointer: coarse) {
	.concept-badge { min-height: 44px; }
}
/* Until the nav links need the room, the pill rides in the middle of the header
	 instead of floating over the page (phones on their side, small tablets). */
@media (min-width: 768px) and (max-width: 899px) {
	.concept { top: 32px; right: auto; bottom: auto; left: 50%; transform: translate(-50%, -50%); }
	.concept-badge { box-shadow: none; }
}
@media (hover: hover) {
	.nav__list a:hover { background: var(--oat); }
}
@media (min-width: 900px) and (hover: hover) {
	.nav__list a:hover { background: var(--oat-2); }
}
@media (min-width: 900px) {
	.header-bar { height: 76px; gap: var(--s-5); }
	.nav__toggle { display: none; }
	.nav__list, html:not(.js) .nav__list { display: flex; gap: 4px; }
	.nav__list a, html:not(.js) .nav__list a { padding: 10px 14px; border-radius: var(--r-pill); font-size: 0.96875rem; font-weight: 600; }
	.header-cta { display: inline-flex; }
}

/* ---------- Shared app UI bits ---------- */
.av { display: inline-grid; place-items: center; flex: none; position: relative; width: 2.3em; height: 2.3em; border-radius: 50%; font-family: var(--f-text); font-size: 1em; font-style: normal; font-weight: 800; line-height: 1; }
.av--tang, .chip--tang { --c: var(--tang); --on: var(--plum); }
.av--plum, .chip--plum { --c: var(--plum); --on: var(--on-dark); }
.av--mint, .chip--mint { --c: var(--mint); --on: var(--plum); }
.av--pink, .chip--pink { --c: var(--pink); --on: var(--plum); }
.av--peach, .chip--peach { --c: var(--peach-2); --on: var(--plum); }
.av--mintdeep, .chip--mintdeep { --c: var(--mint-deep); --on: var(--white); }
.av--dusk, .chip--dusk { --c: var(--plum-2); --on: var(--white); }
.av--rust, .chip--rust { --c: var(--rust); --on: var(--white); }
.av, .chip__av, .who[aria-pressed="true"] { background: var(--c); color: var(--on); }
/* Overlapping avatars: later ones sit underneath, so every initial stays whole. */
.av-row { display: inline-flex; flex: none; flex-direction: row-reverse; justify-content: flex-end; }
.av-row .av { width: 1.9em; height: 1.9em; font-size: 0.78em; box-shadow: 0 0 0 2px var(--white); }
.av-row .av + .av { margin-right: -0.35em; }
/* The shared pouch card: flat tangerine, with one big roo ear bleeding off the corner. */
.pcard { --logo-head: var(--plum); --logo-eye: var(--tang); position: relative; display: block; aspect-ratio: 1.586; border-radius: 1.1em; background: var(--tang); color: var(--plum); overflow: hidden; font-size: 1em; }
.pcard::before { content: ""; position: absolute; right: -9%; top: -38%; width: 40%; aspect-ratio: 0.62; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: var(--tang-600); transform: rotate(24deg); }
.pcard > * { position: absolute; z-index: 1; }
.pcard__label { top: 10%; left: 7%; display: flex; flex-direction: column; line-height: 1.15; }
.pcard .pcard__label small { font-size: 0.62em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum); }
.pcard__label b { font-size: 1em; font-weight: 800; }
.pcard__chip { top: 42%; left: 7%; width: 13%; aspect-ratio: 1.3; border-radius: 0.3em; background: var(--peach); box-shadow: inset 0 0 0 1px rgb(30 16 48 / 0.15); }
.pcard__tap { top: 10%; right: 7%; width: 1.4em; height: 1.4em; color: var(--plum); }
.pcard .pcard__tap { width: 1.4em; height: 1.4em; }
.pcard__num { left: 7%; bottom: 11%; font-weight: 700; font-size: 0.85em; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.pcard__brand { right: 7%; bottom: 9%; display: flex; align-items: center; gap: 0.2em; font-family: var(--f-display); font-weight: 800; font-size: 1.2em; letter-spacing: -0.04em; }
.pcard .pcard__logo { width: 1.45em; height: 1.45em; }
/* The phone: everything inside is sized in em off the screen width, via
	 container query units, so one mockup scales from 250 to 330px crisp. */
.phone { --pw: 300px; position: relative; width: var(--pw); aspect-ratio: 300 / 624; padding: calc(var(--pw) * 0.03); border-radius: calc(var(--pw) * 0.16); background: var(--plum); box-shadow: inset 0 0 0 1.5px #4a3868, inset 0 0 0 4px var(--plum), var(--shadow-lg); container-type: inline-size; }
.phone::before { content: ""; position: absolute; right: -3px; top: 24%; width: 3px; height: 11%; border-radius: 0 3px 3px 0; background: #3a2a52; }
.screen { position: relative; height: 100%; border-radius: calc(var(--pw) * 0.13); overflow: hidden; background: var(--white); color: var(--plum); font-size: 4.35cqi; line-height: 1.3; display: flex; flex-direction: column; }
.screen__in { display: flex; flex-direction: column; height: 100%; }
.screen svg { width: 1.25em; height: 1.25em; }
.screen small { font-size: 0.8em; color: var(--plum-2); font-weight: 500; }
.screen b { font-weight: 750; }
.ui-status { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; height: 3.5em; padding: 0.35em 2em 0; font-weight: 700; font-size: 0.95em; font-variant-numeric: tabular-nums; }
.ui-island { position: absolute; top: 0.75em; left: 50%; width: 7.4em; height: 2.15em; margin-left: -3.7em; border-radius: 2em; background: #0c0614; }
.screen .ui-sys { width: 4.9em; height: 1em; }
.ui-bar { flex: none; display: grid; grid-template-columns: 2.5em 1fr 2.5em; align-items: center; gap: 0.5em; padding: 0.3em 1.1em 0.6em; }
.ui-bar__title { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; }
.ui-bar__title b { font-size: 1.1em; font-weight: 800; }
.ui-iconbtn { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 50%; background: var(--oat); }
.ui-iconbtn--ghost { background: none; }
/* Progress ring. Two half-discs rotate into two half windows, so the fill
	 animates with transform alone. --p is the fraction (0 to 1). */
.ring { --band: 1.25em; --fill: var(--tang); --track: var(--peach); --a: calc(min(var(--p), 0.5) * 360deg); --b: calc(max(var(--p) - 0.5, 0) * 360deg); position: relative; width: 11.2em; aspect-ratio: 1; border-radius: 50%; background: var(--track); isolation: isolate; }
.ring::after { content: ""; position: absolute; inset: var(--band); border-radius: 50%; background: var(--white); z-index: 2; }
.ring__seg { position: absolute; inset: 0; z-index: 1; }
.ring__seg--a { clip-path: inset(0 0 0 50%); }
.ring__seg--b { clip-path: inset(0 50% 0 0); }
.ring__seg::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--fill); }
.ring__seg--a::before { clip-path: inset(0 50% 0 0); transform: rotate(var(--a)); }
.ring__seg--b::before { clip-path: inset(0 0 0 50%); transform: rotate(var(--b)); }
.ring__cap { position: absolute; inset: 0; z-index: 1; }
.ring__cap::before { content: ""; position: absolute; top: 0; left: 50%; width: var(--band); height: var(--band); margin-left: calc(var(--band) / -2); border-radius: 50%; background: var(--fill); }
.ring__cap--end { transform: rotate(calc(var(--p) * 360deg)); }
.ring__label { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.ring__label b { font-family: var(--f-display); font-size: 2.35em; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ring__label small { font-size: 0.78em; }
.flip { display: grid; }
.flip > span { grid-area: 1 / 1; }
.flip__old { opacity: 0; }
.ui-ringbox { flex: none; display: grid; place-items: center; padding: 0.2em 0 0.9em; }
.ui-members { flex: none; display: flex; align-items: center; padding: 0 1.4em 0.9em; }
.ui-members > .av { box-shadow: 0 0 0 0.16em var(--white); }
.ui-members > .av + .av { margin-left: -0.35em; }
.av__ok { position: absolute; right: -0.2em; bottom: -0.2em; width: 0.95em; height: 0.95em; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0.14em var(--white); }
.av__ok::after { content: ""; position: absolute; left: 0.3em; top: 0.16em; width: 0.24em; height: 0.45em; border: solid var(--plum); border-width: 0 0.12em 0.12em 0; transform: rotate(45deg); }
.ui-members__txt { display: flex; flex-direction: column; margin-left: 0.7em; line-height: 1.2; }
.ui-members__txt b { font-size: 0.92em; }
.ui-actions { flex: none; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.45em; padding: 0 1.1em 1em; }
.ui-act { display: flex; align-items: center; justify-content: center; gap: 0.3em; height: 2.7em; border-radius: 2em; background: var(--oat); font-weight: 750; font-size: 0.92em; }
.screen .ui-act svg { width: 1.15em; height: 1.15em; }
.ui-act--main { background: var(--plum); color: var(--on-dark); }
.ui-feed { flex: 1; padding: 0.85em 1.1em 0; border-top: 1px solid var(--line); background: #fffcf8; overflow: hidden; }
.ui-feed__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35em; padding-inline: 0.2em; }
.ui-feed__h small { color: var(--plum); font-weight: 700; text-decoration: underline; }
.ui-row { display: flex; align-items: center; gap: 0.65em; padding: 0.45em 0.2em; border-radius: 0.9em; }
.ui-row .av { font-size: 0.9em; }
.ui-row__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.ui-row__txt b { font-size: 0.93em; }
.ui-amt { font-variant-numeric: tabular-nums; font-size: 0.93em; }
.ui-amt--in { color: var(--mint-deep); }
.ui-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0.55em 0.6em 1.5em; border-top: 1px solid var(--line); background: var(--white); }
.ui-tabs span { display: flex; flex-direction: column; align-items: center; gap: 0.2em; font-size: 0.7em; font-weight: 700; color: var(--plum-2); }
.screen .ui-tabs svg { width: 1.9em; height: 1.9em; }
.ui-tabs .is-on { color: var(--plum); font-weight: 800; --logo-head: var(--tang); --logo-eye: var(--plum); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; padding: clamp(28px, 5vw, 48px) 0 clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; gap: clamp(32px, 6vw, 56px); align-items: center; }
.hero__title { font-family: var(--f-display); font-size: var(--t-h1); font-weight: 800; line-height: 0.94; letter-spacing: -0.04em; text-wrap: balance; }
@media (min-width: 600px) {
	.hero__title { max-width: 11ch; }
}
@media (min-width: 600px) and (max-width: 959px) {
	.hero__title { max-width: 14ch; font-size: clamp(4rem, 1rem + 8vw, 5.25rem); }
}
.hero__lede { margin-top: var(--s-5); font-size: var(--t-lede); line-height: 1.5; color: var(--plum-2); max-width: 30em; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }
/* The art: a phone, the group chat it came from, one off-centre disc, and the
	 roo leaning on the phone with a paw on the bezel. Positions are worked out
	 from the phone width (--pw) and its gap from the right edge (--m). */
.hero__art { --pw: clamp(236px, 50vw + 56px, 290px); --m: 0px; --rw: clamp(92px, 20vw + 20px, 112px); position: relative; display: grid; justify-items: end; gap: 14px; isolation: isolate; }
.hero__sun { position: absolute; z-index: -1; right: calc(var(--pw) * -0.28); top: 22%; width: calc(var(--pw) * 1.3); aspect-ratio: 1; border-radius: 50%; background: var(--tang); }
.hero__phone { --pw: inherit; z-index: 2; margin-right: var(--m); }
.hero__phone { width: var(--pw); }
.hchat { position: relative; z-index: 3; justify-self: start; width: min(100%, 316px); padding: 12px 12px 10px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-md); font-size: 0.875rem; line-height: 1.35; }
.hchat__top { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.hchat__top b { font-weight: 800; }
.hchat__top small { color: var(--plum-2); font-size: var(--t-micro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmsg { width: fit-content; max-width: 92%; margin-top: 6px; padding: 6px 12px 7px; border-radius: 16px 16px 16px 5px; background: var(--oat-2); }
.hmsg b { display: block; font-size: var(--t-micro); font-weight: 800; }
.hmsg--sys { display: flex; gap: 8px; align-items: flex-start; max-width: 100%; border-radius: 12px; background: var(--peach); font-weight: 650; }
.hmsg--sys svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.hero__roo { position: absolute; z-index: 3; bottom: 6px; right: calc(var(--m) + var(--pw) - 4px - var(--rw) * 0.11); width: var(--rw); height: auto; aspect-ratio: 200 / 240; overflow: visible; }
@media (max-width: 359px) {
	.hero__art { --pw: 230px; --rw: 84px; }
}
/* Phones: one thumb-sized button, the text link centred under it. */
@media (max-width: 599px) {
	.hero { padding-top: 20px; }
	.hero__lede { margin-top: var(--s-4); }
	.hero__ctas { display: grid; justify-items: center; gap: 4px; margin-top: var(--s-5); }
	.hero__ctas .btn { width: 100%; }
}
@media (min-width: 600px) {
	.hero__art { --pw: 290px; --m: 16px; --rw: 150px; display: block; width: 100%; max-width: 560px; min-height: 620px; margin-inline: auto; }
	.hero__phone { position: absolute; right: var(--m); top: 0; }
	.hchat { position: absolute; left: 0; top: 17%; width: min(280px, calc(100% - var(--pw) - var(--m) + 22px)); }
	.hero__roo { bottom: auto; top: calc(var(--pw) * 2.08 - var(--rw) * 1.2 - 4px); }
	.hero__sun { right: -70px; top: 30px; width: 400px; }
}
/* Phones on their side: copy and art side by side, sized for a short screen. */
@media (min-width: 640px) and (max-width: 959px) and (max-height: 540px) and (orientation: landscape) {
	.hero { padding-block: 12px 40px; }
	.hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
	.hero__title { max-width: none; font-size: clamp(2.25rem, 0.9rem + 3.6vw, 2.875rem); }
	.hero__lede { margin-top: var(--s-4); font-size: 1.0625rem; }
	.hero__ctas { gap: var(--s-2) var(--s-4); margin-top: var(--s-5); }
	.hero__ctas .btn--lg { --btn-h: 52px; padding: 0 24px; font-size: 1rem; }
	.hero__art { --pw: clamp(200px, 28vw, 244px); --m: 0px; --rw: calc(var(--pw) * 0.52); max-width: none; min-height: calc(var(--pw) * 2.08 + 8px); }
	.hchat { top: 12%; width: min(250px, calc(100% - var(--pw) + 26px)); font-size: 0.8125rem; }
	.hchat__top small { display: none; }
	.hero__sun { right: -56px; top: 24px; width: calc(var(--pw) * 1.36); }
}
/* Too narrow on its side for the chat and the phone together: the phone and the roo carry it. */
@media (min-width: 640px) and (max-width: 767px) and (max-height: 540px) and (orientation: landscape) {
	.hchat { display: none; }
}
@media (min-width: 960px) {
	.hero { padding-block: clamp(20px, 3vh, 48px) clamp(32px, 4vh, 48px); }
	.hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
	.hero__art { --pw: 272px; --m: 0px; --rw: 140px; min-height: 580px; }
	.hchat { top: 13%; font-size: 0.8125rem; }
	.hchat__top small { display: none; }
}
@media (min-width: 1200px) {
	.hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 32px; }
	.hero__art { --pw: 296px; --m: 0px; --rw: 156px; min-height: 624px; }
	.hchat { top: 13%; font-size: 0.875rem; }
	.hchat__top small { display: inline; }
	.hero__sun { right: -90px; top: 40px; width: 440px; }
}

/* ---------- What's your pouch for ---------- */
.shelf { padding-block: 24px 26px; background: var(--plum); color: var(--on-dark); }
.shelf__in { display: grid; gap: var(--s-3); }
.shelf__title { font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--tang); }
.shelf__list { display: flex; flex-wrap: wrap; gap: 8px; }
.shelf__list li { position: relative; display: flex; flex-direction: column; padding: 8px 14px 13px; border-radius: 12px; background: var(--plum-3); line-height: 1.25; overflow: hidden; }
.shelf__list b { font-weight: 700; font-size: var(--t-small); }
.shelf__list span { font-size: var(--t-micro); color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.shelf__list li::before, .shelf__list li::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--plum-4); }
.shelf__list li::after { background: var(--tang); transform-origin: left; transform: scaleX(var(--v, 0)); }
.shelf__list .is-open::before, .shelf__list .is-open::after { display: none; }
.shelf :focus-visible { outline-color: var(--tang); }
@media (max-width: 599px) {
	.shelf__list { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad-l) * -1) calc(var(--pad-r) * -1); padding: 2px var(--pad-r) 2px var(--pad-l); scroll-padding-inline: var(--pad-l) var(--pad-r); scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
	.shelf__list::-webkit-scrollbar { display: none; }
	.shelf__list li { flex: none; scroll-snap-align: start; }
	.shelf__list:focus-visible { outline-offset: -3px; border-radius: 0; }
}
@media (min-width: 900px) {
	.shelf__in { grid-template-columns: 13rem minmax(0, 1fr); align-items: center; gap: var(--s-5); }
}

/* ---------- Motion (first screen) ----------
	 The hero plays one short cause and effect, CSS only, so it never waits on
	 JavaScript and the headline (the LCP) is never hidden: the group chat
	 fills in, Priya's payment lands in the feed, the ring moves from 68% to
	 78% and the amount ticks over. Then only the roo moves: a blink and an
	 ear flick, paused off screen. */
@keyframes pop-in {
	from { opacity: 0; transform: translateY(6px) scale(0.96); }
}
@keyframes phone-in {
	0% { opacity: 0; transform: translateY(36px) rotate(3deg); }
	12% { opacity: 1; }
	70% { transform: translateY(-3px) rotate(-0.5deg); }
	100% { transform: none; }
}
@keyframes sun-in {
	from { transform: scale(0.82); }
}
@keyframes msg-in {
	0% { opacity: 0; transform: translateY(10px) scale(0.94); }
	60% { opacity: 1; transform: translateY(-2px) scale(1.02); }
	100% { transform: none; }
}
@keyframes roo-up {
	from { translate: 0 40px; opacity: 0; }
}
@keyframes seg-b {
	0% { transform: rotate(64.8deg); }
	75% { transform: rotate(101deg); }
	100% { transform: rotate(var(--b)); }
}
@keyframes cap-end {
	0% { transform: rotate(244.8deg); }
	75% { transform: rotate(281deg); }
	100% { transform: rotate(279deg); }
}
@keyframes hold-old {
	0%, 99% { opacity: 1; }
	100% { opacity: 0; }
}
@keyframes hold-new {
	0%, 99% { opacity: 0; }
	100% { opacity: 1; }
}
@keyframes tick-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.12); }
	100% { transform: scale(1); }
}
@keyframes new-row {
	0% { opacity: 0; transform: translateY(-12px); background: var(--mint-soft); }
	30% { opacity: 1; transform: none; background: var(--mint-soft); }
	100% { background: transparent; }
}
@keyframes blink {
	0%, 95%, 100% { transform: scaleY(1); }
	96.5% { transform: scaleY(0.1); }
}
@keyframes blink-twice {
	0%, 90%, 94%, 100% { transform: scaleY(1); }
	91.5%, 95.5% { transform: scaleY(0.1); }
}
@keyframes ear-flick {
	0%, 88%, 100% { transform: rotate(0deg); }
	90% { transform: rotate(-16deg); }
	92.5% { transform: rotate(5deg); }
	95% { transform: rotate(0deg); }
}
.roo__eyes { transform-box: fill-box; transform-origin: 50% 60%; }
.roo__ear { transform-box: view-box; transform-origin: 104px 38px; }
@media (prefers-reduced-motion: no-preference) {
	.hero__sun { animation: sun-in 0.6s var(--ease-out) both; }
	.hero__phone { animation: phone-in 0.8s var(--ease-out) 0.05s both; }
	.hchat { animation: pop-in 0.4s var(--ease-out) 0.25s both; }
	.hmsg:nth-of-type(2) { animation: msg-in 0.35s var(--ease-out) 0.55s both; }
	.hmsg:nth-of-type(3) { animation: msg-in 0.35s var(--ease-out) 0.85s both; }
	.hmsg--sys { animation: msg-in 0.35s var(--ease-out) 1.2s both; }
	.hero .ui-row--new { animation: new-row 1.6s var(--ease-out) 1.4s both; }
	.hero .ring__seg--b::before { animation: seg-b 0.6s var(--ease-out) 1.55s both; }
	.hero .ring__cap--end { animation: cap-end 0.6s var(--ease-out) 1.55s both; }
	.hero .flip__old { animation: hold-old 1.75s linear both; }
	.hero .flip__new { animation: hold-new 1.75s linear both; }
	.hero .ring__label .flip__new { animation: hold-new 1.75s linear both, tick-pop 0.3s var(--ease-out) 1.75s; }
	.hero__roo { animation: roo-up 0.6s var(--ease-out) 0.7s both; }
	.roo__eyes { animation: blink 6s linear 2s infinite; animation-play-state: var(--play, running); }
	.hero__roo .roo__eyes, .waitlist__roo .roo__eyes { animation-name: blink-twice; animation-duration: 7.4s; }
	.roo__ear { animation: ear-flick 9s linear 3s infinite; animation-play-state: var(--play, running); }
	.use__roo .roo__ear { animation-delay: 5.5s; }
	/* Loops pause off screen and in background tabs. */
	.is-off, .tab-hidden { --play: paused; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
	 Below the first screen, in page order.
	 ========================================================= */
/* ---------- App screens in the tour ---------- */
.ui-pad { display: flex; flex-direction: column; gap: 0.75em; padding: 0.3em 1.3em 0; }
.ui-pad--tight { gap: 0.6em; }
.ui-pick { display: flex; gap: 0.5em; }
.ui-pick span { display: grid; place-items: center; width: 2.9em; height: 2.9em; border-radius: 0.95em; background: var(--oat); }
.ui-pick .is-on { background: var(--tang); box-shadow: 0 0 0 0.16em var(--white), 0 0 0 0.3em var(--tang); }
.ui-field { display: flex; flex-direction: column; gap: 0.1em; padding: 0.6em 0.85em; border-radius: 0.95em; background: var(--oat); min-width: 0; }
.ui-field b { font-size: 1.08em; white-space: nowrap; }
.ui-field--focus { box-shadow: inset 0 0 0 0.13em var(--plum); background: var(--white); }
.ui-caret { display: inline-block; width: 0.1em; height: 1.05em; margin-left: 0.08em; vertical-align: -0.15em; background: var(--tang-600); }
.ui-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }
.ui-hint { margin-top: -0.25em; font-size: 0.82em; color: var(--plum-2); padding-left: 0.2em; }
.ui-invite { display: flex; flex-direction: column; gap: 0.45em; padding: 0.8em 0.85em; border-radius: 0.95em; border: 1px dashed var(--oat-3); }
.ui-invite__row { display: flex; gap: 0.35em; }
.av--add { background: var(--oat); color: var(--plum-2); }
.ui-link { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 750; font-size: 0.92em; text-decoration: underline; }
.ui-toggle { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.65em; padding: 0.15em 0.2em; line-height: 1.2; }
.ui-toggle > span:nth-child(2) { display: flex; flex-direction: column; }
.ui-toggle b { font-size: 0.93em; }
.ui-toggle__ic { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 0.8em; background: var(--peach); color: var(--plum); }
.screen .ui-toggle__ic svg { width: 1.15em; height: 1.15em; }
.screen .switch { width: 2.6em; height: 1.55em; }
.screen .switch::after { top: 0.18em; left: 0.18em; width: 1.19em; height: 1.19em; }
.screen .switch.is-on::after { transform: translateX(1.05em); }
.ui-after { display: flex; justify-content: space-between; padding: 0 0.3em; font-size: 0.85em; color: var(--plum-2); }
.ui-after b { color: var(--plum); }
.ui-cta { display: flex; align-items: center; justify-content: center; gap: 0.4em; margin: auto 1.3em 1.6em; height: 3.2em; border-radius: 2em; background: var(--plum); color: var(--on-dark); font-weight: 750; }
.ui-amount { display: flex; flex-direction: column; align-items: center; padding: 0.2em 0 0; }
.ui-amount b { font-family: var(--f-display); font-size: 3.2em; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.ui-bars { display: flex; flex-direction: column; gap: 0.1em; }
.ui-bars__row { display: grid; grid-template-columns: auto 1fr 3.2em; align-items: center; gap: 0.6em; padding: 0.28em 0.5em; border-radius: 0.9em; }
.ui-bars__row b { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.92em; }
.ui-bars__row .av { font-size: 0.8em; }
.ui-bars__row.is-you { background: var(--peach); }
.ui-bars__meter { position: relative; height: 0.6em; border-radius: 1em; background: var(--oat-2); overflow: hidden; }
.ui-bars__meter i { position: absolute; inset: 0; border-radius: 1em; background: var(--mint); transform-origin: left; transform: scaleX(var(--v)); }
.ui-bars__meter .ui-bars__add { left: calc(var(--at) * 100%); right: auto; width: 100%; background: var(--tang); transform: scaleX(var(--v)); }
.is-you .ui-bars__meter { background: var(--white); }
.ui-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25em 0.5em; margin-top: 0.1em; }
.ui-keys span { display: grid; place-items: center; height: 1.85em; border-radius: 0.6em; font-size: 1.15em; font-weight: 700; font-variant-numeric: tabular-nums; }
.screen .ui-keys svg { width: 1.1em; height: 1.1em; }
.screen--dark { background: var(--plum); color: var(--on-dark); }
.screen--dark small { color: var(--on-dark-2); }
.screen--dark .ui-iconbtn { background: var(--plum-3); }
.screen--dark .ui-island { background: #000; }
.ui-paywrap { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0.8em 1.6em 0; }
.pcard--screen { width: 100%; font-size: 1.05em; box-shadow: 0 1.2em 2.4em -0.8em rgb(0 0 0 / 0.6); }
.ui-paid { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 1.6em; text-align: center; line-height: 1.25; }
.ui-paid__tick { position: relative; z-index: 1; display: grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: 50%; background: var(--mint); color: var(--plum); }
.screen .ui-paid__tick svg { width: 1.7em; height: 1.7em; }
.ui-paid__amt { margin-top: 0.6em; font-family: var(--f-display); font-size: 1.45em; letter-spacing: -0.02em; }
.ui-waves { position: absolute; left: 50%; top: 0; width: 3.2em; height: 3.2em; margin-left: -1.6em; }
.ui-waves i { position: absolute; inset: 0; border: 0.16em solid var(--mint); border-radius: 50%; opacity: 0; }
.ui-receipt { margin: auto 0.9em 1.5em; padding: 0.9em; border-radius: 1.2em; background: var(--white); color: var(--plum); }
.ui-receipt small { color: var(--plum-2); }
.ui-receipt__top, .ui-receipt__split { display: flex; align-items: center; gap: 0.6em; }
.ui-receipt__top > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.ui-receipt__amt { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ui-receipt__ic { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 0.8em; background: var(--peach); }
.ui-receipt__split { margin-top: 0.75em; padding-top: 0.75em; border-top: 1px dashed var(--line); font-size: 0.92em; }
.ui-receipt__split > span:nth-child(2) { flex: 1; }
.ui-receipt__split b { color: var(--mint-deep); }
.ui-settle { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1.8em 0.4em; }
.screen .ui-settle__roo { width: 6em; height: 7.2em; margin-top: 0.2em; overflow: visible; }
.ui-settle__title { margin-top: 0.2em; font-family: var(--f-display); font-size: 1.8em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.ui-settle small { margin-top: 0.2em; }
.ui-list { padding: 0.2em 1.1em 0; }
.ui-list .ui-row { padding-block: 0.32em; }
.ui-roll { display: flex; align-items: center; gap: 0.6em; margin: 0.5em 1.1em 0; padding: 0.6em 0.8em; border: 0.1em dashed var(--plum-2); border-radius: 0.95em; line-height: 1.2; }
.ui-roll > span { display: flex; flex-direction: column; }
.ui-roll b { font-size: 0.92em; }

/* ---------- Tour ---------- */
.tour__panel { padding: clamp(28px, 5vw, 72px) clamp(16px, 4vw, 72px); border-radius: var(--r-xl); background: var(--peach); }
.tour__title { max-width: 14ch; }
.tour__grid { display: grid; gap: var(--s-6); margin-top: clamp(28px, 4vw, 48px); }
.carousel { display: flex; flex-direction: column; align-items: center; }
.carousel__stage { position: relative; display: grid; place-items: center; width: 100%; }
.tour__phone { --pw: min(76vw, 300px); z-index: 1; }
.carousel__track { clip-path: inset(0 round calc(var(--pw) * 0.13)); display: flex; height: 100%; border-radius: calc(var(--pw) * 0.13); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; background: var(--white); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 6px; border-radius: calc(var(--pw) * 0.13); }
.carousel__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.carousel__slide > .screen { border-radius: 0; }
.carousel__controls { display: none; align-items: center; gap: var(--s-4); margin-top: var(--s-5); }
.js .carousel__controls { display: flex; }
.carousel__btn { --edge: var(--oat-3); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--white); color: var(--plum); box-shadow: 0 3px 0 var(--edge); }
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__btn:active { transform: translateY(3px); box-shadow: none; }
@media (hover: hover) {
	.carousel__btn:hover { background: var(--plum); color: var(--white); --edge: var(--ink-edge); }
}
.carousel__btn[aria-disabled="true"] { opacity: 0.4; cursor: default; background: var(--white); color: var(--plum); transform: none; box-shadow: 0 3px 0 var(--oat-3); }
.carousel__dots { display: flex; }
.carousel__dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; }
.carousel__dots button::before { content: ""; width: 10px; height: 10px; border-radius: var(--r-pill); background: var(--plum-2); opacity: 0.35; }
.carousel__dots button[aria-current="true"]::before { width: 24px; opacity: 1; background: var(--plum); }
.steps { display: grid; gap: var(--s-2); }
.step { padding: var(--s-4) var(--s-5) var(--s-5); border-radius: var(--r-md); }
.step__title { font-size: var(--t-h3); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.step__btn { display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: 4px 0; border: 0; background: none; font: inherit; text-align: left; letter-spacing: inherit; border-radius: var(--r-sm); }
.step__num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--white); font-size: 1rem; font-weight: 800; }
.step__body { margin-top: var(--s-2); padding-left: 48px; color: var(--plum-2); max-width: 36em; }
.step.is-active { background: var(--white); box-shadow: var(--shadow-sm); }
.step.is-active .step__num { background: var(--plum); color: var(--on-dark); }
@media (hover: hover) {
	.step:not(.is-active):hover { background: rgb(255 255 255 / 0.5); }
}
/* On small screens only the current step shows under the phone. */
@media (max-width: 599px) {
	.carousel__controls { gap: var(--s-2); }
	.step { padding: var(--s-4) var(--s-4) var(--s-5) var(--s-5); }
	.step__body { padding-left: 0; }
}
@media (max-width: 1023px) {
	.js .step:not(.is-active) { display: none; }
	.js .steps { max-width: 30rem; margin-inline: auto; width: 100%; }
	.js .step { min-height: 152px; }
}
@media (min-width: 640px) and (max-width: 1023px) and (max-height: 540px) and (orientation: landscape) {
	.tour__grid { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--s-6); }
	.tour__phone { --pw: 236px; }
	.js .step:not(.is-active) { display: block; }
	.js .steps { max-width: none; margin: 0; }
	.js .step { min-height: 0; }
	.step { padding: var(--s-3) var(--s-4); }
	.step__body { font-size: var(--t-small); }
}
@media (min-width: 1024px) {
	.tour__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: var(--s-8); }
	.tour__phone { --pw: 312px; }
	.step { padding: var(--s-5) var(--s-6); }
}

/* ---------- Split the dinner ---------- */
.split { overflow-x: clip; }
.split__head { display: grid; gap: var(--s-4); }
.split__title { max-width: 20ch; }
@media (min-width: 1024px) {
	.split__head { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--s-7); align-items: end; }
	.split__head .lede { padding-bottom: 6px; }
}
.splitter { display: grid; gap: var(--s-4); margin-top: clamp(32px, 5vw, 56px); }
.splitter__controls { display: flex; flex-direction: column; gap: var(--s-6); padding: clamp(20px, 4vw, 40px); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-sm); }
.field-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.label { display: block; margin-bottom: var(--s-3); padding: 0; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 0 0 6px; border-radius: var(--r-pill); background: var(--oat); font-weight: 700; }
.chip.is-new { animation: chip-in 0.35s var(--ease-out) both; }
.chip.is-leaving { pointer-events: none; }
.chip__av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 0.875rem; font-weight: 800; }
.chip__x { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -4px; border: 0; border-radius: 50%; background: transparent; color: var(--plum-2); }
.chip__x svg { width: 16px; height: 16px; }
@media (hover: hover) {
	.chip__x:hover { background: var(--plum); color: var(--white); }
	.input:hover { border-color: var(--oat-3); }
	.seg label:hover { background: var(--oat-2); }
}
.chip__x[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; background: transparent; color: var(--plum-2); }
.add-person { display: flex; gap: var(--s-2); margin-top: var(--s-3); max-width: 360px; }
.input { width: 100%; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid var(--oat-2); border-radius: 14px; background: var(--oat); font-size: 1rem; font-weight: 600; }
.input::placeholder { color: #736686; font-weight: 500; }
.input:focus { outline: none; border-color: var(--plum); background: var(--white); box-shadow: 0 0 0 3px var(--peach-2); }
.input[aria-invalid="true"] { border-color: #c0233d; background: var(--white); }
.add-person .input { height: 44px; }
.add-person .btn { --btn-h: 44px; flex: none; }
.field-msg { min-height: 1.4em; margin-top: 6px; font-size: var(--t-small); font-weight: 600; color: #a3182f; }
.field-msg[data-tone="info"] { color: var(--plum-2); font-weight: 500; }
.field-msg[data-tone="ok"] { color: var(--mint-deep); }
.field-msg:empty { min-height: 0; margin: 0; }
.money-input { position: relative; max-width: 260px; }
.money-input span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-size: 1.75rem; font-weight: 800; color: var(--plum-2); pointer-events: none; }
.money-input .input { height: 64px; padding-left: 44px; font-family: var(--f-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.money-input .input[readonly] { background: var(--oat-2); border-color: var(--oat-2); color: var(--plum-2); }
/* Segmented radios */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--oat); box-shadow: inset 0 0 0 1px var(--oat-2); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; min-width: 64px; height: 44px; padding: 0 18px; border-radius: var(--r-pill); font-weight: 700; cursor: pointer; user-select: none; }
.seg input:checked + label { background: var(--plum); color: var(--white); }
.seg input:focus-visible + label { outline: 3px solid var(--plum); outline-offset: 2px; }
.seg--tip label { min-width: 0; padding: 0 14px; }
@media (max-width: 599px) {
	.seg--tip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
	.seg--tip label { padding: 0; font-size: 0.9375rem; }
}
.items__hint { margin: -4px 0 var(--s-3); font-size: var(--t-small); color: var(--plum-2); }
.items__list { display: grid; gap: 6px; }
.item { display: grid; grid-template-columns: minmax(7.5em, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 12px 10px 16px; border-radius: 16px; background: var(--oat); }
.item__name { font-weight: 700; line-height: 1.3; }
.item__name small { display: block; font-weight: 600; color: var(--plum-2); font-variant-numeric: tabular-nums; }
.item__who { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
@media (max-width: 599px) {
	.item { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 12px 16px; }
	.item__who { justify-content: flex-start; gap: 6px; }
	.item__name small { display: inline; margin-left: 8px; }
	.who { width: 44px; height: 44px; font-size: 0.875rem; }
}
.who { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 2px dashed #8a7e9f; border-radius: 50%; background: transparent; color: var(--plum-2); font-size: 0.8125rem; font-weight: 800; }
.who[aria-pressed="true"] { border: 0; }
.who:active { transform: scale(0.9); }
.item.is-unclaimed { box-shadow: inset 0 0 0 2px var(--tang); }
.item__flag { grid-column: 1 / -1; font-size: var(--t-micro); font-weight: 700; color: var(--rust); }
/* Result card */
.splitter__result { position: relative; }
.bill-card { position: relative; height: 100%; padding: clamp(20px, 4vw, 36px); border-radius: var(--r-xl); background: var(--plum); color: var(--on-dark); }
.bill-card .c-plum, .bill-card .av--plum { --c: var(--on-dark); --on: var(--plum); }
.bill-card__head > span { display: flex; flex-direction: column; line-height: 1.25; }
.bill-card__head b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.bill-card__head small { color: var(--on-dark-2); font-size: var(--t-small); }
.pouchmeter { display: flex; align-items: flex-end; gap: var(--s-4); margin: var(--s-3) 0 var(--s-4); }
.pouchmeter__roo { width: 136px; height: 163px; flex: none; overflow: visible; }
.pm-roo { transform-box: fill-box; transform-origin: 50% 100%; }
.pm-pouch { transform-box: fill-box; transform-origin: 50% 100%; }
.pouchmeter__fill { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--fill, 0)); transition: transform 0.3s var(--ease-out); }
.pm-yay { opacity: 0; }
.is-settled .pm-yay { opacity: 1; }
.is-settled .pm-rest { opacity: 0; }
.pouchmeter__label { display: flex; flex-direction: column; padding-bottom: 14px; line-height: 1.2; }
.pouchmeter__label b { font-family: var(--f-display); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.pouchmeter__label small { color: var(--on-dark-2); font-size: var(--t-small); }
.stack { display: flex; gap: 3px; height: 10px; }
.stack i { flex: 1 1 0; min-width: 4px; border-radius: 3px; background: var(--c); }
.shares { display: grid; gap: 2px; margin-top: var(--s-3); }
.share { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid rgb(255 247 236 / 0.1); }
.share.is-new { animation: row-in 0.35s var(--ease-out) both; }
.share .av { font-size: 0.875rem; width: 34px; height: 34px; }
.share__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share__amt { font-family: var(--f-display); font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: right; min-width: 5ch; }
.share__tick { width: 18px; height: 18px; color: var(--mint); visibility: hidden; }
.share.is-paid .share__tick { visibility: visible; }
.share.is-paid .share__amt { color: var(--mint); }
.totals { display: grid; gap: 4px; margin-top: var(--s-4); font-size: var(--t-small); color: var(--on-dark-2); }
.totals div { display: flex; justify-content: space-between; }
.totals dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.totals .totals__sum { margin-top: 4px; padding-top: 8px; border-top: 1px dashed rgb(255 247 236 / 0.25); color: var(--on-dark); font-size: 1.0625rem; font-weight: 800; }
.totals__sum dd { font-weight: 800; }
.pennies { margin-top: var(--s-3); font-size: var(--t-small); color: var(--on-dark-2); min-height: 1.6em; }
.settle-btn { --edge: var(--ink-edge); margin-top: var(--s-5); }
.settle-btn[aria-disabled="true"] { cursor: default; }
.is-settled .settle-btn { background: var(--mint); }
.settled { min-height: 1.6em; margin-top: var(--s-3); font-weight: 700; color: var(--mint); }
.settled:empty { min-height: 0; margin: 0; }
/* The coins that carry each share into the pouch on Settle up. */
.coin { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; }
.coin i { display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--c); color: var(--on); box-shadow: 0 0 0 2px var(--plum), 0 0 0 4px var(--c); font-style: normal; font-size: 0.75rem; font-weight: 800; }
.split-hint { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--mint-soft); font-size: var(--t-small); font-weight: 600; line-height: 1.4; }
.split-hint__mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--plum); }
.split-hint__mark svg { width: 30px; height: 30px; }
/* Phones and tablets: the result sits below the controls, so a pill rides the bottom of the screen while you edit. */
.split-peek { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 4; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: calc(var(--s-6) * -0.5); padding: 0 16px 0 20px; border-radius: var(--r-pill); background: var(--plum); color: var(--on-dark); font-size: var(--t-small); font-weight: 600; text-decoration: none; box-shadow: 0 3px 0 var(--ink-edge); }
.split-peek b { font-family: var(--f-display); font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--tang); }
.split-peek__icon { width: 18px; height: 18px; transform: rotate(90deg); }
.noscript-note { padding: 12px 16px; border-radius: 14px; background: var(--peach); font-weight: 600; }
.noscript-note--dark { margin-top: var(--s-4); background: var(--plum); color: var(--on-dark); }
@media (min-width: 1024px) {
	.split-peek { display: none; }
	.splitter { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: var(--s-5); align-items: stretch; }
	.bill-card { height: auto; }
	.splitter__result { align-self: start; position: sticky; top: 100px; }
}
/* Phones on their side: the bill beside the controls. Too short a screen to pin it. */
@media (min-width: 768px) and (max-width: 1023px) and (max-height: 540px) and (orientation: landscape) {
	.split-peek { display: none; }
	.splitter { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: var(--s-4); align-items: start; }
	.bill-card { height: auto; }
	.pouchmeter__roo { width: 110px; height: 132px; }
}

/* ---------- Use cases ----------
	 Three different objects, not three cards: the trip's spend feed, the flat's
	 monthly statement and Friday's receipt. */
.uses__title { max-width: 16ch; }
.uses__grid { display: grid; gap: var(--s-4); margin-top: clamp(28px, 4vw, 48px); }
.use { position: relative; display: flex; flex-direction: column; gap: var(--s-5); padding: clamp(24px, 4vw, 44px); border-radius: var(--r-xl); }
.use__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; max-width: 18ch; }
.use__text p { margin-top: var(--s-3); max-width: 32em; }
.use--trip { background: var(--tang); }
.use--house { background: var(--mint); }
.use--dinner { background: var(--pink); }
/* Trip: the pouch's own feed, straight, with euros where they were spent. */
.feed { padding: 6px 18px 8px; border-radius: var(--r-md); background: var(--white); font-size: 0.9375rem; line-height: 1.3; }
.feed__head { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 2px solid var(--plum); }
.feed__head b { flex: 1; font-weight: 800; }
.feed__head span { color: var(--plum-2); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.feed__logo { width: 30px; height: 30px; padding: 3px; border-radius: 9px; background: var(--plum); }
.feed li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed__what { display: flex; flex-direction: column; min-width: 0; }
.feed__what b { font-weight: 700; }
.feed small { color: var(--plum-2); font-size: var(--t-micro); }
.feed__amt { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-variant-numeric: tabular-nums; }
.use__roo { width: 130px; height: auto; aspect-ratio: 200 / 240; overflow: visible; filter: url(#sticker); }
/* House: a monthly statement with a paid stamp (the page's one tilt). */
.statement { position: relative; margin-top: auto; padding: 16px 18px 18px; border-radius: 6px; background: var(--white); font-size: 0.9375rem; line-height: 1.3; box-shadow: 0 3px 0 var(--mint-deep); }
.statement__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--plum); }
.statement__head b { font-weight: 800; }
.statement__head span, .statement td:nth-child(2) { color: var(--plum-2); font-size: var(--t-small); }
.statement th, .statement td { padding: 9px 0; border-bottom: 1px dotted var(--oat-3); }
.statement td { text-align: right; padding-left: 12px; font-variant-numeric: tabular-nums; }
.statement tfoot th, .statement tfoot td { border-bottom: 0; padding-top: 12px; font-weight: 800; }
.stamp { position: absolute; left: 38%; bottom: -14px; padding: 4px 10px 5px; border: 3px solid var(--mint-deep); border-radius: 8px; color: var(--mint-deep); font-family: var(--f-display); font-size: 1.125rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; background: rgb(255 255 255 / 0.85); transform: rotate(-9deg); }
/* Dinner: Friday's actual receipt, torn off at the bottom. */
.receipt { --z: 8px; align-self: flex-start; width: 100%; max-width: 340px; margin-top: auto; padding: 18px 20px calc(var(--z) + 16px); background: var(--white); font-size: 0.9375rem; line-height: 1.3; font-variant-numeric: tabular-nums; -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--z) * 2) var(--z) repeat-x; mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--z) * 2) var(--z) repeat-x; }
.receipt__head { display: flex; flex-direction: column; align-items: center; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px dashed var(--plum-2); text-align: center; }
.receipt__head b { font-size: 1.125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.receipt__head span { color: var(--plum-2); font-size: var(--t-micro); }
.receipt th, .receipt td { padding: 4px 0; }
.receipt td { text-align: right; padding-left: 12px; }
.receipt__rule th, .receipt__rule td { padding-top: 8px; border-top: 1px dashed var(--plum-2); }
.receipt tfoot th, .receipt tfoot td { padding-top: 8px; font-weight: 800; font-size: 1.0625rem; }
.receipt__paid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--oat-2); font-size: var(--t-small); }
.receipt__paid b { font-weight: 800; }
.receipt__paid > * { white-space: nowrap; }
@media (max-width: 359px) {
	.statement { padding-inline: 12px; font-size: 0.875rem; }
	.statement td { padding-left: 8px; }
}
@media (max-width: 599px) {
	.use { padding-block: 24px; padding-inline: max(16px, min(20px, 5vw)); }
	.feed { padding-inline: 14px; }
	.feed__head span { font-size: var(--t-micro); white-space: nowrap; }
	.feed li { gap: 12px; }
}
@media (min-width: 600px) {
	.use--trip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; column-gap: var(--s-6); }
	.use--trip .use__text { grid-column: 1; grid-row: 1; }
	.use--trip .feed { grid-column: 2; grid-row: 1 / span 2; }
	.use--trip .use__roo { grid-column: 1; grid-row: 2; align-self: end; width: 160px; margin-bottom: -8px; }
}
@media (min-width: 900px) {
	.uses__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
	.use--trip { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.use--trip .use__roo { width: 210px; margin-left: 12px; }
}

/* ---------- Safety ---------- */
.safety { background: var(--plum); color: var(--on-dark); }
.safety .lede { color: var(--on-dark-2); margin-top: var(--s-4); }
.safety__grid { display: grid; gap: var(--s-6); }
.safety__fine { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgb(255 247 236 / 0.14); max-width: 30em; font-size: var(--t-small); color: var(--on-dark-2); }
.rules { padding: clamp(16px, 3vw, 28px); border-radius: var(--r-lg); background: var(--plum-3); box-shadow: inset 0 0 0 1px rgb(255 247 236 / 0.08); font-size: 0.9375rem; }
.rules__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px 14px; }
.rules__head b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.rules__head span { color: var(--on-dark-2); font-size: 0.875rem; }
.rule { padding: 14px 4px; border-top: 1px solid rgb(255 247 236 / 0.1); }
.rule__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rule__row b { font-weight: 700; }
.rule__row span:not(.sr) { color: var(--on-dark-2); text-align: right; }
.rule__why { margin-top: 2px; color: var(--on-dark-2); }
.switch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 26px; background: var(--plum-4); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); }
.switch.is-on { background: var(--mint); }
.switch.is-on::after { transform: translateX(18px); }
/* The live request: approve it and watch the pouch pay. */
.ask { margin-top: 12px; padding: 16px; border-radius: var(--r-md); background: var(--white); color: var(--plum); }
.ask__top { display: flex; align-items: center; gap: 12px; }
.ask__top p { display: flex; flex-direction: column; line-height: 1.25; }
.ask__top b { font-weight: 800; }
.ask small, .ask__pot { color: var(--plum-2); font-size: 0.875rem; }
.ask .av { font-size: 15px; }
.ask__votes { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; font-size: 0.875rem; }
.ask__dots { display: inline-flex; gap: 4px; }
.ask__dots .av { width: 30px; height: 30px; font-size: 12px; }
.av--you { background: var(--white); color: var(--plum-2); box-shadow: inset 0 0 0 2px var(--plum-2); font-size: 10px !important; letter-spacing: -0.02em; }
[data-state="approved"] .av--you { background: var(--mint); color: var(--plum); box-shadow: none; }
.ask__pot { margin-top: 2px; }
.ask__pot b { color: var(--plum); font-variant-numeric: tabular-nums; }
.ask__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ask__btns .btn { --btn-h: 44px; }
.ask:not([data-state="asking"]) .ask__btns { display: none; }
.ask__done { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--mint-soft); font-weight: 650; line-height: 1.4; }
[data-state="declined"] .ask__done { background: var(--oat-2); }
.ask__done:focus { outline: none; }
.ask__again { margin-top: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.frozen { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.pcard--mini { flex: none; width: 92px; font-size: 9px; }
.pcard--mini::after { content: ""; position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.5) 0 3px, transparent 3px 9px); }
.pcard--mini .pcard__logo { width: 2.4em; height: 2.4em; }
.frozen p { display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.frozen p > span { display: flex; flex-direction: column; }
.frozen svg { flex: none; width: 22px; height: 22px; color: var(--on-dark); }
.frozen small { color: var(--on-dark-2); font-size: 0.875rem; }
.ledger { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; padding: 10px 0; border-block: 1px dashed rgb(255 247 236 / 0.25); font-variant-numeric: tabular-nums; }
.ledger span { color: var(--on-dark-2); }
.ledger b { color: var(--mint); font-weight: 750; }
@media (min-width: 1024px) {
	.safety__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: start; }
	.safety__intro { position: sticky; top: 120px; }
}

/* ---------- Group chat ---------- */
.chat__grid { display: grid; gap: var(--s-6); }
.chat__head .h2 { max-width: 14ch; }
.chat__note { margin-top: var(--s-4); max-width: 26em; color: var(--plum-2); font-size: var(--t-small); }
.chatwin { position: relative; max-width: 620px; border-radius: var(--r-lg); background: #fffcf7; box-shadow: 0 0 0 1px var(--line), var(--shadow-md); overflow: hidden; }
.chatwin__top { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px; background: var(--white); border-bottom: 1px solid var(--line); line-height: 1.25; }
.chatwin__top b { font-weight: 800; }
.chatwin__top small { color: var(--plum-2); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; padding: 8px clamp(12px, 3vw, 20px) 18px; }
.day { align-self: center; margin: 12px 0 4px; padding: 2px 10px; border-radius: 8px; background: var(--oat-2); color: var(--plum-2); font-size: var(--t-micro); font-weight: 700; }
.msg { align-self: flex-start; max-width: 84%; margin-top: 10px; }
.msg--more { margin-top: 3px; }
.msg__who { padding-left: 12px; font-size: var(--t-micro); font-weight: 800; }
.msg__who time { margin-left: 6px; color: var(--plum-2); font-weight: 500; }
.msg__txt { width: fit-content; padding: 7px 12px 8px; border-radius: 16px 16px 16px 5px; background: var(--white); box-shadow: 0 0 0 1px var(--line); line-height: 1.4; }
.msg--more .msg__txt { border-radius: 5px 16px 16px 5px; }
.msg--c .msg__who { color: var(--tang-ink); }
.msg--d .msg__who { color: var(--pink-ink); }
.msg--p .msg__who { color: var(--mint-deep); }
.msg--j { align-self: flex-end; }
.msg--j .msg__who { padding: 0 12px 0 0; text-align: right; }
.msg--j .msg__txt { margin-left: auto; border-radius: 16px 16px 5px 16px; background: var(--plum); color: var(--on-dark); box-shadow: none; }
.msg q { display: block; margin: 1px 0 6px; padding: 4px 8px; border-left: 3px solid var(--pink-ink); border-radius: 4px; background: var(--oat); color: var(--plum-2); font-size: var(--t-small); quotes: none; }
.msg q b { display: block; color: var(--pink-ink); font-size: var(--t-micro); font-weight: 800; }
.msg--sys { align-self: stretch; max-width: none; }
.msg--sys .msg__txt { display: flex; gap: 10px; align-items: center; width: auto; border-radius: 12px; background: var(--peach); box-shadow: none; font-size: var(--t-small); font-weight: 650; }
.msg--sys svg { flex: none; width: 24px; height: 24px; padding: 2px; border-radius: 7px; background: var(--plum); }
.linkcard { display: flex; align-items: center; gap: 10px; min-width: 15em; padding: 2px 0; }
.linkcard svg { flex: none; width: 36px; height: 36px; padding: 4px; border-radius: 10px; background: var(--plum); }
.linkcard > span { display: flex; flex-direction: column; line-height: 1.25; }
.linkcard small { color: var(--plum-2); font-size: var(--t-micro); }
.chatwin__typing { display: none; position: absolute; left: 0; top: 0; padding: 4px clamp(24px, 3vw + 12px, 32px); color: var(--plum-2); font-size: var(--t-micro); font-weight: 600; pointer-events: none; }
.chatwin__typing.is-on { display: block; }
.chatwin__typing.is-right { left: auto; right: 0; }
.js .thread.is-waiting > * { visibility: hidden; }
.js .thread > .is-shown { visibility: visible; animation: msg-in 0.3s var(--ease-out) both; }
.typing-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: 1px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--plum-2); animation: dot 0.9s steps(1) infinite; }
.typing-dots i:nth-child(2) { animation-delay: 0.3s; }
.typing-dots i:nth-child(3) { animation-delay: 0.6s; }
@media (min-width: 1024px) {
	.chat__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); align-items: center; }
	.chatwin { grid-column: 1; grid-row: 1; }
	.chat__head { grid-column: 2; grid-row: 1; }
}

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq__in { max-width: calc(800px + var(--gutter) * 2); }
.faq__title { font-family: var(--f-display); font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.faq__list { margin-top: var(--s-5); border-top: 2px solid var(--plum); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 20px 4px; cursor: pointer; list-style: none; border-radius: var(--r-sm); }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem); font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; }
.qa__icon { position: relative; flex: none; width: 20px; height: 20px; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--plum); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { display: none; }
@media (hover: hover) {
	.qa summary:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
}
.qa__body { padding: 0 44px 22px 4px; color: var(--plum-2); max-width: 40em; }
.qa__body a { color: var(--plum); font-weight: 700; }
.qa[open] .qa__body { animation: qa-in 0.3s var(--ease-out) both; }

/* ---------- Waitlist ---------- */
.waitlist { padding-top: 0; }
.waitlist__panel { position: relative; display: grid; gap: var(--s-5); padding: clamp(28px, 5vw, 72px); border-radius: var(--r-xl); background: var(--tang); color: var(--plum); }
.waitlist :focus-visible { outline-color: var(--plum); }
.waitlist .lede { margin-top: var(--s-4); color: var(--plum); }
.wl-form { margin-top: var(--s-6); }
.wl-form__fields { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
.wl-field label { display: block; margin-bottom: 6px; font-weight: 750; }
.optional { font-weight: 500; }
.wl-field .input { color: var(--plum); height: 54px; background: var(--white); border-color: var(--white); }
.wl-field .input:focus { border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum); }
.wl-field .input[aria-invalid="true"] { border-color: var(--plum); border-width: 3px; }
.wl-field select.input { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231e1030' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; cursor: pointer; }
.wl-err { margin-top: 6px; font-size: var(--t-small); font-weight: 700; }
.wl-err:empty { display: none; }
.wl-err::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: var(--plum); color: var(--on-dark); font-size: 0.75rem; font-weight: 800; vertical-align: 1px; }
.wl-fine { margin-top: var(--s-4); max-width: 34em; font-size: var(--t-small); font-weight: 500; }
.wl-done { margin-top: var(--s-6); padding: 20px 24px; border-radius: var(--r-md); background: var(--white); color: var(--plum); max-width: 34em; animation: pop-in 0.3s var(--ease-out) both; }
.wl-done:focus { outline: none; }
.wl-done:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.wl-done__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 6px; }
.waitlist__art { position: relative; display: flex; align-items: flex-end; gap: 12px; }
.waitlist__roo { flex: none; width: 120px; height: 144px; overflow: visible; filter: url(#sticker); }
.wl-roo { transform-box: fill-box; transform-origin: 50% 100%; }
.wl-roo-yay { opacity: 0; }
.is-joined .wl-roo-yay { opacity: 1; }
.is-joined .wl-roo-idle { opacity: 0; }
.roo__wave { transform-box: view-box; transform-origin: 134px 112px; }
.roo__fore { transform-box: view-box; transform-origin: 162px 118px; }
.waitlist__bubble { align-self: center; padding: 10px 16px; border-radius: 20px 20px 20px 5px; background: var(--white); color: var(--plum); font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.waitlist__bubble:empty { display: none; }
@media (max-width: 639px) {
	.wl-form .btn { width: 100%; }
}
@media (min-width: 640px) {
	.wl-form__fields { grid-template-columns: 1fr 1fr; }
	.wl-field--wide { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.waitlist__art { order: -1; }
}
/* Side by side, the roo stands on the panel's floor with the bubble by its head. */
@media (min-width: 768px) {
	.waitlist__panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--s-6); }
	.waitlist__art { --roo: 200px; display: block; align-self: end; min-height: calc(var(--roo) * 1.2 + 60px); margin-bottom: -6px; }
	.waitlist__roo { position: absolute; left: 50%; bottom: 0; width: var(--roo); height: calc(var(--roo) * 1.2); margin-left: calc(var(--roo) * -0.536); }
	.waitlist__bubble { position: absolute; left: calc(50% - var(--roo) * 0.04); bottom: calc(var(--roo) * 1.2 + 8px); }
}
@media (min-width: 1024px) {
	.waitlist__panel { gap: var(--s-7); }
	.waitlist__art { --roo: 280px; min-height: 380px; }
	.waitlist__bubble { left: calc(50% + 70px); bottom: 318px; font-size: 1.25rem; }
}

/* ---------- Footer ---------- */
.footer { padding: var(--s-8) 0 calc(var(--s-7) + 40px + env(safe-area-inset-bottom, 0px)); background: var(--plum); color: var(--on-dark); }
.footer__grid { display: grid; gap: var(--s-6); }
.brand--light .brand__word { color: var(--on-dark); }
.footer__brand p { margin-top: var(--s-2); color: var(--on-dark-2); }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 0 10px; margin-inline: -5px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 5px; font-weight: 650; text-decoration: none; }
@media (hover: hover) {
	.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
.footer__fine { max-width: 44em; font-size: var(--t-small); color: var(--on-dark-2); }
.footer__fine a { color: var(--on-dark); font-weight: 700; }
.footer__copy { display: flex; align-items: flex-end; gap: 10px; font-size: var(--t-small); color: var(--on-dark-2); }
.footer__roo { flex: none; width: 44px; height: 53px; overflow: visible; }
@media (min-width: 900px) {
	.footer__grid { grid-template-columns: 1fr auto; align-items: start; }
	.footer__nav { justify-self: end; }
	.footer__fine { grid-column: 1; }
	.footer__copy { grid-column: 2; justify-self: end; align-self: end; }
}

/* ---------- Motion (below the fold) ---------- */
@keyframes chip-in {
	from { opacity: 0; transform: scale(0.6); }
}
@keyframes row-in {
	from { opacity: 0; transform: translateY(8px); }
}
@keyframes qa-in {
	from { opacity: 0; transform: translateY(-6px); }
}
@keyframes caret {
	50% { opacity: 0; }
}
@keyframes dot {
	0% { opacity: 1; }
	33% { opacity: 0.3; }
}
@keyframes ripple {
	0% { opacity: 0.9; transform: scale(0.8); }
	100% { opacity: 0; transform: scale(2.6); }
}
@keyframes grow-x {
	from { transform: scaleX(0); }
}
@keyframes key-press {
	0%, 100% { background: transparent; }
	1%, 60% { background: var(--peach); }
}
@keyframes card-tap {
	0%, 100% { transform: none; }
	40%, 60% { transform: translateY(0.9em) rotate(-2deg) scale(0.97); }
}
@keyframes tick-in {
	0% { opacity: 0; transform: scale(0.4); }
	60% { opacity: 1; transform: scale(1.12); }
	100% { transform: none; }
}
@keyframes rise-in {
	from { opacity: 0; transform: translateY(40%); }
}
@keyframes hop {
	0% { transform: none; }
	14% { transform: scaleY(0.94); }
	45% { transform: translateY(-9%) scaleY(1.04); }
	72% { transform: translateY(0) scaleY(0.96); }
	86% { transform: scaleY(1.01); }
	100% { transform: none; }
}
@keyframes show-at-top {
	0%, 40% { opacity: 0; }
	41%, 100% { opacity: 1; }
}
@keyframes hide-at-top {
	0%, 40% { opacity: 1; }
	41%, 100% { opacity: 0; }
}
@keyframes wave-up {
	0%, 40%, 100% { transform: rotate(0deg); }
	8%, 24% { transform: rotate(-12deg); }
	16%, 32% { transform: rotate(5deg); }
}
@keyframes wave-fore {
	0%, 42%, 100% { transform: rotate(0deg); }
	10%, 26% { transform: rotate(-22deg); }
	18%, 34% { transform: rotate(12deg); }
}
@media (prefers-reduced-motion: no-preference) {
	.ui-caret { animation: caret 1.1s steps(1) infinite; animation-play-state: var(--play, running); }
	.is-current .ui-bars__meter i { animation: grow-x 0.9s var(--ease-out) 0.15s both; }
	.is-current .ui-bars__add { animation: grow-x 0.9s var(--ease-out) 1.3s both; }
	.is-current .ui-keys .is-k1 { animation: key-press 0.3s linear 0.3s both; }
	.is-current .ui-keys .is-k2 { animation: key-press 0.3s linear 0.65s both; }
	.is-current .ui-keys .is-k3 { animation: key-press 0.3s linear 1s both; }
	.is-current .pcard--screen { animation: card-tap 0.9s var(--ease-out) 0.2s both; }
	.is-current .ui-waves i { animation: ripple 0.9s var(--ease-out) 0.35s 2 both; }
	.is-current .ui-waves i:nth-child(2) { animation-delay: 0.6s; }
	.is-current .ui-paid__tick { animation: tick-in 0.4s var(--ease-out) 1.4s both; }
	.is-current .ui-paid__amt, .is-current .ui-paid small { animation: pop-in 0.3s var(--ease-out) 1.55s both; }
	.is-current .ui-receipt { animation: rise-in 0.45s var(--ease-out) 1.8s both; }
	.is-current .ui-settle__roo { animation: hop 0.7s var(--ease-out) 0.2s 2 both; transform-origin: 50% 100%; }
	.waitlist__roo .roo__wave { animation: wave-up 5s ease-in-out 0.5s infinite; animation-play-state: var(--play, running); }
	.waitlist__roo .roo__fore { animation: wave-fore 5s ease-in-out 0.58s infinite; animation-play-state: var(--play, running); }
	.is-joined .wl-roo { animation: hop 0.7s var(--ease-out) both; }
	.is-joined .wl-roo-yay { animation: show-at-top 0.7s linear both; }
	.is-joined .wl-roo-idle { animation: hide-at-top 0.7s linear both; }
	.waitlist__bubble:not(:empty) { animation: pop-in 0.25s var(--ease-out) 0.3s both; }
}
@media print {
	.concept, .site-header { display: none; }
	.js .thread.is-waiting > * { visibility: visible; }
}
