/* DocRush — landing & legal pages
   Mobile-first, light theme, no JS, no tracking. */

:root {
    --bg: #f4f7fb;
    --bg-card: #ffffff;
    --ink: #0f2447;
    --ink-dim: #4a5876;
    --ink-faint: #98a3b8;
    --accent: #2d7dd2;
    --accent-dark: #1c5a9c;
    --success: #2eb872;
    --warn-bg: #fff8e1;
    --warn-border: #f6c948;
    --warn-ink: #6b4c00;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-card: 0 8px 24px -12px rgba(15, 36, 71, 0.18);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────── */
header.site-header {
    background: var(--bg-card);
    padding: 14px 0;
    border-bottom: 1px solid #e5ebf3;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
}
header.site-header .container {
    display: flex;
    align-items: center;
    gap: 12px;
}
header.site-header img.logo-small {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
header.site-header .brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
}
header.site-header nav {
    margin-left: auto;
    display: flex;
    gap: 18px;
    font-size: 14px;
}
header.site-header nav a {
    color: var(--ink-dim);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}
.hero img.logo {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 44px;
    line-height: 1.1;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.hero p.lead {
    font-size: 20px;
    color: var(--ink-dim);
    max-width: 560px;
    margin: 0 auto 28px;
}
.hero .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid #dde4ee;
    border-radius: 100px;
    font-size: 13px;
    color: var(--ink-dim);
}

/* ── CTA ─────────────────────────────────────────────── */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 32px 0;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px -2px rgba(45, 125, 210, 0.4);
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--ink);
    border: 1px solid #dde4ee;
}
.btn-disabled {
    background: #e5ebf3;
    color: var(--ink-faint);
    cursor: not-allowed;
}

/* ── Sections ────────────────────────────────────────── */
section.section {
    padding: 48px 0;
}
section.section h2 {
    font-size: 28px;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

/* Screenshot gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.gallery img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* Feature cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.feature-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.feature-card .icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.feature-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}
.feature-card p {
    margin: 0;
    color: var(--ink-dim);
    font-size: 14px;
}

/* ── Disclaimer banner ───────────────────────────────── */
.disclaimer {
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 32px 0;
    color: var(--warn-ink);
    font-size: 14px;
    line-height: 1.5;
}
.disclaimer strong { color: var(--warn-ink); }

/* ── Footer ──────────────────────────────────────────── */
footer.site-footer {
    background: #0f2447;
    color: #c9d2e3;
    padding: 40px 0 24px;
    font-size: 14px;
    margin-top: 60px;
}
footer.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
}
footer.site-footer h4 {
    color: white;
    margin: 0 0 12px;
    font-size: 15px;
}
footer.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer.site-footer ul li {
    padding: 4px 0;
}
footer.site-footer a {
    color: #9fb3d4;
}
footer.site-footer a:hover {
    color: white;
}
footer.site-footer .copy {
    width: 100%;
    text-align: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6e84a8;
    font-size: 12px;
}

/* ── Legal page (privacy / terms) ────────────────────── */
.legal-content {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin: 32px 0;
    line-height: 1.65;
}
.legal-content h1 { font-size: 32px; margin: 0 0 12px; }
.legal-content h2 { font-size: 24px; margin: 32px 0 12px; padding-top: 8px; border-top: 1px solid #e5ebf3; }
.legal-content h3 { font-size: 19px; margin: 24px 0 10px; }
.legal-content h4 { font-size: 16px; margin: 18px 0 8px; color: var(--ink-dim); }
.legal-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 8px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin: 12px 0;
    color: var(--ink-dim);
    font-style: italic;
}
.legal-content ul, .legal-content ol { padding-left: 24px; }
.legal-content code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 0.9em;
}
.legal-content hr {
    border: none;
    border-top: 1px solid #e5ebf3;
    margin: 32px 0;
}

/* ── Form delete-account ─────────────────────────────── */
.form-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    max-width: 520px;
    margin: 32px auto;
}
.form-card label {
    display: block;
    font-weight: 600;
    margin: 16px 0 6px;
    font-size: 14px;
}
.form-card input[type="email"], .form-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dde4ee;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
}
.form-card input[type="email"]:focus, .form-card textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 125, 210, 0.18);
}
.form-card textarea { min-height: 80px; resize: vertical; }
.form-card .submit-row { margin-top: 24px; text-align: right; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
    .hero { padding: 40px 0 24px; }
    .hero h1 { font-size: 32px; }
    .hero p.lead { font-size: 16px; }
    section.section { padding: 32px 0; }
    section.section h2 { font-size: 22px; }
    .legal-content { padding: 20px; }
    .legal-content h1 { font-size: 24px; }
    .legal-content h2 { font-size: 20px; }
    .legal-content h3 { font-size: 17px; }
    footer.site-footer { padding: 32px 0 20px; }
    header.site-header nav { gap: 12px; }
    header.site-header nav a { font-size: 13px; }
}
