/* ========================================
   MERK KLEURENPALET GENERATOR — STYLES
   WebWits.nl Interactive Tool
   Canva-quality visual design
   ======================================== */

/* --- Palette Generator Variables --- */
:root {
    --pal-bg: linear-gradient(135deg, #0f0b1e 0%, #1a1145 50%, #0d1b2a 100%);
    --pal-card-bg: rgba(255, 255, 255, 0.06);
    --pal-card-border: rgba(255, 255, 255, 0.1);
    --pal-card-hover: rgba(99, 102, 241, 0.15);
    --pal-card-selected-bg: rgba(99, 102, 241, 0.2);
    --pal-card-selected-border: #6366f1;
    --pal-accent: #6366f1;
    --pal-accent-light: #818cf8;
    --pal-accent-glow: rgba(99, 102, 241, 0.4);
    --pal-success: #10b981;
    --pal-warning: #f59e0b;
    --pal-text: #ffffff;
    --pal-text-secondary: rgba(255, 255, 255, 0.7);
    --pal-text-muted: rgba(255, 255, 255, 0.45);
    --pal-radius: 1.25rem;
    --pal-radius-sm: 0.75rem;
    --pal-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Breadcrumb --- */
.pal-breadcrumb {
    background: var(--pal-bg);
    padding: 6.5rem 0 0.75rem;
}
.pal-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    font-size: 0.85rem;
}
.pal-breadcrumb li { color: var(--pal-text-muted); }
.pal-breadcrumb .separator { margin: 0 0.5rem; font-size: 0.65rem; }
.pal-breadcrumb a { color: var(--pal-text-secondary); transition: color var(--pal-transition); }
.pal-breadcrumb a:hover { color: var(--pal-accent-light); }
.pal-breadcrumb .current { color: var(--pal-accent-light); font-weight: 600; }

/* --- Hero Section --- */
.pal-hero {
    background: var(--pal-bg);
    padding: 2rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    pointer-events: none;
}
.pal-hero .container { position: relative; z-index: 1; }

/* Animated color orbs */
.pal-hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.pal-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: pal-orb-float 8s ease-in-out infinite;
}
.pal-orb-1 {
    width: 300px; height: 300px;
    background: #6366f1;
    top: -50px; left: 10%;
    animation-delay: 0s;
}
.pal-orb-2 {
    width: 250px; height: 250px;
    background: #ec4899;
    top: 20%; right: 5%;
    animation-delay: -2s;
    animation-duration: 10s;
}
.pal-orb-3 {
    width: 200px; height: 200px;
    background: #06b6d4;
    bottom: -30px; left: 30%;
    animation-delay: -4s;
    animation-duration: 12s;
}
.pal-orb-4 {
    width: 180px; height: 180px;
    background: #f59e0b;
    bottom: 20%; right: 25%;
    animation-delay: -6s;
    animation-duration: 9s;
}
@keyframes pal-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.9); }
    75% { transform: translate(15px, 15px) scale(1.05); }
}

.pal-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full, 9999px);
    color: var(--pal-accent-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.pal-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--pal-text);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}
.pal-gradient-text {
    background: linear-gradient(135deg, #6366f1, #ec4899, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pal-hero > .container > p {
    color: var(--pal-text-secondary);
    font-size: 1.125rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.pal-hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.pal-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pal-text-secondary);
    font-size: 0.9rem;
}
.pal-hero-stat i { color: var(--pal-success); }

/* --- Generator Section --- */
.pal-section {
    background: var(--pal-bg);
    padding: 0 0 4rem;
    position: relative;
}
.pal-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.pal-section .container { position: relative; z-index: 1; }

/* Tabs */
.pal-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.pal-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--pal-card-bg);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius-sm);
    color: var(--pal-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--pal-transition);
}
.pal-tab:hover {
    background: var(--pal-card-hover);
    color: var(--pal-text);
    border-color: rgba(99, 102, 241, 0.3);
}
.pal-tab.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--pal-accent);
    color: var(--pal-text);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}
.pal-tab i { font-size: 1rem; }

/* Tab Panels */
.pal-tab-panel { display: none; }
.pal-tab-panel.active { display: block; animation: pal-fade-in 0.4s ease; }

@keyframes pal-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pal-tab-panel h2 {
    text-align: center;
    color: var(--pal-text);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}
.pal-tab-panel > p {
    text-align: center;
    color: var(--pal-text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Options Grid */
.pal-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}
.pal-option {
    position: relative;
    background: var(--pal-card-bg);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--pal-transition);
    text-align: center;
}
.pal-option:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.15);
}
.pal-option.selected {
    border-color: var(--pal-accent);
    background: var(--pal-card-selected-bg);
    box-shadow: 0 0 30px var(--pal-accent-glow);
    transform: translateY(-4px);
}
.pal-option.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    background: var(--pal-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    z-index: 2;
}

