/*
 * Client Presentation — Google Docs Inspired Clean Design
 * Professional proposal styling for client pitch documents
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ==================== TOKENS ==================== */
:root {
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --bg: #ffffff;
    --bg-subtle: #f8f9fa;
    --bg-section: #f1f3f5;
    --border: #e9ecef;
    --border-light: #f1f3f5;

    --text: #1a1a2e;
    --text-secondary: #495057;
    --text-dim: #868e96;
    --text-link: #1971c2;

    --accent: #1971c2;
    --accent-light: #e7f5ff;
    --accent-bg: #d0ebff;
    --gold: #e67700;
    --gold-light: #fff4e6;
    --gold-bg: #ffe8cc;
    --green: #2b8a3e;
    --green-light: #ebfbee;
    --green-bg: #d3f9d8;
    --red: #c92a2a;
    --red-light: #fff5f5;
    --red-bg: #ffe3e3;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ==================== RESET ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg-subtle);
    color: var(--text);
    line-height: 1.8;
    font-size: 15px;
}

/* ==================== DOCUMENT CONTAINER (Google Docs Style) ==================== */
.document {
    max-width: 816px;
    /* Google Docs width */
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
}

.doc-header {
    padding: 3rem 4rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.doc-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.doc-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.doc-brand-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.doc-nav {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.doc-nav::-webkit-scrollbar {
    display: none;
}

.doc-nav a {
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.doc-nav a:hover,
.doc-nav a.active {
    background: var(--bg-subtle);
    color: var(--text);
}

.doc-body {
    padding: 3rem 4rem 5rem;
}

/* ==================== TYPOGRAPHY ==================== */
.doc-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.doc-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.doc-meta {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 3rem;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.doc-meta strong {
    color: var(--text-secondary);
    font-weight: 600;
}

h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 3rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}

h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 2rem 0 0.75rem;
}

p {
    margin-bottom: 1rem;
}

p+p {
    margin-top: 0;
}

strong {
    font-weight: 600;
    color: var(--text);
}

a {
    color: var(--text-link);
}

/* ==================== CALLOUT BOXES ==================== */
.callout {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    font-size: 0.92rem;
    line-height: 1.7;
    border-left: 4px solid;
}

.callout-blue {
    background: var(--accent-light);
    border-color: var(--accent);
    color: #1864ab;
}

.callout-gold {
    background: var(--gold-light);
    border-color: var(--gold);
    color: #e67700;
}

.callout-green {
    background: var(--green-light);
    border-color: var(--green);
    color: #2b8a3e;
}

.callout-red {
    background: var(--red-light);
    border-color: var(--red);
    color: #c92a2a;
}

.callout-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== STAT CARDS ==================== */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* ==================== COMPARISON TABLE ==================== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.compare-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--bg-section);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

.compare-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table .check {
    color: var(--green);
    font-weight: 700;
}

.compare-table .cross {
    color: var(--red);
    font-weight: 700;
}

/* ==================== SCREENSHOT FRAME ==================== */
.screenshot {
    margin: 2rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.screenshot-bar {
    background: var(--bg-section);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.screenshot-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.screenshot-dot.r {
    background: #ff6b6b;
}

.screenshot-dot.y {
    background: #ffd43b;
}

.screenshot-dot.g {
    background: #51cf66;
}

.screenshot-url {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    background: var(--bg);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    margin: 0 2rem;
}

.screenshot img {
    width: 100%;
    display: block;
}

/* ==================== FEATURE LIST ==================== */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list .icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-list .icon-green {
    background: var(--green-bg);
    color: var(--green);
}

.feature-list .icon-red {
    background: var(--red-bg);
    color: var(--red);
}

.feature-list .icon-gold {
    background: var(--gold-bg);
    color: var(--gold);
}

/* ==================== NUMBERED STEPS ==================== */
.steps {
    counter-reset: step;
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
}

.step:last-child {
    border-bottom: none;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== PRICING / CTA BOX ==================== */
.cta-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    color: white;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f5a623, #ffd166);
    color: #1a1a2e;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
    color: #1a1a2e;
}

/* ==================== TABLE OF CONTENTS ==================== */
.toc {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.toc h4 {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.toc-list {
    list-style: none;
    counter-reset: toc;
}

.toc-list li {
    counter-increment: toc;
    margin-bottom: 0.5rem;
}

.toc-list a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.toc-list a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.toc-list a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    width: 24px;
}

/* ==================== NAVIGATION GRID ==================== */
.navigation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 2rem 0 3rem;
}

.nav-item {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--bg);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.nav-text {
    display: flex;
    flex-direction: column;
}

.nav-text strong {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.nav-text span {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ==================== COMPETITOR CARD ==================== */
.competitor-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1.5rem 0;
}

.competitor-header {
    background: var(--bg-section);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.competitor-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.competitor-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-has-website {
    background: var(--green-bg);
    color: var(--green);
}

.badge-no-website {
    background: var(--red-bg);
    color: var(--red);
}

.competitor-body {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==================== QUOTE BLOCK ==================== */
blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-subtle);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 600;
}

/* ==================== DIVIDER ==================== */
hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 3rem 0;
}

/* ==================== PAGE FOOTER ==================== */
.doc-footer {
    padding: 2rem 4rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.doc-footer a {
    color: var(--accent);
}

/* ==================== COVER PAGE ==================== */
.cover {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.cover-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #f5a623;
    margin-bottom: 2rem;
}

.cover h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.cover h1 span {
    color: #f5a623;
}

.cover p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.cover-meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4rem;
}

.cover-divider {
    width: 60px;
    height: 3px;
    background: #f5a623;
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .document {
        margin: 0;
    }

    .doc-body,
    .doc-header,
    .doc-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .doc-header {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .doc-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .doc-brand {
        margin-bottom: 1rem;
    }

    .doc-nav {
        width: 100%;
        display: flex;
    }

    .cover {
        padding: 2rem;
    }

    .cover h1 {
        font-size: 2.2rem;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .doc-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navigation-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    body {
        background: white;
    }

    .document {
        box-shadow: none;
        max-width: 100%;
    }

    .doc-header {
        position: static;
    }

    .cover {
        min-height: auto;
        page-break-after: always;
    }

    h2 {
        page-break-after: avoid;
    }
}