/* ===========================================================
   Quantara Data - shared stylesheet
   Aesthetic: technical-editorial "engineering document".
   Cool blueprint-paper ground, deep cobalt ink, hairline
   structure used with intent, restrained motivated motion.
   Redesigned 2026-08-19.
   =========================================================== */

/* --- Self-hosted fonts (no third-party CDN, GDPR-safe) --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF, U+FB00-FB06;
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/plex-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/plex-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF, U+FB00-FB06;
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/plex-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/plex-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF, U+FB00-FB06;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* ===========================================================
   Design tokens
   =========================================================== */
:root {
    /* Blueprint-paper grounds (cool near-whites) */
    --paper: #f3f6fa;
    --paper-2: #e9edf4;
    --paper-raised: #ffffff;

    /* Ink (near-black navy from the logo) */
    --ink: #0e1c33;
    --ink-soft: #33425c;
    --text-primary: #10203a;
    --text-secondary: #43526d;
    --text-muted: #5f6d84;

    /* Accent: deep architectural cobalt, drawn from the mark */
    --accent: #1553b6;
    --accent-strong: #103f8c;
    --accent-light: #2f74d8;
    --accent-tint: rgba(21, 83, 182, 0.08);
    --accent-tint-2: rgba(21, 83, 182, 0.14);

    /* Semantic status (ledger only) */
    --ok: #23724f;
    --flag: #895a15;

    /* Structure */
    --rule: rgba(16, 32, 58, 0.10);
    --rule-strong: rgba(16, 32, 58, 0.17);
    --field-border: rgba(16, 32, 58, 0.22);
    --focus-ring: #1553b6;
    --surface: rgba(16, 32, 58, 0.022);
    --surface-raised: rgba(16, 32, 58, 0.04);

    /* Dark inverted bands (footer + closing CTA) */
    --dark-bg: #0c1a30;
    --dark-bg-2: #0a1628;
    --dark-text: #eaf1fb;
    --dark-text-soft: #a9bbd8;
    --dark-text-mute: #8a9bbb;
    --dark-rule: rgba(180, 202, 236, 0.16);

    /* Shape scale (documented: controls/cards 8px, panels 14px) */
    --r-sm: 8px;
    --r-md: 14px;
    --radius: 8px; /* legacy alias used by older markup */

    /* Elevation, tinted to the ink hue */
    --shadow-sm: 0 1px 2px rgba(14, 28, 51, 0.05);
    --shadow-md: 0 14px 34px -18px rgba(14, 28, 51, 0.28);
    --shadow-lg: 0 40px 80px -32px rgba(14, 28, 51, 0.34);

    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--sans);
    background-color: var(--paper);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv05' 1, 'ss01' 1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Accessibility: visible keyboard focus --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* --- Skip to content --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--accent);
    color: #fff;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--r-sm);
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

#main {
    scroll-margin-top: 84px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===========================================================
   Typography
   =========================================================== */
h1, h2, h3, h4 {
    font-weight: 650;
    letter-spacing: -0.022em;
    line-height: 1.14;
    color: var(--text-primary);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 5.2vw, 4rem);
    font-weight: 680;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    letter-spacing: -0.028em;
}

p { text-wrap: pretty; }

/* Eyebrow / section marker */
.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.section-label::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 60ch;
}