.pal-option-preview {
    height: 80px;
    width: 100%;
    transition: height var(--pal-transition);
}
.pal-option:hover .pal-option-preview { height: 90px; }

.pal-option-icon {
    width: 48px;
    height: 48px;
    margin: -24px auto 0.5rem;
    background: rgba(15, 11, 30, 0.9);
    border: 2px solid var(--pal-card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--pal-accent-light);
    position: relative;
    z-index: 1;
    transition: all var(--pal-transition);
}
.pal-option:hover .pal-option-icon,
.pal-option.selected .pal-option-icon {
    border-color: var(--pal-accent);
    background: rgba(99, 102, 241, 0.2);
}

.pal-option h3 {
    color: var(--pal-text);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    padding: 0 0.75rem;
}
.pal-option > p {
    color: var(--pal-text-muted);
    font-size: 0.78rem;
    padding: 0 0.75rem 1rem;
    line-height: 1.4;
}

/* Custom Color Picker Tab */
.pal-custom-picker {
    max-width: 600px;
    margin: 0 auto;
    background: var(--pal-card-bg);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius);
    padding: 2rem;
}
.pal-color-input-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.pal-color-wheel-wrapper {
    position: relative;
    flex-shrink: 0;
}
.pal-color-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.pal-color-display {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--pal-card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--pal-transition);
    cursor: pointer;
}
.pal-color-display:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.pal-color-text-inputs { flex: 1; }
.pal-text-input-group { display: flex; flex-direction: column; gap: 0.4rem; }
.pal-text-input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pal-text-input-group input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius-sm);
    padding: 0.6rem 0.75rem;
    color: var(--pal-text);
    font-size: 1.1rem;
    font-family: 'Space Grotesk', monospace;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: border-color var(--pal-transition);
}
.pal-text-input-group input:focus {
    outline: none;
    border-color: var(--pal-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.pal-harmony-select {
    margin-bottom: 1.5rem;
}
.pal-harmony-select > label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}
.pal-harmony-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.pal-harmony-btn {
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--radius-full, 9999px);
    color: var(--pal-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pal-transition);
}
.pal-harmony-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--pal-text);
}
.pal-harmony-btn.active {
    background: var(--pal-accent);
    border-color: var(--pal-accent);
    color: white;
}

.pal-generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--gradient-primary, linear-gradient(135deg, #6366f1, #8b5cf6));
    border: none;
    border-radius: var(--pal-radius-sm);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--pal-transition);
}
.pal-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ===========================
   PALETTE RESULT SECTION
   =========================== */
.pal-result-section {
    background: var(--pal-bg);
    padding: 3rem 0 4rem;
    position: relative;
}
.pal-result-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.pal-result-section .container { position: relative; z-index: 1; }

/* Result Header */
.pal-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.pal-result-title-area h2 {
    color: var(--pal-text);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.4rem;
}
.pal-result-title-area p {
    color: var(--pal-text-secondary);
    font-size: 0.95rem;
}
.pal-result-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pal-action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--pal-card-bg);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius-sm);
    color: var(--pal-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pal-transition);
}
.pal-action-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--pal-text);
    border-color: rgba(99, 102, 241, 0.3);
}
.pal-action-btn.pal-share-btn {
    background: var(--pal-accent);
    border-color: var(--pal-accent);
    color: white;
}
.pal-action-btn.pal-share-btn:hover {
    background: var(--pal-accent-light);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Palette Strip */
.pal-strip {
    display: flex;
    height: 200px;
    border-radius: var(--pal-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    cursor: pointer;
}
.pal-strip-swatch {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 0.5rem;
    transition: flex var(--pal-transition);
    position: relative;
}
.pal-strip-swatch:hover {
    flex: 1.5;
}
.pal-strip-swatch-label {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    white-space: nowrap;
}
.pal-strip-swatch-hex {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
}
.pal-strip-swatch-copy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: opacity var(--pal-transition);
    pointer-events: none;
}
.pal-strip-swatch:hover .pal-strip-swatch-copy { opacity: 1; }

/* Color Detail Cards */
.pal-colors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}
.pal-color-card {
    background: var(--pal-card-bg);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius);
    overflow: hidden;
    transition: all var(--pal-transition);
}
.pal-color-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.pal-color-card-swatch {
    height: 100px;
    position: relative;
    cursor: pointer;
}
.pal-color-card-swatch::after {
    content: '\f0c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity var(--pal-transition);
}
.pal-color-card-swatch:hover::after { opacity: 1; }

