/* =========================================================
   Age Verification Story Demo
   Scoped styles — a self-contained walkthrough surface with
   a fake browser, a fake phone, a narration rail, and a live
   event log.
   ========================================================= */

:root {
    --store-orange: #ea6c12;
    --store-orange-ink: #8c3b00;
    --store-ink: #1b2330;
    --store-muted: #5a6474;
    --store-line: rgba(27, 35, 48, 0.08);
    --store-line-2: rgba(27, 35, 48, 0.14);
    --store-paper: #ffffff;
    --store-bg: #f6f6f4;
    --phone-bg: #0a1220;
    --phone-paper: #ffffff;
    --event-bg: #07111d;
}

.age-demo-page { gap: 1rem; }

/* ---------- Intro + controls ---------- */

.age-demo-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: end;
    padding: clamp(1.5rem, 2.6vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.age-demo-intro h1 { max-width: 24ch; font-size: clamp(1.8rem, 3.8vw, 2.75rem); }
.age-demo-intro .lead { max-width: 58ch; margin-top: 0.9rem; }
.age-demo-intro code {
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(11, 26, 43, 0.06);
    color: var(--brand-deep);
    font: 500 0.9em/1 var(--font-mono);
}

.age-demo-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-soft);
}

.age-demo-control {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    font: 500 0.86rem/1 var(--font-body);
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease;
}
.age-demo-control:hover { background: var(--paper-soft); border-color: var(--line-strong); }
.age-demo-control[data-control="prev"],
.age-demo-control[data-control="next"],
.age-demo-control[data-control="restart"] { padding: 0.55rem; }

.age-demo-control-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
}
.age-demo-control-icon[data-icon="pause"]::before,
.age-demo-control-icon[data-icon="pause"]::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 12px;
    background: var(--ink);
    margin-right: 2px;
    vertical-align: middle;
}
.age-demo-control-icon[data-icon="play"] {
    width: 0; height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid var(--ink);
    margin-left: 2px;
}
.age-demo-control-icon[data-icon="restart"] {
    width: 12px; height: 12px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    border-top-color: transparent;
}
.age-demo-control-icon[data-icon="prev"],
.age-demo-control-icon[data-icon="next"] {
    width: 0; height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.age-demo-control-icon[data-icon="prev"] { border-right: 8px solid var(--ink); }
.age-demo-control-icon[data-icon="next"] { border-left: 8px solid var(--ink); }

/* ---------- Scenario switcher ---------- */

.age-demo-scenario-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.age-demo-scenario-tab {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.age-demo-scenario-tab:hover { background: var(--paper-soft); }
.age-demo-scenario-tab.is-active {
    background: var(--paper-soft);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(12, 108, 99, 0.12);
}
.age-demo-scenario-tab strong {
    display: block;
    font-size: 0.94rem;
    font-weight: 600;
}
.age-demo-scenario-tab em {
    display: block;
    margin-top: 0.15rem;
    font-style: normal;
    font-size: 0.82rem;
    color: var(--muted);
}
.age-demo-scenario-index {
    display: grid; place-items: center;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--paper);
    color: var(--muted-2);
    border: 1px solid var(--line);
    font: 600 0.85rem/1 var(--font-mono);
}
.age-demo-scenario-tab.is-active .age-demo-scenario-index {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ---------- Agent bubble ---------- */

.age-demo-agent {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 40;
    width: min(320px, 70%);
    padding: 0.75rem 0.9rem 0.85rem;
    border-radius: 14px;
    background: rgba(11, 26, 43, 0.96);
    color: #f2f4f7;
    box-shadow: 0 18px 40px -20px rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.06);
    animation: agent-in 320ms cubic-bezier(.22,.8,.3,1);
}
.age-demo-agent[hidden] { display: none; }
@keyframes agent-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
.age-demo-agent-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 0.4rem;
}
.age-demo-agent-avatar {
    display: grid; place-items: center;
    width: 24px; height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), #0a1e2f);
    color: #fff;
}
.age-demo-agent-head strong { display: block; font-size: 0.82rem; font-weight: 600; color: #fff; }
.age-demo-agent-head em { display: block; font-style: normal; font-size: 0.7rem; color: rgba(242, 244, 247, 0.55); }
.age-demo-agent-body {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(242, 244, 247, 0.92);
}
.age-demo-agent-body code {
    padding: 0.08rem 0.3rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    font: 500 0.85em/1 var(--font-mono);
    color: #bfe3dd;
}

/* ---------- Progress ---------- */

.age-demo-progress {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.age-demo-progress-track {
    position: relative;
    height: 4px;
    border-radius: 999px;
    background: rgba(11, 26, 43, 0.08);
    overflow: hidden;
}
.age-demo-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width 180ms linear;
}
.age-demo-progress-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.age-demo-progress-steps li {
    font: 500 0.72rem/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding: 0.15rem 0;
    transition: color 160ms ease;
}
.age-demo-progress-steps li.is-active { color: var(--ink); }
.age-demo-progress-steps li.is-done { color: var(--brand); }

/* ---------- Stage layout ---------- */

.age-demo-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr);
    gap: 1rem;
    align-items: start;
}

/* ===============================================
   BROWSER FRAME
   =============================================== */

