/* ================================================================== */
/* DESIGN SYSTEM — AI Reliability Infrastructure                      */
/* Inter font, calm authority, restrained confidence.                  */
/* ================================================================== */

/* ------------------------------------------------------------------ */
/* Custom properties                                                   */
/* ------------------------------------------------------------------ */

:root {
    /* Core palette */
    --color-navy-900: #0f1729;
    --color-navy-800: #1a2744;
    --color-navy-700: #1e3a5f;
    --color-navy-600: #2d5a8e;
    --color-navy-100: #e8edf4;
    --color-navy-50:  #f0f4f9;

    /* Neutrals */
    --color-text:      #1a202c;
    --color-text-secondary: #4a5568;
    --color-text-muted: #718096;
    --color-border:    #e2e8f0;
    --color-border-dark: #cbd5e0;
    --color-bg:        #ffffff;
    --color-bg-subtle: #f5f7fa;
    --color-bg-muted:  #eef1f6;

    /* Semantic */
    --color-green:     #1a7a2e;
    --color-green-bg:  #e8f5eb;
    --color-red:       #c00000;
    --color-red-bg:    #fde8e8;
    --color-red-dark:  #8b1a1a;
    --color-red-dark-bg: #fdf0f0;
    --color-amber:     #b8860b;
    --color-amber-bg:  #fff8e1;

    /* Typography scale */
    --font-heading: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-sans: 'Noto Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    --text-display:  clamp(2.75rem, 6vw, 3.75rem);
    --text-hero:     clamp(2.25rem, 5vw, 3rem);
    --text-section:  clamp(1.5rem, 3vw, 2rem);
    --text-sub:      clamp(1.15rem, 2vw, 1.35rem);
    --text-body:     1rem;
    --text-small:    0.875rem;
    --text-xs:       0.8125rem;

    /* Font weights — explicit hierarchy */
    --weight-bold:    700;
    --weight-semi:    600;
    --weight-medium:  500;
    --weight-regular: 400;

    /* Spacing — generous for infrastructure authority */
    --space-section: 9rem;
    --space-block:   4rem;
    --space-element: 1.5rem;

    /* Layout */
    --container-max: 1120px;
    --container-narrow: 800px;
    --prose-max: 680px;
    --header-height: 64px;

    /* Transitions */
    --transition: 0.15s ease;
}


/* ------------------------------------------------------------------ */
/* Reset & base                                                        */
/* ------------------------------------------------------------------ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ------------------------------------------------------------------ */
/* Typography                                                          */
/* ------------------------------------------------------------------ */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-hero);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--text-section);
    font-weight: var(--weight-bold);
    margin-bottom: 0.5rem;
}

h3 {
    font-size: var(--text-sub);
    margin-bottom: 0.35rem;
}

h4 {
    font-size: var(--text-body);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    max-width: var(--prose-max);
}

/* Opt out of prose width cap inside components that manage their own width */
.card p, .pricing-card p, .domain-card p, .report-preview p,
.legal-page p, .guidance-list dd, .claim-notes, .notice-text,
.purpose-text, table p { max-width: none; }

a {
    color: var(--color-navy-700);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-navy-600);
}

strong {
    font-weight: 600;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-small {
    font-size: var(--text-small);
}

/* Section label — small caps above section headings */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-navy-700);
    margin-bottom: 0.75rem;
    display: block;
}


/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.container--narrow {
    max-width: var(--container-narrow);
}

main {
    flex: 1;
}

.page-section {
    padding: var(--space-section) 0;
}

.page-section--subtle {
    background: var(--color-bg-subtle);
}

.page-section--muted {
    background: var(--color-bg-muted);
}

.page-section--dark {
    background: var(--color-navy-900);
    color: #fff;
}

.page-section--dark h2,
.page-section--dark h3,
.page-section--dark h4 {
    color: #fff;
}

.page-section--dark p {
    color: rgba(255, 255, 255, 0.6);
}

.page-section--dark .section-label {
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}


/* ------------------------------------------------------------------ */
/* Grid utilities                                                      */
/* ------------------------------------------------------------------ */

.grid {
    display: grid;
    gap: 2rem;
}

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

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

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


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

.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.site-header .container {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 3rem;
}

.site-brand {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-brand:hover {
    color: var(--color-text);
    text-decoration: none;
}

.site-brand-mark {
    width: 8px;
    height: 8px;
    background: var(--color-navy-700);
    border-radius: 2px;
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.site-nav a {
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition);
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--color-text);
    text-decoration: none;
}

.site-nav .nav-cta {
    font-weight: 600;
    color: #fff;
    background: #22C55E;
    padding: 0.4rem 1.25rem;
    border: 1.5px solid #22C55E;
    border-radius: 4px;
    transition: all var(--transition);
}

.site-nav .nav-cta:hover {
    background: #16A34A;
    border-color: #16A34A;
    color: #fff;
}

.site-nav .nav-signin {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.site-nav .nav-signin:hover {
    color: var(--color-navy-700);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    margin: 4px 0;
    transition: var(--transition);
}


/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
    background: var(--color-navy-900);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    font-size: var(--text-small);
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    display: block;
}

.footer-desc {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-built-for {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.5;
    margin-bottom: 0;
}

.footer-col h4 {
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.footer-col a {
    display: block;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    padding: 0.2rem 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-version {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.02em;
}


/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    font-family: var(--font-sans);
    font-size: var(--text-small);
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary — dark navy fill */
.btn--primary {
    background: var(--color-navy-900);
    color: #fff;
    border-color: var(--color-navy-900);
}

.btn--primary:hover {
    background: var(--color-navy-800);
    border-color: var(--color-navy-800);
    color: #fff;
}

/* Secondary — outline */
.btn--secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border-dark);
}

.btn--secondary:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-text-secondary);
    color: var(--color-text);
}

/* Ghost — minimal */
.btn--ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border-color: transparent;
    padding: 0.5rem 1rem;
}

.btn--ghost:hover {
    color: var(--color-text);
    background: var(--color-bg-subtle);
}

/* White — for dark backgrounds */
.btn--white {
    background: #fff;
    color: var(--color-navy-900);
    border-color: #fff;
}

.btn--white:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-navy-900);
}

/* White outline — for dark backgrounds */
.btn--white-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--white-outline:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Green CTA */
.btn--green {
    background: var(--color-green);
    color: #fff;
    border-color: var(--color-green);
}

.btn--green:hover {
    background: #156623;
    border-color: #156623;
    color: #fff;
}

/* Conversion CTA — high-contrast green for primary signup/pilot actions */
.btn--cta {
    background: #22C55E;
    color: #fff;
    border-color: #22C55E;
    font-weight: 600;
}

.btn--cta:hover {
    background: #16A34A;
    border-color: #16A34A;
    color: #fff;
}

/* Focus styles — keyboard accessibility */
.btn:focus-visible,
.btn--primary:focus-visible,
.btn--secondary:focus-visible,
.btn--ghost:focus-visible,
.btn--white:focus-visible,
.btn--white-outline:focus-visible,
.btn--green:focus-visible,
.btn--cta:focus-visible {
    outline: 2px solid var(--color-navy-700);
    outline-offset: 2px;
}

.btn--white:focus-visible,
.btn--white-outline:focus-visible {
    outline-color: #fff;
}

/* Size variants */
.btn--lg {
    padding: 0.85rem 2.25rem;
    font-size: var(--text-body);
}

.btn--sm {
    padding: 0.45rem 1rem;
    font-size: var(--text-xs);
}

.btn--full {
    width: 100%;
}

/* Button row */
.btn-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}


/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

/* Hero — full viewport stage, one big idea */
.hero {
    background: var(--color-navy-900);
    color: #fff;
    min-height: calc(85vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.hero h1 {
    color: #fff;
    font-size: var(--text-display);
    font-weight: var(--weight-bold);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 720px;
}

.hero .hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: var(--weight-regular);
}

.hero .btn-row {
    margin-bottom: 0;
}

.hero-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: var(--weight-semi);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 3px;
    margin-bottom: 2rem;
}


/* ------------------------------------------------------------------ */
/* Cards                                                               */
/* ------------------------------------------------------------------ */

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 2rem;
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 41, 0.06);
}

.card--flat {
    border: none;
    background: var(--color-bg-subtle);
    border-radius: 6px;
}

.card__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.card__title {
    font-size: var(--text-sub);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.card__desc {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Numbered card for pipeline steps */
.card--numbered {
    position: relative;
    padding-top: 3rem;
}

.card__number {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}


/* ------------------------------------------------------------------ */
/* Section header pattern                                              */
/* ------------------------------------------------------------------ */

.section-header {
    max-width: var(--prose-max);
    margin-bottom: var(--space-block);
}

.section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: var(--weight-regular);
}

/* Prose container for long-form text blocks */
.prose {
    max-width: var(--prose-max);
}

.prose--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Placement diagram (system architecture view) */
.placement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: var(--space-block) auto;
    max-width: 640px;
}

.placement__node {
    flex: 1;
    text-align: center;
    padding: 1.5rem 1rem;
}

.placement__node-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
    display: block;
}

.placement__node-value {
    font-size: var(--text-sub);
    font-weight: var(--weight-semi);
    color: var(--color-text);
    display: block;
}

.placement__node--highlight {
    background: var(--color-navy-900);
    border-radius: 6px;
    padding: 1.75rem 1.5rem;
}

.placement__node--highlight .placement__node-label {
    color: rgba(255, 255, 255, 0.5);
}

.placement__node--highlight .placement__node-value {
    color: #fff;
}

.placement__arrow {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    padding: 0 0.25rem;
}