.pal-color-card-info {
    padding: 1rem;
}
.pal-color-card-role {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pal-accent-light);
    margin-bottom: 0.4rem;
}
.pal-color-card-hex {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pal-text);
    margin-bottom: 0.3rem;
}
.pal-color-card-formats {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.pal-color-format {
    font-size: 0.72rem;
    color: var(--pal-text-muted);
    font-family: 'Space Grotesk', monospace;
    cursor: pointer;
    padding: 0.15rem 0;
    border-radius: 4px;
    transition: all var(--pal-transition);
}
.pal-color-format:hover {
    color: var(--pal-text);
    background: rgba(255, 255, 255, 0.06);
    padding-left: 0.3rem;
}
/* Lock button on color card */
.pal-color-card-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--pal-text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pal-transition);
}
.pal-color-card-lock:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--pal-text-secondary);
}
.pal-color-card-lock.locked {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--pal-accent-light);
}

/* ===========================
   LIVE WEBSITE PREVIEW
   =========================== */
.pal-preview-section {
    margin-bottom: 3rem;
}
.pal-preview-section h3 {
    color: var(--pal-text);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pal-preview-section h3 i { color: var(--pal-accent-light); }
.pal-preview-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.pal-preview-tab {
    padding: 0.5rem 1rem;
    background: var(--pal-card-bg);
    border: 1px solid var(--pal-card-border);
    border-radius: 8px 8px 0 0;
    color: var(--pal-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pal-transition);
}
.pal-preview-tab.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--pal-accent);
    color: var(--pal-text);
}

.pal-preview-frame {
    background: #1a1a2e;
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.pal-preview-browser-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pal-preview-dots {
    display: flex;
    gap: 6px;
}
.pal-preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.pal-preview-dots span:nth-child(1) { background: #ff5f56; }
.pal-preview-dots span:nth-child(2) { background: #ffbd2e; }
.pal-preview-dots span:nth-child(3) { background: #27c93f; }
.pal-preview-url {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    color: var(--pal-text-muted);
    font-family: 'Space Grotesk', monospace;
}
.pal-preview-content {
    min-height: 400px;
    overflow: hidden;
}

/* Mock website elements (injected by JS) */
.pal-mock-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}
.pal-mock-logo {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}
.pal-mock-nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}
.pal-mock-hero-section {
    padding: 3rem 1.5rem;
    text-align: center;
}
.pal-mock-hero-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}
.pal-mock-hero-section p {
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    opacity: 0.8;
    line-height: 1.6;
}
.pal-mock-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: default;
}
.pal-mock-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem 1.5rem;
}
.pal-mock-card {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}
.pal-mock-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
}
.pal-mock-card p {
    font-size: 0.78rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* ===========================
   ACCESSIBILITY CHECK
   =========================== */
.pal-a11y-section {
    margin-bottom: 3rem;
}
.pal-a11y-section h3 {
    color: var(--pal-text);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pal-a11y-section h3 i { color: var(--pal-accent-light); }
.pal-a11y-intro {
    color: var(--pal-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.pal-a11y-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.pal-a11y-card {
    background: var(--pal-card-bg);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.pal-a11y-preview {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    font-family: 'Space Grotesk', monospace;
}
.pal-a11y-info { flex: 1; }
.pal-a11y-pair {
    font-size: 0.78rem;
    color: var(--pal-text-secondary);
    margin-bottom: 0.2rem;
}
.pal-a11y-ratio {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pal-text);
    margin-bottom: 0.15rem;
    font-family: 'Space Grotesk', monospace;
}
.pal-a11y-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.7rem;
    font-weight: 700;
}
.pal-a11y-badge.pass {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.pal-a11y-badge.fail {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
.pal-a11y-badge.warn {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* ===========================
   CSS EXPORT
   =========================== */
.pal-export-section {
    margin-bottom: 3rem;
    animation: pal-fade-in 0.4s ease;
}
.pal-export-section h3 {
    color: var(--pal-text);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pal-export-section h3 i { color: var(--pal-accent-light); }

.pal-code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius-sm);
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 0.75rem;
}
.pal-code-block code {
    font-family: 'Space Grotesk', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--pal-text-secondary);
    line-height: 1.8;
    white-space: pre;
}
.pal-copy-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: var(--pal-card-bg);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius-sm);
    color: var(--pal-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pal-transition);
}
.pal-copy-code-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--pal-text);
}

/* ===========================
   COLOR PSYCHOLOGY SECTION
   =========================== */
