/* Demo builder (WIP): the mode switch on the landing, the builder itself, the restaurant's demo
   page and the live phone. Light only, like the sales page. The look follows sunday's Branding
   editor in Figma: Helvetica Neue, pink switches, black pill buttons, grey preview panel. */

/* ---------- Landing entry to the builder ---------- */

.mode-beta { padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); color: #c400b4; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.cust-push { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(260px, 22vw, 340px); margin: 0 0 16px; border-radius: 28px; overflow: hidden; isolation: isolate; background: #ff7bf3 url('../assets/custom-bg.jpg') center / cover no-repeat; color: #111; }
.cust-art { display: flex; flex-wrap: wrap; gap: 10px; padding: clamp(24px, 2.3vw, 40px); }
.cust-art span { padding: 10px 18px; border-radius: 999px; background: var(--c); color: #fff; font-size: clamp(14px, 1.2vw, 18px); font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); transform: rotate(-2deg); }
.cust-art span:nth-child(even) { transform: rotate(2deg) translateY(8px); }
.cust-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 0 clamp(24px, 2.3vw, 40px) clamp(24px, 2.3vw, 40px); }
.cust-kicker { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: 0.75; }
.cust-copy h2 { margin: 0; font-size: clamp(36px, 3.4vw, 64px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
.cust-text { margin: 10px 0 0; max-width: 46ch; font-size: clamp(16px, 1.15vw, 20px); line-height: 1.4; opacity: 0.85; }
.cust-btn { display: inline-flex; align-items: center; gap: 10px; padding: 18px 30px; border-radius: 999px; background: #111; color: #fff; font-size: clamp(17px, 1.3vw, 21px); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 160ms, box-shadow 160ms; }
.cust-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.cust-btn:focus-visible { outline: 2px solid #ff17e9; outline-offset: 3px; }
@media (max-width: 640px) { .cust-btn { width: 100%; justify-content: center; } }


/* ---------- live phone inside a page ---------- */

.emb-phone { flex: none; box-sizing: content-box; width: 402px; height: 874px; padding: 8px; border-radius: 63px; background: #000; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18); transform-origin: center; }
.emb-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 55px; background: #fff; }
/* The restaurant's type on its demos (the brunch demo keeps Uptown's when nothing is chosen). */
:is(.emb-screen, .c-stage) .pat[data-brand] {
  --font-display: var(--brand-fontDisplay, 'Apfel Grotezk', 'Bricolage Grotesque', Inter, system-ui, sans-serif);
  --font-body: var(--brand-fontBody, 'Bricolage Grotesque', Inter, system-ui, sans-serif);
}
:is(.emb-screen, .c-stage) .pat[data-brand]:not([data-screen="receiptDoc"]):not([data-screen="google"]):not([data-screen="googleDone"]) :is(h1, h2, .pat-welcome, .pat-featured h3, .pat-section h3, .pat-product-info h1, .pat-venue-id h1, .pat-nav-title, .pat-tips-title, .pat-menu-title) {
  letter-spacing: var(--brand-hLetter, -0.005em); line-height: var(--brand-hLine, 1.05); text-transform: var(--brand-hCase, none);
}
:is(.emb-screen, .c-stage) .pat[data-brand] .pat-btn { font-family: var(--brand-fontButton, var(--font-body)); }
.b-splash { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.b-splash img { width: 133px; height: 133px; border-radius: 50%; object-fit: cover; }

.c-loading { width: 28px; height: 28px; margin: 40vh auto 0; border: 3px solid rgba(0, 0, 0, 0.1); border-top-color: #111; border-radius: 50%; animation: bd-spin 0.8s linear infinite; }
.c-error { max-width: 36ch; margin: 30vh auto 0; padding: 0 16px; color: rgba(0, 0, 0, 0.6); font: 15px/1.5 'Helvetica Neue', Helvetica, Inter, Arial, sans-serif; text-align: center; }
@keyframes bd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .c-loading { animation: none; } }

/* ---------- builder ---------- */

body.is-builder {
  --bd-ink: #000; --bd-muted: #70707b; --bd-line: #dddde4; --bd-paper: #f6f6f9; --bd-fill: #ededf2; --bd-pink: #ff17e9;
  background: #fff; color: var(--bd-ink); font-family: 'Helvetica Neue', Helvetica, Inter, Arial, sans-serif; letter-spacing: -0.01em;
}
body.is-builder #app { height: 100%; }
.bd :where(button, input, select, textarea) { font: inherit; letter-spacing: inherit; color: inherit; }
.bd :focus-visible { outline: 2px solid var(--bd-ink); outline-offset: 2px; }
.bd { display: grid; grid-template-rows: 80px minmax(0, 1fr) 80px; height: 100%; height: 100dvh; background: #fff; }

.bd-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 32px; border-bottom: 1px solid var(--bd-line); }
.bd-top h1 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.025em; }
.bd-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 8px 14px 8px 8px; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 500; }
.bd-back:hover { background: var(--bd-paper); }
.bd-actions { display: flex; gap: 8px; justify-self: end; }

.btn-outline, .btn-dark { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 22px; border-radius: 48px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), background 140ms; }
.btn-outline { border: 1px solid var(--bd-line); background: #fff; color: #000; }
.btn-dark { border: 0; background: #000; color: #fff; }
.btn-outline:active, .btn-dark:active { transform: scale(0.97); }
@media (hover: hover) { .btn-outline:hover { background: var(--bd-paper); } }
.btn-text { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 48px; background: none; font-weight: 500; cursor: pointer; }
.btn-text:hover { background: var(--bd-paper); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--bd-muted); cursor: pointer; }
.icon-btn:hover { background: rgba(0, 0, 0, 0.06); color: #000; }

.bd-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
.bd-left { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.bd-tabs { display: flex; gap: 0; padding: 24px 24px 0; overflow-x: auto; scrollbar-width: none; }
.bd-tabs::-webkit-scrollbar { display: none; }
.bd-tab { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 9px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--bd-muted); font-weight: 500; font-size: 16px; cursor: pointer; white-space: nowrap; }
.bd-tab i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bd-fill); color: #757575; font: 12px/1 'Helvetica Neue', Helvetica, Inter, sans-serif; }
.bd-tab.is-on { color: #000; border-bottom-color: #000; }
.bd-tab.is-on i { background: #000; color: #fff; }
.bd-form { flex: 1; min-height: 0; overflow-y: auto; padding: 32px 24px 48px; scroll-padding-top: 16px; }
.bd-h { margin: 0 0 16px; font-size: 32px; line-height: 1; font-weight: 500; letter-spacing: -0.05em; }
.bd-intro { margin: 0 0 32px; max-width: 62ch; color: var(--bd-muted); font-size: 16px; line-height: 1.5; letter-spacing: -0.03em; }
.bd-sec { margin-bottom: 32px; }
.bd-sec h3 { margin: 0 0 12px; font-size: 24px; font-weight: 500; letter-spacing: -0.04em; }
.bd-desc { margin: -4px 0 16px; max-width: 62ch; color: var(--bd-muted); font-size: 15px; line-height: 1.5; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 1px solid var(--bd-line); border-radius: 8px; }

/* outlined fields: the label sits on the border */
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld-box { position: relative; display: block; border: 1px solid var(--bd-line); border-radius: 8px; background: #fff; transition: border-color 140ms; }
.fld-box:focus-within { border-color: #000; box-shadow: 0 0 0 1px #000; }
.fld-l { position: absolute; top: -8px; left: 11px; padding: 0 4px; background: #fff; color: var(--bd-muted); font-size: 12px; line-height: 14px; pointer-events: none; }
.fld-box input:not([type="color"]), .fld-box select, .fld-box textarea { display: block; width: 100%; min-width: 0; padding: 16px 12px; border: 0; border-radius: 8px; background: none; font-size: 16px; line-height: 24px; outline: 0; }
.fld-box textarea { resize: vertical; min-height: 88px; }
.fld-box input::placeholder, .fld-box textarea::placeholder { color: #6b6b76; opacity: 1; }
.fld-box--select select { appearance: none; padding-right: 40px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%2370707b'/%3E%3C/svg%3E") right 10px center / 24px no-repeat; }
.fld-box--colour { display: flex; align-items: center; padding-right: 12px; }
.fld-swatch { flex: none; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.fld-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.fld-swatch::-webkit-color-swatch { border: 0; border-radius: 50%; }
.fld-hint { margin: 0; padding: 0 2px; color: var(--bd-muted); font-size: 13px; line-height: 1.4; }
.fld--short { max-width: 200px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--bd-fill); color: #55555f; font-size: 11px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.fld-box .tag { position: absolute; top: 14px; right: 12px; }
.fld-box--select .tag { right: 38px; }
.tag--soon { background: #fff3d6; color: #7a5600; }
.tag--live { background: #dff5e6; color: #14672e; }
.tag--figma { background: rgba(255, 23, 233, 0.12); color: #b0009f; }
.tag--demo { background: var(--bd-fill); color: #55555f; }

/* switch */
.tgl { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl i { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); transition: background 160ms; }
.tgl i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1); }
.tgl input:checked + i { background: var(--bd-pink); }
.tgl input:checked + i::after { transform: translateX(18px); }
.tgl input:focus-visible + i { outline: 2px solid #000; outline-offset: 2px; }
.tgl span { display: flex; flex-direction: column; gap: 2px; }
.tgl b { font-weight: 500; font-size: 18px; letter-spacing: -0.03em; }
.tgl small { color: var(--bd-muted); font-size: 14px; }
.tgl .tag { margin-left: auto; }

/* uploader */
.up { display: flex; flex-direction: column; gap: 12px; }
.up-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.up-head b { flex-basis: 100%; font-size: 16px; font-weight: 500; letter-spacing: -0.03em; }
.up-head span { color: var(--bd-muted); font-size: 14px; }
.up-row { display: flex; gap: 8px; align-items: stretch; }
.up-thumb { flex: none; background: center / cover var(--bd-fill); }
.up-thumb--square { width: 80px; height: 80px; background-size: contain; background-repeat: no-repeat; }
.up-thumb--round { width: 80px; height: 80px; border-radius: 50%; }
.up-thumb--wide { width: 120px; height: 80px; border-radius: 4px; }
.up-file { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 12px 8px 12px 16px; border-radius: 4px; background: var(--bd-paper); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.04); }
.up-file > div { flex: 1; min-width: 0; }
.up-file p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.up-file small { color: var(--bd-muted); font-size: 13px; }
.up-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 23, 233, 0.12); color: var(--bd-pink); }
.up-drop { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 96px; padding: 16px; border: 1px dashed #c6c6d0; border-radius: 8px; background: var(--bd-paper); font-size: 15px; cursor: pointer; }
.up-drop u { color: var(--bd-pink); text-underline-offset: 3px; }
.up-drop:hover { border-color: var(--bd-pink); }

/* fonts */
.fnt { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--bd-line); border-radius: 8px; }
.fnt + .fnt { margin-top: 0; }
.fnt-row { display: flex; gap: 8px; align-items: center; }
.fnt-row .fld { flex: 1; }
.fnt-adv summary { cursor: pointer; font-weight: 500; padding: 4px 0; }
.fnt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 12px; }
.fnt-grid .fld--short { max-width: none; }
.stack > .btn-outline { align-self: flex-start; }

/* accessibility bar */
.a11y { padding: 16px; border-radius: 8px; background: var(--bd-paper); }
.a11y-bars { display: flex; gap: 8px; margin-bottom: 14px; }
.a11y-bars i { flex: 1; height: 4px; border-radius: 2px; background: #1a7f37; }
.a11y-bars i.is-warn { background: #d98e04; }
.a11y-bars i.is-bad { background: #d1242f; }
.a11y p { margin: 0; font-size: 15px; }

/* socials, universe, bill, soon */
.soc { display: flex; flex-direction: column; gap: 12px; }
.soc-row { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--bd-line); border-radius: 8px; }
.soc-row.is-on { border-color: var(--bd-pink); }
.uni { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.uni-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1px solid var(--bd-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: border-color 140ms, background 140ms; }
.uni-card b { font-size: 17px; font-weight: 500; }
.uni-card small { color: var(--bd-muted); font-size: 13px; }
.uni-card em { margin-top: 6px; color: #55555f; font-size: 12px; font-style: normal; }
.uni-card.is-on { border-color: #000; box-shadow: 0 0 0 1px #000; }
.uni-card:disabled { opacity: 0.5; cursor: not-allowed; background: var(--bd-paper); }
.uni-sw { display: flex; margin-bottom: 8px; }
.uni-sw i { width: 22px; height: 22px; margin-right: -6px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
.bill-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.bill-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; padding: 10px 2px; border-bottom: 1px solid var(--bd-line); font-size: 15px; }
.bill-list li span:first-child { color: var(--bd-muted); }
.bill-total { display: flex; justify-content: space-between; margin: 12px 2px; font-size: 17px; }
.bill-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 108px 36px; gap: 8px; align-items: center; margin-bottom: 12px; }
.bill-actions { display: flex; gap: 8px; align-items: center; }
.bill.is-edit, .bill { display: block; }
.soon { position: relative; padding: 18px 16px; border: 1px dashed #c6c6d0; border-radius: 8px; background: var(--bd-paper); }
.soon b { font-size: 17px; font-weight: 500; }
.soon p { margin: 6px 0 0; max-width: 54ch; color: var(--bd-muted); font-size: 14px; line-height: 1.45; }
.soon .tag { position: absolute; top: 16px; right: 16px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* right panel */
.bd-right { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; min-height: 0; padding: 24px 16px 20px; background: var(--bd-paper); }
.bd-phone { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bd-views { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--bd-line); border-radius: 8px; background: #fff; order: 2; }
.bd-views[hidden] { display: none; }
.bd-views button { padding: 6px 14px; border: 0; border-radius: 6px; background: none; color: var(--bd-muted); font-size: 14px; cursor: pointer; }
.bd-views button.is-on { background: #fff; color: #000; box-shadow: 0 0 0 1px var(--bd-line), 0 1px 3px rgba(0, 0, 0, 0.12); }
.bd-hub { flex: 1; min-height: 0; width: 100%; }
.bd-hub[hidden], .bd-phone[hidden] { display: none; }
.bd-hub-frame { height: 100%; overflow: auto; border: 1px solid var(--bd-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); pointer-events: none; }
.bd-hub-frame:hover { pointer-events: none; }

.bd-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 32px; border-top: 1px solid var(--bd-line); }
.bd-note { flex: 1; }
.bd-progress { position: absolute; inset: -1px 0 auto 0; display: flex; gap: 8px; }
.bd-progress i { flex: 1; height: 4px; background: var(--bd-line); }
.bd-progress i.is-on { background: #000; }

.bd-toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: #000; color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); z-index: 30; }
.bd-toast[hidden] { display: none; }

/* field map */
.map { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.4); }
.map[hidden] { display: none; }
.map-card { display: flex; flex-direction: column; width: min(880px, 100%); max-height: 100%; border-radius: 16px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); overflow: hidden; }
.map-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 14px; border-bottom: 1px solid var(--bd-line); }
.map-card h2 { margin: 0 0 4px; font-size: 24px; font-weight: 500; letter-spacing: -0.04em; }
.map-card header p { margin: 0; max-width: 62ch; color: var(--bd-muted); font-size: 14px; line-height: 1.45; }
.map-body { overflow: auto; padding: 8px 20px 24px; }
.map-body h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 500; }
.map-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.map-body td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--bd-line); vertical-align: top; }
.map-body td small { display: block; color: var(--bd-muted); font-size: 12px; }
.map-body code { color: #55555f; font-size: 12px; }

@media (max-width: 900px) {
  .bd { grid-template-rows: 64px minmax(0, 1fr) 72px; }
  .bd-top { padding: 0 12px; grid-template-columns: auto 1fr auto; }
  .bd-top h1 { display: none; }
  .bd-back span { display: none; }
  .bd-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 300px; }
  .bd-right { order: 2; }
  .bd-foot { padding: 0 12px; }
  .uni { grid-template-columns: 1fr; }
  .bill-row { grid-template-columns: minmax(0, 1fr) 60px 90px 32px; }
  .fnt-grid { grid-template-columns: 1fr; }
}

/* ---------- the restaurant's demo page ---------- */

body.is-hub { background: #fff; }
/* Layout: a branded hero (the restaurant's own phone, running live, on its cover photo), then one card per demo, then three plain reasons. */
.hub { container-type: inline-size; min-height: 100%; background: var(--h-bg); color: var(--h-ink); font-family: var(--h-body); -webkit-font-smoothing: antialiased; }
.hub > * { --pad: clamp(16px, 4.5cqi, 64px); }
.hub-top, .hub-hero, .hub-demos, .hub-perks, .hub-foot { max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.hub-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.hub-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--h-display); font-size: 20px; line-height: 1; }
.hub-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hub-x { display: inline-flex; align-items: center; gap: 10px; color: color-mix(in srgb, var(--h-ink) 55%, transparent); font-size: 14px; }
.hub-x img { display: block; height: 20px; width: auto; }

.hub-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(24px, 4cqi, 64px); align-items: center; padding-block: 16px 56px; }
.hub-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.hub-eyebrow { margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--h-soft); color: color-mix(in srgb, var(--h-ink) 80%, transparent); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.hub h1 { margin: 0 0 18px; font-family: var(--h-display); font-size: clamp(38px, 6.2cqi, 80px); font-weight: 400; line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
.hub-lead { max-width: 46ch; margin: 0; color: color-mix(in srgb, var(--h-ink) 76%, transparent); font-size: clamp(16px, 1.5cqi, 19px); line-height: 1.5; }
.hub-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hub-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--h-primary); color: var(--h-on); font: 600 16px/1 var(--h-body); text-decoration: none; cursor: pointer; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.hub-btn:active { transform: scale(0.97); }
.hub-btn--ghost { background: transparent; color: var(--h-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--h-ink) 35%, transparent); }
.hub-qr { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--h-soft); }
.hub-qr-code { flex: none; width: 76px; height: 76px; padding: 6px; border-radius: 10px; background: #fff; }
.hub-qr-code svg { display: block; width: 100%; height: 100%; }
.hub-qr b { display: block; font-size: 15px; }
.hub-qr small { display: block; margin-top: 2px; color: color-mix(in srgb, var(--h-ink) 62%, transparent); font-size: 13px; }

.hub-stage { position: relative; display: flex; flex-direction: column; align-items: center; height: clamp(540px, 52cqi, 660px); padding: 20px 12px 16px; border-radius: clamp(22px, 2.6cqi, 36px); overflow: hidden; background: linear-gradient(color-mix(in srgb, var(--h-primary) 30%, transparent), color-mix(in srgb, var(--h-ink) 45%, transparent)), var(--h-cover) center / cover, var(--h-soft); }
.hub-live { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.hub-views { display: inline-flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hub-views button { min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #141414; font: 600 14px/1 var(--h-body); cursor: pointer; }
.hub-views button[aria-pressed="true"] { background: #141414; color: #fff; }

.hub-demos { padding-block: 24px 40px; }
.hub-sechead { display: flex; flex-direction: column; gap: 8px; max-width: 60ch; margin-bottom: 24px; }
.hub-sechead h2 { margin: 0; font-family: var(--h-display); font-size: clamp(28px, 3.6cqi, 46px); font-weight: 400; line-height: 1.05; text-wrap: balance; }
.hub-sechead p { margin: 0; color: color-mix(in srgb, var(--h-ink) 70%, transparent); font-size: 16px; line-height: 1.5; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hub-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "visual visual" "ico body" ". cta"; gap: 10px 18px; padding: 22px; overflow: hidden; border-radius: 24px; background: var(--h-soft); box-shadow: inset 0 0 0 1px var(--h-line); color: inherit; text-decoration: none; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 200ms; }
@media (hover: hover) { .hub-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--h-primary); } }
.hub-card:active { transform: scale(0.99); }
.hub-card-visual { grid-area: visual; margin: -22px -22px 6px; height: 250px; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--h-primary) 22%, var(--h-bg)), color-mix(in srgb, var(--h-primary) 8%, var(--h-bg))); box-shadow: inset 0 -1px 0 var(--h-line); }
.hub-card-thumb { display: block; width: 100%; height: 100%; padding-top: 22px; box-sizing: border-box; }
.hub-card-thumb .mini-phone { display: flex; justify-content: center; align-items: flex-start; width: 100%; height: 330px; pointer-events: none; }
.hub-card-thumb .emb-phone { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22); }
@media (hover: hover) { .hub-card-thumb { transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); } .hub-card:hover .hub-card-thumb { transform: translateY(-6px); } }
.hub-card-ico { grid-area: ico; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--h-primary); color: var(--h-on); }
.hub-card-body { grid-area: body; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hub-card-kind { color: color-mix(in srgb, var(--h-ink) 58%, transparent); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.hub-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-family: var(--h-display); font-size: 26px; font-weight: 400; line-height: 1.1; }
.hub-card-text { color: color-mix(in srgb, var(--h-ink) 72%, transparent); font-size: 15px; line-height: 1.45; }
.hub-card-cta { grid-area: cta; justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: var(--h-ink); font-weight: 600; font-size: 16px; text-decoration: underline; text-decoration-color: var(--h-primary); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hub-card-cta svg { transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) { .hub-card:hover .hub-card-cta svg { transform: translateX(4px); } }
.hub-tag { padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--h-ink) 10%, transparent); font-family: var(--h-body); font-size: 11px; font-weight: 600; }

.hub-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; padding-block: 32px 48px; }
.hub-perk { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 20px; border-top: 1px solid var(--h-line); font-size: 15px; line-height: 1.45; color: color-mix(in srgb, var(--h-ink) 72%, transparent); }
.hub-perk b { color: var(--h-ink); font-family: var(--h-display); font-size: 20px; font-weight: 400; }
.hub-perk-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; background: var(--h-soft); color: var(--h-primary); }
.hub-perk-ico svg { width: 22px; height: 22px; }
.hub-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 32px; border-top: 1px solid var(--h-line); color: color-mix(in srgb, var(--h-ink) 55%, transparent); font-size: 13px; }
.hub :focus-visible { outline: 2px solid var(--h-primary); outline-offset: 3px; }

@container (max-width: 860px) {
  .hub-hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .hub-stage { height: 540px; }
  .hub-btn--ghost { min-height: 44px; }
  .hub-qr { display: none; }
  .hub-grid { grid-template-columns: minmax(0, 1fr); }
  .hub-perks { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 480px) {
  .hub-ctas .hub-btn { flex: 1 1 100%; justify-content: center; }
  .hub-card { padding: 18px; }
  .hub-card-visual { margin: -18px -18px 6px; height: 220px; }
  .hub-card-thumb .mini-phone { height: 300px; }
}
.hub--embedded .hub-hero { grid-template-columns: minmax(0, 1fr); }
.hub--embedded .hub-stage { height: 520px; }
@media (prefers-reduced-motion: reduce) { .hub-card, .hub-btn { transition: none; } }

/* Universe picker on a demo tile (WIP) */
.uni-pick { display: flex; flex-direction: column; gap: 6px; padding: 2px 2px 4px; }
.uni-pick-l { padding-left: 6px; color: var(--b-muted); font-size: 12px; font-weight: 500; }
.uni-pick-row { display: flex; flex-wrap: wrap; gap: 4px; }
.uni-pick-row button { padding: 6px 11px; border: 0; border-radius: 999px; background: var(--b-track); color: var(--b-ink); font: 500 12px/1.1 var(--b-font); cursor: pointer; transition: background-color 160ms, color 160ms; }
.uni-pick-row button[aria-checked="true"] { background: var(--b-primary); color: var(--b-on-primary, #111); }
.uni-pick-row button:disabled { opacity: 0.4; cursor: not-allowed; }
.uni-pick-row button:focus-visible { outline: 2px solid var(--b-pink); outline-offset: 2px; }

/* Universe cards: the restaurant's own logo on its colour */
.uni-card { background: #fff; gap: 2px; }
.uni-card:disabled { background: var(--bd-paper); }
.uni-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 10px; }
.uni-logo { flex: none; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.1); transition: transform 160ms; }
.uni-card:hover .uni-logo { transform: scale(1.05) rotate(-2deg); }
.uni-top .uni-sw { margin-bottom: 0; }
.uni-card .uni-saved { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: #111; color: #fff; font-size: 11px; }

/* Universes still to design: greyed out */
.uni-card.is-todo { background: var(--bd-paper); }
.uni-card.is-todo > b, .uni-card.is-todo > small { color: #9a9aa3; }
.uni-card.is-todo .uni-logo, .uni-card.is-todo .uni-sw { filter: grayscale(1); opacity: 0.55; }
.uni-card .uni-todo { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: #e6e6ea; color: #7a7a84; font-size: 11px; }

/* The universe (the restaurant type) is the card's headline; the example restaurant sits under it */
.uni-card .uni-name { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.uni-card .uni-rest { margin-top: 2px; font-size: 13px; font-weight: 500; color: #55555f; }
.uni-card.is-todo > .uni-name { color: #8a8a93; }
.uni-card.is-todo > .uni-rest { color: #a4a4ac; }

/* Range field (headline size) */
.fld-box--range { display: flex; align-items: center; gap: 10px; }
.fld-box--range input[type="range"] { flex: 1; min-width: 0; accent-color: #111; }
.fld-box--range output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.fnt-grid .fld:has(input[type="range"]) { grid-column: 1 / -1; }
