:root { --orange:#ff4d00; --orange-soft:#fff1ea; --ink:#000; --ink-2:#212121; --body:#616161; --muted:#9e9e9e; --line:#ececec; --panel:#f7f7f7; --white:#fff; --radius:20px; --max:1120px; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--white); color:var(--body); font:400 16px/1.6 Roboto,"Noto Sans SC","PingFang SC",system-ui,-apple-system,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4 { color:var(--ink); margin:0; font-weight:700; letter-spacing:-.01em; }
h1 { font-size:clamp(32px,4.6vw,52px); line-height:1.1; max-width:880px; }
h2 { font-size:22px; line-height:1.25; }
h3 { font-size:18px; font-weight:500; }
h4 { font-size:13px; font-weight:500; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; margin:18px 0 6px; }
p { margin:0; }
.wrap { max-width:var(--max); margin:0 auto; padding:0 24px; }
.accent { color:var(--orange); }
.eyebrow { color:var(--orange); font-weight:500; display:block; margin-bottom:14px; }
.lead { font-size:18px; max-width:680px; margin-top:18px; }
.fine { font-size:14px; color:var(--muted); }
.error { color:#c62828; min-height:22px; margin-top:10px; }
.btn { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:13px 24px; font:500 15px/1 inherit; font-family:inherit; text-decoration:none; border:1px solid transparent; cursor:pointer; }
.btn-primary { background:var(--orange); color:#fff; }
.btn-primary:hover { background:#e64500; }
.btn-ghost { background:#fff; color:var(--ink); border-color:#d9d9d9; }
.btn-ghost:hover { border-color:var(--ink); }
.btn:disabled { opacity:.4; cursor:default; }
.btn:focus-visible,.text-button:focus-visible,input:focus-visible,select:focus-visible,[role=tab]:focus-visible { outline:2px solid var(--orange); outline-offset:2px; }
.text-button { background:none; border:0; font:500 14px/1 inherit; font-family:inherit; color:var(--ink-2); cursor:pointer; padding:8px; }

.top { position:sticky; top:0; z-index:20; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.nav { display:flex; align-items:center; justify-content:space-between; height:64px; }
.nav-actions { display:flex; align-items:center; gap:12px; }
.nav .btn { padding:10px 18px; font-size:14px; }
.logo { display:flex; align-items:center; gap:8px; font-weight:700; font-size:22px; color:var(--ink); text-decoration:none; letter-spacing:-.02em; }
.logo i { width:20px; height:20px; border-radius:6px 6px 6px 0; border:4px solid var(--orange); display:block; }
.logo span { color:var(--orange); font-weight:500; margin-left:2px; }

.gate { padding:96px 0; max-width:560px; }
.gate form { display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
input,select { font:400 16px/1.2 inherit; font-family:inherit; color:var(--ink); border:1px solid #d9d9d9; border-radius:12px; padding:12px 14px; background:#fff; width:100%; }
.gate input { flex:1 1 240px; width:auto; }

.hero { padding:56px 0 40px; }
.stage { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:24px; align-items:stretch; }
.card { border:1px solid var(--line); border-radius:var(--radius); background:#fff; padding:28px; }
.call { display:flex; flex-direction:column; gap:14px; background:var(--panel); border-color:transparent; }
.fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.fields label span { display:block; font-size:13px; color:var(--body); margin-bottom:6px; }
.actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:4px; }

.orb { display:flex; align-items:center; gap:6px; height:56px; }
.orb span { width:6px; height:14px; border-radius:3px; background:#d0d0d0; }
body.live .orb span { background:var(--orange); animation:wave 1.1s ease-in-out infinite; }
body.live .orb span:nth-child(2){animation-delay:.12s} body.live .orb span:nth-child(3){animation-delay:.24s} body.live .orb span:nth-child(4){animation-delay:.36s} body.live .orb span:nth-child(5){animation-delay:.48s}
@keyframes wave { 0%,100%{height:14px} 50%{height:46px} }
@media (prefers-reduced-motion:reduce) { body.live .orb span { animation:none; height:30px; } }

.panel { display:flex; flex-direction:column; padding:0; overflow:hidden; min-height:460px; }
.tabs { display:flex; border-bottom:1px solid var(--line); padding:0 16px; }
[role=tab] { background:none; border:0; border-bottom:2px solid transparent; font:500 15px/1 inherit; font-family:inherit; color:var(--muted); padding:18px 14px 16px; cursor:pointer; margin-bottom:-1px; }
[role=tab][aria-selected=true] { color:var(--ink); border-bottom-color:var(--orange); }
[role=tab] b { display:inline-block; min-width:20px; padding:2px 6px; border-radius:999px; background:var(--orange); color:#fff; font-size:12px; }
[role=tab] b:empty { display:none; }
.pane { padding:22px 28px 28px; overflow-y:auto; flex:1; max-height:520px; }
.empty { color:var(--muted); }
.utterance { margin-bottom:14px; color:var(--ink-2); }
.utterance b { display:block; font-size:12px; font-weight:500; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
.utterance.assistant b { color:var(--orange); }
.line,.dish { display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); color:var(--ink-2); align-items:center; }
.line strong { display:block; font-weight:500; color:var(--ink); }
.price { white-space:nowrap; color:var(--ink); font-variant-numeric:tabular-nums; }
.dish span:first-of-type { flex:1; }
.dish img { width:44px; height:44px; border-radius:10px; object-fit:cover; background:var(--panel); }
.dish.out { color:var(--muted); } .dish.out .price { color:var(--muted); }
#order-meta { margin-top:12px; }
.totals { margin-top:14px; text-align:right; font-variant-numeric:tabular-nums; }
#order-total { font-size:20px; font-weight:700; color:var(--ink); margin-top:6px; }

.confirm { margin-top:24px; background:var(--orange-soft); border-color:transparent; }
.confirm.bad { background:var(--panel); }
.confirm .lead { margin:10px 0 0; }
.confirm .btn { margin-top:20px; }

.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; padding:72px 0 32px; }
.steps b { display:inline-flex; width:32px; height:32px; align-items:center; justify-content:center; border-radius:50%; background:var(--orange-soft); color:var(--orange); font-weight:500; margin-bottom:14px; }
.steps p { margin-top:8px; }
.foot { padding:24px 0 64px; max-width:760px; }

@media (max-width:900px) { .stage,.steps { grid-template-columns:1fr; } .hero { padding-top:36px; } .panel { min-height:380px; } }
@media (max-width:520px) { .fields { grid-template-columns:1fr; } .card { padding:22px; } .pane { padding:18px 22px 22px; } .nav .btn { padding:9px 14px; } }

/* confirmation page and phone demo */
.narrow { max-width:640px; }
.confirm-page main { padding-top:32px; padding-bottom:64px; display:grid; gap:20px; }
.confirm-page h1 { font-size:28px; }
.notice { background:var(--orange-soft); color:var(--ink-2); border-radius:12px; padding:12px 16px; font-size:14px; }
.wide { width:100%; margin-top:22px; }
#total { font-size:20px; font-weight:700; color:var(--ink); margin-top:6px; }
.cta h2 { margin-bottom:8px; } .cta .btn { margin-top:18px; }
.register label { display:block; } .register label span { display:block; font-size:13px; color:var(--body); margin-bottom:6px; }
.register .consent { display:flex; gap:10px; align-items:flex-start; font-size:14px; } .register .consent input { width:auto; margin-top:4px; }
.dial { font-size:30px; font-weight:700; color:var(--ink); letter-spacing:-.01em; text-decoration:none; display:block; margin:6px 0; }
.register form,#dial { display:flex; flex-direction:column; gap:12px; }

/* store picker */
.stores { padding:0 0 28px; } .stores h2 { margin-bottom:16px; }
.store-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.store-card { text-align:left; display:flex; flex-direction:column; gap:6px; padding:22px; border-radius:var(--radius); border:1px solid var(--line); background:#fff; cursor:pointer; font:inherit; color:var(--body); }
.store-card strong { color:var(--ink); font-size:19px; font-weight:500; } .store-card .eyebrow { margin:0; font-size:13px; } .store-emoji { font-size:28px; line-height:1; }
.store-card:hover { border-color:#bdbdbd; } .store-card[aria-checked=true] { border-color:var(--orange); box-shadow:0 0 0 1px var(--orange); background:var(--orange-soft); }
.store-card:focus-visible { outline:2px solid var(--orange); outline-offset:2px; }

#closed { display:flex; flex-direction:column; gap:12px; align-items:flex-start; }

/* invitation page: restaurants, numbers and menus; no product pitch */
.invite-mode .steps,.invite-mode .nav-actions .btn { display:none; }
/* sales tool */
.invite-tool main { display:grid; gap:20px; padding-top:32px; padding-bottom:64px; } .invite-tool h1 { font-size:26px; margin-bottom:8px; }
.stack { display:flex; flex-direction:column; gap:14px; margin-top:18px; } .stack label span,.label { display:block; font-size:13px; color:var(--body); margin-bottom:6px; }
.store-options { display:grid; gap:8px; } .store-option { display:grid; grid-template-columns:auto 1fr; gap:2px 10px; align-items:center; padding:12px 14px; border:1px solid var(--line); border-radius:12px; cursor:pointer; }
.store-option input { width:auto; grid-row:1 / 3; } .store-option span:first-of-type { color:var(--ink); font-weight:500; } .store-option .fine { grid-column:2; }
textarea { font:400 15px/1.5 inherit; font-family:inherit; color:var(--ink); border:1px solid #d9d9d9; border-radius:12px; padding:12px 14px; width:100%; resize:vertical; }
#result label { display:block; margin-top:16px; } #result .actions { margin:18px 0 10px; } #recent-list p { padding:8px 0; border-bottom:1px solid var(--line); }

#feishu { margin-top:18px; }
/* Phone demo in Peblla's own style: white, orange #ff4d00, rounded cards, pill buttons.
   A restaurant header with the number to call, a few things to say, then the menu as cards. */
.phone-mode .panel,.phone-mode .orb,.resto-tagline,.resto-meta { display:none; }
.phone-mode #experience { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:24px; align-items:stretch; padding-top:24px; }
.phone-mode #experience > * { grid-column:1 / -1; min-width:0; }
.phone-mode .stores { order:-1; padding:0; } .phone-mode #experience > .hero { grid-column:1; background:var(--panel); border-radius:28px; padding:44px; display:flex; flex-direction:column; justify-content:center; }
.phone-mode #experience > .stage { grid-column:2; display:block; } .phone-mode #phone-card { position:static; height:100%; background:#fff; border:1px solid var(--line); border-radius:28px; padding:32px; display:flex; flex-direction:column; justify-content:center; gap:14px; box-shadow:0 18px 48px rgba(0,0,0,.06); }
.phone-mode .hero h1 { font-size:clamp(34px,4.4vw,52px); } .phone-mode .resto-tagline { display:block; font-size:19px; color:var(--ink-2); margin-top:14px; max-width:640px; }
.phone-mode .resto-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; } .resto-meta span { font-size:14px; color:var(--ink-2); background:#fff; border:1px solid var(--line); border-radius:999px; padding:6px 14px; }
.invite-mode .hero .eyebrow,.invite-mode .hero .lead,.invite-mode [data-t=title_a],.invite-mode [data-t=title_b] { display:none; } .invite-mode .hero h1 .accent { color:var(--ink); }
#call-box { display:flex; flex-direction:column; gap:12px; } #call-box h2 { font-size:14px; font-weight:500; color:var(--orange); letter-spacing:.02em; }
.dial { font-size:clamp(30px,3.4vw,40px); font-weight:700; color:var(--ink); letter-spacing:-.01em; text-decoration:none; line-height:1.1; } .wide { width:100%; margin-top:4px; }
#register-box summary { cursor:pointer; color:var(--orange); font-weight:500; padding:4px 0; } #register-box form { margin-top:12px; } #closed { display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.invite-mode .stores h2 { font-size:13px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; }
.invite-mode .store-grid { display:flex; flex-wrap:wrap; gap:8px; } .invite-mode .store-card { flex-direction:row; align-items:center; gap:8px; padding:9px 18px; border-radius:999px; } .invite-mode .store-card .fine,.invite-mode .store-card .eyebrow { display:none; }
.invite-mode .store-card strong { font-size:15px; } .invite-mode .store-emoji { font-size:18px; }
.try-section h2,.board-head h2 { font-size:24px; } .try-section { padding-top:16px; } .try-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:16px; }
.try-card { background:var(--orange-soft); border-radius:20px; padding:20px 22px; display:flex; gap:14px; align-items:flex-start; } .try-step { flex:0 0 28px; height:28px; border-radius:50%; background:var(--orange); color:#fff; font-size:14px; font-weight:500; display:flex; align-items:center; justify-content:center; }
.try-line { color:var(--ink); font-size:16px; line-height:1.45; }
.menu-board { padding-top:24px; } .board-head { display:flex; align-items:center; gap:20px; flex-wrap:wrap; position:sticky; top:64px; z-index:5; background:rgba(255,255,255,.96); backdrop-filter:blur(8px); padding:14px 0; }
.board-nav { display:flex; gap:8px; flex-wrap:wrap; } .chip { font-size:14px; color:var(--ink-2); text-decoration:none; padding:8px 16px; border-radius:999px; background:var(--panel); } .chip:hover { background:var(--orange-soft); color:var(--orange); }
.board-section { padding-top:28px; scroll-margin-top:130px; } .section-title { display:flex; align-items:baseline; gap:12px; margin-bottom:16px; } .section-title h3 { font-size:20px; font-weight:700; color:var(--ink); }
.board-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.item { display:flex; gap:18px; padding:20px; border:1px solid var(--line); border-radius:20px; background:#fff; align-items:flex-start; transition:box-shadow .15s,border-color .15s; } .item:hover { border-color:#dcdcdc; box-shadow:0 10px 28px rgba(0,0,0,.06); } .item.out { opacity:.5; }
.thumb { flex:0 0 72px; height:72px; border-radius:16px; background:var(--orange-soft); display:flex; align-items:center; justify-content:center; font-size:34px; overflow:hidden; } .thumb img { width:100%; height:100%; object-fit:cover; }
.item-body { flex:1; min-width:0; } .item-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; } .item-head strong { font-size:17px; font-weight:500; color:var(--ink); line-height:1.3; }
.item-head .price { font-size:17px; font-weight:700; color:var(--ink); white-space:nowrap; } .price small { font-size:12px; font-weight:400; color:var(--muted); }
.desc { margin-top:4px; font-size:14px; color:var(--body); line-height:1.5; }
.sizes { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; } .size { font-size:13px; color:var(--ink-2); border:1px solid #e0e0e0; border-radius:999px; padding:4px 12px; display:inline-flex; gap:8px; } .size b { color:var(--orange); font-weight:500; }
.choice-line { margin-top:10px; font-size:13px; line-height:1.55; color:var(--body); } .choice-line b { display:block; font-size:12px; font-weight:500; letter-spacing:.03em; color:var(--muted); text-transform:uppercase; margin-bottom:1px; } .choice-line.req b { color:var(--orange); }
@media (max-width:900px) { .phone-mode #experience,.board-grid,.try-grid { grid-template-columns:1fr; } .phone-mode #experience > .hero,.phone-mode #experience > .stage { grid-column:1; } .phone-mode #experience > .hero { padding:28px; } }
@media (max-width:520px) { .item { padding:16px; gap:14px; } .thumb { flex-basis:56px; height:56px; font-size:26px; } .phone-mode #phone-card { padding:24px; } }
.nav .btn { white-space:nowrap; }
@media (max-width:520px) { .nav { gap:8px; } .logo { font-size:19px; } .nav .language { padding:7px 6px; font-size:13px; } .nav .btn { padding:9px 12px; font-size:13px; } .nav-actions { gap:8px; } }
