/* QuickPoint — Variant D: SaaS layout + Tufte visual language */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg: #fffff8;
    --fg: #111;
    --muted: #666;
    --border: #ccc;
    --accent: #b50101;
    --accent-hover: #8a0101;
    --accent-light: #f9f0f0;
    --section-pad: 80px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #151515;
        --fg: #ddd;
        --muted: #999;
        --border: #333;
        --accent: #e05555;
        --accent-hover: #c94444;
        --accent-light: #1f1515;
    }
}

html {
    font-size: 15px;
}

body {
    font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 1000;
    padding: 0.5em 1em;
    background: var(--fg);
    color: var(--bg);
    font-size: 1rem;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

/* Focus */
:focus-visible {
    outline: 3px solid var(--fg);
    outline-offset: 3px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---- Navigation ---- */
.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    height: 28px;
    width: auto;
}

@media (prefers-color-scheme: dark) {
    .nav-logo,
    .footer-logo {
        filter: brightness(0) invert(0.87);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 1rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

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

.nav-cta {
    background: var(--fg) !important;
    color: var(--bg) !important;
    padding: 8px 20px;
    border: 1px solid var(--fg);
    transition: background 0.15s !important;
}

.nav-cta:hover {
    background: transparent !important;
    color: var(--fg) !important;
}

/* ---- Hero ---- */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-pad) 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.pill {
    display: inline-block;
    font-size: 1.2rem;
    font-variant: small-caps;
    letter-spacing: 0.05em;
    padding: 4px 0;
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.4rem;
    color: var(--muted);
    line-height: 2rem;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: et-book, Palatino, Georgia, serif;
    font-size: 1.3rem;
    padding: 0.7em 1.8em;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--fg);
    color: var(--bg);
    border: 1px solid var(--fg);
}

.btn-primary:hover {
    background: transparent;
    color: var(--fg);
}

.btn-secondary {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--fg);
}

.btn-large {
    padding: 0.8em 2.4em;
    font-size: 1.4rem;
}

.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* Mock window — hairline border, no shadow, no dots */
.hero-placeholder {
    width: 100%;
}

.mock-window {
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.mock-dots {
    display: none;
}

.mock-content {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-line {
    height: 8px;
    background: var(--border);
}

.mock-line.w80 { width: 80%; }
.mock-line.w60 { width: 60%; }
.mock-line.w90 { width: 90%; }
.mock-line.w40 { width: 40%; }
.mock-line.w70 { width: 70%; }

/* ---- Stats ---- */
.stats {
    background: color-mix(in srgb, var(--accent) 8%, var(--bg));
    border-top: 1px solid color-mix(in srgb, var(--accent) 20%, var(--bg));
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, var(--bg));
    padding: 64px 24px;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: et-book-roman-old-style, et-book, Palatino, Georgia, serif;
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--fg);
}

.stat-label {
    display: block;
    font-size: 1.3rem;
    color: var(--fg);
    opacity: 0.7;
    margin-top: 4px;
    line-height: 1.4;
}

/* ---- Features ---- */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-pad) 24px;
}

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

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.4rem;
    color: var(--muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 32px;
    transition: border-color 0.15s;
}

.card:hover {
    border-color: var(--fg);
}

.card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    color: var(--accent);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 8px;
}

.card p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ---- How it works ---- */
.how {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-pad) 24px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 48px;
}

.step {
    text-align: center;
}

.step-number {
    display: block;
    font-family: et-book-roman-old-style, et-book, Palatino, Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--border);
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 8px;
}

.step p {
    font-size: 1.1rem;
    color: var(--muted);
}

/* ---- Testimonial ---- */
.testimonial {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--section-pad) 24px;
}

.testimonial blockquote {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.testimonial blockquote p {
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 32px;
}

.testimonial blockquote footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
    font-size: 1.1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}

.testimonial blockquote footer span {
    color: var(--muted);
}

/* ---- Final CTA ---- */
.final-cta {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-pad) 24px;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 1.4rem;
    color: var(--muted);
    margin-bottom: 32px;
}

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    height: 20px;
    width: auto;
}

.footer-inner p {
    font-size: 1rem;
    color: var(--muted);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 64px 20px;
        gap: 48px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

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

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

    .nav-links {
        display: none;
    }

    .final-cta h2 {
        font-size: 1.8rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