/* Reliability lanes — two large side-by-side panels */
.lanes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.lane {
    padding: 3rem 2.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 41, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lane:hover {
    box-shadow: 0 4px 20px rgba(15, 23, 41, 0.06);
}

.lane__label {
    font-size: 0.65rem;
    font-weight: var(--weight-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-navy-700);
    margin-bottom: 1rem;
    display: block;
}

.lane__title {
    font-size: var(--text-section);
    font-weight: var(--weight-semi);
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.lane__desc {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: none;
}

.lane__link {
    font-size: var(--text-small);
    font-weight: var(--weight-semi);
    color: var(--color-navy-700);
}

.lane__link:hover {
    text-decoration: underline;
}

/* "Does NOT do" list — constraint language */
.constraint-list {
    list-style: none;
    padding: 1.5rem 2rem;
    margin: 0;
    max-width: var(--prose-max);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 41, 0.04);
}

.constraint-list li {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    padding: 0.6rem 0 0.6rem 2rem;
    position: relative;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.55;
}

.constraint-list li:last-child {
    border-bottom: none;
}

.constraint-list li::before {
    content: "\2715";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
    font-weight: var(--weight-bold);
}


/* ------------------------------------------------------------------ */
/* Data trust signal                                                   */
/* ------------------------------------------------------------------ */

.data-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: var(--prose-max);
}

.data-trust__item {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.data-trust__item strong {
    display: block;
    color: var(--color-text-primary);
    font-weight: var(--weight-semibold);
    margin-bottom: 0.25rem;
}

@media (max-width: 600px) {
    .data-trust__grid {
        grid-template-columns: 1fr;
    }
}

/* Trust badges — compliance / security visual indicators */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #065f46;
    letter-spacing: 0.01em;
}


/* ------------------------------------------------------------------ */
/* Problem grid (3-column stat blocks)                                 */
/* ------------------------------------------------------------------ */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.problem-item {
    padding: 2rem 1.75rem;
    border-top: 2px solid var(--color-navy-700);
    background: var(--color-bg);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 1px 3px rgba(15, 23, 41, 0.04);
}

.problem-item__stat {
    font-size: 1.15rem;
    font-weight: var(--weight-bold);
    color: var(--color-text);
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.problem-item__text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: 0;
}

/* Hallucination stats */

.hallucination-stats__label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.hallucination-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 720px;
    margin: 0 auto;
}

.hallucination-stats__item {
    text-align: center;
}

.hallucination-stats__value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hallucination-stats__desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

.hallucination-stats__note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    opacity: 0.5;
    margin-top: 1.5rem;
    margin-bottom: 0;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .hallucination-stats__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hallucination-stats__value {
        font-size: 1.8rem;
    }
}


/* ------------------------------------------------------------------ */
/* Domain preview cards                                                */
/* ------------------------------------------------------------------ */

.domain-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.domain-card__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-navy-700);
    margin-bottom: 1rem;
}

.domain-card__title {
    font-size: var(--text-sub);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.domain-card__desc {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.domain-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.domain-card__features li {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    padding: 0.3rem 0 0.3rem 1.25rem;
    position: relative;
}

.domain-card__features li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}

.domain-card__link {
    margin-top: auto;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-navy-700);
}

.domain-card__link:hover {
    text-decoration: underline;
}


/* ------------------------------------------------------------------ */
/* Pipeline steps (How It Works)                                       */
/* ------------------------------------------------------------------ */

.pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: pipeline-step;
}

.pipeline-step {
    counter-increment: pipeline-step;
    padding: 2rem 1.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    position: relative;
}

.pipeline-step::before {
    content: "0" counter(pipeline-step);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    display: block;
}

.pipeline-step__title {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.pipeline-step__desc {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: 0;
}

.pipeline-step__detail {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-mono);
    line-height: 1.5;
    margin-bottom: 0;
}


/* ------------------------------------------------------------------ */
/* Report preview / example                                            */
/* ------------------------------------------------------------------ */

.report-preview {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.report-preview__header {
    padding: 1rem 1.5rem;
    background: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.report-preview__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.report-preview__dot--green { background: var(--color-green); }
.report-preview__dot--red { background: var(--color-red); }
.report-preview__dot--amber { background: var(--color-amber); }

.report-preview__title {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-text);
}

.report-preview__body {
    padding: 1.5rem;
}

.report-preview__claim {
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--color-border);
    margin-bottom: 1rem;
    background: var(--color-bg-subtle);
    border-radius: 0 4px 4px 0;
}

.report-preview__claim--supported {
    border-left-color: var(--color-green);
}

.report-preview__claim--partial {
    border-left-color: var(--color-amber);
}

.report-preview__claim--not-identified {
    border-left-color: var(--color-red-dark);
}

.report-preview__claim--contradicted {
    border-left-color: var(--color-red);
}

.report-preview__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.report-preview__badge--supported {
    color: var(--color-green);
    background: var(--color-green-bg);
}

.report-preview__badge--partial {
    color: var(--color-amber);
    background: var(--color-amber-bg);
}

.report-preview__badge--not-identified {
    color: var(--color-red-dark);
    background: var(--color-red-dark-bg);
}

.report-preview__badge--contradicted {
    color: var(--color-red);
    background: var(--color-red-bg);
}

.report-preview__text {
    font-size: var(--text-small);
    color: var(--color-text);
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.report-preview__quote {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 0;
}

.report-preview__annotation {
    font-size: var(--text-xs);
    color: var(--color-amber);
    font-weight: 500;
    margin-top: 0.35rem;
    margin-bottom: 0;
}


/* ------------------------------------------------------------------ */
/* Pricing                                                             */
/* ------------------------------------------------------------------ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.pricing-card--featured {
    border-color: var(--color-navy-700);
    border-width: 2px;
    box-shadow: 0 8px 24px rgba(15, 23, 41, 0.08);
    position: relative;
}

.pricing-card__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-navy-700);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.pricing-card__name {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.pricing-card__price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-card__price span {
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--color-text-muted);
}

.pricing-card__desc {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
}

.pricing-card__features li {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
}

.pricing-card__features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
}

/* Subtle note below pricing grid */
.pricing-note {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 0;
}


/* ------------------------------------------------------------------ */
/* Domain checkmark grid (pricing page)                                */
/* ------------------------------------------------------------------ */

.domain-checks {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.domain-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.domain-check__icon {
    font-size: 1.1rem;
    color: var(--color-green);
    font-weight: var(--weight-bold);
    flex-shrink: 0;
}

.domain-check__label {
    font-size: var(--text-body);
    font-weight: var(--weight-semi);
    color: var(--color-text);
}

.domain-check--future .domain-check__icon {
    color: var(--color-text-muted);
}

.domain-check--future .domain-check__label {
    color: var(--color-text-muted);
    font-style: italic;
    font-weight: var(--weight-regular);
}

.domain-checks__caption {
    text-align: center;
    font-size: var(--text-small);
    color: var(--color-text-muted);
    margin-bottom: 0;
}


/* ------------------------------------------------------------------ */
/* Comparison table (pricing page)                                     */
/* ------------------------------------------------------------------ */

.comparison-table-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-small);
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: var(--weight-medium);
    color: var(--color-text);
}

.comparison-table thead th {
    font-weight: var(--weight-semi);
    color: var(--color-text);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border-dark);
    font-size: var(--text-body);
}

.comparison-table tbody td {
    color: var(--color-text-secondary);
}

.comparison-table__highlight {
    background: var(--color-bg-subtle);
}

.comparison-table thead .comparison-table__highlight {
    color: var(--color-navy-700);
}


/* ------------------------------------------------------------------ */
/* Stat row (proof section)                                            */
/* ------------------------------------------------------------------ */

.stat-row {
    display: flex;
    gap: 3rem;
    padding: 2rem 2.5rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-item__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-item__label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}


/* ------------------------------------------------------------------ */
/* Proof type tags                                                     */
/* ------------------------------------------------------------------ */

.proof-type-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    white-space: nowrap;
}


/* ------------------------------------------------------------------ */
/* About — Design Principles list                                      */
/* ------------------------------------------------------------------ */

.about-principles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-principle {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.about-principle:first-child {
    border-top: 1px solid var(--color-border);
}

.about-principle__text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.01em;
}


/* ------------------------------------------------------------------ */
/* Comparison table (What We Don't Do)                                 */
/* ------------------------------------------------------------------ */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    font-size: var(--text-small);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--color-text);
    color: var(--color-text);
}

.comparison-table td {
    font-size: var(--text-small);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}


/* ------------------------------------------------------------------ */
/* CTA section                                                         */
/* ------------------------------------------------------------------ */

.cta-section {
    text-align: center;
    padding: var(--space-section) 0;
}

.cta-section h2 {
    margin-bottom: 0.75rem;
}

.cta-section p {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    max-width: 480px;
    margin: 0 auto 2rem;
}

.cta-section .btn-row {
    justify-content: center;
}


/* ================================================================== */
/* EXISTING PAGE STYLES — Upload, Report, Login, Processing            */
/* These are refreshed to use the new design tokens but preserve       */
/* functionality.                                                      */
/* ================================================================== */


/* ------------------------------------------------------------------ */
/* Upload form                                                         */
/* ------------------------------------------------------------------ */

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1.25rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}

label {
    display: block;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

label .hint {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

select,
textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: var(--text-small);
    border: 1px solid var(--color-border-dark);
    border-radius: 4px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    margin-bottom: 1.25rem;
    transition: border-color var(--transition);
}

select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--color-navy-700);
    box-shadow: 0 0 0 3px var(--color-navy-100);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* PA mode: paste area is the primary input */
textarea.pa-paste-primary {
    min-height: 200px;
    border: 2px solid var(--color-navy-700, #1e3a5f);
    background: #f8fafc;
    font-size: 0.95rem;
}

/* Service type selector — visually distinct from domain selector */
#service-type-wrap select {
    border: 2px solid var(--color-navy-600, #2d5a8e);
    background: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#service-type-wrap select:hover {
    border-color: var(--color-navy-700, #1e3a5f);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#service-type-wrap select:focus {
    border-color: var(--color-navy-700, #1e3a5f);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.15);
}

input[type="file"] {
    padding: 0.5rem;
    background: var(--color-bg-subtle);
    cursor: pointer;
}

.field-or {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: -0.75rem 0 1rem;
}

.privacy-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.privacy-note ul {
    list-style: none;
    padding: 0;
    margin-top: 0.4rem;
}

.privacy-note li {
    padding: 0.15rem 0 0.15rem 1rem;
    position: relative;
}

.privacy-note li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}


/* ------------------------------------------------------------------ */
/* Verify page — card, upload zones, domain selector                   */
/* ------------------------------------------------------------------ */

.verify-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}

/* Numbered step fields */
.verify-field {
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--color-border);
}

