/* Public marketing demo. Static SSR — interactions are CSS :checked tabs and native <details>. */

.demo-site {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    color: #1f2937;
}

.demo-site h1,
.demo-site h2 {
    margin-top: 0;
    color: #0f172a;
}

/* ---------- Hero ---------- */
.demo-hero {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}

.demo-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.15;
    margin: 0.75rem auto 0.5rem;
    max-width: 22ch;
}

.demo-hero-lead {
    font-size: 1.1rem;
    color: #475569;
    max-width: 60ch;
    margin: 0 auto 1.5rem;
}

.demo-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* One consistent button type. The two journey buttons double as the journey switch; the
   active journey is filled (driven by the radio :checked state at the top of the page). */
.demo-journey-btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 0.7rem;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.demo-journey-btn:hover {
    border-color: #2563eb;
}

#demo-journey-manager:checked ~ .demo-hero .demo-hero-actions label[for="demo-journey-manager"],
#demo-journey-customer:checked ~ .demo-hero .demo-hero-actions label[for="demo-journey-customer"] {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Scenario switcher links in the Food Safety records section. Plain links (static SSR,
   no JS) — the active scenario is filled, matching the journey-button treatment. */
.demo-scenario-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.5rem 0 0.75rem;
}

.demo-scenario-switch .demo-journey-btn {
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
}

.demo-scenario-switch .demo-scenario-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.demo-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.demo-safety-note {
    margin: 1.25rem auto 0;
    max-width: 60ch;
    font-size: 0.9rem;
    color: #64748b;
}

.demo-safety-inline {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.5rem 0 0;
}

/* ---------- How it works ---------- */
.demo-how {
    margin: 1.5rem 0 2.5rem;
    text-align: center;
}

.demo-how h2 {
    margin-bottom: 1.25rem;
}

.demo-how-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
}

