/* ================================================================
   UX PSYCHOLOGY — Attention & Visual Perception Patterns (White Mode)
   ================================================================ */

/* ---------- Custom Properties ---------- */
:root {
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --clr-bg: #f8f9fc;
    --clr-surface: #ffffff;
    --clr-text: #1a1a2e;
    --clr-text-muted: #475569;
    --clr-indigo: #6366f1;
    --clr-indigo-deep: #4338ca;
    --clr-sky: #0ea5e9;
    --clr-emerald: #10b981;
    --clr-amber: #f59e0b;
    --clr-red: #ef4444;
    --clr-pink: #ec4899;
    --clr-purple: #8b5cf6;
    --clr-border: rgba(0,0,0,0.08);
    --clr-border-strong: rgba(0,0,0,0.15);

    --slide-transition: 0.8s cubic-bezier(.4, 0, .15, 1);
    --bubble-bg: rgba(255,255,255,0.85);
    --bubble-border: rgba(0,0,0,0.08);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

html, body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--clr-text);
    background: var(--clr-bg);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Presentation Container ---------- */
.presentation {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ---------- Progress Bar ---------- */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.04);
    z-index: 100;
}
.progress-fill {
    height: 100%;
    width: 8.33%;
    background: linear-gradient(90deg, var(--clr-indigo), var(--clr-sky));
    transition: width 0.7s cubic-bezier(.4,0,.2,1);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 12px rgba(99,102,241,0.3);
}

/* ---------- Slides Base ---------- */
.slide {
    position: absolute;
    inset: 0 0 90px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--slide-transition), transform var(--slide-transition), filter var(--slide-transition);
    transform: translateX(60px) scale(0.98);
    filter: blur(4px);
    z-index: 1;
}
.slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    filter: blur(0);
    z-index: 10;
}
.slide.exit-left {
    opacity: 0;
    transform: translateX(-60px) scale(0.98);
    filter: blur(4px);
}
.slide.exit-right {
    opacity: 0;
    transform: translateX(60px) scale(0.98);
    filter: blur(4px);
}

.slide-content {
    width: 100%;
    height: 100%;
    padding: 48px 5vw 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* ---------- Slide Tag / Label ---------- */
.slide-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-indigo);
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 20px;
    padding: 5px 16px;
    margin-bottom: 14px;
    width: fit-content;
}

/* ---------- Navigation ---------- */
.slide-nav {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 200;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--clr-border);
    border-radius: 50px;
    padding: 8px 12px;
    box-shadow: var(--shadow-lg);
}

.nav-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--clr-border-strong);
    background: var(--clr-surface);
    color: var(--clr-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}
.nav-arrow svg { width: 18px; height: 18px; }
.nav-arrow:hover {
    background: rgba(99,102,241,0.1);
    border-color: var(--clr-indigo);
    transform: scale(1.12);
    box-shadow: 0 0 16px rgba(99,102,241,0.2);
}
.nav-arrow:active { transform: scale(0.92); }
.nav-arrow.disabled { opacity: 0.25; pointer-events: none; }

.slide-dots { display: flex; gap: 6px; }
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.15);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.dot.active {
    background: var(--clr-indigo);
    border-color: var(--clr-indigo);
    width: 24px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(99,102,241,0.4);
}
.dot:hover { border-color: var(--clr-sky); }

.dot-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--clr-text);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
}
.dot:hover .dot-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

.slide-counter {
    position: fixed;
    bottom: 32px;
    right: 30px;
    font-size: 0.82rem;
    color: var(--clr-text-muted);
    font-family: var(--font-mono);
    z-index: 200;
    letter-spacing: 1px;
}

/* ---------- Animation Primitives ---------- */
.anim {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.4,0,.2,1);
}
.slide.active .anim { opacity: 1; transform: none; }

.anim-fade-down  { transform: translateY(-35px); }
.anim-fade-up    { transform: translateY(35px); }
.anim-fade-left  { transform: translateX(-45px); }
.anim-fade-right { transform: translateX(45px); }
.anim-pop        { transform: scale(0.4); }