.verify-field:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.verify-field__label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.verify-field__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-navy-700);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.verify-field__hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 0.85rem;
    padding-left: calc(28px + 0.65rem);
}

/* Domain select — custom appearance */
.domain-select-wrap {
    position: relative;
}

.domain-select-wrap select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: var(--text-body);
    font-weight: 500;
    border: 2px solid var(--color-navy-100);
    border-radius: 8px;
    background: var(--color-navy-50);
    color: var(--color-navy-700);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-bottom: 0;
}

.domain-select-wrap select:focus {
    outline: none;
    border-color: var(--color-navy-700);
    box-shadow: 0 0 0 3px var(--color-navy-100);
}

.domain-select-wrap select:hover {
    border-color: var(--color-navy-600);
}

.domain-select-chevron {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--color-navy-600);
    pointer-events: none;
}

/* Upload drop zones */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border: 2px dashed var(--color-border-dark);
    border-radius: 10px;
    background: var(--color-bg-subtle);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition),
                box-shadow var(--transition);
    text-align: center;
    margin-bottom: 0;
}

.upload-zone:hover {
    border-color: var(--color-navy-600);
    background: var(--color-navy-50);
}

.upload-zone--dragover {
    border-color: var(--color-navy-700);
    background: var(--color-navy-100);
    box-shadow: 0 0 0 3px var(--color-navy-100);
}

.upload-zone--has-file {
    border-color: var(--color-green);
    border-style: solid;
    background: var(--color-green-bg);
}

.upload-zone__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.65;
}

.upload-zone__text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.upload-zone__text strong {
    color: var(--color-navy-700);
}

.upload-zone__formats {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.upload-zone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    padding: 0;
    margin: 0;
}

.upload-zone__filename {
    margin-top: 0.5rem;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-green);
    min-height: 1.25em;
}

.upload-zone__filename:empty {
    display: none;
}


/* ------------------------------------------------------------------ */
/* Error messages                                                      */
/* ------------------------------------------------------------------ */

.error-box {
    background: var(--color-red-bg);
    border: 1px solid #e8b4b4;
    color: #7f1d1d;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: var(--text-small);
    border-radius: 4px;
}


/* ------------------------------------------------------------------ */
/* TOS consent                                                         */
/* ------------------------------------------------------------------ */

.tos-consent {
    margin: 1.25rem 0;
}

.tos-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    cursor: pointer;
}

.tos-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-navy-700);
    cursor: pointer;
    flex-shrink: 0;
}

.tos-label a {
    color: var(--color-navy-700);
    font-weight: 600;
}


/* ------------------------------------------------------------------ */
/* Trial / subscription banners                                        */
/* ------------------------------------------------------------------ */

.trial-banner {
    background: var(--color-green-bg);
    border: 1px solid #b7dfc0;
    color: #1a5c2a;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: var(--text-small);
    font-weight: 600;
    border-radius: 4px;
}

.trial-used-banner {
    background: var(--color-amber-bg);
    border: 1px solid #e0d4a8;
    color: #5a4e00;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: var(--text-small);
    border-radius: 4px;
}

.trial-used-banner a {
    color: var(--color-navy-700);
    font-weight: 600;
}


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

.report-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-navy-700);
}

.report-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.report-header .tagline {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    font-style: italic;
}

.report-meta {
    margin-bottom: 2rem;
}

.report-meta table {
    width: 100%;
}

.report-meta td.label {
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: var(--text-small);
    padding: 0.25rem 1rem 0.25rem 0;
    width: 160px;
    vertical-align: top;
}

.report-meta td.value {
    font-size: var(--text-small);
    padding: 0.25rem 0;
}

/* Summary table */
.summary-section {
    margin-bottom: 2rem;
}

.summary-section h2 {
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.75rem;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.summary-table td {
    font-size: var(--text-small);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border-dark);
}

.summary-table tr:first-child td {
    background: var(--color-bg-subtle);
}

.num-supported { color: var(--color-green); font-weight: 600; }
.num-partial { color: var(--color-amber); font-weight: 600; }
.num-notid { color: var(--color-red-dark); font-weight: 600; }
.num-contradicted { color: var(--color-red); font-weight: 600; }
.num-rate { color: var(--color-navy-700); font-weight: 600; }
.num-gap { color: #b45309; font-weight: 600; }

/* Download buttons */
.download-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.download-bar .btn {
    font-size: var(--text-xs);
    padding: 0.6rem 1.5rem;
}

/* Claims / findings */
.findings-section h2 {
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--color-navy-700);
    margin-bottom: 1rem;
}

.claim-card {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.25rem;
}

.claim-header {
    background: var(--color-bg-muted);
    padding: 0.6rem 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.claim-num {
    color: var(--color-navy-700);
    font-weight: 700;
    font-size: 0.95rem;
}

.badge-supported,
.badge-not_identified,
.badge-contradicted,
.badge-partially_supported {
    display: inline-block;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.65rem;
    letter-spacing: 0.02em;
    border-radius: 2px;
}

.badge-supported {
    color: var(--color-green);
    background: var(--color-green-bg);
}

.badge-not_identified {
    color: var(--color-red-dark);
    background: var(--color-red-dark-bg);
}

.badge-contradicted {
    color: var(--color-red);
    background: var(--color-red-bg);
}

.badge-partially_supported {
    color: var(--color-amber);
    background: var(--color-amber-bg);
}

.claim-text {
    font-size: var(--text-small);
    margin: 0 0 0.5rem 0.75rem;
    line-height: 1.55;
}

.claim-text strong {
    font-weight: 600;
}

.prop-section-label {
    font-weight: 600;
    font-size: var(--text-small);
    margin: 0.75rem 0 0.4rem 0.75rem;
}

.prop-label-present {
    color: var(--color-green);
    font-weight: 600;
    font-size: var(--text-xs);
    margin-left: 1.25rem;
    margin-top: 0.4rem;
}

.prop-label-absent {
    color: var(--color-red-dark);
    font-weight: 600;
    font-size: var(--text-xs);
    margin-left: 1.25rem;
    margin-top: 0.4rem;
}

.prop-text {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    margin: 0.15rem 0 0.15rem 2rem;
    line-height: 1.5;
}

.prop-quote {
    color: var(--color-text-muted);
    font-style: italic;
    font-size: var(--text-xs);
    margin: 0.15rem 0 0.4rem 2.75rem;
    line-height: 1.5;
}

.containment-detail {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    font-weight: 500;
    margin: 0.6rem 0 0.3rem 0.75rem;
    line-height: 1.5;
}

.claim-notes {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    margin: 0.5rem 0 0 0.75rem;
    line-height: 1.5;
}

/* Process Integrity section */
.integrity-section {
    margin-bottom: 1.5rem;
}
.integrity-section h2 {
    font-size: 1.1rem;
    color: var(--color-navy-700);
    margin-bottom: 0.5rem;
}
.integrity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-small);
}
.integrity-table td {
    padding: 0.35rem 0.65rem;
    border-bottom: 1px solid var(--color-border);
}
.integrity-table td:first-child {
    font-weight: 600;
    color: var(--color-navy-700);
    width: 55%;
}
.integrity-complete { color: var(--color-green); font-weight: 700; }
.integrity-partial { color: var(--color-amber); font-weight: 700; }
.integrity-degraded { color: var(--color-red); font-weight: 700; }

/* Source hash display */
.source-hashes {
    margin-top: 0.75rem;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}