/* ===========================================================
   Navigation
   =========================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(243, 246, 250, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

nav.scrolled {
    border-bottom-color: var(--rule);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-md);
    background: rgba(243, 246, 250, 0.92);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand,
footer .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand .logo-mark,
footer .brand .logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text .brand-name {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.13em;
    color: var(--text-primary);
}

.brand-text .brand-sub {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.58rem;
    letter-spacing: 0.36em;
    color: var(--accent);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-links a:not(.nav-cta) {
    position: relative;
    padding: 4px 0;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:not(.nav-cta):hover {
    color: var(--text-primary);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a.current::after {
    transform: scaleX(1);
}

.nav-links a.current {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-cta {
    background: var(--accent);
    padding: 0.6rem 1.4rem;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff !important;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-cta:active {
    transform: translateY(0);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 1.9rem;
    border-radius: var(--r-sm);
    font-family: var(--sans);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: var(--paper-raised);
    color: var(--text-primary);
    border: 1px solid var(--rule-strong);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline:active {
    transform: translateY(0);
}

/* Buttons that sit on dark bands */
.cta-section .btn-outline,
footer .btn-outline {
    background: transparent;
    color: var(--dark-text);
    border-color: var(--dark-rule);
    box-shadow: none;
}

.cta-section .btn-outline:hover,
footer .btn-outline:hover {
    color: #fff;
    border-color: var(--dark-text-soft);
}

/* ===========================================================
   Blueprint grid backdrop utility
   =========================================================== */
.bp-grid {
    position: relative;
}

.bp-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(21, 83, 182, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 83, 182, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 70%);
    mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 70%);
}

.bp-grid > .container {
    position: relative;
    z-index: 1;
}

/* ===========================================================
   Hero (home)
   =========================================================== */
.hero {
    padding: 172px 0 104px;
    position: relative;
    border-bottom: 1px solid var(--rule);
    background:
        radial-gradient(140% 120% at 82% 0%, var(--accent-tint) 0%, transparent 46%),
        var(--paper);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 76px;
    align-items: center;
}

.hero-content .subtitle {
    margin-top: 1.6rem;
    font-size: 1.16rem;
    color: var(--ink-soft);
    max-width: 44ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 2.5rem;
}

/* Small credential strip under the hero copy */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 3rem;
    padding-top: 1.7rem;
    border-top: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.hero-meta span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ===========================================================
   Page hero (sub-pages)
   =========================================================== */
.page-hero {
    padding: 156px 0 84px;
    border-bottom: 1px solid var(--rule);
    background:
        radial-gradient(120% 120% at 88% 0%, var(--accent-tint) 0%, transparent 50%),
        var(--paper);
}

.page-hero .container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 68px;
    align-items: center;
}

.page-hero h1 {
    font-size: clamp(2.1rem, 3.9vw, 3rem);
}

.page-hero .subtitle {
    margin-top: 1.4rem;
    max-width: 52ch;
}

/* ===========================================================
   Ledger panel (home hero visual) - the branded data view
   =========================================================== */
.ledger {
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    background: var(--paper-raised);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.ledger-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.3rem;
    border-bottom: 1px solid var(--rule);
    background: linear-gradient(180deg, var(--accent-tint), transparent);
}

.ledger-title {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.ledger-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.ledger-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-tint);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 0.75rem;
}

.ledger-table th {
    text-align: left;
    padding: 0.7rem 1.3rem;
    font-weight: 500;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--rule);
    background: var(--surface);
}

.ledger-table td {
    padding: 0.66rem 1.3rem;
    border-bottom: 1px solid var(--rule);
    color: var(--text-secondary);
    white-space: nowrap;
}

.ledger-table tr:last-child td {
    border-bottom: none;
}

.ledger-table .rec {
    color: var(--text-primary);
    font-weight: 500;
}

.st {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 500;
}

.st::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.st.ok { color: var(--ok); }
.st.ok::before { background: var(--ok); }

.st.review { color: var(--flag); }
.st.review::before { background: var(--flag); }

.st.queued { color: var(--text-muted); }
.st.queued::before { background: var(--text-muted); }

.ledger-foot {
    padding: 1.2rem 1.3rem;
    border-top: 1px solid var(--rule);
    background: var(--surface);
}

/* Dot matrix - echoes the logo mark, fills in scan order */
.matrix {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    gap: 5px;
    margin-bottom: 1.1rem;
}

.matrix .dot {
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(16, 32, 58, 0.09);
    transition: background 0.5s ease, transform 0.5s ease;
}