.age-demo-browser {
    position: relative;
    border: 1px solid rgba(11, 26, 43, 0.12);
    border-radius: 14px;
    background: #e7e5df;
    box-shadow: 0 40px 90px -40px rgba(11, 26, 43, 0.5), 0 1px 0 rgba(255,255,255,0.6) inset;
    overflow: hidden;
}

.age-demo-browser-chrome {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.65rem 0.9rem;
    background: linear-gradient(180deg, #efede7, #e3e1da);
    border-bottom: 1px solid rgba(11, 26, 43, 0.1);
}

.age-demo-traffic { display: inline-flex; gap: 6px; }
.age-demo-traffic span {
    width: 12px; height: 12px; border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.age-demo-traffic span:nth-child(1) { background: #ff5f57; }
.age-demo-traffic span:nth-child(2) { background: #febc2e; }
.age-demo-traffic span:nth-child(3) { background: #28c840; }

.age-demo-tabs { display: flex; gap: 0; align-items: flex-end; min-width: 0; }
.age-demo-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px 8px 0 0;
    background: #f6f6f4;
    color: var(--store-ink);
    font: 500 0.82rem/1 var(--font-body);
    max-width: 260px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border: 1px solid rgba(11,26,43,0.08);
    border-bottom: 0;
    box-shadow: 0 2px 0 #f6f6f4;
}
.age-demo-tab-favicon {
    width: 14px; height: 14px; border-radius: 3px;
    background: var(--store-orange);
    flex: 0 0 auto;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.12);
}
.age-demo-tab-close { color: var(--muted); font-size: 0.9rem; }

.age-demo-address {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #f6f6f4;
    color: var(--store-ink);
    font: 500 0.8rem/1 var(--font-mono);
    min-width: 0;
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(11,26,43,0.08);
}
.age-demo-lock { color: #2aa45a; display: inline-flex; }

.age-demo-browser-actions { display: inline-flex; gap: 0.4rem; }
.age-demo-browser-actions span {
    width: 20px; height: 20px;
    border-radius: 4px;
    background: rgba(11,26,43,0.08);
}

/* viewport */
.age-demo-viewport {
    position: relative;
    min-height: 560px;
    background: var(--store-bg);
    overflow: hidden;
}

/* cursor */
.age-demo-cursor {
    position: absolute;
    top: 0; left: 0;
    width: 20px; height: 20px;
    pointer-events: none;
    z-index: 50;
    transition: transform 700ms cubic-bezier(.22,.8,.3,1), opacity 200ms ease;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
    transform: translate(-40px, -40px);
    transform-origin: 2px 2px;
    will-change: transform;
}
.age-demo-cursor svg { transform-origin: 2px 2px; transition: transform 180ms ease; }
.age-demo-cursor.is-clicking svg { animation: cursor-click 220ms ease; }
@keyframes cursor-click {
    0% { transform: scale(1); }
    50% { transform: scale(0.82); }
    100% { transform: scale(1); }
}

.age-demo-cursor::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(12, 108, 99, 0.4);
    opacity: 0;
    transform: scale(0.4);
}
.age-demo-cursor.is-clicking::after {
    animation: cursor-ripple 500ms ease;
}
@keyframes cursor-ripple {
    0% { opacity: 0.55; transform: scale(0.4); }
    100% { opacity: 0; transform: scale(2.8); }
}

/* scene transitions */
.age-demo-scene {
    position: absolute;
    inset: 0;
    padding: 1.25rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 420ms ease, transform 420ms ease;
    overflow: auto;
}
.age-demo-scene.is-active { opacity: 1; transform: none; }
.age-demo-scene[hidden] { display: none; }

/* ===============================================
   STORE (Stainsbury's parody)
   =============================================== */

.store-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 0.25rem 0.9rem;
    border-bottom: 1px solid var(--store-line);
    color: var(--store-ink);
}
.store-header-sub { grid-template-columns: auto 1fr auto; }

.store-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--store-orange-ink);
}
.store-logo-mark {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffa861, var(--store-orange) 70%);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.1), 0 2px 5px rgba(234, 108, 18, 0.3);
}

.store-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 38px;
    padding: 0 0.9rem;
    border: 1px solid var(--store-line-2);
    border-radius: 999px;
    background: var(--store-paper);
    color: var(--store-muted);
    font-size: 0.9rem;
    max-width: 460px;
}
.store-search-text { color: var(--store-ink); font-weight: 500; min-height: 1em; }
.store-search-caret {
    display: inline-block;
    width: 2px; height: 1em;
    background: var(--store-ink);
    animation: blink 1s steps(1) infinite;
    margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }
.store-search.store-search-filled { color: var(--store-ink); font-weight: 500; }

.store-nav {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--store-muted);
    font-size: 0.88rem;
    font-weight: 500;
}
.store-basket {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--store-ink);
}
.store-basket em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--store-orange);
    color: #fff;
    font: 600 0.72rem/1 var(--font-mono);
    font-style: normal;
    transition: transform 180ms ease;
}
.store-basket.is-active em { background: var(--store-orange-ink); }

.store-checkout-crumb {
    margin: 0;
    color: var(--store-muted);
    font-size: 0.85rem;
}

