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

/* The logo doubles as the mobile drawer trigger (js/nav.js):
   touch-action:manipulation removes iOS Safari's ~350ms double-tap-to-zoom
   wait so the first tap fires immediately. */
.nav-home {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

/* Sign Up: outlined pill — reads as a button beside the filled CTA
   without competing with it. */
.nav-signup {
    border: 1px solid var(--purple-fill);
    color: var(--purple-fill) !important;
}

.nav-signup:hover,
.nav-signup:focus-visible {
    background: var(--purple-fill) !important;
    color: #fff !important;
}

/* Links that only make sense inside the mobile drawer (e.g. Home,
   which the desktop logo already covers). */
.nav-links .drawer-only {
    display: none;
}

/* ---- Hero ---- */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    /* tighter than --section-pad so the CTA clears the fold */
    padding: 40px 24px 64px;
    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: 14px;
}

.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: 16px;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Quiet text alternative beside the primary CTAs — for visitors who've
   already decided and just want an account, no demo tour. */
.cta-quiet {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    font-size: 0.95rem;
    color: var(--ink-chrome);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cta-quiet:hover,
.cta-quiet:focus-visible {
    color: var(--ink-chrome-hover);
}

/* 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(--purple-text);
    border: 1.5px solid var(--purple-text);
}

.btn-secondary:hover {
    background: var(--bg-nav);
    border-color: var(--purple-fill-hover);
    color: var(--purple-fill-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 .cta-source {
    /* footnote of the section, not a caption of the button: left-aligned
       behind a hairline, pushed to the band's bottom edge */
    margin: 72px auto 0;
    margin-bottom: 0;
    max-width: 560px;
    padding-top: 14px;
    border-top: 1px solid #3A3A3A;
    text-align: left;
    font-family: 'Avantt', sans-serif;
    font-size: 0.75rem;
    color: #999999; /* 7.4:1 on black — dimmest we go while keeping AAA */
}

.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 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    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: 28px 20px 48px;
        gap: 40px;
    }

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

    .hero-actions {
        flex-direction: column;
        /* base align-items:center (for the inline cta-quiet on desktop)
           would shrink-wrap the stacked buttons — stretch them instead */
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-actions .cta-quiet {
        justify-content: center;
    }

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

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

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

    /* On mobile the logo (same element, role swapped by js/nav.js)
       triggers the drawer; nav-links become a slide-out panel under
       the (sticky, z-index 100) top bar. */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 99;
        width: min(280px, 80vw);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 76px 16px 16px;
        background: var(--bg-nav);
        border-right: 1px solid var(--border-nav);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s;
    }

    .topnav.nav-open .nav-links {
        transform: none;
        visibility: visible;
    }

    /* Full-width tap targets in the drawer (iOS won't stretch the
       inline-flex anchors on its own) */
    .nav-links a {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
    }

    .nav-links .nav-cta {
        justify-content: center;
        margin-top: 8px;
    }

    .nav-links .drawer-only {
        display: inline-flex;
    }

    @media (prefers-reduced-motion: reduce) {
        .nav-links {
            transition: none;
        }
    }

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

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

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

/* ---- Output-accessibility comparison table (accessibility.html) ----
   Cell states pair color with a symbol + sr-only text — never color alone
   (WCAG 1.4.1). All text/ink pairings AAA (>=7:1). */
