/* Panaderya Demo. Tokens are copied from sitsit.dev (DESIGN.md): white canvas, zinc, one indigo accent, Geist. */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --canvas: #ffffff; --subtle: #fafafa; --muted: #f4f4f5;
  --line: #e4e4e7; --line-strong: #d4d4d8; --line-hover: #a1a1aa;
  --fg: #09090b; --fg-hover: #27272a; --fg-2: #3f3f46; --fg-3: #52525b; --fg-4: #71717a;
  --accent: #3b4fd8; --accent-hover: #2f40b8; --accent-soft: #eef0fd;
  --error: #b91c1c;
  --font: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-frame: 0 0 0 1px rgb(9 9 11 / .06), 0 1px 2px rgb(9 9 11 / .04), 0 8px 24px -6px rgb(9 9 11 / .1), 0 32px 64px -24px rgb(9 9 11 / .16);
  --lift: 0 1px 2px rgb(9 9 11 / .04);
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scroll-behavior: smooth; scrollbar-color: var(--line-strong) var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--fg); font: 400 16px/1.625 var(--font); font-feature-settings: 'ss01', 'cv11'; caret-color: var(--accent); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }
.grey { color: var(--fg-4); }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ buttons (pill, ink) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 9999px;
  background: var(--fg); color: var(--canvas); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--fg-hover); }
.btn:active { transform: scale(.98); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-2 { background: var(--canvas); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong), var(--lift); }
.btn-2:hover { background: var(--subtle); box-shadow: inset 0 0 0 1px var(--line-hover), var(--lift); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ------------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .85); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.wordmark span { color: var(--fg-4); font-weight: 500; margin-left: 4px; }
.nav nav { display: none; margin-left: auto; gap: 4px; }
.nav nav a { font-size: 14px; color: var(--fg-3); text-decoration: none; padding: 6px 12px; border-radius: 9999px; transition: color .2s; }
.nav nav a:hover { color: var(--fg); }
.nav .btn-sm { margin-left: auto; }
@media (min-width: 1024px) { .nav nav { display: flex; } .nav nav + .btn-sm { margin-left: 8px; } }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .hero { padding-top: 6rem; padding-bottom: 5rem; } }
.hero-row { display: grid; gap: 40px; margin-top: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } .hero-copy { padding-bottom: 8px; } }
h1 { font-size: clamp(2.5rem, 4.8vw, 3.75rem); line-height: 1.03; letter-spacing: -0.04em; }
.hero h1 { max-width: none; }
.lede { font-size: 1.125rem; line-height: 1.6; color: var(--fg-3); max-width: 36rem; margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 20px; font-size: 14px; color: var(--fg-4); }

