/* RapidDemo shell — dark, brand teal → blue. The apps inside the frames keep their own styles. */
:root {
    --bg: #0A1419;
    --bg-2: #0E1C23;
    --bg-3: #13252E;
    --card: rgba(255, 255, 255, .035);
    --card-2: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #EAF3F6;
    --soft: #94A9B2;
    --mute: #6A8089;
    --teal: #47C4C0;
    --blue: #6990FF;
    --violet: #9B7BFF;
    --amber: #F5B84B;
    --green: #3DD68C;
    --grad: linear-gradient(135deg, #47C4C0 0%, #6990FF 100%);
    --grad-soft: linear-gradient(135deg, rgba(71, 196, 192, .18), rgba(105, 144, 255, .18));
    --radius: 18px;
    --radius-sm: 12px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --head: 'Poppins', var(--font);
    --gutter: clamp(16px, 3vw, 32px);
    --maxw: 1480px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 14px; height: 14px; }

.bg-glow {
    position: fixed; inset: 0; pointer-events: none; z-index: -1;
    background:
        radial-gradient(900px 500px at 12% -8%, rgba(71, 196, 192, .16), transparent 60%),
        radial-gradient(800px 520px at 92% 4%, rgba(105, 144, 255, .16), transparent 60%),
        radial-gradient(700px 600px at 50% 110%, rgba(155, 123, 255, .08), transparent 60%),
        var(--bg);
}
.bg-glow::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ------------------------------------------------------------------ buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--head); font-weight: 600; font-size: 14.5px;
    padding: 11px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -6px rgba(88, 170, 230, .55); }
.btn-grad:hover { box-shadow: 0 12px 30px -6px rgba(88, 170, 230, .7); }
.btn-light { background: #fff; color: #0E1B22; }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

.icon-btn {
    width: 38px; height: 38px; display: inline-grid; place-items: center;
    border-radius: 11px; border: 1px solid var(--line); background: var(--card); cursor: pointer;
    color: var(--soft); transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--card-2); }

/* ------------------------------------------------------------------ header */
.top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 20, 25, .72);
    backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid var(--line);
}
.top-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter);
    display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 34px; width: auto; }
.brand-tag {
    font-family: var(--head); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 999px; color: var(--teal);
    background: rgba(71, 196, 192, .12); border: 1px solid rgba(71, 196, 192, .3);
}

.modes {
    margin: 0 auto; display: flex; gap: 4px; padding: 4px;
    background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px;
}
.mode {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
    font-family: var(--head); font-weight: 500; font-size: 14px; color: var(--soft);
    transition: color .2s, background .2s;
}
.mode:hover { color: var(--text); }
.mode[aria-selected="true"] { color: #fff; background: var(--grad); box-shadow: 0 6px 18px -6px rgba(88, 170, 230, .6); }

.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
    border-radius: 11px; border: 1px solid var(--line); background: var(--card); cursor: pointer;
    font-weight: 600; font-size: 13.5px; color: var(--text);
}
.lang-btn:hover { border-color: var(--line-2); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; margin: 0; padding: 6px; list-style: none;
    background: #10212A; border: 1px solid var(--line-2); border-radius: 14px;
    box-shadow: 0 24px 48px -12px rgba(0,0,0,.6);
}
.lang-menu button {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-size: 14px; text-align: left;
}
.lang-menu button:hover { background: var(--card-2); }
.lang-menu button[aria-selected="true"] { color: var(--teal); }
.lang-menu small { color: var(--mute); font-weight: 600; }

/* ------------------------------------------------------------------ hero */
.hero {
    max-width: 900px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) var(--gutter) 28px; text-align: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--head); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 16px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 214, 140, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 214, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); } }
