/* ==========================================================================
   SmartPitch Report Generator — Static Edition
   Theme: Sleek Light with Emerald Green Accents
   ========================================================================== */

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

:root {
    --bg-color: #F8FAFC;
    --surface-color: #FFFFFF;
    --primary-color: #10B981;
    --primary-hover: #059669;
    --primary-light: #D1FAE5;
    --primary-dark: #064E3B;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --border-focus: #10B981;
    --success-bg: #ECFDF5;
    --success-text: #065F46;
    --danger-bg: #FEF2F2;
    --danger-text: #991B1B;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Header ---- */
header {
    background-color: var(--surface-color);
    padding: 0 2rem;
    height: 64px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.header-nav a:hover, .header-nav a.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

/* ---- Hero / Landing ---- */
.hero-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 12px rgba(16,185,129,0.15));
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.hero-accent { color: var(--primary-color); }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.selection-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.selection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-icon { font-size: 1.75rem; }

.card-body { display: flex; flex-direction: column; gap: 0.5rem; }

.selection-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.selection-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.card-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.hero-footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---- Report Page Layout ---- */
.report-main {
    flex: 1;
    padding: 2.5rem 1.5rem 4rem;
}

.report-container {
    max-width: 860px;
    margin: 0 auto;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-align: center;
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

/* ---- Form Cards ---- */
.form-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.form-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-card h2 .section-icon {
    font-size: 1rem;
    background: var(--primary-light);
    border-radius: 6px;
    padding: 4px 6px;
}

.form-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 1.5rem 0 1rem;
}

.form-card h3:first-of-type { margin-top: 0.5rem; }

/* ---- Form Groups ---- */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-group small {
    color: var(--text-light);
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

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

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* ---- Inputs ---- */
input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--surface-color);
    transition: var(--transition);
}

textarea { min-height: 90px; resize: vertical; line-height: 1.6; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-light);
}

input[type="file"] {
    padding: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

input[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

/* Logo Preview */
#logo-preview-wrap {
    display: none;
    margin-top: 0.75rem;
    align-items: center;
    gap: 1rem;
}

#logo-preview {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    background: white;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
}

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

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

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #E2E8F0;
}

.btn-lg { padding: 0.9rem 2.5rem; font-size: 1.05rem; }

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ---- Progress / Loading ---- */
.generating-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.generating-overlay.active { display: flex; }

.generating-box {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem 3.5rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.generating-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.generating-box p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .form-grid-2, .form-grid-4 { grid-template-columns: 1fr; }
    .page-title { font-size: 1.6rem; }
    .header-nav a:not(.active) { display: none; }
    .form-card { padding: 1.25rem; }
}
