/* MenuBito coming-soon page.
   Brand tokens from MenuBito-m1 assets/brand/tokens (teal, orange, cream, charcoal; system UI font until a
   licensed family is approved). --paper is the background of the approved Bito boards, so Bito sits on a
   "stage" of the same colour instead of being cut out or blended.
   Shape rule: controls 12px, cards 20px, labels and stickers fully rounded, Bito stages are arches/circles.
   Contrast rule: orange never carries small text on cream or white; on orange, text is charcoal. */

:root {
	--teal: #123d3a;
	--teal-deep: #0c2c2a;
	--teal-line: rgb(255 248 239 / 0.18);
	--orange: #f97340;
	--orange-hover: #ff8655;
	--cream: #fff8ef;
	--paper: #fefef8;
	--charcoal: #202925;
	--muted: #44514d;
	--on-teal: #fff8ef;
	--on-teal-muted: rgb(255 248 239 / 0.84);
	--line: rgb(18 61 58 / 0.14);
	--focus: var(--teal);
	--radius-control: 12px;
	--radius-card: 20px;
	--font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--shadow-teal: 0 28px 60px -24px rgb(4 22 21 / 0.55);
	--shadow-soft: 0 18px 40px -22px rgb(18 61 58 / 0.35);
	color-scheme: light;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--charcoal);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
p,
ul,
ol {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
}

a,
button {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 6px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

.skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 30;
	padding: 0.75rem 1rem;
	background: var(--cream);
	color: var(--teal);
	font-weight: 700;
	border-radius: var(--radius-control);
	text-decoration: none;
}

.skip:focus {
	top: 16px;
}

/* ---------- buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0.8rem 1.35rem;
	border: 0;
	border-radius: var(--radius-control);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 0.35s var(--ease),
		background-color 0.25s,
		box-shadow 0.35s var(--ease);
}

.btn:active {
	transform: translateY(1px) scale(0.98);
}

.btn-primary {
	background: var(--orange);
	color: var(--charcoal);
	box-shadow: 0 10px 24px -12px rgb(249 115 64 / 0.7);
}

.btn-primary::after {
	content: "";
	width: 0.55em;
	height: 0.55em;
	border-right: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: translateY(-0.12em) rotate(45deg);
	transition: transform 0.35s var(--ease);
}

/* Hover effects only where a pointer can hover, so taps on phones never leave a stuck hover state. */
@media (hover: hover) {
	.btn-primary:hover {
		background: var(--orange-hover);
		transform: translateY(-2px);
		box-shadow: 0 16px 30px -14px rgb(249 115 64 / 0.8);
	}

	.btn-primary:hover::after {
		transform: translateY(0.05em) rotate(45deg);
	}

	.btn-small:hover {
		transform: translateY(-1px);
		background: #111816;
	}

	.lang-switch:hover,
	.motion-toggle:hover {
		background: rgb(255 248 239 / 0.1);
		box-shadow: inset 0 0 0 2px rgb(255 248 239 / 0.5);
	}

	.tab:hover:not([aria-selected="true"]) {
		background: rgb(255 255 255 / 0.6);
	}
}

.tab:active,
.seg button:active {
	transform: scale(0.98);
}

.btn-ghost {
	background: transparent;
	color: var(--on-teal);
	box-shadow: inset 0 0 0 2px var(--teal-line);
}

.btn-small {
	min-height: 44px;
	padding: 0.6rem 1rem;
	font-size: 0.95rem;
	background: var(--charcoal);
	color: var(--cream);
}

/* ---------- top bar ---------- */
.topbar {
	position: absolute;
	inset: 0 0 auto;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 18px var(--gutter);
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	--focus: var(--cream);
}

.brand img {
	width: clamp(160px, 16vw, 190px);
	height: auto;
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.55rem 1rem;
	border-radius: var(--radius-control);
	color: var(--on-teal);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	box-shadow: inset 0 0 0 2px var(--teal-line);
	transition:
		background-color 0.25s,
		box-shadow 0.25s;
}

.motion-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--radius-control);
	background: transparent;
	color: var(--on-teal);
	box-shadow: inset 0 0 0 2px var(--teal-line);
	cursor: pointer;
	place-items: center;
}