.pal-psychology-section {
    background: var(--pal-bg);
    padding: 5rem 0;
    position: relative;
}
.pal-psychology-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.pal-psychology-section .container { position: relative; z-index: 1; }
.pal-psychology-section h2 {
    text-align: center;
    color: var(--pal-text);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.5rem;
}
.pal-section-subtitle {
    text-align: center;
    color: var(--pal-text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.pal-psychology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}
.pal-psych-card {
    background: var(--pal-card-bg);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius);
    padding: 1.5rem;
    transition: all var(--pal-transition);
}
.pal-psych-card:hover {
    transform: translateY(-4px);
    border-color: var(--psych-color, var(--pal-accent));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.pal-psych-swatch {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--psych-color);
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.pal-psych-card h4 {
    color: var(--pal-text);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.pal-psych-card p {
    color: var(--pal-text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===========================
   FAQ
   =========================== */
.pal-faq-section {
    background: var(--pal-bg);
    padding: 4rem 0;
    position: relative;
}
.pal-faq-section .container { position: relative; z-index: 1; }
.pal-faq-section h2 {
    text-align: center;
    color: var(--pal-text);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
}
.pal-faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.pal-faq-item {
    background: var(--pal-card-bg);
    border: 1px solid var(--pal-card-border);
    border-radius: var(--pal-radius-sm);
    overflow: hidden;
    transition: border-color var(--pal-transition);
}
.pal-faq-item.open {
    border-color: rgba(99, 102, 241, 0.3);
}
.pal-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: none;
    border: none;
    color: var(--pal-text);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--pal-transition);
}
.pal-faq-question:hover { color: var(--pal-accent-light); }
.pal-faq-question i {
    font-size: 0.75rem;
    color: var(--pal-text-muted);
    transition: transform var(--pal-transition);
}
.pal-faq-item.open .pal-faq-question i { transform: rotate(180deg); }
.pal-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.pal-faq-item.open .pal-faq-answer {
    max-height: 300px;
}
.pal-faq-answer p {
    padding: 0 1.25rem 1.25rem;
    color: var(--pal-text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===========================
   CTA SECTION
   =========================== */
.pal-cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: 4rem 0;
    text-align: center;
}
.pal-cta-section h2 {
    color: var(--pal-text);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}
.pal-cta-section > .container > p {
    color: var(--pal-text-secondary);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto 2rem;
}
.pal-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===========================
   TOAST NOTIFICATION
   =========================== */
.pal-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full, 9999px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}
.pal-toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .pal-colors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pal-mock-cards {
        grid-template-columns: 1fr;
    }
    .pal-strip { height: 150px; }
}

@media (max-width: 640px) {
    .pal-hero { padding: 1.5rem 0 3rem; }
    .pal-hero h1 { font-size: 2rem; }

    .pal-tabs { gap: 0.35rem; }
    .pal-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    .pal-tab span { display: none; }
    .pal-tab i { font-size: 1.1rem; }
    .pal-tab.active span { display: inline; }

    .pal-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .pal-option-preview { height: 60px; }
    .pal-option-icon { width: 40px; height: 40px; margin-top: -20px; font-size: 0.9rem; }
    .pal-option h3 { font-size: 0.85rem; }

    .pal-strip {
        height: 120px;
        border-radius: var(--pal-radius-sm);
    }
    .pal-strip-swatch-label { display: none; }
    .pal-strip-swatch-hex { font-size: 0.7rem; }

    .pal-colors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pal-color-card-swatch { height: 70px; }

    .pal-result-header { flex-direction: column; }
    .pal-result-actions { width: 100%; }
    .pal-action-btn { flex: 1; justify-content: center; }
    .pal-action-btn span { display: none; }
    .pal-action-btn i { font-size: 1.1rem; }

    .pal-color-input-group { flex-direction: column; align-items: stretch; text-align: center; }
    .pal-color-wheel-wrapper { margin: 0 auto; }

    .pal-preview-content { min-height: 300px; }
    .pal-mock-hero-section h2 { font-size: 1.3rem; }
    .pal-mock-hero-section p { font-size: 0.8rem; }
    .pal-mock-nav-links { display: none; }

    .pal-a11y-grid {
        grid-template-columns: 1fr;
    }

    .pal-psychology-grid {
        grid-template-columns: 1fr;
    }

    .pal-hero-stats { flex-direction: column; align-items: center; gap: 0.5rem; }
}

/* Screen-reader only */
.pal-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;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pal-orb { animation: none; }
    .pal-strip-swatch,
    .pal-option,
    .pal-color-card,
    .pal-psych-card { transition: none; }
    .pal-tab-panel.active { animation: none; }
}
