/* ===== Activation Playbook — Shared Step Styles =====
   Source of truth: ~/claude-code-playbook/BRAND.md
   Used by: all step pages (/app/steps/1-5/)
   ================================================== */

:root {
    --deep-indigo: #2d2f4f;
    --solar-gold: #FFBE0B;
    --saffron: #FB8500;
    --warm-white: #FAF8F4;
    --soft-lavender: #a593c2;
    --gold-hover: #e6ab00;
    --saffron-hover: #e27700;
    --success-green: #22c55e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--warm-white);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    color: var(--deep-indigo);
    line-height: 1.7;
    font-size: 17px;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
a { color: var(--saffron); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--saffron-hover); }

/* ===== TOP BAR ===== */
.top-bar {
    position: sticky; top: 0; z-index: 100;
    background: var(--deep-indigo); color: #fff;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.back-link {
    color: rgba(255,255,255,0.7); font-size: 0.95rem; font-weight: 500;
    display: flex; align-items: center; gap: 6px; transition: color 0.2s;
}
.back-link:hover { color: var(--solar-gold); }
.back-link svg { width: 18px; height: 18px; }
.top-bar-title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem; color: #fff; }
.progress-indicator { font-size: 0.85rem; color: rgba(255,255,255,0.5); font-weight: 500; }

/* ===== PROGRESS BAR ===== */
.progress-bar-wrapper { background: rgba(255,255,255,0.1); height: 4px; }
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--solar-gold), var(--saffron));
    transition: width 0.6s ease;
}

/* ===== CONTAINER ===== */
.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ===== HERO ===== */
.step-hero { text-align: center; padding: 60px 24px 40px; }
.phase-label {
    display: inline-block; font-family: 'Inter', sans-serif;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: rgba(45,47,79,0.4); margin-bottom: 12px;
}
.emotion-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,190,11,0.15), rgba(251,133,0,0.1));
    color: var(--saffron); font-weight: 700; font-size: 0.85rem;
    padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; background: var(--solar-gold);
    color: var(--deep-indigo); font-weight: 800; border-radius: 50%;
    font-size: 1.4rem; margin-bottom: 20px;
}
.step-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
    margin-bottom: 12px; letter-spacing: -0.02em;
}
.step-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem); color: #555;
    max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ===== VIDEO ===== */
.video-section { padding: 0 24px 48px; }
.video-wrapper {
    max-width: 760px; margin: 0 auto; background: var(--deep-indigo);
    border-radius: 16px; overflow: hidden; position: relative;
}
.video-placeholder {
    aspect-ratio: 16 / 9; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); gap: 12px; padding: 24px; text-align: center;
}
.video-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.video-placeholder p { font-size: 0.95rem; max-width: 400px; }
.video-placeholder .coming-soon { font-weight: 600; color: var(--solar-gold); font-size: 1rem; }

/* ===== CONTENT ===== */
.content-section { padding: 48px 24px; border-top: 1px solid rgba(165,147,194,0.15); }
.content-section .container p { margin-bottom: 16px; font-size: 1.02rem; color: #444; }
.content-section .container p strong { color: var(--deep-indigo); }
.content-section h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); font-weight: 700; margin-bottom: 20px; }
.content-section h3 { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 700; margin: 32px 0 12px; }

.highlight-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.2rem, 2.8vw, 1.5rem); font-weight: 600;
    color: var(--deep-indigo); border-left: 4px solid var(--solar-gold);
    padding: 16px 24px; margin: 28px 0; line-height: 1.5;
}

/* ===== CODE BLOCKS ===== */
.code-block {
    background: var(--deep-indigo); border-radius: 12px;
    padding: 20px 24px; margin: 20px 0; overflow-x: auto; position: relative;
}
.code-block code {
    color: #e8e6f0; font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 0.85rem; line-height: 1.7; white-space: pre-wrap; word-break: break-all;
}
.code-block .highlight { color: var(--solar-gold); }
.copy-btn {
    position: absolute; top: 10px; right: 10px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7); padding: 6px 14px; border-radius: 6px;
    font-size: 0.8rem; font-family: 'Inter', sans-serif; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ===== PROMPT TEXTAREA ===== */
.prompt-textarea {
    width: 100%; background: transparent; border: none;
    color: #e8e6f0; font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 0.85rem; line-height: 1.7; resize: none;
    min-height: 60px; outline: none; padding: 0;
    white-space: pre-wrap; word-break: break-word;
    overflow: hidden; box-sizing: border-box;
}