/* ---------- Step Items ---------- */
.step-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.step-item.step-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* ---------- Owl Mascot ---------- */
.owl-wrap {
    display: inline-block;
    position: relative;
}
.owl-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.owl-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(99,102,241,0.25));
    animation: owlFloat 3.5s ease-in-out infinite, owlBreath 6s ease-in-out infinite;
    transform-origin: center bottom;
    transition: filter 0.4s ease;
}
.owl-img:hover {
    filter: drop-shadow(0 8px 28px rgba(99,102,241,0.4));
}
.owl-img-sm {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}
.owl-img-lg {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(99,102,241,0.25));
    transform-origin: center bottom;
    opacity: 0;
    transform: translateY(30px) scale(0.5);
    transition: none;
}
.slide.active .owl-img-lg {
    animation: owlCelebrate 0.9s cubic-bezier(.34,1.56,.64,1) forwards, owlFloat 3s ease-in-out 1s infinite, owlBreath 5s ease-in-out 1s infinite;
}

@keyframes owlFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes owlBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
@keyframes owlCelebrate {
    0% { opacity: 0; transform: translateY(30px) scale(0.5); }
    50% { opacity: 1; transform: translateY(-12px) scale(1.1); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Owl hover speech bubble ---- */
.owl-bubble {
    position: absolute;
    top: 50%;
    left: calc(100% + 18px);
    transform: translateY(-50%) translateX(10px);
    width: 240px;
    background: #fff;
    border: 1.5px solid var(--clr-indigo);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(99,102,241,0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    z-index: 100;
    text-align: left;
}
.owl-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: var(--clr-indigo);
}
.owl-bubble p {
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
    color: var(--clr-text);
    font-family: var(--font-body);
}
.owl-wrap:hover .owl-bubble {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

/* ---------- Key Diff Callout ---------- */
.key-diff {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.18);
    border-left: 3px solid var(--clr-indigo);
    border-radius: 10px;
    padding: 12px 18px;
    margin-top: 12px;
    max-width: 680px;
    flex-shrink: 0;
}
.key-diff-wide {
    max-width: 100%;
    margin: 8px auto 0;
}
.kd-icon { font-size: 1.3rem; flex-shrink: 0; }
.kd-text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--clr-text-muted);
}
.kd-text strong { color: var(--clr-indigo); }
.kd-text em { color: var(--clr-sky); font-style: italic; }

/* ---------- Slide Sub/Def ---------- */
.slide-sub {
    font-size: 1rem;
    color: var(--clr-text-muted);
    line-height: 1.55;
}
.slide-sub em { color: var(--clr-indigo); font-style: italic; }
.slide-sub strong { color: var(--clr-text); }

.principle-def {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
    max-width: 480px;
}
.principle-def strong { color: var(--clr-text); }

.heading-amp {
    color: var(--clr-text-muted);
    font-weight: 400;
    margin: 0 0.15em;
}

/* ================================================================
   SLIDE 1 — Title
   ================================================================ */
.slide-title {
    background: linear-gradient(135deg, #f0f0ff 0%, #e8f4f8 40%, #faf5ff 100%);
}

.stitle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 14px;
    text-align: center;
}
.stitle-mascot { margin-bottom: 10px; }
.stitle-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--clr-text);
    display: flex;
    flex-direction: column;
}
.stitle-line1 { color: var(--clr-text); }
.stitle-line2 {
    background: linear-gradient(135deg, var(--clr-indigo), var(--clr-sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stitle-sub {
    font-size: 1rem;
    color: var(--clr-text-muted);
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.stitle-author {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--clr-indigo);
    font-weight: 500;
    margin-top: 6px;
}
.stitle-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--clr-text-muted);
    text-decoration: none;
    border: 1px solid var(--clr-border-strong);
    border-radius: 24px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}
.stitle-link:hover {
    color: var(--clr-indigo);
    border-color: var(--clr-indigo);
    background: rgba(99,102,241,0.06);
}

/* ================================================================
   SLIDE 2 — Introduction
   ================================================================ */
.sintro-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}
.sintro-header { max-width: 720px; }
.sintro-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 12px;
}
.sintro-bigquote {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 12px;
    padding: 18px 22px;
    max-width: 720px;
}
.bigquote-mark {
    font-size: 2.5rem;
    color: var(--clr-indigo);
    line-height: 1;
    font-family: Georgia, serif;
    flex-shrink: 0;
}
.sintro-bigquote p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--clr-text-muted);
}
.sintro-bigquote strong { color: var(--clr-indigo); }
.sintro-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 720px;
}
.sintro-card {
    flex: 1;
    min-width: 180px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}
.sintro-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.sintro-card-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.sintro-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--clr-text);
}
.sintro-card p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--clr-text-muted);
}

