/* ==========================================================
   ReportForge - Marketing + App Styles
   ========================================================== */

:root {
    --navy: #0B1733;
    --accent: #FF6B35;
    --accent-light: #FFF1EC;
    --gold: #F4B740;
    --green: #10B981;
    --dark: #1F2937;
    --grey-600: #6B7280;
    --grey-400: #9CA3AF;
    --grey-200: #E5E7EB;
    --grey-100: #F3F4F6;
    --soft: #F5F5F7;
    --white: #FFFFFF;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(11, 23, 51, 0.04), 0 1px 3px rgba(11, 23, 51, 0.06);
    --shadow: 0 4px 6px rgba(11, 23, 51, 0.05), 0 10px 30px rgba(11, 23, 51, 0.08);
    --shadow-lg: 0 20px 60px rgba(11, 23, 51, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--grey-200);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}

.logo-mark {
    display: inline-flex;
    width: 28px;
    height: 28px;
    background: var(--navy);
    color: var(--accent);
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
}

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

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: var(--grey-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

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

/* ==========================================================
   Hero
   ========================================================== */
.hero {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, var(--white) 0%, var(--soft) 100%);
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.pill {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero h1 .accent {
    color: var(--accent);
    position: relative;
}

.hero .lead {
    font-size: 18px;
    color: var(--grey-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.flash {
    max-width: 600px;
    margin: 20px auto 0;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.flash-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.flash-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* ==========================================================
   Generator form
   ========================================================== */
.generator {
    padding: 40px 0 80px;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.form-card-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--grey-200);
    background: linear-gradient(180deg, var(--soft) 0%, var(--white) 100%);
}

.form-card-header h2 {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 4px;
}

.form-card-header p {
    color: var(--grey-600);
    font-size: 14px;
}

.upload-form {
    padding: 28px 32px 32px;
}

.form-row {
    margin-bottom: 24px;
}

.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

/* File drop */
.file-drop {
    position: relative;
    border: 2px dashed var(--grey-200);
    border-radius: var(--radius);
    background: var(--soft);
    transition: all 0.2s;
    overflow: hidden;
}

.file-drop.drag-over {
    border-color: var(--accent);
    background: var(--accent-light);
}

.file-drop.has-file {
    border-color: var(--green);
    border-style: solid;
    background: #ECFDF5;
}

.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-drop-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px;
    cursor: pointer;
}

.file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 50%;
    font-size: 20px;
    color: var(--accent);
    font-weight: 700;
}

.file-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-text strong {
    color: var(--navy);
    font-size: 15px;
}

.file-text small {
    color: var(--grey-600);
    font-size: 13px;
}

/* Template grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.template-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.template-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.template-card-inner {
    padding: 18px;
    border: 2px solid var(--grey-200);
    border-radius: var(--radius);
    background: var(--white);
    transition: all 0.15s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.template-color-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--tpl-color);
    opacity: 0.3;
    transition: opacity 0.15s;
}

.template-card:hover .template-card-inner {
    border-color: var(--tpl-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.template-card:hover .template-color-bar {
    opacity: 1;
}

.template-card input:checked ~ .template-card-inner {
    border-color: var(--tpl-color);
    background: var(--soft);
}

.template-card input:checked ~ .template-card-inner .template-color-bar {
    opacity: 1;
    height: 6px;
}

.template-card-inner h3 {
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 4px;
    font-weight: 700;
}

.template-card-inner p {
    font-size: 13px;
    color: var(--grey-600);
    margin-bottom: 10px;
    line-height: 1.4;
}

.template-columns small {
    font-size: 11px;
    color: var(--grey-400);
}

.template-columns code {
    background: var(--grey-100);
    color: var(--dark);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

/* Text inputs */
.field {
    display: block;
}

.field input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: #E85A24;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:disabled {
    background: var(--grey-400);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--grey-200);
}

.btn-outline:hover {
    border-color: var(--navy);
}

.btn-outline:disabled {
    color: var(--grey-400);
    cursor: not-allowed;
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.upload-form .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* ==========================================================
   How it works
   ========================================================== */
.how {
    padding: 80px 0;
    background: var(--soft);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-sub {
    text-align: center;
    color: var(--grey-600);
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 17px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 14px;
    opacity: 0.9;
}

.step h3 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 8px;
    font-weight: 700;
}

.step p {
    color: var(--grey-600);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================
   Pricing
   ========================================================== */
.pricing {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 50px auto 0;
}

.price-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
}

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

.price-card-featured {
    border: 2px solid var(--accent);
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.price-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.price-card h3 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 12px;
}

.price {
    margin-bottom: 20px;
}

.price-amount {
    font-size: 44px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.price-period {
    color: var(--grey-600);
    font-size: 15px;
}

.price-card ul {
    list-style: none;
    margin-bottom: 28px;
}

.price-card ul li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--dark);
    border-bottom: 1px solid var(--grey-100);
}

.price-card ul li:last-child {
    border-bottom: none;
}

.price-card .btn {
    width: 100%;
}

/* ==========================================================
   Download page
   ========================================================== */
.download-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.download-card {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--grey-200);
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.download-card h1 {
    font-size: 32px;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 800;
}

.download-card .lead {
    color: var(--grey-600);
    margin-bottom: 32px;
    font-size: 16px;
}

.download-note {
    margin-top: 40px;
    padding: 24px;
    background: var(--soft);
    border-radius: var(--radius-sm);
    text-align: left;
}

.download-note p {
    margin-bottom: 10px;
    color: var(--navy);
}

.download-note ul {
    list-style: none;
}

.download-note ul li {
    padding: 4px 0 4px 20px;
    color: var(--grey-600);
    font-size: 14px;
    position: relative;
}

.download-note ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.link-back {
    display: inline-block;
    margin-top: 28px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.link-back:hover {
    text-decoration: underline;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
    padding: 32px 0;
    background: var(--navy);
    color: var(--grey-400);
    text-align: center;
    font-size: 14px;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 640px) {
    .nav {
        display: none;
    }
    .hero {
        padding: 50px 0 30px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .form-row-inline {
        grid-template-columns: 1fr;
    }
    .upload-form {
        padding: 20px 20px 24px;
    }
    .form-card-header {
        padding: 20px 20px 16px;
    }
    .price-card-featured {
        transform: none;
    }
    .download-card {
        padding: 40px 24px;
    }
}