.matrix .dot.filled { background: var(--accent); }
.matrix .dot.active {
    background: var(--accent-light);
    transform: scale(1.25);
}

.ledger-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ledger-meta .pct {
    color: var(--accent);
    font-weight: 500;
}

/* ===========================================================
   Spec panel (sub-page visual)
   =========================================================== */
.spec-panel {
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    background: var(--paper-raised);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.spec-panel .spec-head {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    background: linear-gradient(180deg, var(--accent-tint), transparent);
}

.spec-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 1.05rem 1.4rem;
    border-bottom: 1px solid var(--rule);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row .k {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.spec-row .v {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

/* ===========================================================
   Section scaffolding
   =========================================================== */
.section {
    padding: 108px 0;
    position: relative;
}

/* Deep-link anchors clear the fixed nav */
.section[id],
.page-hero[id] {
    scroll-margin-top: 90px;
}

.section.alt {
    background: var(--paper-2);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.section-head {
    max-width: 730px;
    margin-bottom: 3.6rem;
}

.section-head .subtitle {
    margin-top: 1.1rem;
}

/* ===========================================================
   Highlights: hairline-divided fact row, no cards
   =========================================================== */
.highlights {
    padding: 0;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
}

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

.highlight-item {
    padding: 3rem 2.2rem 3rem 0;
    border-right: 1px solid var(--rule);
}

.highlight-item:first-child {
    padding-left: 0;
}

.highlight-item:not(:first-child) {
    padding-left: 2.2rem;
}

.highlight-item:last-child {
    border-right: none;
    padding-right: 0;
}

.highlight-item .tag {
    display: block;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.highlight-item h3 {
    font-size: 1.08rem;
    margin-bottom: 0.55rem;
    letter-spacing: -0.015em;
}

.highlight-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.62;
}

/* ===========================================================
   Feature / service grid: numbered, flat cells, hairline
   =========================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.feature-card {
    background: var(--paper-raised);
    padding: 2.4rem 2.1rem;
    transition: background 0.25s, transform 0.25s;
    position: relative;
}

.section.alt .feature-card {
    background: var(--paper-raised);
}

.feature-card:hover {
    background: #fbfcfe;
}

.feature-card .idx {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--rule-strong);
    border-radius: 5px;
}

.feature-card h3 {
    font-size: 1.14rem;
    margin-bottom: 0.7rem;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.66;
}

/* ===========================================================
   Process steps (home) - the "golden thread" of the work
   =========================================================== */
.process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    counter-reset: step;
}

.process::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 55%, var(--rule-strong) 100%);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.process.in::before {
    transform: scaleX(1);
}

.step {
    position: relative;
    padding: 0 2rem;
    z-index: 1;
}

.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }

.step .step-node {
    counter-increment: step;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--paper-raised);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.6rem;
}

.step .step-node::before {
    content: counter(step, decimal-leading-zero);
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 32ch;
}

/* ===========================================================
   Prose / two-column editorial
   =========================================================== */
.prose-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 76px;
    align-items: start;
}

.prose-grid > div:first-child { position: relative; }

.prose-grid p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.72;
    max-width: 62ch;
}

.prose-grid p + p {
    margin-top: 1.2rem;
}

.check-list {
    margin-top: 1.8rem;
}

.check-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
    color: var(--text-secondary);
    font-size: 0.96rem;
}

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

.check-list li::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.28rem;
    border-radius: 50%;
    background: var(--accent-tint);
    background-image:
        linear-gradient(45deg, transparent 42%, var(--accent) 42%, var(--accent) 58%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, var(--accent) 42%, var(--accent) 58%, transparent 58%);
    background-size: 9px 9px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===========================================================
   CDE tags
   =========================================================== */
.cde-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 1.9rem;
}