.store-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.4rem 1.6rem;
    border-radius: 14px;
    background: linear-gradient(120deg, #ffd9a7, #ffb070 60%, #ff9253);
    color: #4a1d00;
    overflow: hidden;
}
.store-eyebrow {
    margin: 0;
    font: 500 0.7rem/1 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(74, 29, 0, 0.7);
}
.store-hero h2 {
    margin: 0.35rem 0 0.2rem;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: 1.6rem;
    color: #4a1d00;
    letter-spacing: -0.02em;
}
.store-hero p { margin: 0; color: rgba(74, 29, 0, 0.78); font-size: 0.92rem; }
.store-hero-art {
    width: 120px; height: 90px;
    background:
        radial-gradient(circle at 30% 30%, #ff6b35, transparent 60%),
        radial-gradient(circle at 70% 60%, #e03f00, transparent 55%);
    border-radius: 14px;
    opacity: 0.85;
}

.store-rail {
    display: flex;
    gap: 0.4rem;
    margin-top: 1rem;
    overflow-x: auto;
}
.store-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--store-line-2);
    border-radius: 999px;
    background: var(--store-paper);
    font-size: 0.84rem;
    color: var(--store-ink);
}

/* results */
.store-results-head { margin: 0.75rem 0 1rem; }
.store-breadcrumb { margin: 0; font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--store-muted); }
.store-results-head h3 { margin: 0.3rem 0 0; font-size: 1rem; color: var(--store-ink); font-weight: 600; }

