/* ============================================
   Workshopr Intervention Cards - Microsite Styles
   Consumes platform-tokens.css as single source of truth
   ============================================ */

/* Platform Tokens (single source of truth) */
@import url('/design-system/platform-tokens.css');

/* CSS Variables - Mapped from platform tokens */
:root {
    /* Core Palette - from platform tokens */
    --color-paper: var(--bg-page);
    --color-paper-dark: #F0EBE3;
    --color-kraft: #D4C4A8;
    --color-ink: var(--color-ink);
    --color-ink-light: var(--color-ink-secondary);
    --color-pencil: var(--color-ink-muted);
    --color-accent: var(--intervention-primary);
    --color-accent-light: var(--intervention-light);
    --color-accent-dark: var(--intervention-dark);
    --color-white: #FFFFFF;
    --color-border: rgba(44, 36, 22, 0.12);
    --color-border-dark: rgba(44, 36, 22, 0.2);

    /* Legacy aliases for backwards compatibility */
    --color-cream: var(--color-paper);
    --color-cream-dark: var(--color-paper-dark);
    --color-coral: var(--color-accent);
    --color-coral-light: var(--color-accent-light);
    --color-coral-dark: var(--color-accent-dark);
    --color-charcoal: var(--color-ink);
    --color-slate: var(--color-ink-light);
    --color-stone: var(--color-pencil);

    /* Category Colors - from platform tokens */
    --cat-red: var(--mainsite-primary);
    --cat-orange: #F97316;
    --cat-blue: var(--color-info);
    --cat-purple: var(--intervention-primary);
    --cat-gray: var(--gray-500);
    --cat-green: var(--color-success);

    /* Typography - Intentional override of platform fonts (Fraunces/Inter)
       Intervention shares the Tips "Field Notes" aesthetic: Bitter + DM Sans.
       --font-accent maps to platform --font-heading (Fraunces). */
    --font-display: 'Bitter', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: var(--font-heading);

    /* Spacing */
    --container-max: var(--container-lg, 1120px);
    --container-padding: var(--space-8);
    --section-spacing: var(--space-20, 80px);

    /* Effects - from platform tokens */
    --shadow-paper: var(--shadow-sm);
    --shadow-card: var(--shadow-md);
    --shadow-elevated: var(--shadow-xl);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-ink);
    background: var(--color-paper);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   Navigation - Matching Tips
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-logo-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-accent);
    font-size: 19px;
    font-weight: 600;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    cursor: pointer;
}

.nav-logo-icon {
    font-size: 22px;
    color: var(--color-accent);
    background: var(--color-accent-light);
    padding: 6px;
    border-radius: 8px;
}

.logo-dot {
    color: var(--color-accent);
}

.logo-dropdown-text {
    font-family: var(--font-accent);
    font-weight: 600;
}

.nav-logo .dropdown-arrow {
    font-size: 18px;
    color: var(--color-pencil);
    transition: transform 0.25s var(--ease-out);
}

.nav-logo-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 8px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
    pointer-events: none;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-elevated);
    z-index: -1;
}

.nav-logo-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-ink);
    transition: background 0.15s ease;
    z-index: 1;
}

.nav-dropdown-menu a:first-child {
    border-radius: 12px 12px 0 0;
}

.nav-dropdown-menu a:last-child {
    border-radius: 0 0 12px 12px;
}

.nav-dropdown-menu a:hover {
    background: var(--color-paper);
}

.nav-dropdown-menu a.active {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.nav-dropdown-menu .icon {
    width: 20px; height: 20px;
    color: var(--color-accent);
}

.nav-icon-bg {
    background: rgba(124, 77, 255, 0.1);
    padding: 2px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-ink-light);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-link-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-slate);
    transition: color 0.2s ease;
}

.nav-link-icon .icon {
    width: 18px; height: 18px;
}

.nav-link-icon:hover {
    color: var(--color-coral);
}