.hash-label {
    font-weight: 600;
    color: var(--color-navy-700);
}
.hash-list {
    list-style: none;
    padding-left: 0.5rem;
    margin: 0.25rem 0 0 0;
}
.hash-list li {
    margin-bottom: 0.15rem;
}
.source-hashes code {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.8em;
    background: var(--color-bg-muted);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

/* Verification fingerprint */
.fingerprint-section {
    margin-top: 0.75rem;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}
.fingerprint-code {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.8em;
    background: var(--color-bg-muted);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    word-break: break-all;
}
.fingerprint-details {
    margin-top: 0.25rem;
    font-size: 0.9em;
}
.fingerprint-details summary {
    cursor: pointer;
    color: var(--color-navy-700);
    font-weight: 600;
}

/* Chain timeline */
.chain-section {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--color-bg-muted);
    border-radius: 6px;
    font-size: var(--text-xs);
}
.chain-section h3 {
    margin: 0 0 0.5rem;
    font-size: var(--text-sm);
    color: var(--color-navy-700);
}
.chain-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.chain-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-left: 2px solid var(--color-border);
}
.chain-entry--current {
    border-left-color: var(--color-navy-700);
    background: rgba(30, 58, 95, 0.05);
    font-weight: 600;
}
.chain-seq {
    font-weight: 700;
    min-width: 1.5rem;
}
.chain-fp code {
    font-size: 0.85em;
}
.chain-badge {
    font-size: 0.75em;
    padding: 0.1rem 0.35rem;
    background: var(--color-amber-100, #fef3c7);
    color: var(--color-amber-800, #92400e);
    border-radius: 3px;
}
.chain-link {
    font-size: 0.85em;
    color: var(--color-navy-700);
    text-decoration: underline;
}

/* Diff styles */
.diff-section { margin-top: 1rem; }
.diff-change {
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
}
.diff-arrow {
    font-weight: 700;
    margin: 0 0.25rem;
}
.diff-improved { border-left: 3px solid var(--color-green, #1a7a2e); }
.diff-degraded { border-left: 3px solid var(--color-red, #c00000); }
.diff-lateral { border-left: 3px solid var(--color-border); }
.diff-added { background: rgba(26, 122, 46, 0.05); }
.diff-removed { background: rgba(192, 0, 0, 0.05); }
.diff-caveat {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Priority verdict (single merged decision section) */
.priority-verdict {
    border: 2px solid #fcd34d;
    background: #fffbeb;
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}
.priority-verdict--high {
    border-color: #dc2626;
    background: #fef2f2;
}
.priority-verdict--low {
    border-color: #16a34a;
    background: #f0fdf4;
}
.priority-verdict__heading {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem 0;
    color: #991b1b;
}
.priority-verdict--low .priority-verdict__heading {
    color: #166534;
}
.priority-verdict__clarifier {
    font-size: 0.88rem;
    font-style: italic;
    margin: 0 0 0.75rem 0;
    color: #374151;
}
.priority-verdict__indicators {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}
.priority-verdict__indicators li {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.2rem 0;
    color: #451a03;
}
.priority-verdict__synthesis {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1a202c;
    background: rgba(255,255,255,0.7);
    border-left: 4px solid #2563eb;
    padding: 0.65rem 0.85rem;
    margin: 0.75rem 0;
    border-radius: 0 4px 4px 0;
}
.priority-verdict__stats {
    font-size: 0.85rem;
    color: #4a5568;
    margin: 0.5rem 0 0.35rem 0;
}
.priority-verdict__meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0.5rem 0 0;
}
.priority-verdict__meta code {
    font-size: 0.75rem;
}

/* Audit trail (collapsed by default in triage reports) */
.audit-trail {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-top: 1.5rem;
    background: #fafbfc;
}
.audit-trail__toggle {
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
}
.audit-trail__toggle::-webkit-details-marker { display: none; }
.audit-trail__toggle::before {
    content: "\25B6";
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.15s;
    color: #6b7280;
}
.audit-trail[open] > .audit-trail__toggle::before {
    transform: rotate(90deg);
}
.audit-trail__toggle h2 {
    display: inline;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
}
.audit-trail__content {
    padding: 0 1rem 1rem;
}
.audit-trail__content h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    margin: 1rem 0 0.5rem;
}
.audit-trail__integrity {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0.5rem 0;
}
.audit-trail__grounding .summary-table {
    font-size: 0.82rem;
}
.audit-trail__key ul {
    list-style: none;
    padding: 0;
    font-size: 0.82rem;
    color: #4a5568;
}
.audit-trail__key li {
    padding: 0.15rem 0;
}
.report-meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.report-meta-table td {
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}
.report-meta-table .label {
    font-weight: 600;
    color: #6b7280;
    width: 35%;
}
.report-meta-table .value {
    color: #374151;
}

/* File-attachment framing line */
.file-attachment-line {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-secondary, #4a5568);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

/* Findings summary (quotable sentences for appeal letters) */
.findings-summary {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    background: #fafbfc;
}
.findings-summary__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--color-text, #1a202c);
}
.findings-summary__context {
    font-size: 0.88rem;
    color: var(--color-text-secondary, #4a5568);
    margin: 0 0 0.75rem 0;
}
.findings-summary__list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}
.findings-summary__item {
    font-size: 0.9rem;
    line-height: 1.65;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid #d1d5db;
    background: #fff;
    border-radius: 0 4px 4px 0;
    color: var(--color-text, #1a202c);
}
.findings-summary__item--external_criteria {
    border-left-color: #dc2626;
    background: #fef2f2;
}
.findings-summary__item--policy_divergence {
    border-left-color: #d97706;
    background: #fffbeb;
}
.findings-summary__item--contradicted {
    border-left-color: #991b1b;
    background: #fde8e8;
}
.findings-summary__synthesis {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1a202c;
    background: #f0f7ff;
    border-left: 4px solid #2563eb;
    padding: 0.65rem 0.85rem;
    margin: 0.75rem 0;
    border-radius: 0 4px 4px 0;
}
.findings-summary__stats {
    font-size: 0.85rem;
    color: var(--color-text-secondary, #4a5568);
    margin: 0 0 0.35rem 0;
}
.findings-summary__meta {
    font-size: 0.8rem;
    color: var(--color-text-muted, #718096);
    margin: 0;
}
.findings-summary__meta code {
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    background: #eef1f6;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

/* Collapsible summary section (grounding summary, Tier 3 audit detail) */
.summary-section--collapsible {
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    padding: 0;
}
.summary-section__toggle {
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary, #4a5568);
    list-style: none;
    user-select: none;
}
.summary-section__toggle::-webkit-details-marker {
    display: none;
}
.summary-section__toggle::before {
    content: '\25B6';
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.15s ease;
}
details[open] > .summary-section__toggle::before {
    transform: rotate(90deg);
}
.summary-section__toggle h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary, #4a5568);
    display: inline;
    margin: 0;
}
.summary-section--collapsible .summary-table {
    margin: 0 1rem 1rem 1rem;
}

/* Collapsible findings section (case details) */
.findings-section--collapsible {
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}
.findings-section__toggle {
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary, #4a5568);
    list-style: none;
    user-select: none;
}
.findings-section__toggle::-webkit-details-marker {
    display: none;
}
.findings-section__toggle::before {
    content: '\25B6';
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.15s ease;
}
details[open] > .findings-section__toggle::before {
    transform: rotate(90deg);
}
.findings-section__toggle h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary, #4a5568);
    margin: 0;
}
.findings-section--collapsible > :not(summary) {
    padding: 0 1rem 1rem;
}

/* Triage styles (prior auth domain) */
.triage-badge {
    display: inline-block;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-left: 0.5rem;
}
.triage-badge--appeal {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}
.triage-policy-quote {
    font-style: italic;
    color: var(--color-text-secondary);
    padding: 0.5rem 0.75rem;
    border-left: 3px solid var(--color-green, #1a7a2e);
    margin: 0.25rem 0 0.75rem 0;
    background: rgba(26, 122, 46, 0.03);
}
.claim-pattern-tag {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: var(--text-sm);
    color: #92400e;
}
/* Pattern headline (prominent finding label) */
.claim-pattern-headline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 0.01em;
}
.claim-pattern-headline__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #d97706;
}
/* Review context ("Why This Matters") */
.review-context {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    margin: 0.5rem 0 0.75rem;
}
.review-context__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.25rem;
}
.review-context__text {
    font-size: 0.8125rem;
    color: #334155;
    line-height: 1.5;
}
/* Appeal Basis Context */
.appeal-context {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    border-radius: 0 6px 6px 0;
    padding: 0.7rem 0.85rem;
    margin: 0.5rem 0 0.75rem;
}
.appeal-context__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #92400e;
    margin-bottom: 0.25rem;
}
.appeal-context__text {
    font-size: 0.8125rem;
    color: #451a03;
    line-height: 1.6;
}
.appeal-context--inline {
    padding: 0.5rem 0.65rem;
}
.appeal-context--inline .appeal-context__text {
    font-size: 0.75rem;
}
/* Evidence density (checkmarks) */
.evidence-density {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    margin: 0.5rem 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.75rem;
}
.evidence-density__item {
    font-size: 0.75rem;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.evidence-density__check {
    color: #16a34a;
    font-weight: 700;
}
.evidence-density--inline {
    display: inline-flex;
    padding: 0.15rem 0.4rem;
    margin-left: 0.3rem;
    gap: 0.3rem;
    font-size: 0.6875rem;
    vertical-align: middle;
}
/* Regulatory citation in verdict banner */
.priority-verdict__regulatory {
    font-size: 0.75rem;
    font-style: italic;
    color: #64748b;
    margin: 0.5rem 0 0;
    line-height: 1.4;
}
/* Finding type badge in claim header */
.triage-badge--finding-type {
    color: #1e3a5f;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    font-size: 0.6875rem;
    font-weight: 600;
}
.triage-gap-note {
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}
.triage-confirmed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.triage-confirmed-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-sm);
    line-height: 1.5;
}
.triage-confirmed-tag {
    font-weight: 600;
    color: var(--color-green, #1a7a2e);
    font-size: 0.85em;
}
.triage-qualified-tag {
    font-weight: 600;
    color: var(--color-amber, #b86f00);
    font-size: 0.85em;
    margin-left: 0.25rem;
}
.triage-case-intro {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}
.triage-section-intro {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}
.triage-summary-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}
.triage-summary-list li {
    font-size: var(--text-sm);
    padding: 0.2rem 0;
    color: var(--color-text-secondary);
}
.triage-case-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.triage-case-list li {
    padding: 0.3rem 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
}

/* Support breakdown (Clean/Qualified) */
.support-breakdown {
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* Annotation badges */
.badge-annotation {
    display: inline-block;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    margin-left: 0.35rem;
}
.badge-annotation-clean {
    color: var(--color-green);
    background: var(--color-green-bg);
}
.badge-annotation-qualified {
    color: var(--color-amber);
    background: var(--color-amber-bg);
}

/* Flag reason */
.flag-reason {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    margin: 0 0 0.5rem 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-bg-muted);
    border-left: 3px solid var(--color-amber);
    border-radius: 0 3px 3px 0;
    line-height: 1.5;
}

/* Nearest source context */
.nearest-source {
    margin: 0.2rem 0 0.4rem 1rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.5;
}

/* Exception / qualifier omission */
.exception-section {
    margin: 0.5rem 0 0.25rem 0.75rem;
}
.exception-label {
    color: var(--color-amber);
    font-weight: 600;
    font-size: var(--text-xs);
}
.exception-text {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    margin: 0.15rem 0 0.15rem 1.25rem;
    line-height: 1.5;
}
.exception-note {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    font-style: italic;
    margin: 0.35rem 0 0 0.75rem;
    line-height: 1.5;
}

/* Framing line */
.framing-line {
    font-size: var(--text-small);
    color: var(--color-navy-700);
    font-style: italic;
    line-height: 1.55;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--color-navy-700);
    background: var(--color-navy-50);
    border-radius: 0 4px 4px 0;
}

/* Grounded claim ratio bar */
.ratio-display {
    margin-top: 0.75rem;
}

.ratio-label {
    font-size: var(--text-small);
    color: var(--color-navy-700);
    margin-bottom: 0.4rem;
}

.ratio-bar {
    height: 10px;
    background: var(--color-border);
    width: 100%;
    margin-bottom: 0.3rem;
    border-radius: 5px;
    overflow: hidden;
}

.ratio-fill {
    height: 100%;
    background: var(--color-navy-700);
    min-width: 0;
    border-radius: 5px;
}

.ratio-caption {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.traceability-line {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Section divider */
.section-divider {
    text-align: center;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-navy-700);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 2.5rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--color-navy-700);
}

/* Claim text block */
.claim-text-block {
    margin: 0 0 0.5rem 0.75rem;
}

.claim-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-navy-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.claim-body {
    font-size: var(--text-small);
    color: var(--color-text);
    line-height: 1.6;
    padding: 0.5rem 0.75rem;
    background: var(--color-bg-subtle);
    border-left: 2px solid var(--color-border);
    border-radius: 0 4px 4px 0;
}

/* Grounding characterization */
.characterization-section {
    margin-bottom: 2rem;
}

.characterization-section h3 {
    font-size: var(--text-body);
    margin-bottom: 0.5rem;
}

.characterization-text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.55;
    white-space: pre-line;
}

/* Reader guidance */
.guidance-intro {
    font-size: var(--text-small);
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.guidance-section {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.guidance-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}

.guidance-list {
    margin: 0;
}

.guidance-list dt {
    font-weight: 700;
    font-size: var(--text-small);
    margin-top: 0.6rem;
}

.guidance-list dd {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0.15rem 0 0 1.25rem;
}

.guidance-supported { color: var(--color-green); }
.guidance-partial { color: var(--color-amber); }
.guidance-notid { color: var(--color-red-dark); }
.guidance-contradicted { color: var(--color-red); }

.guidance-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Why this matters */
.why-section {
    margin-bottom: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
    border-radius: 6px;
}

.why-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.why-text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: 0;
}

/* Purpose and notice */
.purpose-section,
.notice-section {
    margin-bottom: 2rem;
}

.purpose-section h2,
.notice-section h2 {
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}

.purpose-text,
.notice-text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    font-style: italic;
    line-height: 1.55;
}

/* Classification Key (compact legend) */
.classification-key {
    list-style: none;
    margin: 0;
    padding: 0;
}

.classification-key li {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.classification-key li span {
    font-weight: 700;
    font-size: var(--text-small);
}

/* Claim preview (italic subtitle below claim header) */
.claim-preview {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 0.15rem;
    margin-bottom: 0.75rem;
}

/* Subdued Important Notice */
.notice-section--subdued {
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.notice-heading--subdued {
    font-size: 0.85rem;
    color: #777777;
    font-weight: 600;
    margin-bottom: 0.3rem;
    border-bottom: none;
}

.notice-text--subdued {
    font-size: 0.8rem;
    color: #777777;
    font-style: italic;
    line-height: 1.55;
}


/* ------------------------------------------------------------------ */
/* Login page                                                          */
/* ------------------------------------------------------------------ */

.login-section {
    max-width: 400px;
    margin: 2rem auto;
}

.login-section h2 {
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--text-small);
    margin-bottom: 1.5rem;
}

.login-divider {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    margin: 1.5rem 0;
    position: relative;
}

.login-divider::before,
.login-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--color-border);
}