.hero h1 {
    font-size: clamp(30px, 4.6vw, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em;
    background: linear-gradient(180deg, #fff 30%, #B9D3DC); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 18px auto 0; max-width: 680px; font-size: clamp(15px, 1.6vw, 17.5px); color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line); font-size: 13.5px; color: var(--text);
}
.chips .i { width: 16px; height: 16px; color: var(--teal); }

/* ------------------------------------------------------------------ workspace */
.workspace { max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gutter) 56px; }

.dock {
    display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 6px;
    scroll-snap-type: x proximity; scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.app {
    position: relative; flex: 1 0 168px; max-width: 230px; scroll-snap-align: start;
    display: flex; align-items: center; gap: 12px; text-align: left;
    padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card);
    cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
}
.app:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-1px); }
.app-icon {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
    background: rgba(255,255,255,.06); color: var(--soft); transition: background .2s, color .2s;
}
.app-icon .i { width: 20px; height: 20px; }
.app-text { min-width: 0; }
.app-text strong { display: block; font-family: var(--head); font-weight: 600; font-size: 14px; white-space: nowrap; }
.app-text small { display: block; color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app[aria-selected="true"] { border-color: rgba(105, 144, 255, .55); background: var(--grad-soft); box-shadow: 0 10px 30px -14px rgba(105, 144, 255, .6); }
.app[aria-selected="true"] .app-icon { background: var(--grad); color: #fff; }
.app.featured .app-icon { color: var(--teal); }
.app-soon {
    position: absolute; top: -8px; right: 12px; font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 999px; color: #2A1C00; background: var(--amber); box-shadow: 0 4px 10px -4px rgba(245,184,75,.6);
}
.app-live {
    position: absolute; top: -4px; right: 14px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 0 3px var(--bg), 0 0 12px var(--green);
}
.dock { padding-top: 12px; }

.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }

/* ------------------------------------------------------------------ stage */
.stage {
    position: relative; border-radius: 24px; overflow: hidden;
    background:
        radial-gradient(1000px 500px at 50% -10%, rgba(105, 144, 255, .12), transparent 60%),
        linear-gradient(180deg, #0F1F27, #0B171D);
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -40px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
}
.stage-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.stage-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stage-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; }
.stage-icon .i { width: 19px; height: 19px; }
.stage-title h2 { font-size: 16px; font-weight: 600; }
.stage-title p { font-size: 13px; color: var(--soft); }
.stage-tools { display: flex; align-items: center; gap: 8px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.seg button {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 9px;
    background: transparent; color: var(--soft); cursor: pointer; font-size: 13.5px; font-weight: 600; transition: background .2s, color .2s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.seg button[disabled] { opacity: .35; cursor: not-allowed; }

.canvas {
    position: relative; height: clamp(520px, calc(100vh - 210px), 900px);
    display: flex; align-items: center; justify-content: center; gap: 0; padding: 26px;
}
.canvas.flow { justify-content: space-evenly; }
.canvas.tall { height: clamp(560px, calc(100vh - 140px), 1040px); }

/* device slot: sized from JS (frame size × scale) */
.slot { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; }
.slot-box { position: relative; }
.slot-label {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 13px; font-weight: 600; color: var(--soft);
    white-space: nowrap;
}
.slot-label b { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; color: #fff; background: var(--grad); }

.device {
    position: absolute; left: 0; top: 0; transform-origin: 0 0;
    background: linear-gradient(145deg, #2A353B, #0B1013 40%, #1A2328);
    box-shadow:
        0 0 0 1.5px #3A464C,
        0 0 0 3px #0A0F12,
        0 50px 100px -30px rgba(0,0,0,.85),
        0 30px 60px -30px rgba(0,0,0,.6);
}
.device iframe { display: block; border: 0; background: #0f172a; }
.device.phone { border-radius: 62px; padding: 14px; }
.device.phone iframe { border-radius: 0 0 48px 48px; }
.statusbar {
    width: 430px; display: flex; align-items: center; justify-content: space-between;
    padding: 6px 30px 0 34px; border-radius: 48px 48px 0 0; background: #0f172a; color: #fff;
    font: 600 16px/1 -apple-system, 'SF Pro Text', 'Inter', sans-serif;
}
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-icons svg { width: 17px; height: 12px; fill: #fff; }
.sb-batt { width: 26px; height: 12px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 4px; padding: 1.5px; position: relative; }
.sb-batt::after { content: ''; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255,255,255,.55); }
.sb-batt i { display: block; height: 100%; width: 78%; background: #fff; border-radius: 1.5px; }
.device.phone::before {
    content: ''; position: absolute; top: 27px; left: 50%; transform: translateX(-50%);
    width: 124px; height: 36px; border-radius: 20px; background: #000; z-index: 2; pointer-events: none;
}
.device.phone::after {
    content: ''; position: absolute; right: -4px; top: 190px; width: 4px; height: 96px; border-radius: 0 3px 3px 0; background: #2C373D;
}
.device.tablet { border-radius: 40px; padding: 20px; }
.device.tablet iframe { border-radius: 20px; }
.device.tablet::before {
    content: ''; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3b4a66, #05070a 70%); z-index: 2;
}
.device.tv { border-radius: 16px; padding: 12px; background: linear-gradient(180deg, #1B2328, #0A0E10); }
.device.tv iframe { border-radius: 4px; }
.tv-stand {
    position: absolute; left: 50%; transform: translateX(-50%); width: 34%; height: 14px; border-radius: 0 0 14px 14px;
    background: linear-gradient(180deg, #1C2429, #0D1215);
}

.tv-stand { height: 14px; }
.device.kiosk { border-radius: 30px; padding: 22px; background: linear-gradient(160deg, #3A444B, #12181C 45%, #222B31); }
.device.kiosk iframe { border-radius: 10px; }
.device.kiosk::before {
    content: ''; position: absolute; top: 8px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3b4a66, #05070a 70%);
}
.kiosk-stand {
    position: absolute; left: 50%; transform: translateX(-50%); width: 16%;
    background: linear-gradient(90deg, #1A2126, #3A444B 50%, #1A2126);
}
.kiosk-stand::after {
    content: ''; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); width: 320%; height: 18%; min-height: 8px; border-radius: 50%;
    background: radial-gradient(ellipse at 50% 30%, #3A444B, #0E1316 70%); box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.toast-action button {
    margin-left: 6px; padding: 6px 12px; border-radius: 9px; border: 0; cursor: pointer; pointer-events: auto;
    background: var(--grad); color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap;
}
.toast-action { pointer-events: auto; }

/* flow connectors */
.link { flex: 1 1 0; min-width: 24px; max-width: 120px; height: 2px; position: relative; align-self: center; margin-bottom: 34px; }
.link::before {
    content: ''; position: absolute; inset: 0; border-radius: 2px;
    background: repeating-linear-gradient(90deg, rgba(105,144,255,.55) 0 8px, transparent 8px 14px);
    background-size: 28px 2px; animation: dash 1.2s linear infinite;
}
.link::after {
    content: ''; position: absolute; right: -2px; top: -4px; width: 0; height: 0;
    border-left: 8px solid rgba(105,144,255,.8); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
@keyframes dash { to { background-position: 28px 0; } }
.link .spark {
    position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 14px 4px rgba(105,144,255,.9), 0 0 4px #fff; opacity: 0;
}
.link.go .spark { animation: travel .9s ease-in-out; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }

/* two-row flow layout (wide screens, tablet devices) */
.canvas.flow-grid {
    display: grid; height: auto; min-height: 520px; padding: 30px 26px 34px;
    grid-template-columns: auto 80px auto; grid-template-rows: auto 64px auto;
    justify-content: center; align-content: center; align-items: start;
}
.fg-k { grid-area: 1 / 1; }
.fg-l1 { grid-area: 1 / 2; align-self: center; margin: 0 8px 34px; max-width: none; }
.fg-m { grid-area: 1 / 3; }
.fg-l2 { grid-area: 2 / 3; justify-self: center; align-self: stretch; margin: 6px 0 10px; }
.fg-p { grid-area: 3 / 3; }
.fg-feed { grid-area: 2 / 1 / 4 / 2; justify-self: center; align-self: stretch; margin-top: 18px; }

.link.v { width: 2px; height: auto; min-width: 0; max-width: none; flex: none; }
.link.v::before { background: repeating-linear-gradient(180deg, rgba(105,144,255,.55) 0 8px, transparent 8px 14px); background-size: 2px 28px; animation: dashv 1.2s linear infinite; }
.link.v::after { right: auto; left: -4px; top: auto; bottom: -2px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid rgba(105,144,255,.8); border-bottom: 0; }
.link.v .spark { left: -5px; top: 0; }
.link.v.go .spark { animation: travelv .9s ease-in-out; }
@keyframes dashv { to { background-position: 0 28px; } }
@keyframes travelv { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }

.feed {
    border-radius: 20px; padding: 18px; background: rgba(0,0,0,.22); border: 1px solid var(--line);
    display: flex; flex-direction: column; min-height: 200px; overflow: hidden;
}
.feed h4 { display: flex; align-items: center; gap: 9px; font-size: 14px; margin-bottom: 12px; color: var(--text); }
.feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: var(--soft); }
.feed li .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.feed li .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li time { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--mute); }
.feed li.fresh { background: rgba(105,144,255,.1); color: var(--text); animation: feedIn .45s ease; }
.feed li.feed-empty { color: var(--mute); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }

/* coming soon placeholder */
.soon {
    max-width: 460px; text-align: center; padding: 36px 30px; border-radius: 22px;
    background: var(--card); border: 1px solid var(--line);
}
.soon-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-soft); color: var(--teal); }
.soon-icon .i { width: 30px; height: 30px; }
.soon h3 { font-size: 21px; margin-bottom: 10px; }
.soon p { color: var(--soft); margin-bottom: 22px; }

/* start overlay */
.start {
    position: absolute; inset: 67px 0 0 0; z-index: 5; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 45%, rgba(10,20,25,.35), rgba(10,20,25,.82));
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    transition: opacity .4s ease, visibility .4s;
}
.start.gone { opacity: 0; visibility: hidden; }
.start-btn {
    display: flex; align-items: center; gap: 18px; padding: 14px 26px 14px 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.18); background: rgba(16, 33, 42, .85); text-align: left;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); transition: transform .2s;
}
.start-btn:hover { transform: scale(1.03); }
.start-play { width: 58px; height: 58px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(105,144,255,.5); animation: ring 2s infinite; }
.start-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
@keyframes ring { 70% { box-shadow: 0 0 0 16px rgba(105,144,255,0); } 100% { box-shadow: 0 0 0 0 rgba(105,144,255,0); } }
.start-btn strong { display: block; font-family: var(--head); font-size: 17px; }
.start-btn small { display: block; color: var(--soft); font-size: 13px; }

/* ------------------------------------------------------------------ panel */
.panel {
    position: sticky; top: 84px;
    border-radius: 24px; border: 1px solid var(--line); background: rgba(14, 28, 35, .7);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 20px; display: flex; flex-direction: column; gap: 18px;
}
.panel-head h3 { font-size: 17px; margin-bottom: 4px; }
.panel-head p { font-size: 13.5px; color: var(--soft); }

.order-btns { display: grid; gap: 8px; }
.order-btn {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer;
    border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14.5px; text-align: left;
    transition: border-color .2s, background .2s, transform .1s;
}
.order-btn:hover { border-color: var(--line-2); background: var(--card-2); }
.order-btn:active { transform: scale(.98); }
.order-btn > span:nth-child(2) { flex: 1; }
.ob-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.ob-table { background: rgba(71,196,192,.14); color: var(--teal); }
.ob-take { background: rgba(105,144,255,.15); color: var(--blue); }
.ob-deliv { background: rgba(245,184,75,.14); color: var(--amber); }
.ob-plus { color: var(--mute); }
.order-btn:hover .ob-plus { color: var(--text); }
.order-btn.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(.96); border-color: var(--teal); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 12px 10px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-family: var(--head); font-size: 24px; line-height: 1.1; }
.stat span { display: block; font-size: 11.5px; color: var(--soft); margin-top: 2px; line-height: 1.25; }
.stat b.tick { animation: tick .5s ease; }
@keyframes tick { 40% { transform: scale(1.25); color: var(--teal); } }

.toggles { display: grid; gap: 4px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; cursor: pointer; }
.tg-text strong { display: block; font-size: 14px; font-weight: 600; }
.tg-text small { display: block; font-size: 12.5px; color: var(--mute); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tg-ui { width: 42px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; flex: none; transition: background .2s; }
.tg-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.toggle input:checked + .tg-ui { background: var(--grad); }
.toggle input:checked + .tg-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .tg-ui { outline: 2px solid var(--blue); outline-offset: 2px; }

.tour { border-top: 1px solid var(--line); padding-top: 16px; }
.tour h4 { font-size: 14px; margin-bottom: 10px; }
.tour ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: step; }
.tour li {
    counter-increment: step; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--soft);
    padding: 6px 8px; border-radius: 10px; transition: background .3s, color .3s;
}
.tour li::before {
    content: counter(step); width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
    font-size: 11.5px; font-weight: 700; border: 1px solid var(--line-2); color: var(--soft); transition: all .3s;
}
.tour li.now { background: rgba(105,144,255,.1); color: var(--text); }
.tour li.now::before { border-color: var(--blue); color: var(--blue); }
.tour li.done { color: var(--mute); }
.tour li.done::before { content: '✓'; background: var(--green); border-color: var(--green); color: #06221A; }
.tour-done { margin-top: 12px; display: flex; gap: 8px; font-size: 13.5px; color: var(--green); }
.tour-done .i { color: var(--green); }

/* ------------------------------------------------------------------ CTA + footer */
.cta-band { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: var(--grad);
    box-shadow: 0 30px 70px -30px rgba(88, 170, 230, .7);
}
.cta-inner h2 { font-size: clamp(22px, 2.6vw, 30px); color: #fff; margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,.88); max-width: 620px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.foot { text-align: center; padding: 10px var(--gutter) 40px; color: var(--mute); font-size: 13px; }
.foot img { height: 26px; width: auto; margin: 0 auto 12px; opacity: .7; }
.foot .copy { margin-top: 6px; }

/* ------------------------------------------------------------------ toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px;
    background: rgba(16, 33, 42, .95); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -14px rgba(0,0,0,.7);
    font-size: 13.5px; font-weight: 500; animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.toast .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

.mode-soon .work-grid { grid-template-columns: 1fr; }
.mode-soon .panel { display: none; }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }

/* ------------------------------------------------------------------ full screen */
.stage:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.stage:fullscreen .canvas { flex: 1; height: auto; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
    .work-grid { grid-template-columns: 1fr; }
    .panel { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
    .panel-head, .tour { grid-column: 1 / -1; }
    .tour ol { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 860px) {
    .top-inner { flex-wrap: wrap; gap: 10px 12px; }
    .modes { order: 3; width: 100%; margin: 0; }
    .mode { flex: 1; justify-content: center; padding: 8px 6px; font-size: 13px; }
    .top-actions { margin-left: auto; }
    .btn-book span { display: none; }
    .btn-book { padding: 0; width: 40px; height: 40px; }
    .brand img { height: 28px; }
    .panel { grid-template-columns: 1fr; }
    .canvas { height: auto; min-height: 420px; padding: 18px 10px; flex-direction: column; gap: 6px; }
    .canvas.flow { gap: 4px; }
    .link { width: 2px; height: 34px; flex: none; margin: 0 0 4px; max-width: none; min-width: 0; }
    .link::before { background: repeating-linear-gradient(180deg, rgba(105,144,255,.55) 0 8px, transparent 8px 14px); background-size: 2px 28px; animation: dashv 1.2s linear infinite; }
    .link::after { right: auto; left: -4px; top: auto; bottom: -2px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid rgba(105,144,255,.8); border-bottom: 0; }
    @keyframes dashv { to { background-position: 0 28px; } }
    .link .spark { display: none; }
    .stage-bar { padding: 12px; }
    .stage-title p { display: none; }
    .seg button span { display: none; }
    .seg button { padding: 8px 11px; }
    .start { inset: 63px 0 0 0; }
    .toasts { left: 12px; right: 12px; justify-items: stretch; }
}
@media (max-width: 420px) {
    .brand-tag { display: none; }
    .app { flex-basis: 150px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