.nav-cta {
    padding: 10px 18px;
    background: var(--color-accent);
    color: var(--color-white) !important;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.25s var(--ease-out);
}

.nav-cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

/* Auth Button */
.auth-btn {
    padding: 10px 20px;
    background: var(--color-white);
    color: var(--color-charcoal) !important;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    background: var(--color-cream);
    border-color: var(--color-coral);
    color: var(--color-coral) !important;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-charcoal);
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    border-color: var(--color-coral);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-coral), #F59E0B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-white);
    background-size: cover;
    background-position: center;
}

.user-menu-btn .icon {
    width: 18px; height: 18px;
    color: var(--color-stone);
    transition: transform 0.2s ease;
}

.user-menu:hover .user-menu-btn .icon {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
    pointer-events: none;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-charcoal);
    transition: background 0.15s ease;
}

.user-dropdown a:first-child {
    border-radius: 12px 12px 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 12px 12px;
    color: var(--color-coral);
}

.user-dropdown a:hover {
    background: var(--color-cream);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: all 0.25s var(--ease-out);
}

.btn .icon {
    width: 20px; height: 20px;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #7C4DFF;
    border: 2px solid #7C4DFF;
}

.btn-secondary:hover {
    background: rgba(124, 77, 255, 0.1);
    border-color: #6930C3;
    color: #6930C3;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 130px 0 60px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(124, 77, 255, 0.2);
    color: var(--color-coral);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero-badge .icon {
    width: 16px; height: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-ink);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero-title-accent {
    color: var(--color-accent);
    font-style: italic;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-accent-light);
    text-decoration-thickness: 8px;
    text-underline-offset: 4px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-ink-light);
    line-height: 1.7;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

/* Hero Stats - Matching Tips */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: #7C4DFF;
}

.hero-stat .stat-label {
    font-size: 12px;
    color: var(--color-pencil);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border-dark);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

img.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(44, 36, 22, 0.15), 0 16px 48px rgba(44, 36, 22, 0.1);
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
}

.hero-float-card .icon {
    width: 20px; height: 20px;
    color: var(--color-coral);
}

.hero-float-card-1 {
    top: 40px;
    right: -20px;
    animation-delay: 0s;
}

.hero-float-card-2 {
    bottom: 60px;
    left: -20px;
    animation-delay: 2s;
}

.hero-float-card-2 .icon {
    color: var(--cat-orange);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
    background: var(--color-charcoal);
    padding: 32px 0;
}

.stats-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--color-white);
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   Section Styles
   ============================================ */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-eyebrow .icon {
    width: 16px; height: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-ink-light);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   Categories Section - Matching Tips
   ============================================ */
.categories-section {
    padding: var(--section-spacing) 0;
    background: var(--color-paper);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.category-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-card);
    border-color: var(--cat-color, var(--color-accent));
}

.category-icon {
    width: 56px;
    height: 56px;
    background: color-mix(in srgb, var(--cat-color, var(--color-accent)) 12%, transparent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon .icon {
    width: 26px; height: 26px;
    color: var(--cat-color, var(--color-accent));
}

.category-content {
    flex: 1;
}

.category-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: 4px;
}

.category-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--cat-color, var(--color-accent));
    background: color-mix(in srgb, var(--cat-color, var(--color-accent)) 10%, transparent);
    padding: 4px 10px;
    border-radius: 20px;
}

.category-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
}

.category-arrow .icon {
    width: 20px; height: 20px;
    color: var(--color-pencil);
    transition: transform 0.3s var(--ease-out);
}

.category-card:hover .category-arrow {
    background: var(--cat-color, var(--color-accent));
}

.category-card:hover .category-arrow .icon {
    color: var(--color-white);
    transform: translateX(3px);
}

/* ============================================
   How It Works Section - Matching Tips dark style
   ============================================ */
.how-section {
    padding: var(--section-spacing) 0;
    background: var(--color-ink);
    position: relative;
    overflow: hidden;
}