.store-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}
.store-card {
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px solid var(--store-line);
    border-radius: 10px;
    background: var(--store-paper);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.store-card[data-card="wine"].is-highlighted {
    border-color: var(--store-orange);
    box-shadow: 0 0 0 3px rgba(234, 108, 18, 0.14);
    transform: translateY(-2px);
}
.store-card-art {
    height: 120px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f3efe5, #e9e4d6);
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden;
}
.bottle-art {
    position: relative;
    width: 42px; height: 110px;
    background: linear-gradient(180deg, transparent 12%, #4a0f18 12%, #6b1622 90%);
    border-radius: 8px 8px 4px 4px / 16px 16px 4px 4px;
    margin-bottom: 4px;
    box-shadow: inset -4px 0 8px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.15);
}
.bottle-art::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 14px; height: 22px;
    background: #2a0510;
    border-radius: 4px 4px 0 0;
    transform: translateX(-50%);
}
.bottle-art::after {
    content: "";
    position: absolute;
    bottom: 12px; left: 50%;
    width: 32px; height: 38px;
    background: linear-gradient(180deg, #f5e7c6 0%, #e6d3a4 100%);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
    transform: translateX(-50%);
}
.bottle-art-b { background: linear-gradient(180deg, transparent 12%, #1f3d2b 12%, #2a5238 90%); }
.bottle-art-b::before { background: #0c1d15; }
.bottle-art-c { background: linear-gradient(180deg, transparent 12%, #3a2014 12%, #4a2a18 90%); }
.bottle-art-c::before { background: #1e0f08; }
.bottle-art-d { background: linear-gradient(180deg, transparent 12%, #2d1532 12%, #441f4c 90%); }
.bottle-art-d::before { background: #160a1a; }

.bottle-art-sm { width: 30px; height: 72px; }
.bottle-art-sm::before { width: 10px; height: 14px; }
.bottle-art-sm::after { width: 22px; height: 24px; bottom: 10px; }

.store-brand {
    margin: 0;
    font: 500 0.7rem/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--store-muted);
}
.store-card h4 { margin: 0; font-size: 0.92rem; color: var(--store-ink); font-weight: 600; }
.store-meta { margin: 0; color: var(--store-muted); font-size: 0.8rem; }
.store-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.35rem;
}
.store-card-foot strong { font-size: 1rem; color: var(--store-ink); }

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font: 600 0.82rem/1 var(--font-body);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.store-btn-primary {
    background: var(--store-orange);
    color: #fff;
    border-color: var(--store-orange);
    box-shadow: 0 4px 10px -4px rgba(234, 108, 18, 0.6);
}
.store-btn-primary:hover { background: #d05d06; }
.store-btn-ghost {
    background: var(--store-paper);
    color: var(--store-ink);
    border-color: var(--store-line-2);
}
.store-btn-block { width: 100%; padding: 0.8rem; font-size: 0.92rem; }

/* checkout */
.store-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
.store-checkout h3 { margin: 0 0 0.75rem; font-size: 1rem; color: var(--store-ink); font-weight: 600; }
.store-checkout-main,
.store-checkout-side {
    padding: 1rem;
    border: 1px solid var(--store-line);
    border-radius: 10px;
    background: var(--store-paper);
}
.store-basket-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px dashed var(--store-line);
}
.store-basket-row:last-child { border-bottom: 0; }
.store-basket-row-ghost { grid-template-columns: 1fr auto; color: var(--store-muted); }
.store-basket-copy h4 { margin: 0.15rem 0 0.1rem; font-size: 0.92rem; color: var(--store-ink); font-weight: 600; }
.store-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    color: var(--store-ink);
    font-size: 0.9rem;
}
.store-total-row-grand {
    padding-top: 0.7rem;
    margin-top: 0.3rem;
    border-top: 1px solid var(--store-line);
    font-size: 1rem;
    font-weight: 700;
}
.store-fine {
    margin: 0.7rem 0 0;
    color: var(--store-muted);
    font-size: 0.78rem;
}

/* dim / modal */
.store-dim {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(9, 16, 26, 0.48);
    backdrop-filter: blur(2px);
    animation: dim-in 280ms ease;
}
@keyframes dim-in { from { opacity: 0; } to { opacity: 1; } }

.store-modal {
    width: min(440px, 96%);
    padding: 1.4rem;
    border-radius: 14px;
    background: var(--store-paper);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
    animation: modal-in 340ms cubic-bezier(.22,.8,.3,1);
    color: var(--store-ink);
}
.store-modal-wide { width: min(640px, 96%); }
@keyframes modal-in {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.store-modal-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.6rem;
}
.store-modal-head h3 { margin: 0.2rem 0 0; font-size: 1.1rem; color: var(--store-ink); }
.store-modal-icon {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--store-orange-ink);
}
.store-modal-copy {
    margin: 0.35rem 0 1rem;
    color: var(--store-muted);
    font-size: 0.92rem;
}

.store-modal-options { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.store-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border: 1px solid var(--store-line-2);
    border-radius: 10px;
    background: #fbfaf6;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}
.store-option strong { display: block; color: var(--store-ink); font-size: 0.94rem; }
.store-option em { display: block; margin-top: 0.15rem; color: var(--store-muted); font-size: 0.84rem; font-style: normal; }
.store-option-mark {
    width: 18px; height: 18px; border-radius: 999px;
    border: 2px solid var(--store-line-2);
    background: var(--store-paper);
    margin-top: 2px;
    position: relative;
    transition: border-color 160ms ease, background 160ms ease;
}
.store-option-mark.is-checked {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: inset 0 0 0 3px var(--store-paper);
}
.store-option-muted { opacity: 0.7; }
.store-option-primary { border-color: rgba(12, 108, 99, 0.35); background: #f0faf7; }
.store-option-primary.is-highlighted {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(12, 108, 99, 0.15);
}
.store-option-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    margin-left: 0.4rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: 500 0.66rem/1 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.store-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* paphwey panel inside store modal */
.paphwey-panel-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: center;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--store-line);
}
.paphwey-panel-head h3 { margin: 0.2rem 0 0; font-size: 1.05rem; color: var(--store-ink); }
.paphwey-mark {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: #0b0b0d url("../img/paphwey-favicon.a4da3cddef67.svg") center/cover no-repeat;
}
.paphwey-status {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(199, 138, 60, 0.14);
    color: #6f4a13;
    font: 500 0.72rem/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.paphwey-status::before {
    content: "";
    width: 6px; height: 6px; border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(199, 138, 60, 0.22);
    animation: pulse-dot 1.4s ease-in-out infinite;
}
.paphwey-status[data-tone="success"] { background: rgba(12, 108, 99, 0.12); color: var(--brand); }
.paphwey-status[data-tone="success"]::before { background: var(--brand); box-shadow: 0 0 0 3px rgba(12, 108, 99, 0.18); animation: none; }

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(199, 138, 60, 0.22); }
    50% { box-shadow: 0 0 0 6px rgba(199, 138, 60, 0); }
}

.paphwey-panel-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding-top: 1rem;
}

.paphwey-qr { display: grid; gap: 0.6rem; justify-items: center; }
.paphwey-qr-shell {
    width: 160px; height: 160px;
    padding: 10px;
    border: 1px solid var(--store-line-2);
    border-radius: 10px;
    background: var(--store-paper);
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(16, 1fr);
    gap: 0;
}
.paphwey-qr-shell span {
    background: var(--store-ink);
    border-radius: 1px;
}
.paphwey-hint { margin: 0; font-size: 0.8rem; color: var(--store-muted); max-width: 160px; text-align: center; }

.paphwey-code { display: grid; gap: 0.45rem; align-content: start; }
.paphwey-code-display {
    font-family: var(--font-mono);
    font-size: 2rem;
    letter-spacing: 0.22em;
    color: var(--store-ink);
    display: block;
}
.paphwey-expiry { margin: 0; color: var(--store-muted); font-size: 0.82rem; }
.paphwey-scope {
    display: grid; gap: 0.55rem;
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--store-line);
    padding-top: 0.8rem;
}
.paphwey-scope li { display: grid; gap: 0.15rem; font-size: 0.86rem; color: var(--store-ink); }
.paphwey-scope code {
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(11, 26, 43, 0.06);
    color: var(--brand-deep);
    font: 500 0.85em/1 var(--font-mono);
}
.paphwey-scope-label {
    font: 500 0.7rem/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--store-muted);
}

/* ---------- Paphwey signup (Scenario A) ---------- */

.paphwey-signup-steps {
    list-style: none;
    margin: 0.9rem 0 0.6rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--store-line);
    border-radius: 10px;
    background: #fbfaf6;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.paphwey-signup-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: center;
    font-size: 0.82rem;
    color: var(--store-muted);
    transition: color 180ms ease;
}
.paphwey-signup-steps li.is-active { color: var(--store-ink); font-weight: 600; }
.paphwey-signup-steps li.is-done { color: var(--brand); }
.paphwey-signup-dot {
    display: grid; place-items: center;
    width: 22px; height: 22px;
    border-radius: 999px;
    background: var(--store-paper);
    border: 1px solid var(--store-line-2);
    color: var(--store-muted);
    font: 600 0.72rem/1 var(--font-mono);
}
.paphwey-signup-steps li.is-active .paphwey-signup-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.paphwey-signup-steps li.is-done .paphwey-signup-dot { background: var(--brand); border-color: var(--brand); color: #fff; }

.paphwey-signup-body { padding-top: 0.4rem; }
.paphwey-signup-pane { display: none; }
.paphwey-signup-pane.is-active { display: block; animation: pane-in 280ms ease; }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.paphwey-field { display: grid; gap: 0.35rem; margin-bottom: 0.75rem; }
.paphwey-field > span {
    font: 500 0.7rem/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--store-muted);
}
.paphwey-input {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 44px;
    padding: 0 0.9rem;
    border: 1px solid var(--store-line-2);
    border-radius: 10px;
    background: var(--store-paper);
    color: var(--store-ink);
    font: 500 0.95rem/1 var(--font-body);
}
.paphwey-input .store-search-caret { height: 1.1em; background: var(--brand); }

.paphwey-fine { margin: 0 0 1rem; font-size: 0.85rem; color: var(--store-muted); line-height: 1.5; }
.paphwey-fine-tight { margin-bottom: 0.9rem; }
.paphwey-fine-muted { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--store-muted); }