/* ===== ACTION BOX ===== */
.action-box {
    background: linear-gradient(135deg, rgba(255,190,11,0.08), rgba(251,133,0,0.04));
    border: 2px solid rgba(255,190,11,0.3); border-radius: 16px;
    padding: 32px 28px; margin: 32px 0;
}
.action-label {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--saffron); margin-bottom: 12px;
}
.action-box h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.action-box p { font-size: 0.98rem; color: #444; margin-bottom: 12px; }

/* ===== DIG DEEPER (accordion) ===== */
.dig-deeper {
    margin: 24px 0 8px; border: 1px solid rgba(165,147,194,0.15);
    border-radius: 12px; overflow: hidden;
}
.dig-deeper summary {
    padding: 16px 20px; cursor: pointer; font-weight: 600;
    font-size: 0.95rem; color: var(--deep-indigo);
    list-style: none; display: flex; align-items: center; gap: 8px;
}
.dig-deeper summary::-webkit-details-marker { display: none; }
.dig-deeper summary::before {
    content: '+'; display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; background: rgba(255,190,11,0.15);
    color: var(--saffron); border-radius: 50%; font-weight: 800; font-size: 0.9rem;
}
.dig-deeper[open] summary::before { content: '-'; }
.dig-deeper-content { padding: 0 20px 20px; font-size: 0.95rem; color: #555; }
.dig-deeper-content p { margin-bottom: 12px; }

/* ===== SHARE ===== */
.share-section { padding: 12px 24px; text-align: center; }
.share-section p { font-size: 0.95rem; color: #555; }
.share-section a { font-weight: 600; }

/* ===== STEP NAV ===== */
.step-nav { padding: 28px 24px 48px; border-top: 1px solid rgba(165,147,194,0.15); }
.nav-inner {
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem;
    padding: 14px 28px; border-radius: 12px; border: none;
    cursor: pointer; transition: background 0.2s, transform 0.15s; text-decoration: none;
}
.nav-btn-prev { background: rgba(165,147,194,0.12); color: var(--deep-indigo); }
.nav-btn-prev:hover { background: rgba(165,147,194,0.2); color: var(--deep-indigo); transform: translateY(-1px); }
.nav-btn-complete { background: linear-gradient(135deg, #FFBE0B, #FB8500); color: var(--deep-indigo); font-weight: 700; box-shadow: 0 4px 16px rgba(255,190,11,0.25); }
.nav-btn-complete:hover { background: var(--gold-hover); color: var(--deep-indigo); transform: translateY(-1px); }
.nav-btn-complete.completed { background: var(--success-green); color: #fff; cursor: default; }
.nav-btn svg { width: 18px; height: 18px; }
.nav-spacer { flex: 1; }

/* ===== CELEBRATION ===== */
.celebration-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(45,47,79,0.85); display: none;
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.celebration-overlay.visible { display: flex; opacity: 1; }
.celebration-card {
    background: var(--warm-white); border-radius: 20px;
    padding: 48px 40px; max-width: 480px; width: 90%; text-align: center;
    transform: scale(0.9); transition: transform 0.3s;
}
.celebration-overlay.visible .celebration-card { transform: scale(1); }
.celebration-card h2 { font-size: 1.8rem; margin-bottom: 12px; }
.celebration-card p { font-size: 1rem; color: #555; margin-bottom: 24px; line-height: 1.7; }
.celebration-card .cta-btn {
    display: inline-block; background: linear-gradient(135deg, #FFBE0B, #FB8500); color: var(--deep-indigo);
    font-weight: 700; font-size: 1.05rem; padding: 14px 32px;
    border-radius: 12px; border: none; cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 16px rgba(255,190,11,0.25); transition: background 0.2s;
}
.celebration-card .cta-btn:hover { background: var(--gold-hover); color: var(--deep-indigo); }

/* ===== CONFETTI ===== */
.confetti-piece {
    position: fixed; top: -10px; z-index: 1001;
    width: 10px; height: 10px; border-radius: 2px;
    pointer-events: none; animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===== LOCKED GATE ===== */
.locked-gate { display: none; text-align: center; padding: 120px 24px; min-height: 60vh; }
.locked-gate h2 { font-size: 1.8rem; margin-bottom: 16px; }
.locked-gate p { font-size: 1.05rem; color: #555; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.locked-gate .cta-btn {
    display: inline-block; background: linear-gradient(135deg, #FFBE0B, #FB8500); color: var(--deep-indigo);
    font-weight: 700; font-size: 1.05rem; padding: 14px 32px;
    border-radius: 12px; border: none; cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 16px rgba(255,190,11,0.25);
}
.lock-icon { width: 64px; height: 64px; margin: 0 auto 24px; opacity: 0.3; }
.loading-state { text-align: center; padding: 120px 24px; color: #999; font-size: 1rem; }
.step-content { display: none; }

/* ===== FOOTER ===== */
footer {
    background: var(--deep-indigo); color: rgba(255,255,255,0.7);
    padding: 40px 24px; text-align: center;
}
footer a { color: var(--solar-gold); }
footer .footer-name { font-family: 'Playfair Display', Georgia, serif; color: #fff; font-size: 1.1rem; font-weight: 600; }
footer .footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.35); margin-top: 12px; font-style: italic; }

/* ===== HERO INTAKE (Dashboard State 1 & 2) ===== */
.hero-intake {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.hero-intake-card {
    background: #fff;
    border-radius: 14px;
    padding: 48px 40px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}

.hero-eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--saffron);
    margin-bottom: 16px;
}

.hero-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--deep-indigo);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.hero-heading .gradient-text {
    background: linear-gradient(135deg, #FB8500, #FFBE0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-footer-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 20px;
}

/* Hero intake form fields */
.hero-intake .intake-field {
    margin-bottom: 22px;
}

.hero-intake .intake-field label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--deep-indigo);
    margin-bottom: 8px;
}

.hero-intake .intake-field input,
.hero-intake .intake-field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(165,147,194,0.25);
    background: var(--warm-white);
    color: var(--deep-indigo);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.hero-intake .intake-field input:focus,
.hero-intake .intake-field textarea:focus {
    border-color: var(--solar-gold);
    box-shadow: 0 0 0 3px rgba(255,190,11,0.12);
}

.hero-intake .intake-field input::placeholder,
.hero-intake .intake-field textarea::placeholder {
    color: #aaa;
}

.hero-intake .intake-field textarea {
    resize: vertical;
    min-height: 80px;
}

.hero-intake .confidence-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.hero-intake .confidence-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(165,147,194,0.2);
    background: #fff;
    color: var(--deep-indigo);
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-intake .confidence-btn:hover {
    border-color: rgba(255,190,11,0.5);
    background: rgba(255,190,11,0.06);
}

.hero-intake .confidence-btn.selected {
    background: linear-gradient(135deg, #FFBE0B, #FB8500);
    border-color: #FFBE0B;
    color: var(--deep-indigo);
}

.hero-intake .confidence-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding: 0 2px;
}

.hero-intake .confidence-labels span {
    font-size: 0.72rem;
    color: #999;
    font-weight: 500;
}

.hero-intake .intake-submit {
    display: block;
    width: 100%;
    padding: 16px 32px;
    margin-top: 28px;
    background: linear-gradient(135deg, #FFBE0B, #FB8500);
    color: var(--deep-indigo);
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255,190,11,0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.hero-intake .intake-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,190,11,0.3);
}

.hero-intake .intake-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Hero generating state */
.hero-generating {
    text-align: center;
    padding: 20px 0;
}

.hero-generating .generating-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(165,147,194,0.12);
    border-top-color: var(--solar-gold);
    border-radius: 50%;
    animation: hero-spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes hero-spin {
    to { transform: rotate(360deg); }
}

.hero-generating h3 {
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--deep-indigo);
}

.hero-generating p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto;
}

.hero-generating .generating-timeout {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255,190,11,0.06), rgba(251,133,0,0.04));
    border: 1px solid rgba(255,190,11,0.15);
    border-radius: 12px;
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
}

.hero-generating .generating-timeout a {
    font-weight: 600;
}

/* Hero responsive */
@media (max-width: 640px) {
    .hero-intake {
        padding: 24px 16px;
        min-height: calc(100vh - 52px);
    }
    .hero-intake-card {
        padding: 32px 24px;
    }
    .hero-heading {
        font-size: 1.5rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    body { font-size: 16px; }
    .step-hero { padding: 40px 20px 30px; }
    .content-section { padding: 36px 20px; }
    .action-box { padding: 24px 20px; }
    .nav-inner { flex-direction: column; }
    .nav-btn { width: 100%; justify-content: center; }
    .nav-spacer { display: none; }
    .top-bar { padding: 12px 16px; }
    .top-bar-title { font-size: 0.85rem; }
}