/* ================================================================
   PRINCIPLE LAYOUT (shared by slides 3–10)
   ================================================================ */
.principle-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    overflow-y: auto;
}
.principle-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.principle-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.15;
}
.principle-quote {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 12px;
    padding: 14px 18px;
    max-width: 480px;
}
.principle-quote p {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--clr-text-muted);
    font-style: italic;
}
.principle-quote p strong { color: var(--clr-text); }

/* ---- App Window ---- */
.app-window {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.window-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid var(--clr-border);
}
.window-dots {
    display: flex;
    gap: 6px;
}
.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }
.window-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}
.window-body {
    padding: 18px;
}

/* ================================================================
   SLIDE 3 — F-Pattern & Z-Pattern
   ================================================================ */
.demo-fpattern { display: flex; flex-direction: column; gap: 14px; }

.fp-tabs {
    display: flex;
    gap: 6px;
}
.fp-tab {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(0,0,0,0.04);
    color: var(--clr-text-muted);
    border: 1px solid transparent;
}
.fp-tab-active {
    background: rgba(99,102,241,0.1);
    color: var(--clr-indigo);
    border-color: rgba(99,102,241,0.2);
}

.fp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fp-page {
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    min-height: 160px;
    background: rgba(0,0,0,0.01);
}

/* F-Pattern page */
.fp-heatzone {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}
.fp-hz-1 {
    background: rgba(239,68,68,0.15);
    color: var(--clr-red);
    border-left: 3px solid var(--clr-red);
}
.fp-hz-2 {
    background: rgba(245,158,11,0.12);
    color: var(--clr-amber);
    border-left: 3px solid var(--clr-amber);
    width: 80%;
}
.fp-hz-3 {
    background: rgba(14,165,233,0.1);
    color: var(--clr-sky);
    border-left: 3px solid var(--clr-sky);
    width: 60%;
}
.fp-body-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}
.fp-line {
    height: 4px;
    border-radius: 2px;
}
.fp-line-hot { background: rgba(239,68,68,0.2); width: 90%; }
.fp-line-warm { background: rgba(245,158,11,0.15); width: 70%; }
.fp-line-cold { background: rgba(0,0,0,0.05); width: 95%; }

.fp-path-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(99,102,241,0.12);
    line-height: 1;
}

/* Z-Pattern page */
.fp-page-z {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    align-items: center;
}
.fp-z-corner {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(99,102,241,0.08);
    color: var(--clr-indigo);
    text-align: center;
}
.fp-z-tl { grid-column: 1; grid-row: 1; }
.fp-z-tr { grid-column: 2; grid-row: 1; background: rgba(16,185,129,0.1); color: var(--clr-emerald); }
.fp-z-bl { grid-column: 1; grid-row: 3; }
.fp-z-br { grid-column: 2; grid-row: 3; background: rgba(16,185,129,0.1); color: var(--clr-emerald); }
.fp-z-diagonal {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 2px;
    background: linear-gradient(135deg, var(--clr-indigo) 0%, transparent 100%);
    transform: rotate(-5deg);
}

.fp-tips {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fp-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    background: rgba(0,0,0,0.02);
    padding: 8px 10px;
    border-radius: 6px;
}
.fp-tip-icon { font-size: 1rem; flex-shrink: 0; }
.fp-tip strong { color: var(--clr-text); }

/* ================================================================
   SLIDE 4 — Banner Blindness
   ================================================================ */
.demo-bannerblind { display: flex; flex-direction: column; gap: 12px; }

.bb-page {
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #fafbfd;
}
.bb-nav {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    padding: 8px 12px;
    background: rgba(0,0,0,0.03);
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
}
.bb-banner {
    padding: 10px 14px;
    background: linear-gradient(90deg, #fff3cd, #fce588);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.bb-banner-text { color: #92400e; }
.bb-x-mark {
    font-size: 1rem;
    color: #92400e;
    opacity: 0.5;
}
.bb-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bb-article-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(0,0,0,0.06);
}
.bb-line-long { width: 100%; }
.bb-line-medium { width: 75%; }
.bb-line-short { width: 50%; }

.bb-sidebar {
    position: absolute;
    top: 36px;
    right: 0;
    width: 80px;
    bottom: 0;
    border-left: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.01);
}
.bb-sidebar-ad {
    width: 60px;
    height: 60px;
    border: 1px dashed rgba(0,0,0,0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    position: relative;
}

.bb-ignored { position: relative; }
.bb-blind-overlay {
    position: absolute;
    inset: 0;
    background: rgba(239,68,68,0.08);
    border: 2px dashed rgba(239,68,68,0.3);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--clr-red);
    font-weight: 600;
}

