/* QuickPoint — Variant E: c.html layout, QuickPoint app design tokens */

@font-face {
    font-family: 'Avantt';
    src: url('../fonts/Avantt-Regular.woff') format('woff');
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avantt';
    src: url('../fonts/Avantt-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'et-book';
    src: url('../fonts/et-book-roman-line-figures.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'et-book';
    src: url('../fonts/et-book-display-italic-old-style-figures.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'et-book';
    src: url('../fonts/et-book-bold-line-figures.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* Brand core */
    --purple: #6B4FDB;
    --yellow: #F4EC7A;
    --black: #000000;
    --white: #FFFFFF;

    /* Surfaces */
    --bg-page: #FFFFFF;
    --bg-nav: #F7F5FF;
    --border-nav: #E5E1F8;
    --bg-row-hover: #F0EDFC;
    --bg-paper: #FFFFF8;

    /* Ink */
    --ink-content: #111111;
    --ink-chrome: #333333;
    --ink-chrome-hover: #1A1A1A;
    --ink-muted: #4A4A4A;
    --grey-meta: #757575;

    /* Functional */
    --focus-ring: #4A90D9;
    --skip-link-bg: #004FAA;
    --selection: #BFDBFE;

    --radius-sm: 4px;
    --radius: 8px;
    --section-pad: 96px;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Avantt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--ink-chrome);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--selection);
    color: var(--ink-content);
}

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

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

/* Focus */
:focus-visible {
    outline: 3px solid var(--focus-ring);
    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-nav);
    border-bottom: 1px solid var(--border-nav);
}

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

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

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

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-chrome);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: var(--border-nav);
    color: var(--ink-chrome-hover);
}

.nav-cta {
    background: var(--purple) !important;
    color: #fff !important;
    font-weight: 500 !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: #5b41c4 !important;
    color: #fff !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-family: 'Avantt', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 6px 16px;
    border-radius: var(--radius);
    background: var(--bg-nav);
    border: 1px solid var(--border-nav);
    color: var(--purple);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Avantt', sans-serif;
    font-weight: 300;
    font-size: 3.4rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink-content);
    margin-bottom: 20px;
}

.hero-sub {
    font-family: 'et-book', Palatino, Georgia, serif;
    font-size: 1.2rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 60ch;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-family: 'Avantt', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 28px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    cursor: pointer;
}

.btn-primary {
    background: var(--purple);
    color: #fff;
}

.btn-primary:hover {
    background: #5b41c4;
}

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

.btn-secondary:hover {
    background: var(--bg-nav);
    border-color: var(--purple);
    color: var(--ink-chrome-hover);
}

.btn-large {
    padding: 0 36px;
    min-height: 52px;
    font-size: 0.95rem;
}

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

/* Mock window placeholder */
.hero-placeholder {
    width: 100%;
}

.mock-window {
    background: var(--bg-page);
    border: 1px solid var(--border-nav);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 5px #00000010;
}

.mock-dots {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-nav);
}

.mock-dots span {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-sm);
    background: var(--border-nav);
}

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

.mock-line {
    height: 10px;
    background: var(--border-nav);
    border-radius: var(--radius-sm);
}

.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: var(--bg-nav);
    border-top: 1px solid var(--border-nav);
    border-bottom: 1px solid var(--border-nav);
    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: 'Avantt', sans-serif;
    font-weight: 300;
    font-size: 3rem;
    letter-spacing: -0.01em;
    color: var(--purple);
}

.stat-label {
    display: block;
    font-family: 'Avantt', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-muted);
    margin-top: 4px;
}

/* ---- 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-family: 'Avantt', sans-serif;
    font-weight: 500;
    font-size: 2.1rem;
    letter-spacing: -0.01em;
    color: var(--ink-content);
    margin-bottom: 12px;
}

.section-header p {
    font-family: 'et-book', Palatino, Georgia, serif;
    font-size: 1.1rem;
    color: var(--ink-muted);
}

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

.card {
    background: var(--bg-page);
    border: 1px solid var(--border-nav);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
    border-color: var(--purple);
    box-shadow: 0 0 5px #00000010;
}

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

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

.card h3 {
    font-family: 'Avantt', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--ink-content);
    margin-bottom: 8px;
}

.card p {
    font-family: 'et-book', Palatino, Georgia, serif;
    font-size: 1rem;
    color: var(--ink-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: 'Avantt', sans-serif;
    font-weight: 300;
    font-size: 3rem;
    color: var(--purple);
    opacity: 0.3;
    margin-bottom: 16px;
}

.step h3 {
    font-family: 'Avantt', sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--ink-content);
    margin-bottom: 8px;
}

.step p {
    font-family: 'et-book', Palatino, Georgia, serif;
    font-size: 1rem;
    color: var(--ink-muted);
}

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

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

.testimonial blockquote p {
    font-family: 'et-book', Palatino, Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--ink-content);
    margin-bottom: 32px;
}

.testimonial blockquote footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
    font-family: 'Avantt', sans-serif;
    font-size: 0.9rem;
}

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

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

/* ---- Final CTA ---- */
.final-cta {
    background: var(--black);
    padding: var(--section-pad) 24px;
    text-align: center;
}

.final-cta h2 {
    font-family: 'Avantt', sans-serif;
    font-weight: 300;
    font-size: 2.4rem;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 16px;
}

.final-cta p {
    font-family: 'et-book', Palatino, Georgia, serif;
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 32px;
}

.final-cta .btn-primary {
    background: var(--yellow);
    color: var(--black);
}

.final-cta .btn-primary:hover {
    background: #e9df4d;
}

.final-cta .btn-primary[aria-disabled="true"] {
    opacity: 0.5;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-nav);
    border-top: 1px solid var(--border-nav);
    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-family: 'Avantt', sans-serif;
    font-size: 0.8rem;
    color: var(--grey-meta);
}

/* ---- 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;
    }
}
