.live-demo, .demo-workspace {
    --demo-ink: #102746;
    --demo-blue: #1459ad;
    --demo-muted: #50647d;
    --demo-line: #d9e5f3;
    --demo-paper: #f4f8fd;
}

.live-demo {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--demo-ink);
    background: radial-gradient(ellipse at 85% 12%, #e0efff 0, transparent 44%), var(--demo-paper);
    font: 16px/1.5 system-ui, sans-serif;
}

.live-demo *, .demo-footer * { box-sizing: border-box; }
.demo-frame, .demo-footer-inner { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.live-demo > main { flex: 1; padding-block: clamp(38px, 7vw, 78px) 40px; }
.live-demo a, .demo-footer a { color: var(--demo-blue); text-underline-offset: 4px; }
.demo-header { background: #fff; border-bottom: 1px solid var(--demo-line); }
.demo-header .demo-frame { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.demo-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 780; text-decoration: none; white-space: nowrap; }
.demo-brand img { display: block; border-radius: 9px; }
.demo-header nav { display: flex; gap: clamp(10px, 3vw, 28px); font-size: 14px; font-weight: 650; }
.demo-header nav a { text-decoration: none; }
.demo-header nav a:hover { text-decoration: underline; }

.demo-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .51fr); align-items: center; gap: clamp(24px, 6%, 72px); margin-bottom: clamp(36px, 6vw, 62px); }
.demo-hero h1 { margin: 0 0 18px; font-size: clamp(2.35rem, 5.45vw, 4.7rem); line-height: 1.03; letter-spacing: -.055em; }
.demo-hero h1 em { color: var(--demo-blue); font-style: normal; }
.demo-hero p { max-width: 55ch; margin: 0; color: var(--demo-muted); font-size: clamp(1rem, 2vw, 1.16rem); }
.live-demo .demo-hero-monitor { display: grid; gap: 9px; padding: clamp(20px, 4vw, 34px); border: 1px solid #1e4e83; border-radius: 20px; background: linear-gradient(135deg, #112b4e, #1b4680); color: #e4efff; text-decoration: none; box-shadow: 0 14px 34px #162b521e; }
.live-demo .demo-hero-monitor:hover { background: #19447e; }
.demo-monitor-title { color: white; font-weight: 760; font-size: 1.11rem; }
.demo-live-dot { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: #77ebbb; box-shadow: 0 0 0 4px #77ebbb25; vertical-align: 1px; }

.demo-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 20px; margin-bottom: 14px; }
.demo-section-heading h2, .demo-phone h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.62rem); letter-spacing: -.025em; }
.demo-section-heading span, .demo-phone small { color: var(--demo-muted); font-size: .9rem; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.demo-card { padding: clamp(18px, 3vw, 27px); background: #fff; border: 1px solid var(--demo-line); border-top: 3px solid #2d80d6; border-radius: 18px; box-shadow: 0 6px 18px #0c2e5910; }
.demo-hausmeister { border-top-color: #358267; }
.demo-tenant-heading { display: flex; align-items: center; gap: 12px; }
.demo-tenant-heading img { flex: none; border-radius: 10px; }
.demo-tenant-heading h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.demo-tenant-heading p { margin: 0; color: var(--demo-muted); font-size: .92rem; }
.demo-example { margin: 16px 0; padding: 9px 12px; border-radius: 8px; background: #f1f6fd; color: #29466c; font-size: .94rem; }
.demo-hausmeister .demo-example { background: #eef7f2; color: #285a46; }
.demo-card form, .demo-display-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.demo-button { min-height: 44px; padding: .58rem .8rem; border: 1px solid var(--demo-blue); border-radius: 8px; background: var(--demo-blue); color: #fff; font: inherit; font-size: .92rem; font-weight: 680; cursor: pointer; }
.demo-button:hover { background: #124987; }
.demo-secondary { color: #174985; background: #fff; border-color: #a9c5e4; }
.demo-secondary:hover { background: #e8f3ff; }
.demo-display-links { margin-top: 15px; font-size: .9rem; font-weight: 680; }

.demo-phone { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(180px, .58fr); align-items: center; gap: 15px 24px; margin-top: 22px; padding: 13px 21px; border: 1px solid var(--demo-line); border-radius: 15px; background: #fff; }
.demo-phone p { margin: 2px 0; color: var(--demo-muted); }
.demo-phone img { display: block; image-rendering: pixelated; }
.demo-footer { margin-top: auto; background: #fff; color: #102746; border-top: 1px solid #d9e5f3; font: 15px/1.4 system-ui, sans-serif; }
.demo-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 12px; }
.demo-footer-links, .demo-store-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.demo-footer .demo-brand { font-size: 16px; }
.demo-store-links img, .demo-store-links a { display: block; }
.demo-store-links .demo-app-store { height: 40px; width: auto; }
/* Google's asset includes transparent space above and below the badge. */
.demo-store-links .demo-google-play { height: 52px; width: auto; }
.live-demo :focus-visible, .demo-footer :focus-visible { outline: 3px solid #267ee0; outline-offset: 4px; }

body.demo-workspace { min-height: 100vh; min-height: 100dvh; height: auto; display: flex; flex-direction: column; padding-bottom: 0 !important; }
html:has(> body.demo-workspace) { scrollbar-gutter: stable; }
.demo-workspace > main { flex: 1 0 auto; width: 100%; min-width: 0; }
.demo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .9rem; padding: .52rem 1rem; background: #18365b; color: #fff; font: 14px/1.5 system-ui, sans-serif; }
.demo-toolbar a { color: #fff; text-decoration: underline; text-underline-offset: .18em; }
.demo-toolbar form { display: inline-flex; flex-wrap: wrap; gap: .45rem; margin: 0; }
.demo-toolbar button { background: #edf4ff; color: #173759; border: 1px solid #fff; border-radius: 5px; font: inherit; cursor: pointer; padding: .15rem .65rem; }

@media (max-width: 850px) {
    .demo-workspace .topbar .container.topbar-wrap .topbar-row1 { flex-wrap: wrap; gap: 10px; }
    .demo-workspace .topbar-zone { min-width: 0; }
    .demo-workspace .topbar-zone-right { flex-basis: 100%; }
    .demo-workspace .topbar-right-content { flex-wrap: wrap; justify-content: flex-start; }
    .demo-workspace .topbar-right-content .nav { flex-wrap: wrap; }
}

@media (max-width: 690px) {
    .demo-frame, .demo-footer-inner { width: calc(100% - 32px); }
    .demo-header .demo-frame { min-height: 62px; }
    .demo-header .demo-brand span { font-size: 16px; }
    .demo-header .demo-brand img { width: 34px; height: 34px; }
    .demo-header nav a:last-child { display: none; }
    .demo-hero, .demo-grid { grid-template-columns: 1fr; }
    .demo-hero { gap: 20px; }
    .demo-phone { grid-template-columns: auto minmax(0, 1fr); padding: 12px; }
    .demo-phone img { width: 86px; height: 86px; }
    .demo-phone small { grid-column: 1 / -1; }
    .demo-footer-inner { justify-content: flex-start; }
}