.paphwey-signup-actions { display: flex; justify-content: flex-end; gap: 0.5rem; padding-top: 0.3rem; }

.paphwey-otp {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin: 0.8rem 0 1rem;
}
.paphwey-otp span {
    display: grid; place-items: center;
    height: 54px;
    border: 1px solid var(--store-line-2);
    border-radius: 10px;
    background: var(--store-paper);
    color: var(--store-ink);
    font: 600 1.3rem/1 var(--font-mono);
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}
.paphwey-otp span.is-filled {
    border-color: var(--brand);
    background: rgba(12, 108, 99, 0.06);
    color: var(--brand-deep);
    transform: translateY(-1px);
}
.paphwey-otp span.is-focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(12, 108, 99, 0.15);
}

.paphwey-signup-ready {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(12, 108, 99, 0.2);
    border-radius: 10px;
    background: rgba(12, 108, 99, 0.06);
}
.paphwey-signup-ready strong { display: block; font-size: 0.94rem; color: var(--store-ink); }
.paphwey-signup-ready p { margin: 0.2rem 0 0; color: var(--store-muted); font-size: 0.85rem; line-height: 1.5; }
.paphwey-signup-ready code {
    padding: 0.08rem 0.32rem;
    border-radius: 4px;
    background: rgba(11, 26, 43, 0.06);
    color: var(--brand-deep);
    font: 500 0.88em/1 var(--font-mono);
}

/* ---------- Paphwey download (Scenario A) ---------- */

.paphwey-download-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.4rem;
    padding-top: 0.9rem;
    align-items: start;
}
.paphwey-download-qr { display: grid; gap: 0.6rem; justify-items: center; }
.paphwey-download-copy h4 {
    margin: 0 0 0.8rem;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--store-ink);
    letter-spacing: -0.01em;
}
.paphwey-download-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}
.paphwey-download-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: flex-start;
}
.paphwey-download-step-num {
    display: grid; place-items: center;
    width: 22px; height: 22px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: 600 0.72rem/1 var(--font-mono);
    margin-top: 2px;
}
.paphwey-download-steps strong { display: block; font-size: 0.9rem; color: var(--store-ink); }
.paphwey-download-steps em { display: block; margin-top: 0.15rem; font-style: normal; font-size: 0.82rem; color: var(--store-muted); }

.paphwey-download-stores {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.9rem;
}
.paphwey-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--store-line-2);
    border-radius: 8px;
    background: #fbfaf6;
    color: var(--store-ink);
    font: 500 0.78rem/1 var(--font-body);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.paphwey-store-badge.is-active {
    border-color: var(--brand);
    background: rgba(12, 108, 99, 0.08);
    transform: translateY(-1px);
}
.paphwey-store-badge.is-dimmed { opacity: 0.45; }

.paphwey-download-note { margin-top: 1rem; margin-bottom: 0; }

/* ---------- Phone · Camera scene (Scenario A) ---------- */

.phone-scene-camera { background: #0a0f18; padding: 40px 12px 14px; }
.phone-camera-ui {
    position: relative;
    flex: 1;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06), transparent 55%),
        linear-gradient(180deg, #1a1f2b, #05080f);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-camera-frame {
    position: relative;
    width: 150px; height: 150px;
}
.phone-camera-corner {
    position: absolute;
    width: 22px; height: 22px;
    border-color: rgba(255,255,255,0.9);
    border-style: solid;
    border-width: 0;
}
.phone-camera-corner-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.phone-camera-corner-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 6px; }
.phone-camera-corner-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 6px; }
.phone-camera-corner-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

