/* ============================================
   SUNDEVIL CIRCLE - COMPLETE DESIGN SYSTEM
   Based on UI_design.md specifications
   ============================================ */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   ============================================ */
:root {
    /* Primary Colors */
    --primary-maroon: #8B1538;
    --primary-gold: #FFC627;

    /* Background Gradients */
    --bg-gradient-start: #FFF5F5;
    --bg-gradient-end: #F5EEE6;

    /* Text Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --text-white: #FFFFFF;

    /* UI Element Colors */
    --green-mint: #D1FAE5;
    --green-accent: #10B981;
    --pink-light: #FDE2E4;
    --pink-rose: #E11D48;
    --yellow-soft: #FEF3C7;

    /* Semantic Colors */
    --shield-green: #86EFAC;
    --warning-yellow: #FBBF24;
    --error-red: #EF4444;
    --success-green: #22C55E;

    /* Card/Modal Colors */
    --card-white: #FFFFFF;
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --border-gray: #E5E7EB;

    /* Font Family */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 48px;
    --text-6xl: 60px;
    --text-hero: 72px;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line Heights */
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* Spacing */
    --spacing-1: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-5: 20px;
    --spacing-6: 24px;
    --spacing-8: 32px;
    --spacing-10: 40px;
    --spacing-12: 48px;
    --spacing-16: 64px;
    --spacing-20: 80px;
    --spacing-24: 96px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

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

/* ============================================
   1. CRISIS ALERT BANNER
   ============================================ */
.crisis-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(90deg, #D1FAE5, #ECFDF5);
    border-bottom: 1px solid #A7F3D0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    transition: all 300ms ease-out;
}

.crisis-banner.hidden {
    transform: translateY(-100%);
}

.crisis-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.crisis-banner-icon {
    width: 20px;
    height: 20px;
    color: var(--green-accent);
}

.crisis-banner-text strong {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.crisis-banner-text span {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-left: 8px;
}

.crisis-banner-close {
    position: absolute;
    right: 24px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 200ms ease;
}

.crisis-banner-close:hover {
    color: var(--text-primary);
}

/* Expanded Crisis Panel */
.crisis-panel {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--card-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px 40px;
    z-index: 999;
    display: none;
    animation: slideDown 300ms ease-out;
}

.crisis-panel.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.crisis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.crisis-grid.expanded {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {

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

@media (max-width: 640px) {

    .crisis-grid,
    .crisis-grid.expanded {
        grid-template-columns: 1fr;
    }
}

.crisis-panel-header {
    max-width: 1280px;
    margin: 0 auto 16px;
    text-align: center;
}

.crisis-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crisis-card.pink {
    background: #FFF1F2;
}

.crisis-card.green {
    background: #F0FDF4;
}

.crisis-card.gold {
    background: #FFFBEB;
}

.crisis-card.emergency {
    background: #FEE2E2;
    border: 2px solid #FCA5A5;
}

.crisis-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.crisis-icon-emoji {
    font-size: 32px;
}

.crisis-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
}

.crisis-tag.emergency {
    background: #991B1B;
    color: white;
}

.crisis-card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.crisis-card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.crisis-card-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.crisis-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.crisis-card-action {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--primary-maroon);
    transition: all 200ms ease;
    padding: 6px 0;
}

.crisis-card-action:hover {
    text-decoration: underline;
}

.btn-emergency {
    background: #DC2626;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-emergency:hover {
    background: #B91C1C;
    text-decoration: none;
}

/* ============================================
   2. NAVIGATION BAR
   ============================================ */
.navbar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 998;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: top 300ms ease;
}

.navbar.no-banner {
    top: 0;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-maroon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 20px;
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

.logo-text .sun {
    color: var(--primary-maroon);
}

.logo-text .circle {
    color: var(--primary-gold);
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: #4B5563;
    position: relative;
    padding: 8px 0;
    transition: color 200ms ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-maroon);
    transition: all 200ms ease;
    transform: translateX(-50%);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-signin {
    background: transparent;
    color: #4B5563;
    font-weight: var(--font-medium);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    transition: all 200ms ease;
}

.btn-signin:hover {
    background: #F3F4F6;
}

.btn-primary {
    background: linear-gradient(135deg, #8B1538, #A91D3A);
    color: var(--text-white);
    font-weight: var(--font-semibold);
    padding: 12px 28px;
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.25);
    transition: all 250ms ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 21, 56, 0.35);
}

/* ============================================
   3. HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    position: relative;
    overflow: hidden;
    padding: 180px 40px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: url('/static/hero-bg.png') center bottom / cover no-repeat;
    opacity: 0.5;
    filter: saturate(0.8);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, transparent, rgba(255, 245, 245, 0.95) 60%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pink-light);
    padding: 8px 20px;
    border-radius: var(--radius-2xl);
    margin-bottom: 32px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--pink-rose);
    border-radius: 50%;
}

.hero-badge-text {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--primary-maroon);
}

/* Headline */
.hero-headline {
    font-size: var(--text-hero);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    margin-bottom: 24px;
}

.hero-headline .line1 {
    color: var(--text-primary);
    display: block;
}

.hero-headline .line2 {
    color: var(--primary-maroon);
    display: block;
}

/* Subheadline */
.hero-subheadline {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 48px;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #8B1538, #A91D3A);
    color: var(--text-white);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    padding: 16px 40px;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(139, 21, 56, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 300ms ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(139, 21, 56, 0.4);
}

.btn-hero-secondary {
    background: var(--card-white);
    color: var(--primary-maroon);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    padding: 16px 40px;
    border-radius: 28px;
    border: 2px solid var(--primary-maroon);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 300ms ease;
}

.btn-hero-secondary:hover {
    background: var(--primary-maroon);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* Feature Pills */
.feature-pills {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: var(--text-sm);
    color: #4B5563;
}

.feature-pill-icon {
    width: 20px;
    height: 20px;
}

.feature-pill-icon.green {
    color: var(--green-accent);
}

.feature-pill-icon.maroon {
    color: var(--primary-maroon);
}

/* ============================================
   4. HOW IT WORKS SECTION
   ============================================ */
.section {
    padding: 80px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pink-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--primary-maroon);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--card-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: all 300ms ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B1538, #A91D3A);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
}

.step-icon {
    width: 56px;
    height: 56px;
    background: var(--yellow-soft);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--warning-yellow);
    font-size: 28px;
}

.step-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   5. CARDS & CONTAINERS
   ============================================ */
.card {
    background: var(--card-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   6. FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: var(--text-base);
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-lg);
    transition: all 200ms ease;
    background: var(--card-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-maroon);
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    transition: all 250ms ease;
    cursor: pointer;
}

.btn-maroon {
    background: linear-gradient(135deg, #8B1538, #A91D3A);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.25);
}

.btn-maroon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 21, 56, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary-maroon);
    border: 2px solid var(--primary-maroon);
}