.cde-pill {
    padding: 0.5rem 0.95rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--rule-strong);
    background: var(--paper-raised);
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.cde-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ===========================================================
   Trial / contact layout
   =========================================================== */
.trial-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.offer-box,
.form-card,
.contact-detail-card {
    padding: 2.4rem;
    border-radius: var(--r-md);
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
}

.offer-box h3,
.form-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.3rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid var(--rule);
}

.eligibility-note {
    margin-top: 1.9rem;
    padding: 1.15rem 1.4rem;
    border-radius: var(--r-sm);
    background: var(--accent-tint);
    border-left: 3px solid var(--accent);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===========================================================
   Forms
   =========================================================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--field-border);
    background: var(--paper);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--paper-raised);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.form-success {
    display: none;
    margin-top: 1.2rem;
    padding: 1rem 1.25rem;
    border-radius: var(--r-sm);
    background: rgba(44, 138, 99, 0.1);
    border-left: 3px solid var(--ok);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-success.visible {
    display: block;
}

/* ===========================================================
   Contact detail cards
   =========================================================== */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-detail-card {
    padding: 1.6rem 1.8rem;
}

.contact-detail-card .tag {
    display: block;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.contact-detail-card a,
.contact-detail-card .value {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    transition: color 0.2s;
}

.contact-detail-card a:hover {
    color: var(--accent);
}

.contact-detail-card p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===========================================================
   CTA band (dark, closing punctuation)
   =========================================================== */
.cta-section {
    padding: 100px 0;
    background: var(--dark-bg);
    color: var(--dark-text);
    border-top: 1px solid var(--rule);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(90% 140% at 100% 0%, rgba(47, 116, 216, 0.22), transparent 55%),
        linear-gradient(rgba(180, 202, 236, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 202, 236, 0.05) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
    -webkit-mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 68%);
    mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 68%);
}

.cta-section .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.cta-section h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    max-width: 20ch;
    color: #fff;
}

.cta-section .subtitle {
    margin-top: 1rem;
    font-size: 1.02rem;
    color: var(--dark-text-soft);
}

.cta-section .hero-actions {
    margin-top: 0;
    flex-shrink: 0;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--accent-strong);
    border-color: #fff;
}

.cta-section .btn-primary:hover {
    background: #eaf1fb;
    border-color: #eaf1fb;
}

/* ===========================================================
   Footer (dark)
   =========================================================== */
footer {
    padding: 64px 0 28px;
    background: var(--dark-bg-2);
    color: var(--dark-text-soft);
    border-top: 1px solid var(--dark-rule);
}

footer .footer-top {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

footer .brand .brand-name { color: var(--dark-text); }
footer .brand .brand-sub { color: #91baff; }
footer .brand .logo-mark { box-shadow: none; }

footer .legal-line {
    margin-top: 1.3rem;
    font-size: 0.78rem;
    line-height: 1.65;
    color: var(--dark-text-mute);
    max-width: 34ch;
}

footer .brand {
    margin-bottom: 1.3rem;
}

footer .footer-tagline {
    color: var(--dark-text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 34ch;
}

footer .footer-col h3 {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--dark-text);
    margin-bottom: 1.4rem;
}

footer .footer-col ul li {
    margin-bottom: 0.8rem;
}

footer .footer-col ul li a {
    color: var(--dark-text-soft);
    font-size: 0.9rem;
    transition: color 0.2s;
}

footer .footer-col ul li a:hover {
    color: #fff;
}

footer .copy-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 26px;
    border-top: 1px solid var(--dark-rule);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--dark-text-mute);
}

/* ===========================================================
   Solo page header (faq / legal)
   =========================================================== */
.page-hero.solo .container {
    grid-template-columns: 1fr;
}

.page-hero.solo .subtitle {
    max-width: 66ch;
}

/* ===========================================================
   Long-form content (about / legal)
   =========================================================== */
.doc {
    padding: 76px 0 104px;
}

.doc .container {
    max-width: 800px;
}