.phone-camera-qr {
    position: absolute;
    inset: 14px;
    border-radius: 4px;
    background:
        conic-gradient(from 0deg at 18% 18%, #fff 0 25%, transparent 0 50%),
        radial-gradient(circle at 82% 18%, #fff 8px, transparent 9px),
        radial-gradient(circle at 18% 82%, #fff 8px, transparent 9px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.72) 0 3px, transparent 3px 6px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.72) 0 3px, transparent 3px 6px),
        #0a1220;
    background-blend-mode: normal, normal, normal, difference, difference, normal;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
}
.phone-camera-scanline {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0c6c63, transparent);
    box-shadow: 0 0 12px rgba(12, 108, 99, 0.8);
    animation: scanline 1.8s ease-in-out infinite;
}
@keyframes scanline {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    50% { top: 100%; opacity: 1; }
    90% { opacity: 0; }
}

.phone-camera-link {
    position: absolute;
    left: 12px; right: 12px; bottom: 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: center;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    color: #0a0f18;
    box-shadow: 0 8px 20px -10px rgba(0,0,0,0.55);
    animation: camera-link-in 340ms cubic-bezier(.22,.8,.3,1);
}
@keyframes camera-link-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.phone-camera-link-icon {
    display: grid; place-items: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
}
.phone-camera-link strong { display: block; font-size: 0.78rem; font-weight: 600; }
.phone-camera-link em { display: block; margin-top: 1px; font-style: normal; font-size: 0.7rem; color: #4b5563; }

/* ---------- Phone · App Store scene (Scenario A) ---------- */

.phone-scene-appstore { background: #f2f3f6; padding: 40px 12px 14px; color: #0a0f18; }
.phone-appstore-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0.2rem 0 0.6rem;
    border-bottom: 1px solid rgba(10, 15, 24, 0.08);
    color: #0a0f18;
}
.phone-appstore-head strong { font-size: 0.86rem; text-align: center; }
.phone-appstore-back { font-size: 1.2rem; color: #007aff; line-height: 1; }
.phone-appstore-spacer { width: 12px; }

.phone-appstore-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem 0.4rem 0.8rem;
    animation: appstore-in 420ms cubic-bezier(.22,.8,.3,1);
}
@keyframes appstore-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.phone-appstore-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0c6c63, #0a1e2f);
    box-shadow: 0 6px 14px -6px rgba(12, 108, 99, 0.6), inset 0 0 0 1px rgba(255,255,255,0.08);
    position: relative;
}
.phone-appstore-icon::after {
    content: "P";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}
.phone-appstore-meta strong { display: block; font-size: 0.88rem; color: #0a0f18; }
.phone-appstore-meta em { display: block; font-style: normal; font-size: 0.7rem; color: #6b7280; margin-top: 1px; }
.phone-appstore-rating { display: flex; align-items: center; gap: 0.35rem; margin-top: 4px; font-size: 0.68rem; color: #6b7280; }
.phone-appstore-rating span { color: #ff9500; letter-spacing: -1px; font-size: 0.72rem; }
.phone-appstore-rating em { margin-top: 0; font-size: 0.66rem; color: #6b7280; }

.phone-appstore-get {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 0;
    background: #007aff;
    color: #fff;
    font: 600 0.78rem/1 var(--font-body);
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease;
}
.phone-appstore-get.is-pressed { transform: scale(0.95); background: #0066d6; }
.phone-appstore-get.is-installed { background: rgba(10, 15, 24, 0.08); color: #0a0f18; }

.phone-appstore-progress {
    display: grid;
    gap: 0.25rem;
    margin: 0.4rem 0.4rem 0;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(10, 15, 24, 0.04);
    animation: appstore-in 260ms ease;
}
.phone-appstore-progress-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(10, 15, 24, 0.1);
    overflow: hidden;
}
.phone-appstore-progress-bar i {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--brand);
    transition: width 180ms linear;
}
.phone-appstore-progress span { font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; }

.phone-appstore-highlights {
    list-style: none;
    margin: 0.7rem 0.4rem 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}
.phone-appstore-highlights li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.74rem;
    color: #374151;
}
.phone-appstore-highlights li span {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 4px;
    background: var(--brand);
    position: relative;
}
.phone-appstore-highlights li span::after {
    content: ""; position: absolute;
    top: 3px; left: 2px; width: 8px; height: 4px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* ---------- Paphwey instant grant (Scenario B) ---------- */

.paphwey-instant-body { padding-top: 0.9rem; display: grid; gap: 0.55rem; }
.paphwey-instant-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.8rem;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--store-line);
    font-size: 0.88rem;
    color: var(--store-ink);
}
.paphwey-instant-row:last-of-type { border-bottom: 0; }
.paphwey-instant-row strong { font-weight: 500; }
.paphwey-instant-row code {
    padding: 0.08rem 0.32rem;
    border-radius: 4px;
    background: rgba(11, 26, 43, 0.06);
    color: var(--brand-deep);
    font: 500 0.88em/1 var(--font-mono);
}
.paphwey-instant-label {
    font: 500 0.7rem/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--store-muted);
}

.paphwey-instant-result {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(12, 108, 99, 0.2);
    border-radius: 10px;
    background: rgba(12, 108, 99, 0.06);
    animation: banner-in 400ms cubic-bezier(.22,.8,.3,1);
}
.paphwey-instant-result strong { display: block; font-size: 0.95rem; color: var(--store-ink); }
.paphwey-instant-result p { margin: 0.2rem 0 0; color: var(--store-muted); font-size: 0.86rem; line-height: 1.5; }

/* success banner */
.store-success-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem 1rem;
    margin: 0.9rem 0;
    border: 1px solid rgba(12, 108, 99, 0.25);
    border-radius: 10px;
    background: rgba(12, 108, 99, 0.07);
    color: var(--store-ink);
    animation: banner-in 360ms cubic-bezier(.22,.8,.3,1);
}
.store-success-banner p { margin: 0.2rem 0 0; color: var(--store-muted); font-size: 0.9rem; }
.store-success-icon {
    display: grid; place-items: center;
    width: 32px; height: 32px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
}
@keyframes banner-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.store-pay-card {
    display: grid; gap: 0.55rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--store-line);
    border-radius: 10px;
    background: #fbfaf6;
}
.store-pay-row { display: flex; justify-content: space-between; color: var(--store-ink); font-size: 0.9rem; }
.store-pay-row span:first-child { color: var(--store-muted); font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }

/* confirmed */
.store-confirm {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    padding: 2.2rem 1rem;
    text-align: center;
}
.store-confirm-icon {
    display: grid; place-items: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(12, 108, 99, 0.12);
    color: var(--brand);
    animation: pop 480ms cubic-bezier(.22,.8,.3,1);
}
@keyframes pop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}
.store-confirm h2 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--store-ink);
    letter-spacing: -0.02em;
}
.store-confirm p { margin: 0; color: var(--store-muted); }
.store-confirm-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--store-line);
}
.store-confirm-meta div { display: grid; gap: 0.2rem; }
.store-confirm-meta span {
    font: 500 0.7rem/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--store-muted);
}
.store-confirm-meta strong { color: var(--store-ink); font-size: 0.95rem; }