.btn-outline:hover {
    background: var(--primary-maroon);
    color: var(--text-white);
}

.btn-secondary {
    background: #F3F4F6;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: #E5E7EB;
}

/* ============================================
   8. AI RESPONSE CARD
   ============================================ */
.ai-response-card {
    background: var(--card-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--primary-maroon);
}

.ai-response-card h2 {
    font-size: var(--text-2xl);
    color: var(--primary-maroon);
    margin-bottom: 20px;
}

.empathetic-message {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid var(--green-accent);
}

.empathetic-message p {
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: 1.7;
}

.ai-suggestions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #FAFAFA;
    border-radius: var(--radius-lg);
    transition: all 200ms ease;
}

.ai-suggestion-item:hover {
    background: #F3F4F6;
    transform: translateX(4px);
}

.ai-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.suggestion-text {
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: 1.5;
}

/* ============================================
   9. CHAT STYLES
   ============================================ */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.chat-header {
    background: linear-gradient(135deg, #8B1538, #A91D3A);
    color: var(--text-white);
    padding: 20px 24px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.chat-header h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

.messages-container {
    background: var(--card-white);
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    border-left: 1px solid var(--border-gray);
    border-right: 1px solid var(--border-gray);
}

.message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    max-width: 80%;
}

.message.own {
    background: linear-gradient(135deg, #8B1538, #A91D3A);
    color: var(--text-white);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message.other {
    background: #F3F4F6;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: var(--text-sm);
}

.message-sender {
    font-weight: var(--font-semibold);
}

.message-time {
    opacity: 0.8;
    font-size: var(--text-xs);
}

.message-text {
    line-height: 1.5;
}

.message-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.message-actions button {
    font-size: var(--text-xs);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    transition: all 200ms ease;
}

.message-actions button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-input-container {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--card-white);
    border: 1px solid var(--border-gray);
    border-top: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.chat-input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: all 200ms ease;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-maroon);
}

.chat-input-container button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8B1538, #A91D3A);
    color: var(--text-white);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    transition: all 200ms ease;
}

.chat-input-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
}

/* ============================================
   10. RESOURCE LIST
   ============================================ */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resource-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #FAFAFA;
    border-radius: var(--radius-lg);
    width: 100%;
    color: var(--primary-maroon);
    font-weight: var(--font-medium);
    transition: all 200ms ease;
}