.doc h2 {
    font-size: 1.5rem;
    margin: 2.8rem 0 0.9rem;
}

.doc > .container > h2:first-child {
    margin-top: 0;
}

.doc h3 {
    font-size: 1.12rem;
    margin: 1.8rem 0 0.5rem;
}

.doc p,
.doc li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.doc p {
    margin-bottom: 1.1rem;
    max-width: 68ch;
}

.doc ul.bullets {
    margin: 0 0 1.3rem;
}

.doc ul.bullets li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.6rem;
}

.doc ul.bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
}

.doc a {
    color: var(--accent);
    font-weight: 500;
}

.doc a:hover {
    text-decoration: underline;
}

.doc-meta {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2.6rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--rule);
}

/* ===========================================================
   FAQ accordion
   =========================================================== */
.faq-list {
    border-top: 1px solid var(--rule);
    max-width: 880px;
}

.faq-item {
    border-bottom: 1px solid var(--rule);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    padding: 1.6rem 0;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: var(--mono);
    font-size: 1.4rem;
    line-height: 1;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    content: '\2013';
}

.faq-item .faq-body {
    padding: 0 0 1.7rem;
    max-width: 72ch;
}

.faq-item .faq-body p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.72;
}

.faq-item .faq-body p + p {
    margin-top: 0.85rem;
}