/* product window: the only thing with layered shadow */
.frame { margin: 0; background: var(--canvas); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-frame); }
.well { border-radius: 9px; overflow: hidden; background: var(--muted); }
.hero-media .well img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ------------------------------------------------------------------ demo stage */
.stage { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .stage { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.col-main, .side { min-width: 0; }

.chat-in { display: flex; flex-direction: column; height: min(720px, calc(100vh - 88px)); height: min(720px, calc(100svh - 88px)); min-height: 280px; border-radius: 9px; overflow: hidden; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.chat-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; box-shadow: 0 1px 0 var(--line); position: relative; z-index: 1; background: var(--canvas); }
.chat-bar h2 { font-size: 15px; letter-spacing: -0.01em; }
.chat-bar small { display: block; font-size: 13px; color: var(--fg-4); line-height: 1.3; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.consent { margin: auto 0; padding: 24px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 30rem; overflow-y: auto; }
.consent-lead { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; }
.consent p { color: var(--fg-2); }
.consent a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: rgb(59 79 216 / .35); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; color: var(--fg-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--fg); }
.turnstile { min-height: 65px; }
.consent .btn { justify-self: start; }
.error { color: var(--error); font-size: 14px; min-height: 1em; }

.log { list-style: none; margin: 0; padding: 20px 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.log > li { max-width: 82%; padding: 9px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; animation: rise .25s var(--ease) both; }
.log .bot { background: var(--muted); align-self: flex-start; border-bottom-left-radius: 6px; }
.log .me { background: var(--fg); color: var(--canvas); align-self: flex-end; border-bottom-right-radius: 6px; }
.log .note { align-self: center; max-width: 92%; background: none; color: var(--fg-4); font-size: 13px; text-align: center; }
.log .typing { color: var(--fg-4); display: flex; gap: 4px; align-items: center; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-4); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* the cart the code computed */
.log .cart { align-self: flex-start; width: min(100%, 360px); max-width: 100%; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 6px 6px 8px; white-space: normal; }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: 14px; }
.cart-line img, .cart-line .ph { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--muted); flex: none; }
.cart-line .nm { flex: 1; min-width: 0; color: var(--fg-2); }
.cart-line .amt { font-variant-numeric: tabular-nums; }
.cart-total { display: flex; justify-content: space-between; gap: 12px; margin: 4px 8px 0; padding-top: 10px; box-shadow: inset 0 1px 0 var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-note { margin: 2px 8px 0; font-size: 12.5px; color: var(--fg-4); }
.cart .btn { width: calc(100% - 8px); margin: 12px 4px 0; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.chips button { flex: none; height: 40px; padding: 0 14px; border: 0; border-radius: 9999px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; color: var(--fg-2); cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.chips button:hover { background: var(--subtle); box-shadow: inset 0 0 0 1px var(--line-hover); }
.composer { display: flex; gap: 8px; padding: 12px; box-shadow: 0 -1px 0 var(--line); }
.composer input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--line-strong); background: var(--canvas); font-size: 16px; box-shadow: var(--lift); transition: border-color .2s, box-shadow .2s; }
.composer input::placeholder { color: var(--fg-4); }
.composer input:hover { border-color: var(--line-hover); }
.composer input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(59 79 216 / .18); }
.send { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--canvas); cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.send:hover { background: var(--fg-hover); } .send:active { transform: scale(.94); } .send:disabled { opacity: .55; }
.send .ico { width: 18px; height: 18px; }
.flash { animation: flash .9s var(--ease); }
@keyframes flash { 30% { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(59 79 216 / .18); } }

/* side column */
.side { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
.title { font-size: 1.25rem; letter-spacing: -0.025em; line-height: 1.3; }
.sub { font-size: 14px; color: var(--fg-3); margin-top: 4px; }
.empty { color: var(--fg-4); font-size: 14px; }

.board { list-style: none; margin: 16px 0 0; padding: 0; }
.board > li { padding: 14px 0; box-shadow: inset 0 1px 0 var(--line); }
.board > li.empty { padding-top: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.order-id { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.you { font-weight: 500; color: var(--accent); margin-left: 6px; font-size: 13px; }
.status { font-size: 13px; font-weight: 500; color: var(--fg-4); white-space: nowrap; }
.status.PAID { color: var(--fg); }
.order-body { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.thumbs { display: flex; flex: none; }
.thumbs img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 0 2px var(--canvas); }
.thumbs img + img { margin-left: -10px; }
.order-items { flex: 1; min-width: 0; font-size: 14px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-total { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.board a { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--accent); text-underline-offset: 3px; }

/* owner's phone lock screen */
.lock { margin-top: 16px; background: var(--muted); border-radius: 16px; padding: 18px 14px 14px; min-height: 180px; }
.lock-time { text-align: center; font-size: 2.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.notifs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.notifs .empty { text-align: center; }
.notif { display: flex; gap: 10px; align-items: flex-start; background: var(--canvas); border-radius: 14px; padding: 10px 12px; box-shadow: var(--lift); animation: drop .5s var(--ease) both; }
.notif img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: none; }
.notif div { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; }
.notif strong { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.notif strong time { font-weight: 400; color: var(--fg-4); font-size: 12px; }
.notif span { color: var(--fg-3); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ------------------------------------------------------------------ sections */
.block { padding-top: 7rem; padding-bottom: 0; }
@media (min-width: 768px) { .block { padding-top: 9rem; } }
.headline { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.032em; max-width: 52rem; }

/* menu */
.menu { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
@media (min-width: 768px) { .menu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1024px) { .menu { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.item { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 12px; }
.item .pic { position: relative; border-radius: 12px; overflow: hidden; background: var(--muted); }
.item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.item:hover img { transform: scale(1.04); }
.item .add { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); color: var(--fg); box-shadow: 0 1px 2px rgb(9 9 11 / .08), 0 4px 12px -2px rgb(9 9 11 / .16); transition: transform .25s var(--ease), background-color .2s; }
.item:hover .add { transform: scale(1.08); }
.item:active .add { transform: scale(.94); }
.item .add .ico { width: 18px; height: 18px; }
.item .row { display: grid; gap: 2px; margin-top: 10px; }
.item .nm { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .soldtag { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 9999px; background: var(--canvas); color: var(--fg-2); font-size: 12px; font-weight: 500; }
.log .cart.old { opacity: .6; }
.item .pr { font-size: 14.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.item[aria-disabled="true"] { cursor: default; }
.item[aria-disabled="true"] img { filter: grayscale(1); opacity: .6; }
.item[aria-disabled="true"]:hover img { transform: none; }
.item[aria-disabled="true"] .pr { color: var(--fg-4); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .menu li, .frame.flow-frame { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes settle { from { opacity: .4; transform: translateY(32px) scale(.97); } }

/* checks */
.checks { display: grid; gap: 40px; margin-top: 48px; align-items: start; }
@media (min-width: 1024px) { .checks { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 0 14px; padding: 18px 0; color: var(--fg-3); box-shadow: inset 0 1px 0 var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--muted); color: var(--fg-2); font-size: 13px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.steps strong { display: block; color: var(--fg); font-weight: 600; }
.panel { border-radius: 16px; background: var(--subtle); box-shadow: inset 0 0 0 1px var(--line); padding: 24px; }
.panel-h { font-size: 15px; letter-spacing: -0.01em; }
.trace { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.trace li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14.5px; color: var(--fg-2); animation: rise .3s var(--ease) both; }
.trace li .ico { width: 18px; height: 18px; color: var(--accent); }
.trace li.bad, .trace li.bad .ico { color: var(--error); }
.trace li span { flex: 1; }
.trace time { color: var(--fg-4); font-size: 13px; font-variant-numeric: tabular-nums; }
.trace li.empty { animation: none; }

/* workflow canvas, drawn n8n style */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 40px; border-radius: 12px; background: var(--muted); max-width: 100%; }
.tabs button { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--fg-3); font-size: 14px; font-weight: 500; cursor: pointer; transition: color .2s, background-color .2s; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { background: var(--canvas); color: var(--fg); box-shadow: 0 1px 2px rgb(9 9 11 / .08), 0 0 0 1px rgb(9 9 11 / .04); }
.flow-frame { margin-top: 20px; }
.flow { overflow-x: auto; background-color: var(--subtle); background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 20px 20px; }
.flow svg { display: block; min-width: 820px; width: 100%; height: auto; }
.flow .edge { fill: none; stroke: var(--line-hover); stroke-width: 1.5; }
.flow .node .shape { fill: var(--canvas); stroke: var(--line-strong); stroke-width: 1; }
.flow .node.trigger .shape { stroke: var(--fg-4); }
.flow .node .glyph { fill: none; stroke: var(--fg-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.flow .node.ai .glyph { stroke: var(--accent); }
.flow .label { fill: var(--fg); font: 500 12px var(--font); }
.flow .kind { fill: var(--fg-4); font: 400 11px var(--font); }
.flow .port { fill: var(--line-hover); }
.flow-cap { padding: 14px 12px 8px; font-size: 15px; color: var(--fg-3); max-width: 48rem; }

/* closing band */
.band { margin-top: 9rem; background: var(--subtle); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.cta { display: grid; gap: 32px; padding-top: 6rem; padding-bottom: 6rem; align-items: end; }
@media (min-width: 1024px) { .cta { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } .cta .actions { justify-content: flex-end; } }

.foot { padding-top: 3rem; padding-bottom: 4rem; font-size: 14px; color: var(--fg-4); display: grid; gap: 12px; }
.foot a { color: var(--fg-3); text-underline-offset: 3px; }
.credits li a { display: inline-block; padding: 4px 0; }
.foot a:hover { color: var(--accent); }
.credits summary { cursor: pointer; color: var(--fg-3); width: max-content; }
.credits p { margin-top: 10px; }
.credits ul { margin: 8px 0 0; padding-left: 18px; columns: 2 22rem; column-gap: 32px; }
.credits li { break-inside: avoid; margin-bottom: 4px; }

/* hero entrance (portfolio's one authored moment) */
.enter { animation: enter .9s var(--ease) both; }
.hero-copy .enter:nth-child(1) { animation-delay: 80ms; } .hero-copy .enter:nth-child(2) { animation-delay: 160ms; } .hero-copy .enter:nth-child(3) { animation-delay: 240ms; }
.hero-media.enter { animation-delay: 200ms; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* long-form (privacy) */
.prose { max-width: 48rem; padding-top: 5rem; padding-bottom: 6rem; color: var(--fg-2); }
.prose h1 { font-size: clamp(2.25rem, 4vw, 3rem); margin-bottom: 1.4rem; color: var(--fg); }
.prose h2 { font-size: 1.625rem; letter-spacing: -0.03em; margin: 2.4rem 0 .8rem; color: var(--fg); }
.prose p, .prose ul { margin: 0 0 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--fg-4); }
.prose a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: rgb(59 79 216 / .35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose .lede { margin: 0 0 1.4rem; }
.nav-in .btn-2.btn-sm { margin-left: auto; }

/* ------------------------------------------------------------------ chat header in shop mode */
.chat-who { flex: 1; min-width: 0; }
.chat-who h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar.initial { display: grid; place-items: center; background: var(--fg); color: var(--canvas); font-weight: 600; font-size: 17px; flex: none; }
.avatar.initial.sm { width: 32px; height: 32px; border-radius: 8px; font-size: 14px; }
.avatar.initial[hidden] { display: none; }
.chat-bar .btn-sm { height: 40px; padding: 0 14px; font-size: 13px; flex: none; }
.log .chips-inline { align-self: stretch; }
.chips:not([hidden]) { padding-top: 4px; }

/* ------------------------------------------------------------------ the demo studio: two tabs, one stage */
.studio { padding-top: 1rem; }
.studio-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--muted); max-width: 30rem; }
.studio-tabs button { height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-3); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; transition: color .2s, background-color .2s; }
.studio-tabs button:hover { color: var(--fg); }
.studio-tabs button[aria-selected="true"] { background: var(--canvas); color: var(--fg); box-shadow: 0 1px 2px rgb(9 9 11 / .08), 0 0 0 1px rgb(9 9 11 / .04); }
.studio-lead { margin: 14px 0 24px; color: var(--fg-3); max-width: 40rem; }

/* builder form */
.bform { display: grid; gap: 16px; }
.bprogress { font-size: 14px; font-weight: 500; color: var(--fg-3); }
.bstep { margin: 0; padding: 20px; border: 0; border-radius: 16px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; min-width: 0; }
@media (min-width: 768px) { .bstep { padding: 24px; } }
.bstep[hidden] { display: none; }
.bstep legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.bstep legend + * { clear: both; }
.bstep .n { width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: var(--canvas); display: grid; place-items: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 500; color: var(--fg-2); }
.field input, .field textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--canvas); font-size: 16px; line-height: 1.5; box-shadow: var(--lift); transition: border-color .2s, box-shadow .2s; }
@media (min-width: 768px) { .field input, .field textarea { font-size: 15px; } }
.field input { height: 44px; padding: 0 14px; }
.field textarea { resize: vertical; min-height: 64px; }
.field input:hover, .field textarea:hover { border-color: var(--line-hover); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(59 79 216 / .18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.bstep:focus { outline: none; }
@media (max-width: 480px) { .seg.seg-4 { display: grid; grid-template-columns: 1fr 1fr; } }
.hint { font-size: 13px; color: var(--fg-4); margin-top: -6px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--muted); max-width: 100%; }
.seg label { cursor: pointer; position: relative; flex: 1 1 auto; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--fg-3); white-space: nowrap; transition: color .2s, background-color .2s; }
.seg label:hover span { color: var(--fg); }
.seg input:checked + span { background: var(--canvas); color: var(--fg); box-shadow: 0 1px 2px rgb(9 9 11 / .08), 0 0 0 1px rgb(9 9 11 / .04); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.checks-row { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.checks-row .check { min-height: 32px; }
.two { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.parsed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 6px; }
.parsed li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--subtle); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; min-width: 0; }
.parsed .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parsed .pr { font-variant-numeric: tabular-nums; color: var(--fg-3); flex: none; }
.parsed li.out .nm, .parsed li.out .pr { color: var(--fg-4); }
.parsed li.bad { grid-column: 1 / -1; color: var(--error); background: #fef2f2; box-shadow: inset 0 0 0 1px #fecaca; overflow-wrap: anywhere; }
.bactions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.bactions .btn[hidden] { display: none; }
@media (max-width: 767px) { .bactions .btn { flex: 1 1 0; } }

/* side cards */
.summary { border-radius: 16px; background: var(--subtle); box-shadow: inset 0 0 0 1px var(--line); padding: 24px; }
.facts { margin: 14px 0 0; display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 10px 16px; font-size: 14.5px; }
.facts dt { color: var(--fg-4); }
.facts dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.title-sm { font-size: 15px; letter-spacing: -0.01em; margin-top: 24px; }
.nevers { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--fg-2); }
.nevers li { display: flex; gap: 10px; align-items: flex-start; }
.nevers .ico { color: var(--fg-4); margin-top: 4px; }
.lead { display: grid; gap: 4px; }
.lead .actions { margin-top: 12px; gap: 8px; }

@media (max-width: 400px) {
  .wrap { padding-inline: 16px; }
  .consent { padding: 20px 16px; }
  .turnstile { margin: 0 -8px; }
}

/* phones: the demo is the hero. Shorter headline block, photo after the demo. */
@media (max-width: 767px) {
  h1 { font-size: 2.25rem; }
  .hero .lede { font-size: 1.0625rem; }
  .hero-media { display: none; }
  .actions .btn { flex: 1 1 auto; }
}

.cart .btn { white-space: nowrap; }
.cart .pay-note { text-align: center; margin-top: 6px; }

/* ------------------------------------------------------------------ phones (portrait or landscape): the chat opens full screen */
.icon-btn { width: 40px; height: 40px; margin-left: -8px; border: 0; border-radius: 50%; background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:active { background: var(--muted); }
.icon-btn .ico { width: 22px; height: 22px; }
.chat-in { position: relative; }
.chat-open { display: none; }
.new-pill { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 9999px; background: var(--fg); color: var(--canvas); font-size: 13px; font-weight: 500; box-shadow: 0 4px 12px -2px rgb(9 9 11 / .25); cursor: pointer; }
.new-pill[hidden] { display: none; }
.log .pay-wait { display: flex; align-items: center; gap: 8px; }
.oid { white-space: nowrap; }
.log .pay-wait::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--fg-3); animation: spin .9s linear infinite; flex: none; }
.log .pay-wait.stale::before { animation: none; border-color: var(--fg-4); }
@keyframes spin { to { transform: rotate(360deg); } }
.log .note a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  #chat-col:not(.full) .composer, #chat-col:not(.full) .chips { display: none !important; }
  #chat-col:not(.full) .chat-in { height: 440px; min-height: 0; }
  #chat-col:not(.full) .chat-in:has(> #consent:not([hidden])) { height: auto; }
  #chat-col:not(.full) .consent { overflow: visible; }
  #chat-col:not(.full) .cart .btn, #chat-col:not(.full) .cart .pay-note { display: none; }
  #chat-col:not(.full) .log { cursor: pointer; }
  #chat-col:not(.full) .chat-open:not([hidden]) { display: flex; margin: 10px 12px 12px; flex: none; }
  #chat-col:not(.full) .new-pill { display: none; }
  #chat-col.full { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100dvh); z-index: 60; margin: 0; padding: 0; border-radius: 0; box-shadow: none; animation: sheet .28s var(--ease); }
  #chat-col.full .chat-in { height: 100%; min-height: 0; border-radius: 0; box-shadow: none; }
  #chat-col.full .chat-bar { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; }
  #chat-col.full .composer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  html.chat-lock, html.chat-lock body { overflow: hidden; overscroll-behavior: none; }
}
@keyframes sheet { from { transform: translateY(24px); opacity: 0; } }

/* ------------------------------------------------------------------ order card states and the order tracker */
.order-state { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 8px 2px; padding-top: 10px; box-shadow: inset 0 1px 0 var(--line); font-size: 14px; }
.order-state .wait { color: var(--fg-3); }
.order-state .paid { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--fg); }
.order-state .paid .ico { color: var(--accent); }
.order-state a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; }
.progress { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.progress li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14.5px; color: var(--fg-4); }
.progress li + li::before { content: ""; position: absolute; left: 11px; top: -9px; height: 18px; width: 1px; background: var(--line-strong); }
.progress .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--canvas); position: relative; z-index: 1; }
.progress .dot .ico { width: 14px; height: 14px; stroke-width: 2.5; }
.progress li.done { color: var(--fg); }
.progress li.done .dot { background: var(--fg); color: var(--canvas); box-shadow: none; }
.progress li.now { color: var(--fg); font-weight: 500; }
.progress li.now .dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--fg); animation: spin .9s linear infinite; }
.progress-hint { margin-top: 10px; font-size: 14px; color: var(--fg-4); }
.more-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--accent); text-underline-offset: 3px; }
.board li.more { color: var(--fg-4); font-size: 14px; }
.chat-dock { display: none; }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  .chat-dock:not([hidden]) { display: block; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; animation: rise .25s var(--ease) both; }
  .chat-dock .btn { width: 100%; box-shadow: 0 8px 24px -6px rgb(9 9 11 / .35); }
  html.chat-lock .chat-dock { display: none; }
}
@media (min-width: 1024px) { .stage { align-items: stretch; } #chat-col { position: sticky; top: 80px; } }

/* New chat */
.icon-btn.reset-btn { margin-left: 0; color: var(--fg-3); }
.icon-btn.reset-btn:hover { color: var(--fg); background: var(--muted); }
.icon-btn.reset-btn .ico { width: 19px; height: 19px; }

/* ------------------------------------------------------------------ composer: a box that grows with the message */
.composer { align-items: flex-end; }
.composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 136px; padding: 10px 16px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--canvas); font: inherit; font-size: 16px; line-height: 1.45; resize: none; overflow-y: auto; box-shadow: var(--lift); transition: border-color .2s, box-shadow .2s; }
.composer textarea::placeholder { color: var(--fg-4); }
.composer textarea:hover { border-color: var(--line-hover); }
.composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(59 79 216 / .18); }
.composer textarea.flash { animation: flash .9s var(--ease); }
.menu-btn { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--muted); color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.menu-btn:hover { background: var(--line); }
.menu-btn .ico { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ the menu picker inside the chat */
.picker { position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 4; display: flex; flex-direction: column; background: var(--canvas); animation: sheet .25s var(--ease); }
.picker[hidden] { display: none; }
.picker-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; box-shadow: 0 1px 0 var(--line); padding-top: max(12px, env(safe-area-inset-top)); }
.picker-head h3 { font-size: 17px; letter-spacing: -0.02em; }
.picker-head .icon-btn { margin-left: 0; }
.picker-list { list-style: none; margin: 0; padding: 8px 16px; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--line); }
.pick img, .pick .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--muted); }
.pick .ph { display: grid; place-items: center; font-weight: 600; color: var(--fg-3); }
.pick .info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pick .nm { font-size: 15px; font-weight: 500; line-height: 1.35; }
.pick .pr { font-size: 14px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.pick.out { opacity: .55; }
.pick.out img { filter: grayscale(1); }
.stepper { display: flex; align-items: center; gap: 2px; flex: none; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--muted); color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: background-color .15s; }
.stepper button:hover { background: var(--line); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper .ico { width: 16px; height: 16px; stroke-width: 2.25; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.has .plus { background: var(--fg); color: var(--canvas); }
.picker-foot { display: grid; gap: 8px; padding: 12px 16px; box-shadow: 0 -1px 0 var(--line); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.picker-sum { font-size: 14px; color: var(--fg-3); }
.picker-foot .btn { width: 100%; }

/* hero: the demo starts higher on wide screens */
@media (min-width: 1024px) {
  .hero { padding-top: 4rem; padding-bottom: 3rem; }
  .hero-media .well img { aspect-ratio: 16 / 9; }
}

@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  html:has(.chat-dock:not([hidden])) body { padding-bottom: 88px; }
}
@media (max-width: 767px) {
  .hero-row { margin-top: 20px; }
  .hero { padding-bottom: 2rem; }
}

/* the row a photo tap just added */
.pick.just { animation: justadded 1.6s var(--ease); border-radius: 12px; }
@keyframes justadded { 0%, 40% { background: var(--accent-soft); box-shadow: 0 0 0 8px var(--accent-soft); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent, inset 0 -1px 0 var(--line); } }

/* menu list: fade the edge that has more to scroll */
.picker-list { --fa: 0px; --fb: 0px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fa), #000 calc(100% - var(--fb)), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fa), #000 calc(100% - var(--fb)), transparent 100%); }
.picker-list.more-above { --fa: 36px; }
.picker-list.more-below { --fb: 36px; }

/* status line stays on one line */
.chat-bar small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* paid orders stand out on the board */
.status.PAID { color: var(--fg); font-weight: 600; }
/* phones: the workflow as a list of steps */
.steps-list { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 2px; counter-reset: st; background: var(--canvas); }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; padding: 8px 0; box-shadow: inset 0 -1px 0 var(--line); }
.steps-list li::before { content: counter(st); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--fg-2); }
.steps-list li.branch { padding-left: 18px; }
.steps-list .nm { font-weight: 500; font-size: 15px; }
.steps-list .kind { font-size: 13px; color: var(--fg-4); }
@media (max-width: 767px) { .flow { background-image: none; } .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; } .tabs button { flex: none; } }