.how-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.how-section .section-header {
    color: var(--color-white);
}

.how-section .section-eyebrow {
    color: var(--color-accent);
}

.how-section .section-title {
    color: var(--color-white);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.how-step {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s var(--ease-out);
}

.how-step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.how-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--color-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-icon .icon {
    width: 28px; height: 28px;
    color: var(--color-white);
}

.how-number {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(124, 77, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

.how-step h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.how-step p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ============================================
   Preview Section
   ============================================ */
.preview-section {
    padding: var(--section-spacing) 0;
}

.preview-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.flip-card-wrapper {
    perspective: 1000px;
    cursor: pointer;
    text-align: center;
}

.flip-card {
    width: 260px;
    height: 360px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-in-out);
}

.flip-card-wrapper.flipped .flip-card {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Placeholder styles when images fail */
.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1E1E24 0%, #141418 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    color: white;
}

.card-placeholder .icon {
    width: 48px; height: 48px;
    color: var(--card-color, var(--color-coral));
    margin-bottom: 16px;
}

.card-placeholder h4 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 8px;
}

.card-placeholder p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.card-placeholder.back {
    background: linear-gradient(145deg, #2A2A32 0%, #1E1E24 100%);
    justify-content: flex-start;
    padding-top: 48px;
}

.card-placeholder.back h4 {
    color: #4ECDC4;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.card-placeholder.back p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.flip-hint {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-stone);
}

/* ============================================
   Download Section
   ============================================ */
.download-section {
    padding: var(--section-spacing) 0;
    background: var(--color-charcoal);
}

.download-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.download-content .section-eyebrow {
    color: var(--color-coral);
}

.download-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
}

.download-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 36px;
}

.download-form .form-group {
    display: flex;
    gap: 12px;
}

.download-form input {
    flex: 1;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    outline: none;
    transition: border-color 0.2s ease;
}

.download-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.download-form input:focus {
    border-color: var(--color-coral);
}

.form-note {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.download-visual {
    display: flex;
    justify-content: center;
}

.card-stack {
    position: relative;
    width: 220px;
    height: 300px;
}

.stacked-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.stacked-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stacked-1 {
    transform: rotate(-6deg) translateX(-20px);
}

.stacked-2 {
    transform: rotate(3deg) translateX(10px);
}

.stacked-3 {
    transform: rotate(-1deg);
}

/* ============================================
   Resources Section - Level Up Your Facilitation
   ============================================ */
.resources-section {
    padding: var(--section-spacing) 0;
    background: var(--color-paper);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.resource-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: var(--resource-color, var(--color-accent));
}

.resource-icon {
    width: 52px;
    height: 52px;
    background: color-mix(in srgb, var(--resource-color, var(--color-accent)) 12%, transparent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s var(--ease-out);
}

.resource-icon .icon {
    width: 26px; height: 26px;
    color: var(--resource-color, var(--color-accent));
    transition: color 0.3s var(--ease-out);
}

.resource-card:hover .resource-icon {
    background: var(--resource-color, var(--color-accent));
}

.resource-card:hover .resource-icon .icon {
    color: var(--color-white);
}

.resource-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: 8px;
}

.resource-card p {
    font-size: 14px;
    color: var(--color-pencil);
    line-height: 1.6;
    margin-bottom: 16px;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--resource-color, var(--color-accent));
}

.resource-link .icon {
    width: 18px; height: 18px;
    transition: transform 0.2s ease;
}

.resource-card:hover .resource-link .icon {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Footer - Matching Tips
   ============================================ */
.footer {
    background: var(--color-ink);
    padding: 56px 0 0;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .download-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .download-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
        --container-padding: 20px;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero {
        padding: 110px 0 50px;
        min-height: auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-stat-divider {
        display: none;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .preview-cards {
        gap: 24px;
    }

    .flip-card {
        width: 240px;
        height: 320px;
    }

    .download-form .form-group {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .flip-card {
        width: 200px;
        height: 280px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
