:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --red: #ef4444;
    --yellow: #f59e0b;
    --green: #10b981;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

a {
    color: inherit;
}

/* ---------- Header ---------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo span {
    color: var(--muted);
    font-weight: 500;
}

.header-link {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.header-link:hover {
    color: var(--text);
}

/* ---------- Landing ---------- */

.landing main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: 40px 24px 64px;
    text-align: center;
}

.hero {
    width: 100%;
    max-width: 800px;
}

.hero h1 {
    max-width: 680px;
    margin: 0 auto 24px;
    color: #0f172a;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.subtitle {
    max-width: 600px;
    margin: 0 auto 28px;
    color: #475569;
    font-size: 18px;
    line-height: 1.65;
}

.pricing-badge {
    display: inline-block;
    max-width: 720px;
    margin-bottom: 24px;
    padding: 10px 18px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.5;
}

.audit-card {
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.audit-form {
    display: flex;
    gap: 12px;
}

.audit-form input {
    flex: 1;
    min-width: 0;
    padding: 16px;
    border: none;
    border-radius: 10px;
    outline: none;
    background: #f1f5f9;
    color: #0f172a;
    font-family: inherit;
    font-size: 16px;
    transition: box-shadow 0.15s ease, background 0.15s ease;
}

.audit-form input::placeholder {
    color: #94a3b8;
}

.audit-form input:focus {
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.btn-primary {
    padding: 16px 24px;
    border: none;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

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

.form-hint {
    margin: 18px 0 0;
    color: #64748b;
    font-size: 14px;
}

.form-hint a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.form-hint a:hover {
    color: #1d4ed8;
}

.footer-links {
    margin-top: 40px;
    font-size: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #475569;
}

/* ---------- Report ---------- */

.report-page main {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 20px 72px;
}

.report-title {
    margin: 8px 0 4px;
    font-size: 32px;
    letter-spacing: -0.03em;
}

.report-url {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 13px;
    word-break: break-all;
}

.summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.summary-emoji {
    font-size: 36px;
    line-height: 1;
}

.summary-main {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.summary-count {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0 2px;
}

.summary-meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.issue {
    margin-bottom: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.issue.red {
    border-left-color: var(--red);
}

.issue.yellow {
    border-left-color: var(--yellow);
}

.issue.green {
    border-left-color: var(--green);
}

.issue-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.field {
    margin: 0 0 14px;
    font-size: 14px;
}

.field:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.evidence {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    white-space: pre-wrap;
}

.why {
    color: #374151;
}

.fix {
    color: #0f766e;
    font-weight: 500;
}

.fix .icon {
    margin-right: 6px;
}

.ai-rewrite {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    background: #ecfdf5;
}

.ai-rewrite-title {
    margin-bottom: 6px;
    color: #047857;
    font-size: 14px;
    font-weight: 700;
}

.ai-rewrite p {
    margin: 0;
    color: #065f46;
    font-size: 14px;
    white-space: pre-wrap;
}

.empty {
    color: var(--muted);
    font-size: 15px;
}

/* ---------- Paywall ---------- */

.paywall {
    padding: 36px 32px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.paywall-emoji {
    font-size: 34px;
    line-height: 1;
}

.paywall h2 {
    margin: 12px 0 8px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.paywall p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
}

#paypal-button-container {
    max-width: 320px;
    margin: 0 auto;
}

.paywall .hint {
    min-height: 18px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* ---------- Content pages ---------- */

.doc-page main {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 20px 72px;
}

.doc-title {
    margin: 8px 0 8px;
    font-size: 32px;
    letter-spacing: -0.03em;
}

.doc-lede {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
}

.banner {
    margin-bottom: 20px;
    padding: 12px 18px;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
}

.card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.doc-body {
    padding: 32px;
}

.section + .section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.section h2,
.passed h2 {
    margin: 0 0 10px;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.section p,
.section li {
    color: #374151;
    font-size: 15px;
}

.section p {
    margin: 0 0 12px;
}

.section p:last-child {
    margin-bottom: 0;
}

.section ul {
    margin: 0;
    padding-left: 20px;
}

.section li {
    margin: 8px 0;
}

.passed {
    margin-top: 16px;
}

.passed ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.passed li {
    margin: 8px 0;
    color: #374151;
    font-size: 15px;
}

.passed li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--green);
    font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 620px) {
    .hero h1 {
        font-size: 32px;
    }

    .doc-title,
    .report-title {
        font-size: 26px;
    }

    .doc-body {
        padding: 22px;
    }

    .subtitle {
        font-size: 16px;
    }

    .pricing-badge {
        text-align: center;
    }

    .audit-form {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }

    .summary {
        padding: 20px;
    }

    .issue {
        padding: 20px;
    }
}