.bb-stats {
    display: flex;
    gap: 12px;
}
.bb-stat {
    flex: 1;
    background: rgba(239,68,68,0.05);
    border: 1px solid rgba(239,68,68,0.12);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}
.bb-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-red);
}
.bb-stat-label {
    font-size: 0.72rem;
    color: var(--clr-text-muted);
}

.bb-fix {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.15);
    border-left: 3px solid var(--clr-emerald);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--clr-text-muted);
}
.bb-fix-icon {
    color: var(--clr-emerald);
    font-weight: 700;
    font-size: 1rem;
}
.bb-fix strong { color: var(--clr-emerald); }

/* ================================================================
   SLIDE 5 — Change Blindness
   ================================================================ */
.demo-changeblind { display: flex; flex-direction: column; gap: 14px; }

.cb-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cb-side {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--clr-border);
}
.cb-label {
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono);
}
.cb-label-bad { background: rgba(239,68,68,0.08); color: var(--clr-red); }
.cb-label-good { background: rgba(16,185,129,0.08); color: var(--clr-emerald); }

.cb-mockup {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.cb-cart-badge {
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: 6px 14px;
    border-radius: 8px;
    position: relative;
}
.cb-badge-animated {
    border-color: var(--clr-indigo);
    color: var(--clr-indigo);
}
.cb-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--clr-red);
    border-radius: 50%;
    animation: cbPulse 1.5s ease-in-out infinite;
}
@keyframes cbPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.4; }
}
.cb-note {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    text-align: center;
}
.cb-result {
    font-size: 0.75rem;
    text-align: center;
}
.cb-result-good { color: var(--clr-emerald); font-weight: 500; }

.cb-techniques {
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 10px;
    padding: 14px;
}
.cb-techniques h4 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--clr-text);
}
.cb-tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.cb-tech {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    background: var(--clr-surface);
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--clr-border);
}

/* ================================================================
   SLIDE 6 — Inattentional Blindness
   ================================================================ */
.demo-inattentional { display: flex; flex-direction: column; gap: 14px; }

.ia-scene {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}
.ia-focus-area {
    position: relative;
    border: 2px solid var(--clr-indigo);
    border-radius: 10px;
    padding: 12px;
    background: rgba(99,102,241,0.03);
}
.ia-tunnel-label {
    position: absolute;
    top: -10px;
    left: 12px;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    background: var(--clr-surface);
    color: var(--clr-indigo);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.ia-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ia-form-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ia-field-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}
.ia-field-input {
    font-size: 0.75rem;
    padding: 6px 10px;
    border: 1px solid var(--clr-border);
    border-radius: 6px;
    background: var(--clr-surface);
    color: var(--clr-text);
}
.ia-submit {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: var(--clr-indigo);
    color: white;
    cursor: pointer;
    margin-top: 4px;
}

.ia-missed-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}
.ia-missed-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--clr-text-muted);
    background: rgba(239,68,68,0.04);
    border: 1px dashed rgba(239,68,68,0.2);
    border-radius: 6px;
    padding: 6px 10px;
    opacity: 0.5;
}
.ia-missed-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--clr-red);
    background: rgba(239,68,68,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.ia-solution {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.15);
    border-left: 3px solid var(--clr-emerald);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--clr-text-muted);
}
.ia-solution-icon {
    color: var(--clr-emerald);
    font-weight: 700;
    font-size: 1rem;
}
.ia-solution strong { color: var(--clr-emerald); }
.ia-solution em { color: var(--clr-indigo); }

/* ================================================================
   SLIDE 7 — Selective Attention
   ================================================================ */
.demo-selective { display: flex; flex-direction: column; gap: 14px; }

.sel-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.sel-side {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--clr-border);
}
.sel-label {
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono);
}
.sel-label-bad { background: rgba(239,68,68,0.08); color: var(--clr-red); }
.sel-label-good { background: rgba(16,185,129,0.08); color: var(--clr-emerald); }

