/* 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;          /* decorative fills + large-text (>=24px / 18.66px bold) only: white on it is 5.6:1 */
    --purple-fill: #5335C9;     /* fills carrying small white text — 7.7:1 (AAA) */
    --purple-fill-hover: #4A2FA3; /* 9.4:1 */
    --purple-text: #5335C9;     /* purple as small foreground text on white — 7.7:1 (AAA) */
    --yellow: #F4EC7A;
    --black: #000000;
    --white: #FFFFFF;

    /* Surfaces */
    --bg-page: #FFFFFF;
    --bg-nav: #F7F5FF; /* solid: translucent chrome makes contrast unverifiable */
    --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: #595959; /* 7.0:1 on white (AAA); #757575 was 4.6:1 */

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

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

/* Dark palette derived from the QuickPoint light-theme rules (lavender-cast
   near-black surfaces, a single purple accent). WCAG AAA within each theme:
   text >=7:1 (4.5:1 only for large text), boundaries >=3:1. --purple stays
   the brand value for decorative/large-text fills; --purple-fill/-text carry
   AAA-safe variants per theme. The yellow-on-black CTA is 17.1:1 and does
   not retheme. Focus ring #4A90D9 clears >=3:1 on both themes. Never set
   forced-color-adjust: none — let Windows High Contrast win. */
@media (prefers-color-scheme: dark) {
    :root {
        --purple-text: #AC9BF3; /* 7.9:1 on page, 7.2:1 on nav; #9B85F0 was 6.3:1 */
        --black: #000000;
        --white: #FFFFFF;

        --bg-page: #121016;
        --bg-nav: #1C1927; /* solid, see light-theme note */
        --border-nav: #332E45;
        --bg-row-hover: #241F33;
        --bg-paper: #17141D;

        --ink-content: #F5F3FA;
        --ink-chrome: #D9D6E3;
        --ink-chrome-hover: #FFFFFF;
        --ink-muted: #ACA7BC;
        --grey-meta: #A19BB3; /* 7.1:1 (AAA); #8D879C was 5.5:1 */

        --selection: #3B2F66;
    }

    .nav-logo,
    .footer-logo {
        filter: brightness(0) invert(0.9);
    }
}

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-fill) !important;
    color: #fff !important;
    font-weight: 500 !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: var(--purple-fill-hover) !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;
}

.hero-image {
    min-width: 0;
}

.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-text);
    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.3rem;
    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-fill);
    color: #fff;
}

.btn-primary:hover {
    background: var(--purple-fill-hover);
}

.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-text);
    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;
}

.hero-cover {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-nav);
    box-shadow: 0 0 5px #00000010;
}

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

.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.2rem;
    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-text);
    box-shadow: 0 0 5px #00000010;
}

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

.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: 1.125rem;
    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-text);
    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: 1.125rem;
    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.2rem;
    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;
}

/* ---- Accessibility teaser (homepage) ---- */
.a11y-more {
    text-align: center;
    margin-top: 40px;
}

/* ---- Accessibility page ---- */
.nav-home {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius);
}

.nav-links a[aria-current="page"] {
    background: var(--border-nav);
    color: var(--ink-chrome-hover);
}

.page-hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 24px 16px;
}

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

.page-hero p {
    font-family: 'et-book', Palatino, Georgia, serif;
    font-size: 1.3rem;
    color: var(--ink-muted);
    line-height: 1.6;
    max-width: 60ch;
}

.a11y-group {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 24px;
}

.a11y-group:last-of-type {
    padding-bottom: 96px;
}

.a11y-group h2 {
    font-family: 'Avantt', sans-serif;
    font-weight: 500;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    color: var(--ink-content);
    margin-bottom: 8px;
}

.a11y-group > p {
    font-family: 'et-book', Palatino, Georgia, serif;
    font-size: 1.2rem;
    color: var(--ink-muted);
    line-height: 1.6;
    max-width: 65ch;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    font-family: 'et-book', Palatino, Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ink-muted);
    margin-top: 16px;
}

.feature-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-nav);
}

.feature-list li:first-child {
    border-top: 1px solid var(--border-nav);
}

.feature-list strong {
    font-family: 'Avantt', sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--ink-content);
}

.badge {
    display: inline-block;
    font-family: 'Avantt', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-nav);
    border: 1px solid var(--border-nav);
    color: var(--purple-text);
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}

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

    .page-hero h1 {
        font-size: 2rem;
    }

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