.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

.login-trial-btn {
    width: 100%;
    text-align: center;
    display: block;
}

.login-trial-hint {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}


/* ------------------------------------------------------------------ */
/* Welcome / Subscribe success page                                    */
/* ------------------------------------------------------------------ */

.welcome-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.welcome-section h2 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.credentials-box {
    background: var(--color-navy-50);
    border: 2px solid var(--color-navy-700);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.credential {
    margin-bottom: 1.25rem;
}

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

.credential label {
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-navy-700);
    margin-bottom: 0.25rem;
}

.credential-value {
    font-family: var(--font-mono);
    font-size: var(--text-body);
    background: var(--color-bg);
    border: 1px solid var(--color-border-dark);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    word-break: break-all;
    user-select: all;
}

.credential-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.credential-hint a {
    color: var(--color-navy-700);
}

.setup-instructions {
    margin-bottom: 2rem;
}

.setup-instructions h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.setup-option {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-bg-subtle);
    border-left: 3px solid var(--color-navy-700);
    border-radius: 0 4px 4px 0;
}

.setup-option h4 {
    font-size: 0.95rem;
    color: var(--color-navy-700);
    margin-bottom: 0.5rem;
}

.setup-option ol {
    padding-left: 1.25rem;
    margin: 0;
}

.setup-option li {
    margin-bottom: 0.3rem;
    font-size: var(--text-small);
}

.setup-option code {
    font-size: var(--text-xs);
    background: var(--color-border);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.code-block {
    background: var(--color-navy-900);
    color: #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin-top: 0.5rem;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}


/* ------------------------------------------------------------------ */
/* Dashboard                                                           */
/* ------------------------------------------------------------------ */

.dashboard {
    max-width: 780px;
    margin: 0 auto;
}

.dashboard__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.dashboard__title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.dashboard__subtitle {
    color: var(--color-text-secondary);
    font-size: var(--text-small);
    margin: 0;
}

.dashboard__card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.dashboard__card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.dashboard__card-desc {
    color: var(--color-text-secondary);
    font-size: var(--text-small);
    margin-bottom: 1rem;
}

/* Usage bar */
.dashboard__usage-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.dashboard__usage-fill {
    height: 100%;
    background: var(--color-navy-700);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.dashboard__usage-text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    margin: 0;
}

.dashboard__plan-badge {
    display: inline-block;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    padding: 0.1rem 0.5rem;
    font-size: var(--text-xs);
    margin-left: 0.5rem;
    text-transform: capitalize;
}

/* Credentials */
.dashboard__cred {
    margin-bottom: 1rem;
}

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

.dashboard__cred label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.dashboard__cred-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    word-break: break-all;
    user-select: all;
}

.dashboard__cred-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 0.25rem 0 0;
}

/* Setup grid */
.dashboard__setup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.dashboard__setup-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.dashboard__setup-item p,
.dashboard__setup-item ol {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.dashboard__setup-item ol {
    padding-left: 1.2rem;
}

.dashboard__setup-item li {
    margin-bottom: 0.2rem;
}

.dashboard__code {
    background: var(--color-navy-900);
    color: #e0e0e0;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0.5rem 0;
}

.dashboard__link {
    font-size: var(--text-small);
}

.dashboard__account-actions {
    display: flex;
    gap: 0.75rem;
}

/* Dashboard tools grid */
.dashboard__tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.dashboard__tool {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.25rem;
    background: var(--color-bg-subtle);
}

.dashboard__tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dashboard__tool-header h4 {
    margin: 0;
    font-size: 0.95rem;
}

.dashboard__tool-status {
    font-size: var(--text-xs);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    background: var(--color-border);
    color: var(--color-text-secondary);
}

.dashboard__tool-status--ready {
    background: #e6f4ea;
    color: #1a7f37;
}

.dashboard__tool > p {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.dashboard__setup-steps {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
}

.dashboard__setup-steps strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-text-primary);
}

.dashboard__setup-steps ol {
    padding-left: 1.2rem;
    margin: 0;
}

.dashboard__setup-steps li {
    margin-bottom: 0.2rem;
    line-height: 1.5;
}

.dashboard__setup-steps code {
    font-size: var(--text-xs);
    background: var(--color-border);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: var(--font-mono);
}

@media (max-width: 600px) {
    .dashboard__header {
        flex-direction: column;
        gap: 1rem;
    }
    .dashboard__setup-grid {
        grid-template-columns: 1fr;
    }
    .dashboard__tools-grid {
        grid-template-columns: 1fr;
    }
}


/* ------------------------------------------------------------------ */
/* Processing page                                                     */
/* ------------------------------------------------------------------ */

.processing-section {
    padding: 1rem 0;
}

.processing-section h2 {
    margin-bottom: 0.5rem;
}

.processing-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--text-small);
    margin-bottom: 1.5rem;
}

.log-container {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.log-line {
    padding: 0.1rem 0;
}

.processing-status {
    font-size: var(--text-small);
    color: var(--color-navy-700);
    font-weight: 600;
}

.processing-error {
    color: var(--color-red);
}

.processing-message {
    text-align: center;
    padding: 3rem 0;
    color: var(--color-text-secondary);
}

.processing-message h2 {
    color: var(--color-navy-700);
    margin-bottom: 0.75rem;
}

.processing-message p {
    font-size: 0.95rem;
}


/* ------------------------------------------------------------------ */
/* Sample report banner                                                */
/* ------------------------------------------------------------------ */

.sample-banner {
    background: var(--color-navy-50);
    border: 1px solid var(--color-border);
    color: var(--color-navy-700);
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: var(--text-small);
    font-style: italic;
    border-radius: 4px;
}

.sample-banner a {
    font-weight: 600;
    margin-left: 0.5rem;
}


/* ------------------------------------------------------------------ */
/* Demo report banner + CTA                                            */
/* ------------------------------------------------------------------ */

.demo-banner {
    background: linear-gradient(135deg, var(--color-navy-50) 0%, #e8edf4 100%);
    border: 1px solid var(--color-navy-600);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.demo-banner__content {
    font-size: var(--text-small);
    color: var(--color-navy-700);
    line-height: 1.6;
    flex: 1;
    min-width: 280px;
}

.demo-banner__content strong {
    display: block;
    font-size: var(--text-body);
    margin-bottom: 0.25rem;
    color: var(--color-navy-900);
}

.demo-banner__sep {
    display: none;
}

.demo-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.demo-share-btn {
    background: var(--color-bg);
    border: 1px solid var(--color-border-dark);
    color: var(--color-text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: var(--text-small);
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.demo-share-btn:hover {
    border-color: var(--color-navy-600);
    color: var(--color-navy-700);
}

.demo-cta {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    background: var(--color-bg-subtle);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.demo-cta h2 {
    font-size: var(--text-section);
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.demo-cta p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.demo-share-btn--bottom {
    display: block;
    margin: 1.5rem auto 0;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: var(--text-small);
    text-decoration: underline;
    cursor: pointer;
}

.demo-share-btn--bottom:hover {
    color: var(--color-navy-700);
}

@media (max-width: 640px) {
    .demo-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .demo-banner__actions {
        width: 100%;
        justify-content: flex-start;
    }
}


/* ------------------------------------------------------------------ */
/* Bottom actions                                                      */
/* ------------------------------------------------------------------ */

.bottom-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.bottom-actions .download-bar {
    margin-bottom: 1rem;
}


/* ------------------------------------------------------------------ */
/* Legal pages                                                         */
/* ------------------------------------------------------------------ */

.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.legal-page h1 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.legal-effective {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.05rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-page p {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page li {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.legal-page a {
    color: var(--color-navy-700);
    font-weight: 600;
}


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

.landing-disclaimer {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}


/* ================================================================== */
/* INTERACTIVE SYSTEM                                                  */
/* Scroll reveal, micro-interactions, interactive components           */
/* ================================================================== */


/* ------------------------------------------------------------------ */
/* Scroll Reveal — elements start hidden, animate on viewport entry   */
/* ------------------------------------------------------------------ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside a reveal-group */
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.25s; }

/* Slide-from-left variant */
.reveal--left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-in variant */
.reveal--scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

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

/* Skip-to-content link — visible on focus */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--color-navy-900);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
}

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

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal--left, .reveal--scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ------------------------------------------------------------------ */
/* Micro-interactions — button lifts, card glows, nav underline       */
/* ------------------------------------------------------------------ */

/* Button lift on hover */
.btn--primary:hover,
.btn--white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 41, 0.15);
}

.btn--secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 23, 41, 0.06);
}

.btn--white-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Card glow on hover */
.card:hover {
    box-shadow: 0 8px 30px rgba(15, 23, 41, 0.08);
    border-color: var(--color-border-dark);
}

.lane:hover {
    box-shadow: 0 8px 30px rgba(15, 23, 41, 0.08);
    border-color: var(--color-border-dark);
    transform: translateY(-2px);
}

/* Nav link underline slide */
.site-nav a {
    position: relative;
}

.site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-navy-700);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:not(.nav-cta):hover::after {
    width: 100%;
}

/* Pipeline step hover */
.pipeline-step {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pipeline-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 41, 0.08);
}

/* Pricing card lift */
.pricing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(15, 23, 41, 0.1);
}