.demo-how-step {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.demo-how-num {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.demo-how-step strong {
    font-size: 1.02rem;
}

.demo-how-step span:last-child {
    color: #64748b;
    font-size: 0.92rem;
}

/* ---------- Journey selector (CSS radios; hero buttons are the switch) ---------- */
.demo-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Journeys are hidden by default; the checked radio reveals the matching one. */
.demo-journey {
    display: none;
}

#demo-journey-manager:checked ~ .demo-journey-manager,
#demo-journey-customer:checked ~ .demo-journey-customer {
    display: block;
}

.demo-journey-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.demo-journey-head p {
    color: #64748b;
    margin: 0.25rem 0;
}

.demo-journey-intro {
    max-width: 60ch;
    margin: 0.5rem auto 0 !important;
    color: #475569 !important;
}

/* ---------- Summary + cards ---------- */
.demo-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-stat {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.demo-stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.demo-stat strong {
    font-size: 1.15rem;
    color: #0f172a;
}

.demo-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.demo-mini-card {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 0.85rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.demo-mini-card strong {
    font-size: 1.05rem;
}

.demo-meta {
    color: #64748b;
    font-size: 0.88rem;
}

/* Health accents (left border keeps it soft, not alarm-like) */
.demo-stat-green { border-left: 4px solid #16a34a; }
.demo-stat-amber { border-left: 4px solid #d97706; }
.demo-stat-red { border-left: 4px solid #dc2626; }

/* ---------- Module sub-tabs ---------- */
.demo-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-bottom: 1px solid #e8edf3;
    margin-bottom: 1.5rem;
}

.demo-tab {
    padding: 0.55rem 0.9rem;
    border-radius: 0.6rem 0.6rem 0 0;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.demo-tab:hover {
    color: #1d4ed8;
}

#sm-overview:checked ~ .demo-tabbar label[for="sm-overview"],
#sm-food:checked ~ .demo-tabbar label[for="sm-food"],
#sm-docs:checked ~ .demo-tabbar label[for="sm-docs"],
#sm-loyalty:checked ~ .demo-tabbar label[for="sm-loyalty"],
#sm-bookings:checked ~ .demo-tabbar label[for="sm-bookings"],
#sm-whatsapp:checked ~ .demo-tabbar label[for="sm-whatsapp"],
#sm-reports:checked ~ .demo-tabbar label[for="sm-reports"] {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
}

.demo-panel {
    display: none;
}

#sm-overview:checked ~ .demo-panel-overview,
#sm-food:checked ~ .demo-panel-food,
#sm-docs:checked ~ .demo-panel-docs,
#sm-loyalty:checked ~ .demo-panel-loyalty,
#sm-bookings:checked ~ .demo-panel-bookings,
#sm-whatsapp:checked ~ .demo-panel-whatsapp,
#sm-reports:checked ~ .demo-panel-reports {
    display: block;
}

.demo-panel-intro {
    color: #475569;
    max-width: 70ch;
    margin: 0 0 1.25rem;
}

.demo-subhead {
    margin: 1.5rem 0 0.6rem;
    font-size: 1rem;
    color: #334155;
}

.demo-tag {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.72rem;
    font-weight: 600;
    vertical-align: middle;
}

.demo-priority-list,
.demo-reward-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.4rem;
    color: #334155;
}

/* ---------- Tables (light) ---------- */
.demo-table-wrap {
    overflow-x: auto;
    border: 1px solid #eef2f7;
    border-radius: 0.85rem;
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.demo-table th {
    text-align: left;
    font-weight: 600;
    color: #64748b;
    padding: 0.6rem 0.85rem;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}

.demo-table td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.demo-table tr:last-child td {
    border-bottom: none;
}

.demo-pill {
    display: inline-block;
    padding: 0.12rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.demo-pill-green { background: #dcfce7; color: #166534; }
.demo-pill-amber { background: #fef3c7; color: #92400e; }
.demo-pill-red { background: #fee2e2; color: #991b1b; }

/* ---------- Preview panels / details ---------- */
.demo-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.demo-preview-panel {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 1rem;
    padding: 1.25rem;
}

.demo-preview-panel h4 {
    margin-top: 0;
}

.demo-card-preview {
    text-align: center;
}

.demo-qr {
    width: 6rem;
    height: 6rem;
    margin: 0.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #94a3b8;
    border-radius: 0.75rem;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.demo-wallet-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.demo-wallet-chip {
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.demo-preview {
    margin-top: 1rem;
    border: 1px solid #e8edf3;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.25rem 0.85rem;
}

.demo-preview > summary {
    cursor: pointer;
    font-weight: 600;
    color: #1d4ed8;
    padding: 0.6rem 0;
    list-style: none;
}

.demo-preview > summary::marker,
.demo-preview > summary::-webkit-details-marker {
    display: none;
}

.demo-preview > summary::before {
    content: "＋ ";
    color: #2563eb;
}

.demo-preview[open] > summary::before {
    content: "－ ";
}

.demo-preview-body {
    padding: 0 0 0.85rem;
    color: #334155;
}

.demo-preview-body ul {
    margin: 0.25rem 0 0.75rem;
    padding-left: 1.2rem;
}

/* ---------- Chat bubbles ---------- */
.demo-chat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.demo-chat-lg {
    max-width: 36rem;
}

.demo-chat-in,
.demo-chat-out {
    margin: 0;
    padding: 0.6rem 0.85rem;
    border-radius: 1rem;
    max-width: 85%;
    font-size: 0.92rem;
    line-height: 1.35;
}

.demo-chat-in {
    background: #f1f5f9;
    color: #334155;
    align-self: flex-start;
    border-bottom-left-radius: 0.3rem;
}

.demo-chat-out {
    background: #dcf8c6;
    color: #14532d;
    align-self: flex-end;
    border-bottom-right-radius: 0.3rem;
}

.demo-chat-from {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.7;
    margin-bottom: 0.15rem;
}

.demo-report-card {
    align-items: flex-start;
}

.demo-report-icon {
    font-size: 1.6rem;
}

.demo-privacy-note {
    font-size: 0.9rem;
    color: #475569;
    border-left: 3px solid #2563eb;
    padding-left: 0.85rem;
    max-width: 70ch;
    margin: 1.5rem auto 0;
}

/* ---------- Final CTA ---------- */
.demo-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid #e0e7ff;
    border-radius: 1.25rem;
}

.demo-cta h2 {
    margin-bottom: 0.5rem;
}

.demo-cta p {
    color: #475569;
    max-width: 60ch;
    margin: 0 auto 1.5rem;
}

/* ---------- Interactive story showcase (browser + phone mockups) ---------- */
.demo-story {
    margin: 0 0 2.5rem;
}

.demo-story-title {
    text-align: center;
    margin-bottom: 0.35rem;
}

.demo-story-lead {
    text-align: center;
    color: #64748b;
    max-width: 58ch;
    margin: 0 auto 1.25rem;
    font-size: 0.98rem;
}

.demo-story-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.demo-story-step {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.demo-story-step:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.demo-story-step time {
    font-weight: 700;
    margin-right: 0.35rem;
    color: #0f172a;
}

/* Flow step active states — manager */
#flow-opening:checked ~ .demo-story-steps label[for="flow-opening"],
#flow-service:checked ~ .demo-story-steps label[for="flow-service"],
#flow-review:checked ~ .demo-story-steps label[for="flow-review"],
#flow-ops:checked ~ .demo-story-steps label[for="flow-ops"],
#flow-closing:checked ~ .demo-story-steps label[for="flow-closing"] {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

#flow-opening:checked ~ .demo-story-steps label[for="flow-opening"] time,
#flow-service:checked ~ .demo-story-steps label[for="flow-service"] time,
#flow-review:checked ~ .demo-story-steps label[for="flow-review"] time,
#flow-ops:checked ~ .demo-story-steps label[for="flow-ops"] time,
#flow-closing:checked ~ .demo-story-steps label[for="flow-closing"] time {
    color: #fff;
}

/* Customer phone flow */
#cust-card:checked ~ .demo-story-steps label[for="cust-card"],
#cust-rewards:checked ~ .demo-story-steps label[for="cust-rewards"],
#cust-book:checked ~ .demo-story-steps label[for="cust-book"] {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Browser chrome mockup */
.demo-browser {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    background: #f1f5f9;
}

.demo-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: linear-gradient(180deg, #e8edf3, #dfe6ee);
    border-bottom: 1px solid #cbd5e1;
}

.demo-browser-dots {
    display: flex;
    gap: 0.35rem;
}

.demo-browser-dots span {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: #94a3b8;
}

.demo-browser-dots span:nth-child(1) { background: #f87171; }
.demo-browser-dots span:nth-child(2) { background: #fbbf24; }
.demo-browser-dots span:nth-child(3) { background: #4ade80; }

.demo-browser-url {
    flex: 1;
    padding: 0.3rem 0.75rem;
    border-radius: 0.45rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-browser-body {
    display: grid;
    grid-template-columns: 11.5rem 1fr;
    min-height: 22rem;
    background: #fff;
}

.demo-app-sidebar {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 0.75rem;
    font-size: 0.78rem;
}

.demo-app-brand {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
    padding: 0 0.35rem;
    color: #fff;
}

.demo-app-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.demo-app-nav li {
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    color: #94a3b8;
}

.demo-app-nav li.demo-nav-active {
    background: rgba(37, 99, 235, 0.35);
    color: #fff;
    font-weight: 600;
}

.demo-app-main {
    padding: 1rem 1.1rem;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.demo-app-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.demo-app-topbar h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.demo-app-topbar p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.demo-app-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
}

.demo-scene {
    display: none;
    animation: demo-fade-in 0.35s ease;
}

@keyframes demo-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

#flow-opening:checked ~ .demo-browser .demo-scene-opening,
#flow-service:checked ~ .demo-browser .demo-scene-service,
#flow-review:checked ~ .demo-browser .demo-scene-review,
#flow-ops:checked ~ .demo-browser .demo-scene-ops,
#flow-closing:checked ~ .demo-browser .demo-scene-closing {
    display: block;
}

/* Sidebar highlights per scene */
#flow-opening:checked ~ .demo-browser .demo-nav-food { background: rgba(37, 99, 235, 0.35); color: #fff; font-weight: 600; }
#flow-service:checked ~ .demo-browser .demo-nav-loyalty { background: rgba(37, 99, 235, 0.35); color: #fff; font-weight: 600; }
#flow-review:checked ~ .demo-browser .demo-nav-overview { background: rgba(37, 99, 235, 0.35); color: #fff; font-weight: 600; }
#flow-ops:checked ~ .demo-browser .demo-nav-bookings { background: rgba(37, 99, 235, 0.35); color: #fff; font-weight: 600; }
#flow-closing:checked ~ .demo-browser .demo-nav-reports { background: rgba(37, 99, 235, 0.35); color: #fff; font-weight: 600; }

.demo-mock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.demo-mock-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 0.65rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
}

.demo-mock-card strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    margin-top: 0.15rem;
}

.demo-mock-card.demo-mock-green { border-left: 3px solid #16a34a; }
.demo-mock-card.demo-mock-amber { border-left: 3px solid #d97706; }
.demo-mock-card.demo-mock-red { border-left: 3px solid #dc2626; }

.demo-mock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 0.65rem;
    overflow: hidden;
}

.demo-mock-table th,
.demo-mock-table td {
    padding: 0.45rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.demo-mock-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
}

.demo-mock-table tr:last-child td {
    border-bottom: none;
}

.demo-scene-caption {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
}

.demo-scene-caption strong {
    color: #0f172a;
}

.demo-float-whatsapp {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(14rem, 42%);
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 0.85rem;
    padding: 0.65rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    font-size: 0.75rem;
}

.demo-float-whatsapp header {
    font-weight: 700;
    color: #166534;
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
}

.demo-staff-scan {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 0.75rem;
    padding: 0.85rem;
}

.demo-stamp-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.demo-stamp-dot {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
}

.demo-stamp-dot.filled {
    background: #2563eb;
    border-color: #2563eb;
}

.demo-mock-btn {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.demo-mock-btn-outline {
    background: #fff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.demo-priority-mock {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.demo-priority-mock li {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.demo-priority-mock li::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #d97706;
    flex-shrink: 0;
}

/* Phone mockup */
.demo-phone-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 1rem;
}

.demo-phone {
    width: min(18rem, 100%);
    border-radius: 2rem;
    border: 3px solid #1e293b;
    background: #0f172a;
    padding: 0.65rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.demo-phone-notch {
    width: 5rem;
    height: 0.35rem;
    background: #334155;
    border-radius: 999px;
    margin: 0 auto 0.5rem;
}

.demo-phone-screen {
    background: #f8fafc;
    border-radius: 1.35rem;
    min-height: 24rem;
    overflow: hidden;
    position: relative;
}

.demo-phone-scene {
    display: none;
    padding: 1rem 0.85rem;
    animation: demo-fade-in 0.35s ease;
}

#cust-card:checked ~ .demo-phone-wrap .demo-phone-scene-card,
#cust-rewards:checked ~ .demo-phone-wrap .demo-phone-scene-rewards,
#cust-book:checked ~ .demo-phone-wrap .demo-phone-scene-book {
    display: block;
}

.demo-phone-header {
    text-align: center;
    margin-bottom: 0.85rem;
}

.demo-phone-header h3 {
    margin: 0;
    font-size: 1rem;
}

.demo-phone-header p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.demo-loyalty-card-visual {
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    color: #fff;
    border-radius: 1rem;
    padding: 1.1rem;
    text-align: center;
    margin-bottom: 0.85rem;
}

.demo-loyalty-card-visual .demo-stamp-dots {
    justify-content: center;
    margin-top: 0.65rem;
}

.demo-loyalty-card-visual .demo-stamp-dot {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.demo-loyalty-card-visual .demo-stamp-dot.filled {
    background: #fff;
    border-color: #fff;
}

.demo-reward-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 0.65rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
}

.demo-reward-row span:first-child {
    font-size: 1.1rem;
}

.demo-explore {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8edf3;
}

.demo-explore h3 {
    text-align: center;
    margin-bottom: 0.35rem;
}

.demo-explore > p {
    text-align: center;
    color: #64748b;
    margin: 0 auto 1.25rem;
    max-width: 50ch;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .demo-browser-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .demo-app-sidebar {
        display: none;
    }

    .demo-float-whatsapp {
        position: static;
        width: 100%;
        margin-top: 0.65rem;
    }

    .demo-story-step {
        font-size: 0.76rem;
        padding: 0.4rem 0.65rem;
    }
}

@media (max-width: 640px) {
    .demo-hero {
        padding-top: 1.5rem;
    }

    .demo-journey-btn {
        width: 100%;
        text-align: center;
    }

    .demo-story-step time {
        display: block;
        margin: 0 0 0.1rem;
    }
}
