/* === Variables === */
:root {
    --blue-600: #1976D2;
    --blue-700: #1565C0;
    --blue-800: #0D47A1;
    --blue-50: #E3F2FD;
    --blue-100: #BBDEFB;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --green-500: #22C55E;
    --red-400: #F87171;
    --white: #FFFFFF;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === Skip Navigation === */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--blue-600);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

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

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

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

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: var(--radius); }
.btn-block { width: 100%; }

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

.btn-outline {
    background: transparent;
    color: var(--blue-600);
    border-color: var(--blue-600);
}
.btn-outline:hover {
    background: var(--blue-50);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border-color: var(--gray-300);
}
.btn-ghost:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-white {
    background: var(--white);
    color: var(--blue-700);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--blue-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--gray-900);
}

.navbar-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.navbar-links {
    display: flex;
    gap: 32px;
}

.navbar-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
}
.navbar-links a:hover { color: var(--blue-600); }

.navbar-actions {
    display: flex;
    gap: 12px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}

/* === Hero === */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 50%, var(--blue-50) 100%);
    text-align: center;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blue-100);
    color: var(--blue-700);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-500);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-note {
    font-size: 13px;
    color: var(--gray-500);
}

/* === Sections === */
.section {
    padding: 72px 0;
}

.section-gray {
    background: var(--gray-50);
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* === Problem Section === */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.problem-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

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

.step-card {
    text-align: center;
    padding: 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--blue-600);
    color: var(--white);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.6;
}

.steps-result {
    text-align: center;
    padding: 24px 32px;
    background: var(--blue-50);
    border-radius: var(--radius);
    border: 1px solid var(--blue-100);
}

.steps-result p {
    font-size: 16px;
    color: var(--gray-600);
}

/* === Professions Section === */
.professions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profession-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profession-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.profession-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

.profession-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
    font-style: italic;
}

/* === Pricing Section === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-200);
    position: relative;
}

.pricing-card-featured {
    border-color: var(--blue-600);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--blue-600);
    color: var(--white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pricing-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 18px;
    font-weight: 500;
    color: var(--gray-400);
}

.pricing-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.pricing-features {
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-600);
    padding-left: 28px;
    position: relative;
}

.pricing-features li::before {
    position: absolute;
    left: 0;
    font-size: 16px;
}

.feature-yes::before {
    content: '✓';
    color: var(--green-500);
    font-weight: 700;
}

.feature-no::before {
    content: '✕';
    color: var(--gray-300);
}

.feature-no {
    color: var(--gray-400);
}

.pricing-trial {
    text-align: center;
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 12px;
}

/* === FAQ Section === */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--blue-600);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--gray-400);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* === CTA Section === */
.section-cta {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
    text-align: center;
    padding: 80px 0;
}

.section-cta h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.section-cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

/* === Footer === */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* === Mobile Menu === */
.navbar-links.open,
.navbar-actions.open {
    display: flex;
}

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

.example-pdfs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .example-pdfs-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .navbar-links { display: none; }
    .navbar-actions { display: none; }
    .navbar-toggle { display: flex; }

    .navbar-links.open {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
    }

    .navbar-actions.open {
        position: absolute;
        top: calc(64px + 180px);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 0 24px 16px;
        border-bottom: 1px solid var(--gray-200);
        justify-content: center;
    }

    .hero { padding: 120px 0 70px; }

    .hero h1 {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .section { padding: 48px 0; }

    .section-header h2 { font-size: 28px; }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; }
    .section-header h2 { font-size: 24px; }
    .pricing-price { font-size: 40px; }
}

/* === V2 Styles - Image/Professionalism angle === */

/* Wider container for v2 */
.container {
    max-width: 1280px;
}

/* Tighter vertical rhythm for wider layout */
.section {
    padding: 56px 0;
}

.section-header {
    margin-bottom: 40px;
}

/* Wider narrow containers */
.container-narrow {
    max-width: 900px;
}

/* Professions: 3 columns instead of 2 */
.professions-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* --- Contrast Grid (Before/After) --- */
.contrast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto 48px;
}

.contrast-card {
    border-radius: 16px;
    padding: 32px;
    position: relative;
}

.contrast-before {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
}

.contrast-after {
    background: #f0fdf4;
    border: 2px solid #86efac;
}

.contrast-label {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.contrast-before .contrast-label {
    background: var(--gray-200);
    color: var(--gray-600);
}

.contrast-after .contrast-label {
    background: #bbf7d0;
    color: #166534;
}

/* Chat bubbles (before) */
.contrast-chat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 85%;
}

.chat-out {
    background: #dcf8c6;
    color: #333;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-in {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--gray-200);
}

/* Document mock (after) */
.contrast-doc {
    background: white;
    border-radius: 12px;
    border: 1px solid #d1fae5;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f0fdf4;
    border-bottom: 1px solid #d1fae5;
}

.doc-icon {
    font-size: 28px;
}

.doc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}

.doc-sub {
    font-size: 11px;
    color: var(--gray-400);
}

.doc-body {
    padding: 14px 16px;
}

.doc-body p {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 2px;
}

.doc-footer {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-badge-accepted {
    display: inline-block;
    padding: 3px 10px;
    background: #166534;
    color: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.doc-meta {
    font-size: 10px;
    color: var(--gray-400);
}

/* Verdict */
.contrast-verdict {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contrast-icon-bad,
.contrast-icon-good {
    font-size: 28px;
    flex-shrink: 0;
}

.contrast-verdict p {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.4;
}

.contrast-verdict em {
    font-weight: 700;
}

/* --- Image Reasons (3 cards) --- */
.image-reasons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: none;
    margin: 0 auto;
}

.image-reason {
    text-align: center;
    padding: 28px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.image-reason-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.image-reason h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.image-reason p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- Chain Section (Horizontal) --- */
.chain-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.chain-h-step {
    flex: 1;
    text-align: center;
    max-width: 340px;
}

.chain-h-step .chain-number {
    margin: 0 auto 12px;
}

.chain-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--blue-600);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}

.chain-h-step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.chain-quote {
    font-size: 15px !important;
    font-style: italic;
    color: var(--gray-700) !important;
    font-weight: 600;
    padding: 4px 0 0;
}

.chain-h-arrow {
    font-size: 28px;
    color: var(--gray-300);
    padding: 28px 16px 0;
    flex-shrink: 0;
}

/* --- Hero App Download (badges + QR) --- */
.hero-app-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 28px 0 12px;
}

.hero-app-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-badge-link {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.85;
}

.app-badge-link:hover {
    transform: scale(1.05);
    opacity: 1;
}

.hero-app-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-app-qr img {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    background: white;
    padding: 4px;
}

.hero-qr-label {
    font-size: 11px;
    color: var(--gray-400);
    text-align: center;
    line-height: 1.3;
}

.hero-app-note {
    font-size: 13px;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 8px;
}

/* --- Example PDFs --- */
.example-pdfs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .professions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-app-download {
        flex-direction: column;
        gap: 20px;
    }

    .hero-app-badges {
        flex-direction: row;
        gap: 12px;
    }

    .hero-app-badges img {
        height: 40px;
    }

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

    .image-reasons {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .chain-horizontal {
        flex-direction: column;
        align-items: center;
    }

    .chain-h-step {
        max-width: 400px;
    }

    .chain-h-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }
}

@media (max-width: 480px) {
    .contrast-card {
        padding: 20px;
    }

    .chat-bubble {
        font-size: 12px;
    }
}