.js .motion-toggle {
	display: grid;
}

/* Pause: two bars. Play: a triangle. Drawn with CSS borders, no icon font. */
.motion-icon {
	width: 12px;
	height: 14px;
	border-left: 4px solid currentColor;
	border-right: 4px solid currentColor;
}

.motion-toggle[aria-pressed="true"] .motion-icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 3px;
}

/* ---------- hero ---------- */
.hero {
	position: relative;
	background:
		radial-gradient(60rem 40rem at 78% 30%, rgb(255 248 239 / 0.07), transparent 60%),
		var(--teal);
	color: var(--on-teal);
	padding: 112px 0 clamp(72px, 9vw, 112px);
	overflow: hidden;
	--focus: var(--cream);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	min-height: min(720px, calc(100dvh - 200px));
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.9rem 0.45rem 0.5rem;
	border-radius: 999px;
	background: rgb(255 248 239 / 0.08);
	box-shadow: inset 0 0 0 1px var(--teal-line);
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.01em;
	margin-bottom: 1.6rem;
}

.eyebrow::before {
	content: "";
	width: 22px;
	height: 22px;
	background: url("/brand/menubito-bite-b.svg") center / contain no-repeat;
}

h1 {
	font-size: clamp(2.5rem, 1.3rem + 3.3vw, 3.85rem);
	line-height: 1.04;
	letter-spacing: -0.038em;
	font-weight: 820;
}

/* Two deliberate lines on desktop: the promise, then the payoff in orange. */
h1 span,
h1 em {
	display: block;
}

h1 em {
	font-style: normal;
	color: var(--orange);
}

.lede {
	margin-top: 1.5rem;
	max-width: 36ch;
	font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
	line-height: 1.55;
	color: var(--on-teal-muted);
}

.hero-copy .btn {
	margin-top: 2rem;
}

.hero-art {
	position: relative;
	justify-self: center;
	width: min(470px, 100%);
	padding-bottom: 28px;
}

/* Bito stages: same colour as the board background, with the orange inset border of Bito's own menu pages. */
.stage {
	position: relative;
	background: var(--paper);
	overflow: hidden;
	display: grid;
	align-items: end;
	justify-items: center;
}

.stage::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 2px solid var(--orange);
	border-radius: inherit;
	pointer-events: none;
	opacity: 0.9;
}

.stage-arch {
	aspect-ratio: 0.86;
	border-radius: 999px 999px 28px 28px;
	box-shadow: var(--shadow-teal);
}

.stage-arch .bito {
	width: 80%;
	margin-bottom: 7%;
}

.phone {
	position: relative;
	width: 100%;
	padding: 7px;
	border-radius: 30px;
	background: var(--charcoal);
	box-shadow:
		inset 0 0 0 1.5px rgb(255 255 255 / 0.12),
		var(--shadow-teal);
}

.phone-screen {
	position: relative;
	aspect-ratio: 460 / 997;
	overflow: hidden;
	border-radius: 23px;
	background: var(--paper);
	container-type: size;
}

.phone-screen img {
	width: 100%;
}

.phone-hero {
	position: absolute;
	right: -9%;
	bottom: 0;
	width: 40%;
	transform: rotate(6deg);
}

/* ---------- intro ---------- */
.intro {
	padding: clamp(80px, 11vw, 150px) 0 0;
}

.statement {
	font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
	font-weight: 800;
	color: var(--teal);
	max-width: 17ch;
	text-wrap: balance;
}

.intro-body {
	margin-top: 1.5rem;
	max-width: 58ch;
	font-size: clamp(1.08rem, 1rem + 0.3vw, 1.22rem);
	color: var(--muted);
}

.recipe {
	margin-top: clamp(40px, 6vw, 64px);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	border-top: 2px solid var(--teal);
}

.recipe li {
	position: relative;
	padding: 1.4rem 2.2rem 0 0;
	display: grid;
	gap: 0.35rem;
}

.recipe li + li {
	padding-left: 2.2rem;
	border-left: 1px solid var(--line);
}

.recipe li + li::before {
	content: "";
	position: absolute;
	left: -9px;
	top: -10px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--cream);
	box-shadow: inset 0 0 0 2px var(--teal);
}