.resource-list a:hover {
    background: var(--pink-light);
    transform: translateX(4px);
}

.resource-list a::before {
    content: '🔗';
    font-size: 16px;
}

/* ============================================
   11. GROUP TAGS
   ============================================ */
.group-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.group-tag-btn {
    padding: 10px 20px;
    background: var(--pink-light);
    color: var(--primary-maroon);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all 200ms ease;
    border: 2px solid transparent;
}

.group-tag-btn:hover {
    background: var(--primary-maroon);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ============================================
   12. MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: var(--overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 20px;
}

.modal-content {
    background: var(--card-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalIn 300ms ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ============================================
   13. FOLLOW-UP SECTION
   ============================================ */
.followup-section {
    background: var(--card-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.followup-section h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.followup-history {
    margin: 20px 0;
}

.followup-item,
.followup-response {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 12px;
}

.followup-question {
    color: var(--primary-maroon);
    font-weight: var(--font-medium);
    margin-bottom: 8px;
}

.followup-answer {
    color: var(--text-primary);
    line-height: 1.6;
}

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

.form-row input {
    flex: 1;
}

/* ============================================
   14. USER FOOTER & DISCLAIMER
   ============================================ */
.user-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--card-white);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
}

.user-info {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.logout-link {
    color: var(--primary-maroon);
    font-weight: var(--font-medium);
    transition: opacity 200ms ease;
}

.logout-link:hover {
    opacity: 0.8;
}

.transparency-note {
    background: #FEF3C7;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-top: 24px;
    font-size: var(--text-sm);
    color: #92400E;
    line-height: 1.6;
}

.transparency-note strong {
    display: block;
    margin-bottom: 4px;
}

.disclaimer-bottom {
    margin-top: 32px;
}

/* ============================================
   15. AUTH PAGES (Login/Signup)
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.auth-card {
    background: var(--card-white);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-card .btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-maroon);
    font-weight: var(--font-medium);
}

/* ============================================
   16. WARNING & SUCCESS MESSAGES
   ============================================ */
.warning-message {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    color: #991B1B;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-message {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    color: #166534;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.distress-banner {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 2px solid #FECACA;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: center;
}

.distress-banner h3 {
    color: #991B1B;
    margin-bottom: 8px;
}

.distress-banner p {
    color: #7F1D1D;
}

.distress-banner a {
    color: #991B1B;
    font-weight: var(--font-semibold);
    text-decoration: underline;
}

/* ============================================
   17. EDITED TAG
   ============================================ */
.edited-tag {
    font-size: var(--text-xs);
    color: var(--text-light);
    font-style: italic;
    margin-left: 8px;
}

/* ============================================
   18. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-headline {
        font-size: var(--text-5xl);
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 160px 20px 80px;
    }

    .hero-headline {
        font-size: var(--text-4xl);
    }

    .hero-subheadline {
        font-size: var(--text-lg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

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

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

    .feature-pills {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 20px;
    }

    .card {
        padding: 24px;
    }

    .auth-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: var(--text-3xl);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .form-row {
        flex-direction: column;
    }
}

/* ============================================
   19. UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: var(--spacing-1);
}

.mt-2 {
    margin-top: var(--spacing-2);
}

.mt-4 {
    margin-top: var(--spacing-4);
}

.mt-6 {
    margin-top: var(--spacing-6);
}

.mt-8 {
    margin-top: var(--spacing-8);
}

.mb-1 {
    margin-bottom: var(--spacing-1);
}

.mb-2 {
    margin-bottom: var(--spacing-2);
}

.mb-4 {
    margin-bottom: var(--spacing-4);
}

.mb-6 {
    margin-bottom: var(--spacing-6);
}

.mb-8 {
    margin-bottom: var(--spacing-8);
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   UPDATED LANDING PAGE STYLES
   ============================================ */

/* 4-Column Steps Grid */
.steps-grid.four-cols {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .steps-grid.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .steps-grid.four-cols {
        grid-template-columns: 1fr;
    }
}

/* Step Number Colors */
.step-number.maroon {
    background: linear-gradient(135deg, #8B1538, #A91D3A);
}

.step-number.gold {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.step-number.green {
    background: linear-gradient(135deg, #10B981, #059669);
}

.step-number.pink {
    background: linear-gradient(135deg, #E11D48, #BE123C);
}

/* Step Icon Box */
.step-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-icon-box.green-light {
    background: var(--green-mint);
}

.step-icon-box.cream {
    background: var(--yellow-soft);
}

.step-icon-box.pink-light {
    background: var(--pink-light);
}

/* Feature Pill Icon Colors */
.feature-pill-icon.gold {
    color: #F59E0B;
}

/* ============================================
   SAFETY SECTION
   ============================================ */
.safety-section {
    background: white;
    padding: 100px 40px;
    /* Override parent .section max-width to allow full-width background */
    max-width: none;
    /* Break out of parent container */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
}

.safety-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .safety-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.safety-left {
    padding-right: 20px;
}

.safety-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F0FDF4;
    color: #10B981;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: 24px;
    border: 1px solid #D1FAE5;
}

.safety-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 24px;
}

.maroon-text {
    color: var(--primary-maroon);
}

.safety-desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.quote-box {
    background: #F9FAFB;
    border-left: 4px solid var(--primary-maroon);
    padding: 24px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.quote-text {
    font-size: var(--text-base);
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
}

.quote-author {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

/* Safety Features Grid */
.safety-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .safety-features-grid {
        grid-template-columns: 1fr;
    }
}

.safety-feature-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all 300ms ease;
}

.safety-feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.safety-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.safety-feature-icon.pink-light {
    background: var(--pink-light);
}

.safety-feature-icon.green-light {
    background: var(--green-mint);
}

.safety-feature-icon.cream {
    background: var(--yellow-soft);
}

.safety-feature-card h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.safety-feature-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1F2937;
    color: white;
    padding: 40px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #374151;
}

.footer-left .logo {
    color: white;
}

.footer-left .logo-icon {
    background: white;
    color: var(--primary-maroon);
}

.footer-nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #9CA3AF;
    font-size: var(--text-sm);
    transition: color 200ms;
}

.footer-nav a:hover {
    color: white;
}

.footer-right {
    font-size: var(--text-sm);
    color: #9CA3AF;
}

.footer-right .heart {
    color: #E11D48;
}

.footer-bottom {
    max-width: 1280px;
    margin: 24px auto 0;
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: #6B7280;
    margin-bottom: 4px;
}

/* How It Works adjustments */
.how-it-works {
    padding-top: 100px;
    padding-bottom: 100px;
}

.how-it-works .section-header {
    margin-bottom: 80px;
}

.how-it-works .step-card {
    text-align: center;
    padding-top: 40px;
}

.how-it-works .step-icon-box {
    margin: 0 auto 20px;
}

.how-it-works .step-number {
    left: 50%;
    transform: translateX(-50%);
}

/* Footer Consent Section */
.footer-consent {
    max-width: 800px;
    margin: 32px auto 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-consent p {
    font-size: var(--text-sm);
    color: #9CA3AF;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-consent p:last-child {
    margin-bottom: 0;
}

.footer-consent strong {
    color: var(--text-primary);
}

/* Sticky Notes / Tooltips */
.sticky-note {
    background: #FEF3C7;
    border: 2px solid #FBBF24;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: var(--text-sm);
    color: #92400E;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: stickyBounce 0.3s ease-out;
}

@keyframes stickyBounce {
    0% {
        transform: translateY(-5px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-note-dismissible {
    position: relative;
    padding-right: 32px;
}

.sticky-note-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #92400E;
    opacity: 0.6;
    transition: opacity 200ms;
}

.sticky-note-close:hover {
    opacity: 1;
}

/* Tooltip Trigger */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #E5E7EB;
    border-radius: 50%;
    font-size: 10px;
    color: #6B7280;
    cursor: help;
    margin-left: 4px;
}

.tooltip-trigger:hover {
    background: var(--primary-maroon);
    color: white;
}

/* Info Popover */
.info-popover {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    padding: 12px 16px;
    background: #FEF3C7;
    border: 2px solid #FBBF24;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: #92400E;
    white-space: nowrap;
    max-width: 280px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 200ms ease;
}

.info-popover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #FBBF24;
}

.tooltip-trigger:hover+.info-popover,
.info-popover:hover {
    opacity: 1;
    visibility: visible;
}

/* Dashboard Sticky Notes */
.dashboard-tip {
    background: #FEF3C7;
    border: 2px solid #FBBF24;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.dashboard-tip-content {
    flex: 1;
}

.dashboard-tip-content strong {
    display: block;
    color: #92400E;
    margin-bottom: 4px;
}

.dashboard-tip-content p {
    font-size: var(--text-sm);
    color: #B45309;
    margin: 0;
}

.dashboard-tip-dismiss {
    background: transparent;
    border: none;
    color: #92400E;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 200ms;
}

.dashboard-tip-dismiss:hover {
    opacity: 1;
}