.sel-mockup {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sel-elem {
    font-size: 0.75rem;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    color: var(--clr-text);
}

/* Flat (no hierarchy) */
.sel-flat .sel-elem {
    background: rgba(0,0,0,0.04);
    color: var(--clr-text-muted);
}

/* Structured (with hierarchy) */
.sel-primary {
    background: var(--clr-indigo) !important;
    color: white !important;
    border-color: var(--clr-indigo) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    padding: 12px !important;
}
.sel-secondary {
    background: rgba(99,102,241,0.08) !important;
    color: var(--clr-indigo) !important;
    border-color: rgba(99,102,241,0.2) !important;
}
.sel-tertiary {
    background: transparent !important;
    color: var(--clr-text-muted) !important;
    border-color: var(--clr-border) !important;
    font-size: 0.7rem !important;
    padding: 6px 12px !important;
}

.sel-verdict {
    font-size: 0.75rem;
    text-align: center;
    padding: 8px;
    color: var(--clr-red);
}
.sel-verdict-good { color: var(--clr-emerald); }

.sel-levers {
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 10px;
    padding: 14px;
}
.sel-levers h4 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--clr-text);
}
.sel-lever-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.sel-lever {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    background: var(--clr-surface);
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--clr-border);
}
.sel-lever-icon { font-size: 1rem; flex-shrink: 0; }
.sel-lever strong { color: var(--clr-text); }

/* ================================================================
   SLIDE 8 — Color Psychology
   ================================================================ */
.demo-color { display: flex; flex-direction: column; gap: 10px; }

.clr-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.clr-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
}
.clr-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}
.clr-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.clr-info strong {
    font-size: 0.82rem;
    color: var(--clr-text);
}
.clr-info span {
    font-size: 0.72rem;
    color: var(--clr-text-muted);
}
.clr-info small {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--clr-text-muted);
    opacity: 0.7;
}

.clr-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.78rem;
    color: var(--clr-text-muted);
}
.clr-warning strong { color: var(--clr-amber); }

/* ================================================================
   SLIDE 9 — Visual Weight & Balance
   ================================================================ */
.demo-weight { display: flex; flex-direction: column; gap: 12px; }

.vw-factors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.vw-factor {
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--clr-surface);
}
.vw-factor-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--clr-indigo);
    margin-bottom: 8px;
}
.vw-factor-demo {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    min-height: 60px;
    padding: 8px 0;
}
.vw-factor-note {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    text-align: center;
    margin-top: 6px;
}

.vw-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Size demo */
.vw-box-sm { width: 28px; height: 28px; font-size: 0.7rem; background: rgba(99,102,241,0.15); color: var(--clr-indigo); }
.vw-box-md { width: 40px; height: 40px; font-size: 0.9rem; background: rgba(99,102,241,0.25); color: var(--clr-indigo); }
.vw-box-lg { width: 56px; height: 56px; font-size: 1.2rem; background: rgba(99,102,241,0.4); color: white; }

/* Color demo */
.vw-clr-light { width: 40px; height: 40px; font-size: 0.8rem; background: rgba(99,102,241,0.08); color: var(--clr-indigo); }
.vw-clr-medium { width: 40px; height: 40px; font-size: 0.8rem; background: rgba(99,102,241,0.3); color: var(--clr-indigo); }
.vw-clr-dark { width: 40px; height: 40px; font-size: 0.8rem; background: var(--clr-indigo); color: white; }

/* Density demo */
.vw-density-low { width: 40px; height: 40px; font-size: 0.7rem; background: rgba(0,0,0,0.04); color: var(--clr-text-muted); letter-spacing: 2px; }
.vw-density-med { width: 40px; height: 40px; font-size: 0.7rem; background: rgba(0,0,0,0.08); color: var(--clr-text-muted); }
.vw-density-high { width: 40px; height: 40px; font-size: 0.7rem; background: rgba(0,0,0,0.2); color: var(--clr-text); }

/* Position demo */
.vw-position-demo { flex: 1; }
.vw-pos-canvas {
    position: relative;
    width: 100%;
    height: 50px;
    border: 1px dashed var(--clr-border);
    border-radius: 6px;
}
.vw-pos-dot {
    position: absolute;
    font-size: 0.55rem;
    color: var(--clr-text-muted);
    white-space: nowrap;
}
.vw-pos-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(99,102,241,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}
.vw-pos-edge {
    bottom: 2px;
    right: 4px;
    background: rgba(239,68,68,0.1);
    color: var(--clr-red);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ================================================================
   SLIDE 10 — Contrast & Isolation Effect
   ================================================================ */
.demo-contrast { display: flex; flex-direction: column; gap: 14px; }

.iso-demo {
    text-align: center;
    padding: 16px;
}
.iso-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}
.iso-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.iso-highlight {
    background: var(--clr-indigo);
    box-shadow: 0 0 20px rgba(99,102,241,0.4);
    animation: isoPulse 2s ease-in-out infinite;
}
@keyframes isoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.iso-label {
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    font-style: italic;
}