.recipe strong {
	font-size: 1.25rem;
	letter-spacing: -0.015em;
	color: var(--teal);
}

.recipe span {
	color: var(--muted);
}

.serves {
	margin-top: clamp(64px, 9vw, 112px);
	background: var(--orange);
	color: var(--charcoal);
	overflow: hidden;
}

.marquee-track {
	display: flex;
	width: max-content;
	animation: marquee 48s linear infinite;
}

.marquee-run {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	padding: 1.15rem 0.8rem;
	white-space: nowrap;
}

.m-item {
	font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.m-sep {
	width: 28px;
	height: 28px;
}

@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}

/* ---------- styles ---------- */
.styles {
	padding: clamp(88px, 11vw, 150px) 0;
}

.styles-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
	grid-template-areas:
		"bito head"
		"bito tablist"
		"bito panel"
		"bito note";
	column-gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.styles-grid .tablist {
	grid-area: tablist;
	margin-top: 2.2rem;
}

.styles-grid .panel {
	grid-area: panel;
}

.styles-grid .note {
	grid-area: note;
}

.styles-bito {
	grid-area: bito;
	position: sticky;
	top: 32px;
	align-self: start;
	padding-top: 0.5rem;
}

.stage-tall {
	aspect-ratio: 0.72;
	border-radius: 999px 999px 28px 28px;
	box-shadow: var(--shadow-soft);
}

.stage-tall .bito {
	width: 86%;
	margin-bottom: 8%;
}

.styles-head {
	grid-area: head;
}

.styles-head h2,
.features h2,
.later-head h2 {
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -0.032em;
	font-weight: 800;
	color: var(--teal);
	text-wrap: balance;
}

.styles-head h2 {
	max-width: 18ch;
}

.styles-head p {
	margin-top: 1rem;
	max-width: 52ch;
	color: var(--muted);
	font-size: 1.12rem;
}

.tablist {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.6rem;
	padding: 0.4rem;
	border-radius: calc(var(--radius-control) + 6px);
	background: rgb(18 61 58 / 0.07);
}

.tab {
	display: grid;
	gap: 0.15rem;
	text-align: left;
	min-height: 64px;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: var(--radius-control);
	background: transparent;
	color: var(--teal);
	font: inherit;
	cursor: pointer;
	transition:
		background-color 0.3s,
		box-shadow 0.3s,
		transform 0.35s var(--ease);
}

.tab[aria-selected="true"] {
	background: var(--teal);
	color: var(--on-teal);
	box-shadow: 0 10px 22px -14px rgb(18 61 58 / 0.8);
	--focus: var(--orange);
}

.tab-name {
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
}

.tab-tag {
	font-size: 0.9rem;
	opacity: 0.85;
}

.panel {
	display: grid;
	grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
	margin-top: 2rem;
	border-radius: var(--radius-card);
}

.panel-copy {
	padding-top: clamp(0px, 4vw, 56px);
}

.panel[data-hidden] {
	display: none;
}

.panel.is-entering .phone {
	animation: phone-in 0.6s var(--ease) both;
}

.panel.is-entering .panel-copy {
	animation: rise 0.6s var(--ease) 0.06s both;
}

.panel-copy h3 {
	font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--teal);
}

.panel-tag {
	margin: 0.35rem 0 1rem;
	font-weight: 700;
	color: var(--charcoal);
}

.panel-copy p:last-child {
	color: var(--muted);
	max-width: 40ch;
}

.phone-screen.is-scrolling img {
	animation: screen-scroll 16s ease-in-out infinite;
}

@keyframes screen-scroll {
	0%,
	14% {
		transform: translateY(0);
	}
	52%,
	66% {
		transform: translateY(calc(-100% + 100cqh));
	}
	100% {
		transform: translateY(0);
	}
}

.note {
	margin-top: 1.6rem;
	font-size: 0.9rem;
	color: var(--muted);
}

/* ---------- features (bento) ---------- */
.features {
	padding: 0 0 clamp(88px, 11vw, 150px);
}

.features h2 {
	max-width: 16ch;
}

.bento {
	margin-top: clamp(32px, 5vw, 56px);
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 18px;
}