/* ===============================================
   SIDE RAIL: Phone + Narration + Events
   =============================================== */

.age-demo-side { display: grid; gap: 0.85rem; align-content: start; position: sticky; top: 4rem; }

/* Phone */
.age-demo-phone {
    display: grid;
    place-items: center;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #f3f0e8, #ece7d7);
    box-shadow: var(--shadow-sm);
}

.age-demo-phone-frame {
    position: relative;
    width: 240px;
    height: 490px;
    padding: 10px;
    border-radius: 40px;
    background: #0a0f18;
    box-shadow:
        0 0 0 2px #2a3040,
        0 30px 60px -30px rgba(0,0,0,0.6),
        inset 0 0 0 1px #1c2230;
}
.age-demo-phone-notch {
    position: absolute;
    top: 18px; left: 50%;
    transform: translateX(-50%);
    width: 78px; height: 20px;
    background: #0a0f18;
    border-radius: 999px;
    z-index: 2;
}
.age-demo-phone-screen {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 30px;
    background: var(--phone-bg);
    overflow: hidden;
}

.phone-scene {
    position: absolute;
    inset: 0;
    padding: 40px 14px 16px;
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 320ms ease, transform 320ms ease;
    display: flex;
    flex-direction: column;
}
.phone-scene.is-active { opacity: 1; transform: none; }
.phone-scene[hidden] { display: none; }

.phone-lock {
    text-align: center;
    color: #fff;
    margin-top: 0.5rem;
}
.phone-time {
    display: block;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 400;
    font-size: 3.8rem;
    line-height: 1;
    letter-spacing: -0.04em;
}
.phone-date { margin: 0.25rem 0 0; font-size: 0.82rem; color: rgba(255,255,255,0.7); }

.phone-notification {
    margin-top: auto;
    margin-bottom: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(20px);
    color: #fff;
    animation: phone-notif-in 480ms cubic-bezier(.22,.8,.3,1);
}
@keyframes phone-notif-in {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.phone-notification-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 0.35rem;
}
.phone-notification-icon {
    width: 20px; height: 20px;
    border-radius: 5px;
    background: linear-gradient(135deg, #0c6c63, #0a1e2f);
}
.phone-notification strong { font-size: 0.82rem; }
.phone-notification em { font-style: normal; font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-left: 0.5rem; }
.phone-notification p { margin: 0; font-size: 0.84rem; color: rgba(255,255,255,0.9); line-height: 1.35; }

/* approval card */
.phone-scene[data-phone-scene="approve"],
.phone-scene[data-phone-scene="success"] { background: var(--phone-paper); color: var(--store-ink); }

.phone-app-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--store-line);
}
.phone-app-mark {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0c6c63, #0a1e2f);
}
.phone-app-head strong { display: block; font-size: 0.85rem; }
.phone-app-head em { display: block; margin-top: 2px; font-style: normal; font-size: 0.72rem; color: var(--store-muted); }

.phone-request { padding: 0.7rem 0 0.5rem; }
.phone-requestor { margin: 0; font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--store-muted); }
.phone-request h3 {
    margin: 0.45rem 0 0.7rem;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--store-ink);
    letter-spacing: -0.02em;
}

.phone-scope-list { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.35rem; }
.phone-scope-list li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--store-ink);
}
.phone-scope-check,
.phone-scope-x { width: 16px; height: 16px; border-radius: 4px; display: inline-block; position: relative; }
.phone-scope-check { background: var(--brand); }
.phone-scope-check::after {
    content: ""; position: absolute;
    top: 4px; left: 3px; width: 9px; height: 5px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}
