/* ================================================================
   UX PSYCHOLOGY — Emotional Design & Micro-interactions (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 — Don Norman's 3 Levels
   ================================================================ */
.demo-norman { display: flex; flex-direction: column; gap: 14px; }

.nm-pyramid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nm-level {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
}
.nm-level-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}
.nm-badge-purple { background: var(--clr-purple); }
.nm-badge-indigo { background: var(--clr-indigo); }
.nm-badge-sky { background: var(--clr-sky); }

.nm-level-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.nm-level-info strong {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--clr-text);
}
.nm-level-info span {
    font-size: 0.72rem;
    color: var(--clr-text-muted);
}
.nm-level-example {
    font-size: 0.7rem;
    font-style: italic;
    color: var(--clr-text-muted);
    background: rgba(0,0,0,0.03);
    padding: 4px 10px;
    border-radius: 6px;
    max-width: 220px;
    text-align: center;
}

.nm-reflective { border-left: 3px solid var(--clr-purple); }
.nm-behavioral { border-left: 3px solid var(--clr-indigo); }
.nm-visceral { border-left: 3px solid var(--clr-sky); }

.nm-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 8px;
}
.nm-flow-item {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--clr-text);
}
.nm-flow-arrow {
    color: var(--clr-indigo);
    font-size: 1rem;
}

/* ================================================================
   SLIDE 4 — Aesthetic-Usability Effect
   ================================================================ */
.demo-aesthetic { display: flex; flex-direction: column; gap: 14px; }

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

.ae-mockup {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* Ugly mockup */
.ae-mockup-ugly {
    background: #f5f5f5;
}
.ae-title-ugly {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0;
    font-family: 'Times New Roman', serif;
}
.ae-field-ugly {
    width: 100%;
    height: 28px;
    border: 2px solid #999;
    background: white;
}
.ae-btn-ugly {
    width: 100%;
    padding: 8px;
    background: #666;
    color: white;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Pretty mockup */
.ae-mockup-pretty {
    background: white;
}
.ae-title-pretty {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text);
}
.ae-field-pretty {
    width: 100%;
    height: 32px;
    border: 1.5px solid var(--clr-border);
    border-radius: 8px;
    background: var(--clr-bg);
}
.ae-btn-pretty {
    width: 100%;
    padding: 10px;
    background: var(--clr-indigo);
    color: white;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

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

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

/* ================================================================
   SLIDE 5 — Micro-interactions
   ================================================================ */
.demo-micro { display: flex; flex-direction: column; gap: 12px; }

.mi-anatomy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mi-phase {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    background: var(--clr-surface);
}
.mi-phase-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    color: white;
    flex-shrink: 0;
}
.mi-num-1 { background: var(--clr-sky); }
.mi-num-2 { background: var(--clr-indigo); }
.mi-num-3 { background: var(--clr-emerald); }
.mi-num-4 { background: var(--clr-purple); }

.mi-phase-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.mi-phase-info strong {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--clr-text);
}
.mi-phase-info span {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
}
.mi-phase-ex {
    font-size: 0.68rem;
    color: var(--clr-text-muted);
    background: rgba(0,0,0,0.03);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.mi-examples {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 8px;
    padding: 10px;
}
.mi-ex-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    padding: 4px 0;
}
.mi-ex-icon { font-size: 0.95rem; flex-shrink: 0; }

/* ================================================================
   SLIDE 6 — Delight in UX
   ================================================================ */
.demo-delight { display: flex; flex-direction: column; gap: 14px; }

.dl-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.dl-type {
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dl-type-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dl-type-header strong {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--clr-text);
}
.dl-type-icon { font-size: 1.1rem; }
.dl-type p {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    line-height: 1.45;
}
.dl-type p em { color: var(--clr-indigo); }

.dl-functional { background: rgba(99,102,241,0.03); border-color: rgba(99,102,241,0.15); }
.dl-emotional { background: rgba(236,72,153,0.03); border-color: rgba(236,72,153,0.15); }

.dl-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.dl-chip {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0,0,0,0.04);
    color: var(--clr-text-muted);
    white-space: nowrap;
}

.dl-hierarchy {
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.dl-h-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 10px;
}
.dl-h-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dl-h-layer {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}
.dl-h-delight {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1));
    color: var(--clr-indigo);
    border: 1px solid rgba(99,102,241,0.2);
}
.dl-h-usable {
    background: rgba(16,185,129,0.1);
    color: var(--clr-emerald);
    border: 1px solid rgba(16,185,129,0.2);
}
.dl-h-functional {
    background: rgba(0,0,0,0.04);
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
}
.dl-h-note {
    font-size: 0.68rem;
    color: var(--clr-red);
    margin-top: 8px;
    font-style: italic;
}