/* ===========================================================
   Scroll-reveal (motivated entrance motion)
   =========================================================== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.reveal-pending {
    opacity: 0;
    transform: translateY(16px);
}

.reveal:focus-within,
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1000px) {
    .features-grid.three {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero .container,
    .page-hero .container,
    .prose-grid,
    .trial-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-content .subtitle { max-width: 56ch; }

    .hero-visual {
        order: 2;
    }

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

    .highlight-item {
        padding: 2.2rem 1.8rem 2.2rem 0;
    }

    .highlight-item:nth-child(2n) {
        border-right: none;
        padding-right: 0;
    }

    .highlight-item:nth-child(odd) {
        padding-left: 0;
    }

    .highlight-item:nth-child(even) {
        padding-left: 1.8rem;
    }

    .highlight-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--rule);
    }

    /* Process: stack into a vertical thread */
    .process {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .process::before {
        top: 0;
        bottom: 0;
        left: 29px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 60%, var(--rule-strong) 100%);
        transform: scaleY(0);
        transform-origin: top;
    }

    .process.in::before {
        transform: scaleY(1);
    }

    .step,
    .step:first-child,
    .step:last-child {
        padding: 0 0 0 84px;
    }

    .step .step-node {
        position: absolute;
        left: 0;
        top: 0;
        margin-bottom: 0;
    }

    .cta-section .container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    footer .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 960px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: var(--paper-raised);
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        padding: 1.8rem 1.6rem;
        gap: 20px;
        border-bottom: 1px solid var(--rule);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-cta {
        margin-top: 0.4rem;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 132px 0 76px;
    }

    .hero-content .subtitle { font-size: 1.08rem; }

    .page-hero {
        padding: 124px 0 60px;
    }

    .section {
        padding: 72px 0;
    }

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

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

    .highlight-item,
    .highlight-item:nth-child(even),
    .highlight-item:nth-child(odd) {
        border-right: none;
        border-bottom: 1px solid var(--rule);
        padding: 2rem 0;
    }

    .highlight-item:last-child {
        border-bottom: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

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

    footer .copy-row {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .ledger-table {
        font-size: 0.7rem;
    }

    .ledger-table th,
    .ledger-table td {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

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

/* ===========================================================
   Reduced motion
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .process::before {
        transform: none !important;
    }
}

/* ===========================================================
   Articles hub
   =========================================================== */
.articles-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center; margin: 56px 0 68px; }
.article-card-img { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--paper-2); overflow: hidden; box-shadow: var(--shadow-md); }
.article-card-img img { display: block; width: 100%; height: auto; }
.article-listing { position: relative; padding: 30px 0 34px 22px; }
.article-listing::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--accent) 0 76px, var(--rule) 76px 100%); }
.article-listing::after { content: ""; position: absolute; top: 30px; bottom: 34px; left: 0; width: 2px; background: var(--accent); opacity: 0.65; }
.article-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; }
.article-card h2 { font-size: 26px; margin: 12px 0 12px; line-height: 1.28; }
.article-card .article-excerpt { color: var(--text-secondary); margin-bottom: 18px; line-height: 1.7; }
.article-meta { font-family: var(--mono); font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.read-link { color: var(--accent); font-weight: 600; }
.read-link:hover { color: var(--accent-strong); text-decoration: underline; }
.articles-ghost { border: 1px solid var(--rule); border-radius: var(--r-md); padding: 28px; background: var(--paper-raised); color: var(--text-muted); min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-sm); }
.articles-ghost h3 { color: var(--text-primary); font-size: 17px; margin-top: 8px; }
.ghost-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 28px 0 76px; }
@media (max-width: 860px) {
    .articles-featured { grid-template-columns: 1fr; }
    .ghost-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   Article page - bone reading environment (deliberate)
   =========================================================== */
.article-body { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.78; background: #fbfaf6; color: #1c1c1c; padding: 60px 68px; border-radius: var(--r-md); box-shadow: var(--shadow-lg); border: 1px solid var(--rule); font-family: Georgia, 'Times New Roman', serif; }
.article-hero-img { border: 1px solid var(--rule); border-radius: var(--r-md); margin-bottom: 38px; overflow: hidden; }
.article-hero-img img { display: block; width: 100%; height: auto; }
.article-body p { margin-bottom: 24px; text-wrap: pretty; color: #2b2b2b; }
.article-body h2 { margin-top: 56px; font-size: 24px; color: #131313; font-family: var(--sans); letter-spacing: -0.02em; }
.article-body .num { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.article-body .lead { font-size: 20px; color: #131313; }
.article-body .stat-box { background: #ffffff; border-color: #e7e2d5; border-left-color: var(--accent); }
.article-body .stat-box li { border-bottom-color: #efe9db; color: #2b2b2b; }
.article-body .article-callout { background: #ffffff; border-color: #e7e2d5; border-left-color: var(--accent); }
.article-body .article-callout p { color: #2b2b2b; }
.article-body .article-callout .cta-line { color: #131313; }
.article-body .btn-outline { color: var(--accent); border-color: var(--accent); background: transparent; box-shadow: none; }
.article-body .btn-outline:hover { color: #131313; border-color: #131313; }
.article-body .pull-quote { border-left: 3px solid var(--accent); padding: 8px 0 8px 24px; margin: 36px 0; font-size: 22px; line-height: 1.5; color: #131313; }
.article-body .sources-list { color: #3a3a3a; }
.article-body .sources-list a { color: var(--accent); }
.article-body .article-timeline { background: #ffffff; border-color: #e7e2d5; }
.article-body .article-timeline h3 { color: var(--accent); }
.article-body .tl::before { background: #ded8c8; }
.article-body .tl .tl-label { color: #2b2b2b; }
.article-body .tl .tl-date { color: var(--accent); }
.article-body .article-back { color: var(--accent); }
.article-body .article-hero-img { border-color: #e7e2d5; }

.stat-box { border: 1px solid var(--rule); border-left: 3px solid var(--accent); background: var(--paper-2); padding: 22px 26px; margin: 30px 0; border-radius: var(--r-sm); }
.stat-box ul { list-style: none; }
.stat-box li { padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--text-secondary); display: flex; gap: 14px; }
.stat-box li:last-child { border-bottom: none; }
.stat-box .n { font-family: var(--mono); color: var(--accent); font-weight: 600; min-width: 62px; }
.article-callout { border: 1px solid var(--rule); border-left: 3px solid var(--accent); background: var(--paper-2); padding: 28px; margin: 42px 0; border-radius: var(--r-sm); }
.article-callout .cta-line { font-size: 19px; color: var(--text-primary); font-weight: 600; margin-bottom: 12px; }
.article-callout p { margin-bottom: 10px; }
.article-callout .cta-links { margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.sources-list { font-size: 14px; color: var(--text-muted); padding-left: 20px; }
.sources-list li { margin-bottom: 10px; }
.sources-list a { color: var(--accent); }
.article-back { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; display: inline-block; margin-bottom: 26px; }
.article-back:hover { color: var(--accent); }
.article-title-link:hover { color: var(--accent); }
.article-timeline { border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 26px; margin: 32px 0; background: var(--paper-2); }
.article-timeline h3 { font-size: 15px; font-family: var(--mono); letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; margin-bottom: 18px; }
.tl { position: relative; display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; }
.tl::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--rule-strong); }
.tl .tl-node { position: relative; flex: 1; text-align: left; }
.tl .tl-node::before { content: ""; position: absolute; top: -7px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--paper-raised); border: 2px solid var(--accent); }
.tl .tl-node.done::before { background: var(--accent); }
.tl .tl-date { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-top: 14px; display: block; }
.tl .tl-label { font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }
@media (max-width: 720px) { .tl { flex-direction: column; } .tl::before { display: none; } .tl .tl-node { padding-left: 18px; } .tl .tl-node::before { top: 22px; left: 0; } }
@media (max-width: 720px) { .article-body { padding: 32px 22px; } }

/* Reading toolbar (article pages only) */
.reader-toolbar { position: fixed; right: 18px; top: 50%; transform: translateY(-50%) translateX(14px); opacity: 0; pointer-events: none; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--rule); border-radius: 14px; padding: 10px 8px; box-shadow: var(--shadow-lg); transition: opacity 0.35s ease, transform 0.35s ease; }
.reader-toolbar.visible { opacity: 1; transform: translateY(-50%) translateX(0); pointer-events: auto; }
.rt-group { display: flex; align-items: center; gap: 4px; }
.rt-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--text-primary); font-family: var(--mono); font-size: 15px; line-height: 1; cursor: pointer; transition: background 0.2s, transform 0.15s, border-color 0.2s; }
.rt-btn:hover { background: var(--accent-tint); border-color: var(--accent); transform: translateY(-1px); }
.rt-btn:active { transform: translateY(0); }
.rt-label { font-family: var(--mono); font-size: 11px; color: var(--text-muted); min-width: 36px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .reader-toolbar { transition: none; } .rt-btn { transition: none; } }
@media (max-width: 720px) { .reader-toolbar { right: 10px; top: auto; bottom: 14px; transform: translateY(14px); flex-direction: row; gap: 12px; padding: 8px 12px; } .reader-toolbar.visible { transform: translateY(0); } }

/* Photo hero with gradient overlay */
.article-hero-photo { position: relative; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.article-hero-photo img { display: block; width: 100%; height: auto; }
.article-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 21, 36, 0) 38%, rgba(7, 21, 36, 0.35) 55%, rgba(7, 21, 36, 0.78) 80%, rgba(7, 21, 36, 0.94) 100%); }
.article-hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 32px 24px; color: #fff; }
.ah-brand { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #cbd8f0; margin-bottom: 10px; }
.ah-num { display: block; font-family: var(--mono); font-size: 42px; font-weight: 600; color: #fff; line-height: 1; }
.ah-line { display: block; margin-top: 9px; font-size: 16.5px; color: #e8eef8; }
.article-photo-credit { font-size: 12px; color: var(--text-muted); margin: 8px 2px 0; }
@media (max-width: 720px) { .ah-num { font-size: 30px; } .ah-line { font-size: 14px; } .article-hero-caption { padding: 18px 20px 16px; } }

/* Gap chart */
.stat-chart { background: #ffffff; border: 1px solid #e7e2d5; border-radius: var(--r-sm); padding: 22px 24px 16px; margin: 30px 0; }
.sc-row { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.sc-label { flex: 0 0 215px; font-size: 14px; color: #2b2b2b; }
.sc-bar { flex: 1; height: 18px; background: #f0ead9; border-radius: 4px; overflow: hidden; }
.sc-fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.sc-fill.sc-full { background: var(--accent-strong); }
.sc-val { font-family: var(--mono); font-size: 14px; color: #131313; min-width: 54px; text-align: right; }
.sc-note { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 720px) { .sc-row { flex-wrap: wrap; gap: 6px; } .sc-label { flex: 1 1 100%; } .sc-bar { flex: 1 1 auto; } .sc-val { min-width: 0; } }

/* Timeline upgrade */
.tl-badge { display: inline-block; font-family: var(--mono); font-size: 11px; color: #fff; background: var(--accent); border-radius: 10px; padding: 2px 8px; margin-top: 8px; }
.tl::before { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 70%, var(--rule-strong) 100%); }
.tl-node.now .tl-badge { background: var(--accent-strong); animation: tl-pulse 2s ease-in-out infinite; }
@keyframes tl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(21, 83, 182, 0.4); } 50% { box-shadow: 0 0 0 7px rgba(21, 83, 182, 0); } }
@media (prefers-reduced-motion: reduce) { .tl-node.now .tl-badge { animation: none; } }

/* Content hub: doc tables & source notes */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.9rem 0;
    font-size: 0.96rem;
}
.doc-table th {
    text-align: left;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.75rem 0.9rem;
    border-bottom: 2px solid var(--rule-strong);
}
.doc-table td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--rule);
    color: var(--text-secondary);
    vertical-align: top;
    line-height: 1.6;
}
.doc-table tr:last-child td {
    border-bottom: none;
}
.doc-table td:first-child {
    color: var(--text-primary);
    font-weight: 600;
}
.source-note {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-top: 1.3rem;
}
.source-note a {
    color: var(--accent);
}

/* Keep static content readable when scripting is unavailable. */
.hero .container > *, .page-hero .container > *, .prose-grid > *,
.trial-layout > *, .cta-section .container > * { min-width: 0; }
.doc-table { table-layout: fixed; }
.doc-table th, .doc-table td { overflow-wrap: anywhere; }
.btn-primary, .btn-outline { white-space: normal; line-height: 1.4; }
.source-note, .contact-detail-card { overflow-wrap: anywhere; }
.reader-toolbar { visibility: hidden; }
.reader-toolbar.visible { visibility: visible; }
footer, .cta-section { --focus-ring: #a9caff; }
.form-group input:focus-visible, .form-group select:focus-visible,
.form-group textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

@media (max-width: 960px) {
    nav:not(.nav-enhanced) { position: static; }
    nav:not(.nav-enhanced) .container { height: auto; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; gap: 16px; }
    nav:not(.nav-enhanced) .nav-links { display: flex; position: static; flex-direction: row; flex-wrap: wrap; width: 100%; padding: 0; box-shadow: none; background: transparent; border: 0; gap: 16px; }
    nav:not(.nav-enhanced) .hamburger { display: none; }
}
@media (max-width: 420px) {
    .offer-box, .form-card, .contact-detail-card { padding: 1.25rem; }
    .ledger-table th, .ledger-table td { padding-left: 0.5rem; padding-right: 0.5rem; }
    .ledger-table td { white-space: normal; overflow-wrap: anywhere; }
    .spec-row { flex-wrap: wrap; gap: 6px; }
    .spec-row .v { text-align: left; overflow-wrap: anywhere; }
    .doc-table th, .doc-table td { padding-left: 0.35rem; padding-right: 0.35rem; }
}