.cell {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-card);
	padding: clamp(24px, 3vw, 36px);
	display: grid;
	gap: 1.6rem;
	align-content: space-between;
}

.cell h3 {
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
	line-height: 1.12;
	letter-spacing: -0.025em;
	font-weight: 800;
	text-wrap: balance;
}

.cell-copy p {
	margin-top: 0.7rem;
	max-width: 42ch;
}

.cell-qr {
	grid-column: span 7;
	background: var(--teal);
	color: var(--on-teal);
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	--focus: var(--cream);
}

.cell-qr .cell-copy p {
	color: var(--on-teal-muted);
}

.qr-card {
	display: grid;
	gap: 0.7rem;
	justify-items: center;
	padding: 18px 18px 14px;
	border-radius: var(--radius-card);
	background: var(--paper);
	color: var(--teal);
	transform: rotate(-3deg);
	box-shadow: var(--shadow-teal);
}

.qr-card img {
	width: clamp(130px, 13vw, 170px);
	image-rendering: pixelated;
}

.qr-url {
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: -0.01em;
}

.cell-lang {
	grid-column: span 5;
	background: var(--paper);
	box-shadow: inset 0 0 0 1px var(--line);
}

.cell-lang .cell-copy p,
.cell-mobile .cell-copy p {
	color: var(--muted);
}

.cell-lang h3,
.cell-mobile h3 {
	color: var(--teal);
}

.seg {
	display: inline-grid;
	grid-auto-flow: column;
	gap: 4px;
	padding: 4px;
	border-radius: calc(var(--radius-control) + 4px);
	background: rgb(18 61 58 / 0.08);
	justify-self: start;
}

.seg button {
	min-height: 40px;
	padding: 0.4rem 0.95rem;
	border: 0;
	border-radius: var(--radius-control);
	background: transparent;
	color: var(--teal);
	font: inherit;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

.seg button[aria-pressed="true"] {
	background: var(--teal);
	color: var(--on-teal);
	--focus: var(--orange);
}

.demo-lang {
	display: grid;
	gap: 1rem;
}

.dish-card {
	position: relative;
	padding: 1.1rem 1.2rem;
	border-radius: var(--radius-control);
	background: var(--cream);
	box-shadow: inset 0 0 0 1px var(--line);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 1rem;
	align-items: end;
}

.sample {
	grid-column: 1 / -1;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 0.45rem;
}

.dish-swap {
	display: grid;
}

.dish-text {
	grid-area: 1 / 1;
	transition:
		opacity 0.45s var(--ease),
		transform 0.45s var(--ease);
}

.dish-swap[data-current="en"] .dish-text[lang="es"],
.dish-swap[data-current="es"] .dish-text[lang="en"] {
	opacity: 0;
	transform: translateY(8px);
	visibility: hidden;
}

.dish-name {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--teal);
	letter-spacing: -0.015em;
}

.dish-desc {
	margin-top: 0.2rem;
	color: var(--muted);
	font-size: 0.98rem;
}

.dish-price {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--teal);
}

.cell-update {
	grid-column: span 5;
	background: var(--orange);
	color: var(--charcoal);
	--focus: var(--charcoal);
}

.demo-update {
	display: grid;
	gap: 0.9rem;
	padding: 1.1rem 1.2rem 1.2rem;
	border-radius: var(--radius-control);
	background: var(--cream);
	box-shadow: 0 16px 30px -20px rgb(32 41 37 / 0.6);
}

.demo-update .sample {
	margin-bottom: 0;
}

.rows li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
	padding: 0.55rem 0;
	font-weight: 700;
	color: var(--teal);
}

.rows li + li {
	border-top: 1px dashed rgb(18 61 58 / 0.25);
}

.row-name {
	transition: color 0.4s;
}