.compare-wrap {
    overflow-x: auto;
    margin: 24px 0 8px;
    border: 1px solid var(--border-nav);
    border-radius: var(--radius-sm, 6px);
}
.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--bg-page);
}
.compare caption {
    text-align: left;
    font-family: 'Avantt', sans-serif;
    font-weight: 500;
    padding: 14px 16px 10px;
    color: var(--ink-content);
}
.compare th,
.compare td {
    padding: 10px 14px;
    border-top: 1px solid var(--border-nav);
    text-align: center;
    vertical-align: middle;
}
.compare thead th {
    background: var(--bg-nav);
    font-family: 'Avantt', sans-serif;
    font-weight: 500;
    color: var(--ink-chrome);
    border-top: none;
}
.compare tbody th[scope="row"] {
    text-align: left;
    font-weight: 400;
    color: var(--ink-content);
    max-width: 34ch;
}
.compare thead th:first-child { text-align: left; }
.compare .col-qp {
    background: #F1EDFC;
    font-weight: 500;
    color: var(--ink-content);
}
.cell-yes  { background: #E4F0E2; color: #1E4A14; font-weight: 700; }
.cell-part { background: #FBF3D8; color: #5B4708; }
.cell-no   { background: #F9E9E7; color: #7A241E; }
.cell-und  { color: var(--ink-muted); }
@media (prefers-color-scheme: dark) {
    .compare { background: var(--bg-paper, #17141D); }
    .compare .col-qp { background: #2A2340; }
    .cell-yes  { background: #1E3319; color: #C4E7BB; }
    .cell-part { background: #362E10; color: #EBD891; }
    .cell-no   { background: #3B1E1B; color: #F3BDB6; }
}
.compare-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 10px 0 4px;
    font-size: 0.85rem;
    color: var(--ink-muted);
}
.compare-legend b { font-weight: 700; color: var(--ink-content); }
.compare-notes {
    font-size: 0.85rem;
    color: var(--ink-muted);
    max-width: 72ch;
}
.compare-notes a { color: var(--teal-text, #1D5E75); }
kbd {
    font-family: 'Avantt', sans-serif;
    font-size: 0.85em;
    padding: 1px 7px;
    border: 1px solid var(--border-nav);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--bg-nav);
    color: var(--ink-chrome);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    font-family: 'Avantt', sans-serif;
    font-size: 0.9rem;
    color: var(--grey-meta);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--ink);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ---- Expandable technical specs (accessibility page) ---- */
details.spec {
    border: 1px solid var(--border-nav);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--bg-nav);
}

details.spec summary {
    font-family: 'Avantt', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--purple-text);
    padding: 16px 20px;
    cursor: pointer;
    list-style-position: inside;
}

details.spec summary:hover {
    color: var(--purple-fill-hover);
}

details.spec summary:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: var(--radius);
}

details.spec[open] summary {
    border-bottom: 1px solid var(--border-nav);
}

details.spec > ul,
details.spec > p {
    padding: 4px 20px 8px;
    margin-top: 12px;
}

/* ---- Accessibility page: visual rhythm ---- */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    justify-content: center;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

/* Passive status labels — deliberately NOT pills/buttons: squared, no
   border, muted ink (not the purple action colour), with a check to read
   as "standards we meet" rather than "things to click". */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Avantt', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-muted);
    background: transparent;
    padding: 2px 0;
}
.chip::before {
    content: "\2713"; /* ✓ */
    color: var(--purple-text);
    font-size: 0.85em;
    font-weight: 700;
}

.features-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .features-grid.grid-3 {
        grid-template-columns: 1fr;
    }
}

.a11y-tint {
    background: var(--bg-nav);
    border: 1px solid var(--border-nav);
    border-radius: var(--radius);
    max-width: 908px;
    padding: 32px 48px 40px;
}

@media (max-width: 640px) {
    .a11y-tint { padding: 24px 20px 28px; }
}

.a11y-tint details.spec {
    background: var(--bg-page);
}

.kbd-row {
    margin-top: 24px;
    text-align: center;
    color: var(--ink-muted);
}

.kbd-row kbd {
    font-size: 0.95em;
    padding: 4px 11px;
    background: var(--bg-page);
}

/* ---- Accessibility page: create/view/export as one light sequence ---- */
/* Replaces three back-to-back icon-card grids. The three stages are a real
   sequence (a deck's life), so they read as numbered steps, not cards. */
.a11y-stages { max-width: 908px; margin: 0 auto; padding: 8px 24px 0; }
.stages {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
    counter-reset: stage;
}
@media (max-width: 760px) { .stages { grid-template-columns: 1fr; gap: 28px; } }
.stage { padding-top: 16px; border-top: 2px solid var(--purple-text); }
.stage-label {
    display: flex; align-items: baseline; gap: 10px;
    font-family: 'Avantt', sans-serif; font-weight: 600; font-size: 1.2rem;
    color: var(--ink-chrome); margin-bottom: 8px;
}
.stage-label::before {
    counter-increment: stage; content: counter(stage);
    font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.85rem;
    font-weight: 600; color: var(--purple-text);
}
.stage-lead { margin: 0; color: var(--ink-muted); font-size: 0.98rem; line-height: 1.6; }
.stage-lead strong { color: var(--ink-chrome); font-weight: 600; }
.a11y-stages-note {
    max-width: 908px; margin: 20px auto 0; padding: 0 24px;
    font-size: 0.85rem; color: var(--grey-meta);
}

/* ---- Comparison table: keep the "checked" date visible, tuck sourcing
   into a light disclosure so it doesn't wall off the scan path ---- */
.compare-meta {
    font-size: 0.85rem;
    color: var(--grey-meta);
    margin: 16px 0 4px;
}
.compare-sources { margin: 0 0 8px; }
.compare-sources summary {
    font-family: 'Avantt', sans-serif;
    font-size: 0.85rem;
    color: var(--purple-text);
    cursor: pointer;
    width: fit-content;
}
.compare-sources summary:hover { color: var(--purple-fill-hover); }
.compare-sources summary:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 3px;
}
.compare-sources p {
    font-size: 0.85rem;
    color: var(--grey-meta);
    line-height: 1.55;
    margin: 8px 0 0;
    max-width: 60ch;
}

/* Accessibility page hero CTA (added when the funnel showed 195 ad
   landings -> ~0 product click-throughs: the page had no above-fold CTA) */
.page-hero .hero-actions {
    margin-top: 24px;
}

.hero-resource {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