/* ================================================================
   SLIDE 7 — Trust Signals
   ================================================================ */
.demo-trust { display: flex; flex-direction: column; gap: 14px; }

.tr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.tr-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    background: var(--clr-surface);
}
.tr-card-icon { font-size: 1.2rem; }
.tr-card strong {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    color: var(--clr-text);
}
.tr-card-desc {
    font-size: 0.68rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

.tr-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(99,102,241,0.05);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 8px;
    padding: 12px 16px;
}
.tr-stat-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-indigo);
    flex-shrink: 0;
}
.tr-stat-label {
    font-size: 0.82rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

/* ================================================================
   SLIDE 8 — Error as Personality
   ================================================================ */
.demo-error { display: flex; flex-direction: column; gap: 14px; }

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

.er-mockup {
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    min-height: 100px;
    justify-content: center;
}
.er-mockup-bad { background: #fafafa; }
.er-mockup-good { background: rgba(99,102,241,0.03); }

.er-code {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 2px;
}
.er-msg-bad {
    font-size: 0.82rem;
    color: #999;
}
.er-emoji {
    font-size: 2rem;
}
.er-msg-good {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text);
}
.er-help {
    font-size: 0.78rem;
    color: var(--clr-indigo);
    font-weight: 500;
}
.er-verdict {
    font-size: 0.75rem;
    text-align: center;
    padding: 8px;
    color: var(--clr-red);
    font-style: italic;
}
.er-verdict-good { color: var(--clr-emerald); }

.er-checklist {
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 10px;
    padding: 14px;
}
.er-checklist h4 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--clr-text);
}
.er-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.er-check-item {
    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 9 — Feedback & Response Time
   ================================================================ */
.demo-feedback { display: flex; flex-direction: column; gap: 14px; }

.fb-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fb-threshold {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    background: var(--clr-surface);
}
.fb-time {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    padding: 4px 6px;
    border-radius: 6px;
}
.fb-time-instant { color: var(--clr-emerald); background: rgba(16,185,129,0.1); }
.fb-time-fast { color: var(--clr-amber); background: rgba(245,158,11,0.1); }
.fb-time-slow { color: var(--clr-red); background: rgba(239,68,68,0.1); }

.fb-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.fb-info strong {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--clr-text);
}
.fb-info span {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
}
.fb-example {
    font-size: 0.68rem;
    color: var(--clr-text-muted);
    background: rgba(0,0,0,0.03);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.fb-types {
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 10px;
    padding: 14px;
}
.fb-types h4 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--clr-text);
}
.fb-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.fb-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    background: var(--clr-surface);
    padding: 10px 8px;
    border-radius: 6px;
    border: 1px solid var(--clr-border);
    text-align: center;
}
.fb-type-item span:first-child { font-size: 1.2rem; }

/* ================================================================
   SLIDE 10 — Animation Principles
   ================================================================ */
.demo-animation { display: flex; flex-direction: column; gap: 14px; }

.an-principles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.an-principle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    background: var(--clr-surface);
}
.an-pr-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}
.an-pr-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.an-pr-info strong {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--clr-text);
}
.an-pr-info span {
    font-size: 0.72rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

.an-timing {
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 10px;
    padding: 14px;
}
.an-timing-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 8px;
}
.an-timing-bar {
    display: flex;
    gap: 4px;
}
.an-t-zone {
    flex: 1;
    padding: 10px 8px;
    border-radius: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.an-t-zone span {
    font-size: 0.75rem;
    font-weight: 600;
}
.an-t-zone small {
    font-size: 0.65rem;
    font-family: var(--font-mono);
}
.an-t-micro {
    background: rgba(16,185,129,0.1);
    color: var(--clr-emerald);
}
.an-t-standard {
    background: rgba(99,102,241,0.1);
    color: var(--clr-indigo);
}
.an-t-complex {
    background: rgba(245,158,11,0.1);
    color: var(--clr-amber);
}

/* ================================================================
   SLIDE 11 — Emotional Design Ethics (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;
    }
    .ae-comparison,
    .er-comparison,
    .dl-types {
        grid-template-columns: 1fr;
    }
    .tr-grid {
        grid-template-columns: 1fr;
    }
    .er-check-grid {
        grid-template-columns: 1fr;
    }
    .fb-type-grid {
        grid-template-columns: 1fr 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; }
    .fb-type-grid {
        grid-template-columns: 1fr;
    }
}

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