.iso-examples { display: flex; flex-direction: column; gap: 10px; }
.iso-examples h4 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-text);
}
.iso-ex-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.iso-ex {
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
}
.iso-ex-header {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
}

.iso-pricing {
    display: flex;
    gap: 6px;
    padding: 10px;
    align-items: stretch;
}
.iso-plan {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid var(--clr-border);
    border-radius: 6px;
    color: var(--clr-text-muted);
    position: relative;
}
.iso-plan small { display: block; font-size: 0.9rem; font-weight: 700; color: var(--clr-text); margin-top: 2px; }
.iso-plan-pop {
    background: var(--clr-indigo);
    border-color: var(--clr-indigo);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.iso-plan-pop small { color: white; }
.iso-pop-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    font-family: var(--font-mono);
    background: var(--clr-amber);
    color: #1a1a2e;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.iso-buttons {
    display: flex;
    gap: 8px;
    padding: 14px;
    justify-content: center;
    align-items: center;
}
.iso-btn-ghost {
    font-size: 0.75rem;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
}
.iso-btn-primary {
    font-size: 0.75rem;
    padding: 8px 18px;
    border-radius: 6px;
    background: var(--clr-indigo);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.iso-btn-note {
    font-size: 0.65rem;
    text-align: center;
    color: var(--clr-text-muted);
    padding: 0 12px 8px;
}

/* ================================================================
   SLIDE 11 — Motion & Attention (dual layout)
   ================================================================ */
.principle-layout-stacked {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
}
.principle-header-wide {
    text-align: left;
}
.principle-header-wide h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
}
.dual-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    flex: 1;
    min-height: 0;
}
.dual-panel {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}
.dual-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dual-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.dual-panel-header h2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}
.dual-def {
    font-size: 0.82rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}
.dual-def strong { color: var(--clr-text); }

.ethics-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}
.ethics-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1.4;
}
.ethics-item span:first-child {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}
.ethics-good {
    background: rgba(16,185,129,0.05);
    color: var(--clr-text-muted);
}
.ethics-good span:first-child { color: var(--clr-emerald); }
.ethics-bad {
    background: rgba(239,68,68,0.05);
    color: var(--clr-text-muted);
}
.ethics-bad span:first-child { color: var(--clr-red); }

/* ================================================================
   SLIDE 12 — Summary
   ================================================================ */
.slide-summary {
    background: linear-gradient(135deg, #f0f0ff 0%, #e8f4f8 40%, #faf5ff 100%);
}
.ssummary-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 14px;
    text-align: center;
    overflow-y: auto;
}
.ssummary-mascot { margin-bottom: 6px; }
.ssummary-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
}
.ssummary-sub {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    line-height: 1.55;
}
.ssummary-sub strong { color: var(--clr-indigo); }
.ssummary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 780px;
    width: 100%;
}
.ssummary-item {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}
.ssummary-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.ssummary-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--clr-indigo);
    margin-bottom: 6px;
}
.ssummary-item h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.ssummary-item p {
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    line-height: 1.45;
}
.ssummary-cta { margin-top: 8px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .principle-layout {
        grid-template-columns: 1fr;
    }
    .dual-demo {
        grid-template-columns: 1fr;
    }
    .ssummary-grid {
        grid-template-columns: 1fr 1fr;
    }
    .fp-grid {
        grid-template-columns: 1fr;
    }
    .cb-comparison,
    .sel-comparison,
    .iso-ex-grid {
        grid-template-columns: 1fr;
    }
    .cb-tech-grid,
    .sel-lever-grid {
        grid-template-columns: 1fr;
    }
    .vw-factors {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .slide-content {
        padding: 32px 16px 16px;
    }
    .sintro-cards {
        flex-direction: column;
    }
    .ssummary-grid {
        grid-template-columns: 1fr;
    }
    .slide-nav {
        padding: 6px 10px;
        gap: 8px;
    }
    .dot { width: 8px; height: 8px; }
    .dot.active { width: 18px; }
    .nav-arrow { width: 32px; height: 32px; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