.row-price {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tag {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.tag-sale {
	background: var(--teal);
	color: var(--on-teal);
}

.tag-out {
	background: var(--charcoal);
	color: var(--cream);
}

/* Before the update: original prices, nothing sold out. */
.demo-update .was {
	text-decoration: none;
}

.demo-update .now,
.demo-update .tag {
	display: none;
}

.demo-update[data-state="after"] .was {
	text-decoration: line-through;
	color: var(--muted);
	font-weight: 600;
}

.demo-update[data-state="after"] .now,
.demo-update[data-state="after"] .tag {
	display: inline-block;
	animation: pop 0.45s var(--ease) both;
}

.demo-update[data-state="after"] .row-b .row-name,
.demo-update[data-state="after"] .row-b .plain {
	color: var(--muted);
	text-decoration: line-through;
}

.demo-update .btn {
	justify-self: start;
}

.cell-mobile {
	grid-column: span 3;
	background: var(--paper);
	box-shadow: inset 0 0 0 1px var(--line);
	padding-bottom: 0;
	align-content: start;
}

.phone-peek {
	width: min(200px, 86%);
	justify-self: center;
	margin-bottom: -38%;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	box-shadow: var(--shadow-soft);
}

.cell-simple {
	grid-column: span 4;
	background: var(--teal-deep);
	color: var(--on-teal);
	align-content: end;
	min-height: 320px;
}

.cell-simple .cell-copy p {
	color: var(--on-teal-muted);
}

.simple-mark {
	position: absolute;
	top: 26px;
	right: 26px;
	width: 92px;
	height: 92px;
	opacity: 0.95;
}

/* ---------- later ---------- */
.later {
	padding: 0 0 clamp(88px, 11vw, 150px);
}

.later-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.later-head p {
	margin-top: 1rem;
	color: var(--muted);
	font-size: 1.12rem;
}

.later-list {
	display: grid;
	gap: 18px;
}

.later-card {
	position: relative;
	padding: clamp(24px, 3vw, 32px);
	border-radius: var(--radius-card);
	border: 2px dashed rgb(18 61 58 / 0.35);
	background: rgb(254 254 248 / 0.6);
}

.later-card h3 {
	margin-top: 0.9rem;
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
	letter-spacing: -0.025em;
	color: var(--teal);
}

.later-card p {
	margin-top: 0.5rem;
	color: var(--muted);
	max-width: 48ch;
}

.badge {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: var(--orange);
	color: var(--charcoal);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ---------- closing ---------- */
.closing {
	background:
		radial-gradient(50rem 30rem at 20% 50%, rgb(255 248 239 / 0.07), transparent 60%),
		var(--teal);
	color: var(--on-teal);
	padding: clamp(88px, 11vw, 140px) 0;
	--focus: var(--cream);
}

.closing-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

.stage-round {
	width: min(380px, 100%);
	justify-self: center;
	aspect-ratio: 1;
	border-radius: 50%;
	box-shadow: var(--shadow-teal);
}

.stage-round .bito {
	width: 76%;
	margin-bottom: 12%;
}

.closing h2 {
	font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.3rem);
	line-height: 1.02;
	letter-spacing: -0.038em;
	font-weight: 820;
	text-wrap: balance;
	max-width: 13ch;
}

.closing-copy > p:not(.domain) {
	margin-top: 1.2rem;
	font-size: 1.2rem;
	color: var(--on-teal-muted);
}

.domain {
	margin-top: 2.4rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.2rem;
}

.domain-name {
	font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.sticker {
	display: inline-block;
	padding: 0.55rem 1.05rem;
	border-radius: 999px;
	background: var(--orange);
	color: var(--charcoal);
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transform: rotate(-6deg);
	box-shadow: 0 10px 22px -12px rgb(0 0 0 / 0.55);
}

/* ---------- footer ---------- */
.site-footer {
	background: var(--teal-deep);
	color: var(--on-teal-muted);
	padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
	font-size: 0.92rem;
	--focus: var(--cream);
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.footer-row img {
	width: 152px;
}

/* ---------- 404 ---------- */
.nf {
	background: var(--teal);
	color: var(--on-teal);
	--focus: var(--cream);
}

.nf-main {
	min-height: 100dvh;
	width: min(100% - 2 * var(--gutter), 960px);
	margin-inline: auto;
	padding: 40px 0;
	display: grid;
	align-content: center;
	gap: 48px;
}

.nf-main img {
	width: 190px;
}

.nf-pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 40px;
}

.nf h1,
.nf h2 {
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.nf p {
	margin-top: 1rem;
	color: var(--on-teal-muted);
}

/* ---------- motion ---------- */
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes phone-in {
	from {
		opacity: 0;
		transform: translateY(26px) rotate(-2deg);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes bito-in {
	from {
		opacity: 0;
		transform: translateY(40px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes bob {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-9px);
	}
}

@keyframes sway {
	0%,
	100% {
		transform: rotate(-1.4deg);
	}
	50% {
		transform: rotate(1.4deg);
	}
}

@keyframes hop {
	0%,
	100% {
		transform: translateY(0);
	}
	20% {
		transform: translateY(-18px) rotate(-2deg);
	}
	40% {
		transform: translateY(0);
	}
	58% {
		transform: translateY(-10px) rotate(1.5deg);
	}
	76% {
		transform: translateY(0);
	}
}

@keyframes pop {
	from {
		opacity: 0;
		transform: scale(0.7);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes tilt-in {
	from {
		opacity: 0;
		transform: translateY(60px) rotate(14deg);
	}
	to {
		opacity: 1;
		transform: rotate(6deg);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.load-in {
		animation: rise 0.9s var(--ease) both;
	}

	.hero-copy .load-in:nth-child(2) {
		animation-delay: 0.08s;
	}

	.hero-copy .load-in:nth-child(3) {
		animation-delay: 0.18s;
	}

	.hero-copy .load-in:nth-child(4) {
		animation-delay: 0.28s;
	}

	.stage-arch {
		animation: bito-in 1.1s var(--ease) 0.15s both;
	}

	.phone-hero {
		animation: tilt-in 1.1s var(--ease) 0.45s both;
	}

	.bito.bob img {
		animation: bob 5.5s ease-in-out 1.2s infinite;
	}

	.bito.sway img {
		transform-origin: 50% 100%;
		animation: sway 6s ease-in-out infinite;
	}

	.js [data-reveal] {
		opacity: 0;
		transform: translateY(28px);
		transition:
			opacity 0.9s var(--ease),
			transform 0.9s var(--ease);
	}

	.js [data-reveal].is-in {
		opacity: 1;
		transform: none;
	}

	.bento .cell:nth-child(2),
	.later-list li:nth-child(2) {
		transition-delay: 0.08s;
	}

	.bento .cell:nth-child(3) {
		transition-delay: 0.04s;
	}

	.bento .cell:nth-child(4) {
		transition-delay: 0.12s;
	}

	.bento .cell:nth-child(5) {
		transition-delay: 0.2s;
	}

	.stage-round.is-in .bito.hop img {
		animation: hop 1.6s var(--ease) 0.5s both;
	}

	@media (hover: hover) {
		.cell-qr:hover .qr-card {
			transform: rotate(0deg) scale(1.03);
		}
	}

	.qr-card {
		transition: transform 0.5s var(--ease);
	}
}

/* Pause control (WCAG 2.2.2): stops every looping animation. */
.is-paused *,
.is-paused *::before,
.is-paused *::after {
	animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.motion-toggle,
	.js .motion-toggle {
		display: none;
	}

	.marquee-track {
		width: auto;
	}

	.marquee-run {
		flex-wrap: wrap;
		justify-content: center;
		white-space: normal;
		row-gap: 0.4rem;
	}

	.marquee-run + .marquee-run {
		display: none;
	}
}

/* ---------- responsive ---------- */
@media (max-width: 959px) {
	.hero {
		padding-top: 96px;
	}

	.hero-grid {
		grid-template-columns: 1fr;
		min-height: 0;
		gap: 48px;
	}

	.hero-art {
		width: min(360px, 74%);
		justify-self: start;
		margin-left: 2%;
	}

	.phone-hero {
		width: 42%;
		right: -22%;
	}

	/* Phones and tablets: Bito stands beside the three style choices and points at them. */
	.styles-grid {
		grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
		grid-template-areas:
			"head head"
			"bito tablist"
			"panel panel"
			"note note";
		column-gap: 14px;
	}

	.styles-grid .tablist,
	.styles-bito {
		margin-top: 1.6rem;
	}

	.styles-grid .tablist {
		grid-template-columns: 1fr;
		align-content: center;
	}

	.styles-bito {
		position: static;
		align-self: stretch;
		padding-top: 0;
		display: grid;
	}

	.stage-tall {
		aspect-ratio: auto;
		height: 100%;
		min-height: 200px;
		border-radius: 999px 999px 20px 20px;
	}

	.stage-tall::after {
		inset: 8px;
	}

	.stage-tall .bito {
		width: 92%;
		margin-bottom: 8%;
	}

	.styles-grid .panel {
		margin-top: 1.8rem;
	}

	.cell-qr,
	.cell-lang,
	.cell-update,
	.cell-mobile,
	.cell-simple {
		grid-column: span 6;
	}

	.cell-qr {
		grid-column: 1 / -1;
	}

	.cell-simple {
		grid-column: span 6;
		min-height: 260px;
	}

	.later-grid,
	.closing-grid {
		grid-template-columns: 1fr;
	}

	.closing-copy {
		text-align: center;
		justify-items: center;
		display: grid;
	}

	.closing h2 {
		margin-inline: auto;
	}

	.domain {
		justify-content: center;
	}

	.stage-round {
		width: min(300px, 78%);
	}
}

@media (max-width: 719px) {
	body {
		font-size: 1rem;
	}

	.topbar {
		padding: 14px max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
	}

	/* Hero: tighter, so Bito already shows on the first screen of a phone. */
	.hero {
		padding: 84px 0 56px;
	}

	.hero-grid {
		gap: 32px;
	}

	.eyebrow {
		margin-bottom: 1.1rem;
		font-size: 0.85rem;
	}

	h1 {
		font-size: clamp(2.1rem, 9.4vw, 2.75rem);
	}

	.lede {
		margin-top: 1rem;
		font-size: 1.0625rem;
	}

	.hero-copy .btn {
		margin-top: 1.4rem;
	}

	.hero-art {
		width: min(300px, 66%);
		margin-left: 4%;
		padding-bottom: 16px;
	}

	.phone-hero {
		width: 46%;
		right: -30%;
	}

	.intro,
	.styles {
		padding-top: 72px;
	}

	.styles {
		padding-bottom: 80px;
	}

	.features,
	.later {
		padding-bottom: 80px;
	}

	.closing {
		padding: 72px 0;
	}

	.brand img {
		width: 150px;
	}

	.lang-switch {
		padding-inline: 0.8rem;
	}

	h1 {
		max-width: none;
	}

	.recipe {
		grid-template-columns: 1fr;
		border-top: 0;
		border-left: 2px solid var(--teal);
		padding-left: 1.4rem;
		gap: 1.4rem;
	}

	.recipe li,
	.recipe li + li {
		padding: 0;
		border-left: 0;
	}

	.recipe li::before,
	.recipe li + li::before {
		content: "";
		position: absolute;
		left: calc(-1.4rem - 9px);
		top: 4px;
		width: 16px;
		height: 16px;
		border-radius: 50%;
		background: var(--cream);
		box-shadow: inset 0 0 0 2px var(--teal);
	}

	.tablist {
		gap: 0.35rem;
		padding: 0.3rem;
	}

	.tab {
		min-height: 58px;
		padding: 0.6rem 0.8rem;
	}

	.tab-name {
		font-size: 0.98rem;
	}

	.tab-tag {
		font-size: 0.84rem;
	}

	.panel {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: left;
		gap: 24px;
	}

	.panel .phone {
		width: min(250px, 70%);
	}

	.panel-copy {
		padding-top: 0;
	}

	.seg button {
		min-height: 44px;
	}

	.panel-copy {
		justify-self: stretch;
	}

	.bento {
		grid-template-columns: 1fr;
	}

	.cell-qr,
	.cell-lang,
	.cell-update,
	.cell-mobile,
	.cell-simple {
		grid-column: 1 / -1;
	}

	.cell-qr {
		grid-template-columns: 1fr;
	}

	.qr-card {
		justify-self: start;
	}

	.phone-peek {
		width: min(220px, 70%);
		margin-bottom: -30%;
	}

	.simple-mark {
		width: 64px;
		height: 64px;
		top: 22px;
		left: 24px;
		right: auto;
	}

	.cell-simple {
		min-height: 0;
		padding-top: 104px;
	}

	.stage-round {
		width: min(250px, 68%);
	}

	.domain {
		margin-top: 1.8rem;
	}
}