/* Stat number count-up feel — subtle scale on reveal */
.stat-item__value {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible .stat-item__value {
    transform: scale(1);
}

/* Report preview claim hover — subtle highlight */
.report-preview__claim {
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.report-preview__claim:hover {
    transform: translateX(4px);
}


/* ------------------------------------------------------------------ */
/* Interactive Pipeline Diagram                                        */
/* ------------------------------------------------------------------ */

.pipeline-interactive {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin: var(--space-block) 0;
}

/* Connector line between steps */
.pipeline-interactive::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.pi-step {
    position: relative;
    z-index: 1;
    text-align: center;
    cursor: pointer;
    padding: 0 0.75rem;
}

/* Step number circle */
.pi-step__num {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: var(--text-small);
    font-weight: var(--weight-bold);
    color: var(--color-text-muted);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pi-step.is-active .pi-step__num,
.pi-step:hover .pi-step__num {
    background: var(--color-navy-900);
    border-color: var(--color-navy-900);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(15, 23, 41, 0.2);
}

.pi-step__title {
    font-size: var(--text-small);
    font-weight: var(--weight-semi);
    color: var(--color-text);
    margin-bottom: 0.35rem;
    transition: color 0.2s ease;
}

.pi-step.is-active .pi-step__title {
    color: var(--color-navy-700);
}

.pi-step__brief {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: 0;
    max-width: none;
}

/* Expanded detail panel — shows below active step */
.pi-detail {
    grid-column: 1 / -1;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                padding 0.3s ease;
    background: var(--color-bg-subtle);
    border-radius: 6px;
    padding: 0 2rem;
}

.pi-detail.is-open {
    max-height: 300px;
    opacity: 1;
    padding: 1.75rem 2rem;
    margin-top: 1.5rem;
}

.pi-detail__title {
    font-size: var(--text-body);
    font-weight: var(--weight-semi);
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.pi-detail__text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 0.75rem;
    max-width: none;
}

.pi-detail__tech {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    line-height: 1.5;
    max-width: none;
}

/* Pipeline on dark background — invert colors for dark anchor section */
.page-section--dark .pipeline-interactive::before {
    background: rgba(255, 255, 255, 0.12);
}

.page-section--dark .pi-step__num {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.page-section--dark .pi-step.is-active .pi-step__num,
.page-section--dark .pi-step:hover .pi-step__num {
    background: #fff;
    border-color: #fff;
    color: var(--color-navy-900);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.page-section--dark .pi-step__title {
    color: rgba(255, 255, 255, 0.85);
}

.page-section--dark .pi-step.is-active .pi-step__title {
    color: #fff;
}

.page-section--dark .pi-step__brief {
    color: rgba(255, 255, 255, 0.45);
}

.page-section--dark .pi-detail {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-section--dark .pi-detail__title {
    color: #fff;
}

.page-section--dark .pi-detail__text {
    color: rgba(255, 255, 255, 0.65);
}

.page-section--dark .pi-detail__tech {
    color: rgba(255, 255, 255, 0.4);
    border-top-color: rgba(255, 255, 255, 0.1);
}


/* ------------------------------------------------------------------ */
/* Interactive Report — expandable annotations, hover highlights      */
/* ------------------------------------------------------------------ */

/* Claim expander */
.report-interactive__claim {
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--color-border);
    margin-bottom: 0.75rem;
    background: var(--color-bg-subtle);
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.report-interactive__claim:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(15, 23, 41, 0.04);
}

.report-interactive__claim--supported {
    border-left-color: var(--color-green);
}

.report-interactive__claim--partial {
    border-left-color: var(--color-amber);
}

.report-interactive__claim--not-identified {
    border-left-color: var(--color-red-dark);
}

.report-interactive__claim--contradicted {
    border-left-color: var(--color-red);
}

/* Claim header row — badge + expand indicator */
.ri-claim__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ri-claim__expand {
    margin-left: auto;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.report-interactive__claim.is-expanded .ri-claim__expand {
    transform: rotate(180deg);
}

/* Claim text */
.ri-claim__text {
    font-size: var(--text-small);
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: none;
}

/* Expandable detail */
.ri-claim__detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                margin 0.3s ease;
    margin-top: 0;
}

.report-interactive__claim.is-expanded .ri-claim__detail {
    max-height: 400px;
    opacity: 1;
    margin-top: 1rem;
}

.ri-claim__quote {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border-radius: 4px;
    border: 1px solid var(--color-border);
    margin-bottom: 0.75rem;
    max-width: none;
}

.ri-claim__annotation {
    font-size: var(--text-xs);
    color: var(--color-amber);
    font-weight: var(--weight-medium);
    padding: 0.5rem 0.75rem;
    background: var(--color-amber-bg);
    border-radius: 4px;
    margin-bottom: 0;
    max-width: none;
}

.ri-claim__absent {
    font-size: var(--text-xs);
    color: var(--color-red-dark);
    font-weight: var(--weight-medium);
    padding: 0.5rem 0.75rem;
    background: var(--color-red-dark-bg);
    border-radius: 4px;
    margin-bottom: 0;
    max-width: none;
}

/* Report interactive header */
.report-interactive {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 23, 41, 0.08),
                0 1px 3px rgba(15, 23, 41, 0.04);
}

.report-interactive__header {
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-muted);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-interactive__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.report-interactive__dot--green { background: var(--color-green); }
.report-interactive__dot--amber { background: var(--color-amber); }
.report-interactive__dot--red { background: var(--color-red); }

.report-interactive__title {
    font-size: var(--text-small);
    font-weight: var(--weight-semi);
    color: var(--color-text);
    margin-left: 0.25rem;
}

.report-interactive__hint {
    margin-left: auto;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.report-interactive__body {
    padding: 1.5rem;
}


/* ================================================================== */
/* Responsive                                                          */
/* ================================================================== */

@media (max-width: 768px) {
    :root {
        --space-section: 5.5rem;
        --space-block: 2.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero {
        min-height: auto;
        padding: 4rem 0 5rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

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

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .domain-checks {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.6rem;
        font-size: var(--text-xs);
    }

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

    .lane {
        padding: 2rem 1.5rem;
    }

    .placement {
        flex-direction: column;
    }

    .placement__arrow {
        transform: rotate(90deg);
    }

    .pipeline-interactive {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pipeline-interactive::before {
        display: none;
    }

    .pi-detail {
        grid-column: 1 / -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .stat-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Mobile nav */
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 1rem 2rem 1.5rem;
        gap: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav .nav-cta {
        text-align: center;
    }

    /* Report adjustments */
    .download-bar {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .btn-row {
        flex-direction: column;
    }

    .btn-row .btn {
        width: 100%;
    }
}


/* ================================================================== */
/* Print styles                                                        */
/* ================================================================== */

@media print {
    .site-header, .site-footer, .download-bar, .bottom-actions, .sample-banner {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    main {
        padding: 0;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .hero {
        background: none;
        color: #000;
        padding: 0 0 1rem;
        margin-bottom: 1rem;
    }

    .hero h1 {
        color: #000;
    }

    h1, h2, h3 {
        color: #000;
    }

    .framing-line {
        background: none;
        border-left-color: #000;
        color: #000;
    }

    .guidance-section,
    .why-section {
        background: none;
        border-color: #999;
    }

    .claim-header {
        background: #f0f0f0;
    }

    .claim-body {
        background: none;
    }

    .ratio-bar {
        background: #ddd;
    }

    .ratio-fill {
        background: #000;
    }

    .section-divider::before,
    .section-divider::after {
        background: #000;
    }

    .section-divider {
        color: #000;
    }

    .claim-card {
        break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: none;
    }
}

/* ------------------------------------------------------------------ */
/* Reliance Gap Visualization                                          */
/* ------------------------------------------------------------------ */

.reliance-gap {
    max-width: 52rem;
    margin-inline: auto;
}

.reliance-gap__example {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(15, 23, 41, 0.06);
}

.reliance-gap__header {
    text-align: center;
    margin-bottom: 2rem;
}

.reliance-gap__header p {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
    margin: 0;
}

.reliance-gap__metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.reliance-gap__metric {
    flex: 1;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    max-width: 16rem;
}

.reliance-gap__metric--ground {
    background: var(--color-green-bg);
}

.reliance-gap__metric--rely {
    background: var(--color-amber-bg);
}

.reliance-gap__value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--weight-bold);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.reliance-gap__metric--ground .reliance-gap__value {
    color: var(--color-green);
}

.reliance-gap__metric--rely .reliance-gap__value {
    color: var(--color-amber);
}

.reliance-gap__label {
    font-size: var(--text-small);
    font-weight: var(--weight-semi);
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.reliance-gap__desc {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.reliance-gap__arrow {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.reliance-gap__detail {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.reliance-gap__detail p {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.reliance-gap__detail strong {
    color: var(--color-text);
    font-weight: var(--weight-semi);
}

/* Responsive — stack vertically on small screens */
@media (max-width: 640px) {
    .reliance-gap__example {
        padding: 1.5rem;
    }

    .reliance-gap__metrics {
        flex-direction: column;
        gap: 1rem;
    }

    .reliance-gap__metric {
        max-width: none;
    }

    .reliance-gap__arrow {
        transform: rotate(90deg);
    }
}

/* ---- Finding Type Labels ---- */
.finding-type-label {
    font-size: var(--text-xs, 0.75rem);
    color: var(--color-text-secondary, #6b7280);
    margin: 0.35rem 0 0.5rem 0.75rem;
    line-height: 1.5;
}

/* ---- Extracted Citations Section ---- */
.citations-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    background: var(--color-bg-subtle, #f8f9fa);
}
.citations-section h2 {
    font-size: 1.1rem;
    color: var(--color-navy-700, #1e3a5f);
    margin-bottom: 0.5rem;
}
.citations-disclaimer {
    font-size: var(--text-xs, 0.75rem);
    font-style: italic;
    color: var(--color-text-muted, #9ca3af);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.citations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.citation-item {
    font-size: var(--text-small, 0.875rem);
    color: var(--color-text-secondary, #6b7280);
    padding: 0.3rem 0;
    line-height: 1.5;
}
.citation-item::before {
    content: "\2022";
    margin-right: 0.5rem;
    color: var(--color-text-muted, #9ca3af);
}


/* ================================================================== */
/* Word Add-in Mockup                                                  */
/* ================================================================== */

.word-mockup {
    border: 1px solid var(--color-border-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-width: 960px;
    margin: 0 auto;
}

.word-mockup__chrome {
    background: #e8eaed;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #d0d2d6;
}

.word-mockup__dots {
    display: flex;
    gap: 6px;
}

.word-mockup__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c0c2c6;
}

.word-mockup__dots span:first-child { background: #ff5f57; }
.word-mockup__dots span:nth-child(2) { background: #ffbd2e; }
.word-mockup__dots span:nth-child(3) { background: #28c940; }

.word-mockup__title {
    font-size: 0.8rem;
    color: #555;
    flex: 1;
    text-align: center;
}

.word-mockup__ribbon {
    background: #f3f3f3;
    border-bottom: 1px solid #d0d2d6;
    padding: 0.35rem 1rem;
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: #444;
}

.word-mockup__body {
    display: flex;
    min-height: 380px;
    background: #f9f9f9;
}

.word-mockup__doc {
    flex: 1;
    padding: 2rem;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
}

.word-mockup__text {
    max-width: 420px;
}

.word-mockup__para {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.75rem;
}

.word-mockup__para--title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
}

.word-mockup__para--faded {
    color: #999;
}

.word-mockup__para--selected {
    background: #b4d7ff;
    border-radius: 2px;
    padding: 0 2px;
}

.word-mockup__para--flagged {
    background: #fde8e8;
    border-left: 3px solid var(--color-red);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
}

/* Sidebar mockup */
.word-mockup__sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    font-size: 0.78rem;
}

.word-mockup__sidebar--results {
    width: 300px;
}

.tp-mock-status {
    background: #f5f6f8;
    border-bottom: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: #444;
}

.tp-mock-status strong {
    color: #1e3a5f;
}

.tp-mock-status--active {
    background: #fff8e1;
    border-bottom-color: #e6c84a;
}

.tp-mock-status--active strong {
    color: #b8860b;
}

.tp-mock-status--done {
    background: #e8f5eb;
    border-bottom-color: #b2d8b8;
}

.tp-mock-status--done strong {
    color: #1a7a2e;
}

.tp-mock-header {
    background: #1e3a5f;
    color: #fff;
    padding: 10px 12px;
    font-family: Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.tp-mock-body {
    flex: 1;
    padding: 10px 12px;
    overflow: hidden;
}

.tp-mock-body--scroll {
    overflow-y: auto;
}

.tp-mock-section {
    margin-bottom: 12px;
}

.tp-mock-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    margin-bottom: 4px;
}

.tp-mock-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-mock-input {
    flex: 1;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.72rem;
    color: #777;
    font-family: var(--font-mono);
}

.tp-mock-badge-saved {
    font-size: 0.65rem;
    color: #1a7a2e;
    font-weight: 600;
    white-space: nowrap;
}

.tp-mock-hint {
    font-size: 0.65rem;
    color: #999;
    margin-top: 3px;
}

.tp-mock-select, .tp-mock-file {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.72rem;
    color: #333;
}

.tp-mock-filesize {
    color: #999;
    margin-left: 4px;
}

.tp-mock-btn-primary {
    display: block;
    width: 100%;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: default;
}

.tp-mock-footer {
    border-top: 1px solid #eee;
    padding: 6px 12px;
    font-size: 0.6rem;
    color: #aaa;
    font-style: italic;
}

/* Progress mockup */
.tp-mock-progress {
    margin-top: 8px;
}

.tp-mock-log {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px;
    margin-top: 6px;
}

.tp-mock-log-line {
    font-size: 0.7rem;
    color: #555;
    padding: 2px 0;
    font-family: var(--font-mono);
}

.tp-mock-log-line--active {
    color: #1e3a5f;
    font-weight: 600;
}

/* Results mockup */
.tp-mock-result-header {
    background: #f5f6f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.tp-mock-result-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.tp-mock-result-line {
    font-size: 0.68rem;
    color: #555;
    padding: 1px 0;
}

.tp-mock-result-line--warn {
    color: #c00;
}

.tp-mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.tp-mock-grid-cell {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 6px;
    text-align: center;
}

.tp-mock-grid-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.tp-mock-green { color: #1a7a2e; }
.tp-mock-red { color: #c00; }

.tp-mock-grid-label {
    font-size: 0.6rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Finding cards mockup */
.tp-mock-finding {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 6px;
    overflow: hidden;
}

.tp-mock-finding--collapsed .tp-mock-finding-detail {
    display: none;
}

.tp-mock-finding-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.tp-mock-finding-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
}

.tp-mock-finding-badge--supported {
    background: #e8f5eb;
    color: #1a7a2e;
}

.tp-mock-finding-badge--contradicted {
    background: #fde8e8;
    color: #c00;
}

.tp-mock-finding-num {
    font-size: 0.6rem;
    color: #999;
    margin-left: auto;
}

.tp-mock-finding-preview {
    font-size: 0.68rem;
    color: #555;
    padding: 6px 8px;
    line-height: 1.4;
}

.tp-mock-finding-detail {
    padding: 0 8px 8px;
}

.tp-mock-finding-quote {
    font-size: 0.65rem;
    color: #1a7a2e;
    background: #f0faf2;
    padding: 5px 7px;
    border-radius: 3px;
    line-height: 1.4;
}

.tp-mock-finding-conflict {
    font-size: 0.65rem;
    color: #c00;
    background: #fef0f0;
    padding: 5px 7px;
    border-radius: 3px;
    line-height: 1.4;
}

/* Install steps */
.install-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.install-step {
    text-align: center;
    padding: 1.5rem;
}

.install-step__num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-navy-700);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.install-step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.install-step p {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .word-mockup__body {
        flex-direction: column;
        min-height: auto;
    }
    .word-mockup__doc {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 1.5rem;
    }
    .word-mockup__sidebar,
    .word-mockup__sidebar--results {
        width: 100%;
    }
    .install-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* ================================================================== */
/* API DOCS                                                           */
/* ================================================================== */

.api-endpoint {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    margin-top: 2rem;
}
.api-endpoint h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.api-endpoint h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-navy-700);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.api-endpoint p {
    line-height: 1.85;
    color: var(--color-text-secondary);
}
.api-method {
    display: inline-block;
    font-family: var(--font-mono, 'SF Mono', 'Fira Code', 'Fira Mono', monospace);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    color: #fff;
    flex-shrink: 0;
}
.api-method--get { background: #0d7a3f; }
.api-method--post { background: #1d4ed8; }
.api-method--delete { background: #b91c1c; }

.api-code {
    background: var(--color-bg-muted, #f3f4f6);
    padding: 0.12rem 0.4rem;
    border-radius: 3px;
    font-size: 0.88em;
    font-family: var(--font-mono, 'SF Mono', 'Fira Code', 'Fira Mono', monospace);
}
.api-pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-family: var(--font-mono, 'SF Mono', 'Fira Code', 'Fira Mono', monospace);
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
    margin: 0.5rem 0;
}
.api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}
.api-table th {
    text-align: left;
    font-weight: 600;
    color: var(--color-navy-700);
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}
.api-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    line-height: 1.5;
}
.api-table td:first-child {
    white-space: nowrap;
}
.api-table code {
    background: var(--color-bg-muted, #f3f4f6);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.88em;
}

@media (max-width: 640px) {
    .api-table {
        font-size: 0.82rem;
    }
    .api-table th,
    .api-table td {
        padding: 0.4rem 0.5rem;
    }
    .api-pre {
        font-size: 0.78rem;
        padding: 0.75rem 1rem;
    }
    .api-endpoint h3 {
        font-size: 1rem;
    }
}

/* ---------------------------------------------------------------------------
   Batch verification
   --------------------------------------------------------------------------- */

.batch-progress {
    margin: 1.5rem 0;
}
.batch-progress__bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.batch-progress__fill {
    height: 100%;
    background: #2563eb;
    border-radius: 4px;
    transition: width 0.4s ease;
}
.batch-progress__text {
    margin-top: 0.4rem;
    font-size: 0.88rem;
    color: var(--color-text-muted, #666);
    text-align: center;
}

.batch-items {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.batch-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.88rem;
}
.batch-item__num {
    font-weight: 700;
    color: var(--color-text-muted, #999);
    min-width: 1.5rem;
}
.batch-item__status {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.batch-item__status--queued {
    background: #e5e7eb;
    color: #6b7280;
}
.batch-item__status--processing {
    background: #dbeafe;
    color: #1d4ed8;
}
.batch-item__status--complete {
    background: #d1fae5;
    color: #065f46;
}
.batch-item__status--error {
    background: #fee2e2;
    color: #991b1b;
}
.batch-item__link {
    margin-left: auto;
    font-size: 0.82rem;
    color: #2563eb;
    text-decoration: none;
}
.batch-item__link:hover {
    text-decoration: underline;
}
.batch-item__error {
    margin-left: auto;
    font-size: 0.78rem;
    color: #991b1b;
}

/* Batch summary cards */
.batch-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.batch-summary__card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}
.batch-summary__num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
}
.batch-summary__label {
    font-size: 0.82rem;
    color: var(--color-text-muted, #666);
    margin-top: 0.25rem;
}

/* Batch results table */
.batch-table-wrap {
    overflow-x: auto;
}
.batch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.batch-table th,
.batch-table td {
    padding: 0.5rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.batch-table th {
    font-weight: 600;
    color: var(--color-text-muted, #666);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.batch-table td {
    color: var(--color-text, #1a1a2e);
}

.batch-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.batch-badge--complete {
    background: #d1fae5;
    color: #065f46;
}
.batch-badge--error {
    background: #fee2e2;
    color: #991b1b;
}
.batch-badge--queued {
    background: #e5e7eb;
    color: #6b7280;
}
.batch-error-text {
    font-size: 0.78rem;
    color: #991b1b;
}

/* Batch mode toggle (single/multi buttons) */
.batch-mode-toggle {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}
.batch-mode-toggle__btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.batch-mode-toggle__btn:first-child {
    border-right: 1px solid #d1d5db;
}
.batch-mode-toggle__btn--active {
    background: #1e3a5f;
    color: #fff;
}
.batch-mode-toggle__btn:hover:not(.batch-mode-toggle__btn--active) {
    background: #e5e7eb;
}

/* Batch item snippet preview */
.batch-item__snippet {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    color: var(--color-text-secondary, #555);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: italic;
}

/* Snippet preview in batch results table */
.snippet-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    color: var(--color-text-secondary, #555);
    font-style: italic;
}

/* Demo report annotation callouts */
.demo-annotation {
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 6px;
}
.demo-annotation--muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    border-left-color: #94a3b8;
}
.demo-annotation__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}
.demo-annotation--muted .demo-annotation__label {
    color: #475569;
}
.demo-annotation__desc {
    font-size: 0.88rem;
    color: #1e3a5f;
    line-height: 1.65;
    margin: 0;
}
.demo-annotation--muted .demo-annotation__desc {
    color: #64748b;
}

/* ------------------------------------------------------------------ */
/* Policy Requirements Map (PRM)                                       */
/* ------------------------------------------------------------------ */

.prm-principle {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}
.prm-principle__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1d4ed8;
    margin-bottom: 0.5rem;
}
.prm-principle__text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #1e3a5f;
    margin: 0 0 0.5rem;
    font-weight: 500;
}
.prm-principle__ref {
    font-size: 0.78rem;
    color: #6b7280;
}

/* Quick nav */
.prm-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}
.prm-nav__link {
    font-size: 0.82rem;
    color: var(--color-navy-600);
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    transition: background 0.15s, border-color 0.15s;
}
.prm-nav__link:hover {
    background: var(--color-navy-100);
    border-color: var(--color-navy-600);
}

/* Category */
.prm-category {
    margin-top: 2.5rem;
}
.prm-category__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.35rem;
}
.prm-category__desc {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

/* Requirements list */
.prm-requirements {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Single requirement card */
.prm-req {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-green);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}
.prm-req--conditional {
    border-left-color: var(--color-amber);
}
.prm-req--info {
    border-left-color: #6366f1;
    background: #fafafe;
}
.prm-req__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.prm-req__badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}
.prm-req__badge--required {
    background: var(--color-green-bg);
    color: var(--color-green);
}
.prm-req__badge--conditional {
    background: var(--color-amber-bg);
    color: #92400e;
}
.prm-req__badge--info {
    background: #eef2ff;
    color: #4338ca;
}
.prm-req__page {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}
.prm-req__text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text);
    margin: 0;
}
.prm-req__note {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0.5rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    font-style: italic;
}

/* Qualifying conditions grid */
.prm-conditions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
@media (min-width: 640px) {
    .prm-conditions {
        grid-template-columns: 1fr 1fr;
    }
}
.prm-condition {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}
.prm-condition__num {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy-700);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
}
.prm-condition__text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text);
}

/* Footer */
.prm-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}
.prm-footer__source {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
}
/* PRM link in report page */
.prm-report-link {
    margin: 1rem 0 1.5rem;
    padding: 0.6rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #4b5563;
}
.prm-report-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.prm-report-link a:hover {
    text-decoration: underline;
}
.prm-report-link__sub {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.prm-footer__disclaimer {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
    padding: 1rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}


/* ================================================================== */
/* ALIGNMENT PREVIEW — Pre-submission CMS requirement checklist       */
/* ================================================================== */

/* ---- Mode toggle ---- */
.align-mode-toggle {
    display: inline-flex;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.align-mode-toggle__btn {
    padding: 0.45rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--color-bg);
    color: var(--color-text-muted);
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.align-mode-toggle__btn:hover {
    background: var(--color-bg-subtle);
}
.align-mode-toggle__btn--active {
    background: var(--color-navy-700);
    color: #fff;
}

/* ---- Criteria cards surface ---- */
@keyframes align-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.align-cards-section {
    margin-top: 1.25rem;
    background: #fafaf8;
    border-radius: 12px;
    padding: 1.25rem 1.25rem 0.75rem;
    border: 1px solid #edeee9;
    animation: align-fadeIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Category accordion ---- */
.align-category {
    background: var(--color-bg);
    border-radius: 10px;
    border: 1px solid var(--color-border);
    margin-bottom: 0.6rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.align-category:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.align-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.1rem;
    cursor: pointer;
    user-select: none;
}
.align-category__header:hover {
    background: var(--color-bg-subtle);
}
.align-category__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}
.align-category__count {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    background: #f1f5f9;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
}
.align-category__arrow {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-left: 0.4rem;
}
.align-category.is-open .align-category__arrow {
    transform: rotate(180deg);
}
.align-category__desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0 1.1rem 0.5rem;
    line-height: 1.5;
    display: none;
}
.align-category.is-open .align-category__desc {
    display: block;
}
.align-category__cards {
    padding: 0 0.75rem 0.75rem;
    display: none;
}
.align-category.is-open .align-category__cards {
    display: block;
    animation: align-fadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Individual cards ---- */
.align-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    border-left: 3px solid var(--color-border);
    transition: border-color 0.2s, background 0.25s, box-shadow 0.25s;
}
.align-card--required {
    border-left-color: var(--color-green);
}
.align-card--conditional {
    border-left-color: var(--color-amber);
}
.align-card--informational {
    border-left-color: #4338ca;
}
.align-card--checked {
    background: #f0f9f0;
    border-color: #b7ddb7;
    box-shadow: 0 0 0 1px rgba(26,122,46,0.08);
}
.align-card__check {
    flex-shrink: 0;
    margin-top: 0.15rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-green);
    cursor: pointer;
    transition: transform 0.15s;
}
.align-card__check:hover {
    transform: scale(1.12);
}
.align-card__check:checked {
    animation: align-checkPop 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes align-checkPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.align-card__body {
    flex: 1;
    min-width: 0;
}
.align-card__text {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--color-text);
    margin: 0;
}
.align-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
    font-size: 0.76rem;
    color: var(--color-text-muted);
}
.align-card__badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.08rem 0.35rem;
    border-radius: 3px;
}
.align-card__badge--required {
    color: var(--color-green);
    background: var(--color-green-bg);
}
.align-card__badge--conditional {
    color: var(--color-amber);
    background: var(--color-amber-bg);
}
.align-card__badge--informational {
    color: #4338ca;
    background: #eef2ff;
}
.align-card__note {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    margin: 0.2rem 0 0 0;
    line-height: 1.45;
    font-style: italic;
}
.align-card__snippet {
    margin-top: 0.4rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.25s ease,
                margin 0.3s ease;
}
.align-card--checked .align-card__snippet {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.5rem;
}
.align-card__snippet textarea {
    width: 100%;
    min-height: 56px;
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
    line-height: 1.5;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    resize: vertical;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}
.align-card__snippet textarea:focus {
    border-color: var(--color-navy-600);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30,58,95,0.08);
}
.align-card__snippet-label {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
}
.align-cards-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: background 0.2s;
}
.align-cards-count strong {
    color: var(--color-green);
    font-weight: 700;
}

/* ---- Alignment report results ---- */
.align-report-header {
    margin-bottom: 1.5rem;
}
.align-report-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy-700);
    margin: 0 0 0.25rem 0;
}
.align-report-subtitle {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.55;
}
.align-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.align-summary__main {
    flex: 1 1 100%;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}
.align-summary__stat {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
.align-summary__stat strong {
    font-weight: 700;
}

.align-result {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--color-border);
}
.align-result--verified {
    border-left-color: var(--color-green);
    background: #f0fdf4;
}
.align-result--user_confirmed {
    border-left-color: var(--color-navy-600);
    background: #eff6ff;
}
.align-result--snippet_not_verified {
    border-left-color: var(--color-amber);
    background: #fffbeb;
}
.align-result--not_confirmed {
    border-left-color: var(--color-border-dark);
    background: var(--color-bg-subtle);
}
.align-result__status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.align-result__status--verified {
    color: var(--color-green);
}
.align-result__status--user_confirmed {
    color: var(--color-navy-600);
}
.align-result__status--snippet_not_verified {
    color: var(--color-amber);
}
.align-result__status--not_confirmed {
    color: var(--color-text-muted);
}
.align-result__text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text);
    margin: 0;
}
.align-result__snippet {
    font-size: 0.82rem;
    color: #374151;
    font-style: italic;
    margin: 0.35rem 0 0 0;
    padding: 0.4rem 0.6rem;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
    border-left: 2px solid var(--color-border);
}
.align-result__explanation {
    font-size: 0.82rem;
    color: var(--color-amber);
    margin: 0.3rem 0 0 0;
    font-style: italic;
}
.align-result__meta {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}
.align-result__note {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 0.2rem 0 0 0;
}
.align-policy-info {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}
.align-category-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy-700);
    margin: 1.5rem 0 0.6rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--color-border);
}
.align-disclaimer {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}