.phone-scope-x { background: #e8ebee; }
.phone-scope-x::before, .phone-scope-x::after {
    content: ""; position: absolute;
    top: 7px; left: 3px; width: 10px; height: 2px;
    background: #8893a4;
}
.phone-scope-x::before { transform: rotate(45deg); }
.phone-scope-x::after { transform: rotate(-45deg); }

.phone-meta {
    padding: 0.5rem 0.6rem;
    margin: 0.4rem 0 0.75rem;
    border-radius: 8px;
    background: #f4f5f7;
    font: 500 0.72rem/1.3 var(--font-mono);
    color: var(--store-muted);
}

.phone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.phone-btn {
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font: 600 0.82rem/1 var(--font-body);
    cursor: pointer;
}
.phone-btn-ghost { background: #f4f5f7; color: var(--store-ink); }
.phone-btn-primary {
    background: var(--brand); color: #fff;
    box-shadow: 0 4px 10px -4px rgba(12, 108, 99, 0.5);
}
.phone-btn-primary.is-pressed {
    transform: scale(0.97);
    box-shadow: 0 0 0 4px rgba(12, 108, 99, 0.14);
}

/* success */
.phone-success {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.7rem;
    padding: 1rem;
    text-align: center;
    height: 100%;
}
.phone-success-tick {
    display: grid; place-items: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(12, 108, 99, 0.12);
    color: var(--brand);
    animation: pop 480ms cubic-bezier(.22,.8,.3,1);
}
.phone-success h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.1rem; margin: 0; color: var(--store-ink); }
.phone-success p { margin: 0; font-size: 0.82rem; color: var(--store-muted); line-height: 1.45; }

/* Narration */
.age-demo-narration {
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.age-demo-narration h3 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    margin: 0.15rem 0 0.4rem;
}
.age-demo-narration p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Events */
.age-demo-events {
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--event-bg);
    color: #d6e4f0;
    box-shadow: var(--shadow-sm);
    max-height: 260px;
    overflow: hidden;
}
.age-demo-events header { padding-bottom: 0.55rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 0.55rem; }
.age-demo-events .eyebrow { color: rgba(214, 228, 240, 0.55); margin: 0; }

.age-demo-event-list {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    gap: 0.35rem;
    max-height: 200px;
    overflow-y: auto;
    scroll-behavior: smooth;
    font: 500 0.78rem/1.5 var(--font-mono);
}
.age-demo-event-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    opacity: 0;
    transform: translateY(4px);
    animation: event-in 280ms ease forwards;
}
.age-demo-event-list li time { color: rgba(214, 228, 240, 0.5); }
.age-demo-event-list li span { color: #d6e4f0; word-break: break-word; }
.age-demo-event-list li[data-kind="ok"] span { color: #7fd9b8; }
.age-demo-event-list li[data-kind="warn"] span { color: #ffc87a; }
.age-demo-event-list li[data-kind="event"] span::before { content: "event · "; color: rgba(214, 228, 240, 0.45); }
.age-demo-event-list li[data-kind="http"] span::before { content: "http · "; color: rgba(214, 228, 240, 0.45); }

@keyframes event-in { to { opacity: 1; transform: none; } }

/* ---------- Epilogue ---------- */

.age-demo-epilogue {
    padding: clamp(1.4rem, 2.6vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.age-demo-epilogue-head { max-width: 44rem; margin-bottom: 1.3rem; }
.age-demo-epilogue-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}
.age-demo-epilogue-grid article {
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper-soft);
}
.age-demo-epilogue-grid h3 { font-size: 1rem; margin-bottom: 0.65rem; }
.age-demo-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.age-demo-mini-list li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.age-demo-mini-list li::before {
    content: "";
    position: absolute;
    top: 0.55rem; left: 0;
    width: 10px; height: 2px;
    background: var(--brand);
}
.age-demo-mini-list-x li::before { background: var(--accent); }
.age-demo-mini-list code {
    padding: 0.08rem 0.32rem;
    border-radius: 4px;
    background: rgba(11, 26, 43, 0.06);
    color: var(--brand-deep);
    font: 500 0.85em/1 var(--font-mono);
}
.age-demo-epilogue-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .age-demo-intro { grid-template-columns: 1fr; align-items: start; }
    .age-demo-scenario-switch { grid-template-columns: 1fr; }
    .age-demo-stage { grid-template-columns: 1fr; }
    .paphwey-instant-row { grid-template-columns: 1fr; }
    .paphwey-download-body { grid-template-columns: 1fr; justify-items: center; }
    .paphwey-download-copy { max-width: 420px; }
    .age-demo-side { position: static; }
    .age-demo-phone-frame { width: 260px; height: 520px; }
    .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .age-demo-epilogue-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .age-demo-viewport { min-height: 520px; }
    .store-checkout,
    .paphwey-panel-grid { grid-template-columns: 1fr; }
    .store-grid { grid-template-columns: 1fr; }
    .store-hero-art { display: none; }
    .age-demo-controls { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .age-demo-scene,
    .phone-scene,
    .age-demo-cursor,
    .store-dim,
    .store-modal,
    .store-success-banner,
    .store-confirm-icon,
    .phone-success-tick,
    .age-demo-event-list li,
    .phone-notification { transition: none; animation: none; }
    .store-search-caret { animation: none; }
    .paphwey-status::before { animation: none; }
}
