/**
 * File: demo/demo.css
 * Purpose: Page-scoped styling for the standalone Phase 1 Demo page.
 * Reuses site Tailwind + override conventions; no global CSS changes.
 */

.demo-page {
    color: #1f2937;
}

/* ---------------- hero ---------------- */
.demo-hero {
    padding: 7rem 0 3rem;
    background: linear-gradient(180deg, #0b1224 0%, #101a36 100%);
    color: #fff;
}

.demo-eyebrow,
.demo-overline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-eyebrow { color: #93c5fd; margin-bottom: 0.85rem; }
.demo-overline { color: #2563eb; margin-bottom: 0.5rem; }

.demo-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
    margin: 0.25rem 0 1rem;
}

.demo-lead {
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.demo-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.demo-facts strong { color: #fff; }

/* ---------------- sections ---------------- */
.demo-body { padding-top: 2.5rem; padding-bottom: 3rem; }

.demo-section { margin-bottom: 2.75rem; }

.demo-section-head { max-width: 760px; margin-bottom: 1.25rem; }
.demo-section-head h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #0b1224;
    margin: 0.25rem 0 0.5rem;
}
.demo-section-head p { color: #4b5563; line-height: 1.65; }

/* ---------------- grid ---------------- */
.demo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .demo-grid-qr { grid-template-columns: minmax(0, 360px) 1fr; align-items: start; }
}

/* ---------------- cards ---------------- */
.demo-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.demo-card h3 { font-weight: 700; color: #0b1224; margin-bottom: 0.5rem; }

.demo-list { margin: 0.5rem 0 0; padding-left: 1.1rem; color: #4b5563; line-height: 1.65; }
.demo-list li { margin: 0.25rem 0; }

.demo-caption { font-size: 0.85rem; color: #6b7280; margin: 0.5rem 0; }
.demo-fineprint { font-size: 0.78rem; color: #9ca3af; margin-top: 0.5rem; }
.demo-note {
    font-size: 0.88rem; color: #4b5563; background: #f8fafc;
    border: 1px solid #eef2f7; border-radius: 0.6rem; padding: 0.75rem; margin-top: 0.75rem;
}
.demo-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ---------------- QR ---------------- */
.demo-qr-card { text-align: center; }
.demo-qr-link { display: inline-block; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 0.75rem; background: #fff; }
.demo-qr-img { max-width: 100%; height: auto; display: block; }

/* ---------------- actions / buttons ---------------- */
.demo-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }

.demo-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    border-radius: 0.5rem; padding: 0.6rem 1.1rem; font-size: 0.9rem; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.demo-btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.demo-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.demo-btn-ghost { background: #fff; color: #1f2937; border-color: #d1d5db; }
.demo-btn-ghost:hover { background: #f9fafb; border-color: #9ca3af; }

/* ---------------- badges ---------------- */
.demo-badge-controls {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    justify-content: space-between; margin-bottom: 1rem;
}
.demo-badge-field label { font-size: 0.85rem; font-weight: 600; color: #374151; display: block; margin-bottom: 0.25rem; }
.demo-badge-field select {
    border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.45rem 0.6rem; background: #fff; font-size: 0.9rem;
}

.demo-badge-grid {
    list-style: none; padding: 0; margin: 0 0 1rem;
    display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .demo-badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.demo-badge-card {
    border: 1px solid #eef2f7; border-radius: 0.75rem; padding: 1rem;
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; background: #fbfcfe;
}
.demo-badge-card img { max-width: 100%; height: auto; display: block; }
.demo-badge-label { font-size: 0.85rem; font-weight: 600; color: #374151; }

.demo-embed-wrap { margin-top: 0.5rem; }
.demo-embed-label { font-size: 0.85rem; font-weight: 600; color: #374151; display: block; margin-bottom: 0.35rem; }
.demo-embed {
    width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem; border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.6rem; background: #f9fafb; color: #111827;
}

/* ---------------- references ---------------- */
.demo-ref-card { display: flex; flex-direction: column; gap: 0.5rem; }
.demo-ref-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #2563eb; }
.demo-ref-desc { font-size: 0.9rem; color: #4b5563; margin: 0; }
.demo-ref {
    display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 0.4rem 0.55rem;
    word-break: break-all; color: #111827;
}
.demo-ref-lg { font-size: 1.05rem; padding: 0.6rem 0.75rem; }
.demo-ref-action { margin-top: 1.25rem; }

/* ---------------- feedback ---------------- */
.demo-feedback { font-size: 0.82rem; color: #059669; min-height: 1.1em; }

/* ---------------- portal coming soon ---------------- */
.demo-portal-card { background: #f8fafc; }
.demo-coming-soon {
    display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    background: #eef2ff; color: #4338ca; border: 1px solid #e0e7ff; border-radius: 999px; padding: 0.25rem 0.7rem; margin-bottom: 0.6rem;
}
.demo-portal-card h2 { font-size: 1.4rem; font-weight: 700; color: #0b1224; margin: 0.25rem 0 0.5rem; }
.demo-portal-card p { color: #4b5563; line-height: 1.65; }

/* ---------------- CTA ---------------- */
.demo-cta-card { text-align: center; background: #0b1224; color: #fff; border-color: #0b1224; }
.demo-cta-card .demo-overline { color: #93c5fd; }
.demo-cta-card h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin: 0.25rem 0 0.5rem; }
.demo-cta-card p { color: #d1d5db; max-width: 640px; margin: 0 auto; line-height: 1.65; }
.demo-cta-actions { justify-content: center; }
.demo-cta-card .demo-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.demo-cta-card .demo-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------------- responsive ---------------- */
@media (max-width: 640px) {
    .demo-hero { padding-top: 6rem; }
    .demo-card { padding: 1.1rem; }
    .demo-ref-lg { font-size: 0.95rem; }
    .demo-actions { gap: 0.5rem; }
    .demo-btn { width: 100%; }
    .demo-qr-img { width: 100% !important; max-width: 240px; margin: 0 auto; }
}
