/* ===== CSS Reset & Variables ===== */
:root {
    /* Colors */
    --primary: #2563eb;       /* Trust Blue */
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    
    --success: #10b981;       /* Green for positive actions/money */
    --success-light: #ecfdf5;
    
    --warning: #f59e0b;       /* Warning/Lost revenue */
    --danger: #ef4444;        /* Error/Cancelled */
    
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Variables */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
    
    /* Spacing */
    --section-spacing: 5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===== Typography & Utilities ===== */
h1, h2, h3, h4 {
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-highlight { color: var(--primary); }

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
}

.btn-outline:hover {
    background-color: var(--bg-surface);
    border-color: #cbd5e1;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}

/* ===== Navigation ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    border-radius: 6px;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

/* ===== Hero Section ===== */
.hero {
    padding: 4rem 0 6rem 0;
    overflow: hidden;
    position: relative;
}

/* Gradient background hints */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--success);
    filter: blur(80px);
    opacity: 0.08;
    border-radius: 50%;
    z-index: -1;
}


.hero-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .hero-content {
        flex: 1;
        max-width: 550px;
        text-align: left;
    }
    .hero-visual {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary-hover);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3.5rem; }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Calendar Mockup in Hero */
.calendar-mockup {
    width: 100%;
    max-width: 480px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.mockup-header {
    background: #f8fafc;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.mockup-dots {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mockup-body {
    padding: 1rem;
}

.calendar-grid {
    display: flex;
    gap: 1rem;
    height: 300px;
    position: relative;
}

.time-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.days-columns {
    flex: 1;
    border-left: 1px solid #e2e8f0;
    position: relative;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent calc(25% - 1px),
        #f1f5f9 calc(25% - 1px),
        #f1f5f9 25%
    );
}

.day-col {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.event {
    position: absolute;
    left: 10px;
    right: 10px;
    border-radius: 6px;
    padding: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.5s ease;
}

.event.booked {
    background: var(--primary-light);
    color: var(--primary-hover);
    border-left: 3px solid var(--primary);
}

.event.canceled {
    background: #fef2f2;
    color: var(--danger);
    border-left: 3px solid var(--danger);
    /* Animation classes mapped via script */
}

.canceled-text {
    text-decoration: line-through;
    opacity: 0.7;
}

.auto-fill-anim {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--warning);
    font-weight: 600;
}

/* This keyframe pulses the canceled event before switching to filled */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.event.canceled.glow {
    animation: pulseGlow 2s infinite;
}

.event.filled {
    background: var(--success-light);
    color: #047857;
    border-left: 3px solid var(--success);
    animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* ===== Problem Section ===== */
.problem-section {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-surface);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .problem-grid { grid-template-columns: repeat(3, 1fr); }
}

.problem-card {
    padding: 2rem;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
}

.problem-icon {
    width: 48px;
    height: 48px;
    background: #fef2f2;
    color: var(--danger);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.problem-icon svg {
    width: 24px;
    height: 24px;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.revenue-loss-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.revenue-loss-banner h4 {
    font-size: 1.25rem;
    color: #92400e;
    font-weight: 500;
}

.revenue-loss-banner span {
    font-weight: 800;
    color: var(--danger);
}


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

.solution-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .solution-container {
        flex-direction: row;
        align-items: center;
    }
    .solution-content { flex: 1; }
    .solution-visual { flex: 1; display: flex; justify-content: flex-end;}
}

.solution-features {
    list-style: none;
    margin-top: 2rem;
}

.solution-features li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.feature-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-check svg { width: 14px; height: 14px; }
.feature-check.highlight-check {
    background: var(--success);
    color: white;
}

.solution-visual {
    width: 100%;
}

.revenue-chart {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

.rc-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.bar-group { width: 100%; }
.bar-label { font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--text-secondary); }
.bar-wrap {
    display: flex;
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
}
.bar {
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}
.bar-base { background: #94a3b8; }
.bar-lost { background: #cbd5e1; color: var(--text-secondary); }
.bar-recovered { background: var(--success); }

/* ===== How it works ===== */
.steps-section {
    padding: var(--section-spacing) 0;
    background: white;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    text-align: center;
    flex: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem auto;
}

.step-card h3 {
    margin-bottom: 0.75rem;
}

.step-line {
    display: none;
    height: 2px;
    background: #e2e8f0;
    flex: 1;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .steps-grid {
        flex-direction: row;
        align-items: flex-start;
    }
    .step-line { display: block; }
}

/* ===== Benefits & Social Proof ===== */
.benefits-section {
    padding: var(--section-spacing) 0;
}

.social-proof-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #0369a1 100%);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 4rem;
}

.sp-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--success-light);
}

.sp-text {
    font-size: 1.125rem;
    opacity: 0.9;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

.benefit-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.m-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--success-light);
    color: var(--success);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.m-icon svg { width: 20px; height: 20px; }

.benefit-item h4 { margin-bottom: 0.25rem; }
.benefit-item p { font-size: 0.9rem; margin: 0; }

.testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials { grid-template-columns: repeat(2, 1fr); }
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.t-quote {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.t-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.bg-blue { background: #bfdbfe; }
.bg-green { background: #bbf7d0; }

.t-info { display: flex; flex-direction: column; }
.t-info strong { font-size: 0.9rem; }
.t-info span { font-size: 0.8rem; color: var(--text-tertiary); }

/* ===== Pricing ===== */
.pricing-section {
    padding: var(--section-spacing) 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.pricing-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.p-name { font-weight: 600; font-size: 1.25rem; margin-bottom: 0.5rem; }
.p-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.p-price span { font-size: 1rem; color: var(--text-tertiary); font-weight: 500; }
.p-desc { font-size: 0.9rem; margin-bottom: 2rem; min-height: 45px; }

.p-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.p-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.p-features svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--success);
}

.p-btn { width: 100%; }


/* ===== CTA Section ===== */
.cta-section {
    padding: 8rem 0;
    background: var(--primary-light);
}

.cta-title { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-subtitle { max-width: 600px; margin: 0 auto 2rem auto; font-size: 1.125rem; }
.cta-micro { margin-top: 1rem; font-size: 0.85rem; color: var(--text-tertiary); }

/* ===== Footer ===== */
footer {
    background: #0f172a;
    color: white;
    padding: 4rem 0 2rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-container { grid-template-columns: 2fr 1fr 1fr; }
}

.f-col .logo { margin-bottom: 1rem; color: white;}
.f-col p { color: #94a3b8; font-size: 0.9rem; }
.f-col h4 { margin-bottom: 1rem; font-size: 1rem; color: white;}
.f-col a {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.f-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* ===== AI Transparency Section ===== */
.ai-transparency-section {
    padding: 3rem 0;
    background: #ffffff;
}

.ai-transparency-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.ai-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ai-transparency-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.ai-transparency-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 850px;
    margin-bottom: 1.5rem;
}

.ai-notice-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ai-notice-points {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ai-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.ai-notice-item .ai-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* ===== Registration Modal ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: var(--text-tertiary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

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

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.form-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* AI Disclaimer Box in Modal */
.ai-disclaimer-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 0.825rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

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