/* Trialhelix — trialhelix.css — shared site CSS */
/* Anti-fingerprint prefix: th- */

/* ============================================================
   HORIZONTAL OVERFLOW GUARD (MANDATORY)
   ============================================================ */
html, body { overflow-x: hidden; }

/* ============================================================
   CSS VARIABLES / TOKENS
   ============================================================ */
:root {
    --th-accent:       #7c3aed;
    --th-accent-rgb:   124, 58, 237;
    --th-secondary:    #0d9488;
    --th-bg-dark:      #0f0f1a;
    --th-bg-alt:       #13131f;
    --th-bg-surface:   #1a1a2e;
    --th-bg-card:      #1e1e30;
    --th-bg-light:     #f8f8fb;
    --th-bg-white:     #ffffff;
    --th-text-head:    #ffffff;
    --th-text-body:    #cbd5e1;
    --th-text-muted:   #64748b;
    --th-text-dark:    #0f172a;
    --th-border:       #2a2a3e;
    --font-sans:       'Manrope', system-ui, sans-serif;
    --font-display:    'Manrope', system-ui, sans-serif;
    --font-mono:       'JetBrains Mono', ui-monospace, monospace;
    --site-max:        1200px;
    --section-pad:     80px;
}

/* ============================================================
   BASE RESET + TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--th-bg-dark);
    color: var(--th-text-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    margin: 0 0 16px;
    line-height: 1.2;
}

p { margin: 0 0 16px; }

a { color: var(--th-accent); text-decoration: none; }
a:hover { opacity: 0.85; }

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

html { scroll-behavior: smooth; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.th-container {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   NAV — th-nav (sticky dark)
   ============================================================ */
.th-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    /* No default background — modifier class supplies it */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.th-nav--sticky { position: fixed; }

/* Transparent modifier — index.html only (Pattern 3a: fixed nav + dark hero backdrop) */
.th-nav--transparent {
    background: transparent;
}

/* Solid modifier — all sub-pages, always opaque */
.th-nav--solid {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Minimal modifier — auth/ Pattern A pages (logo-only, no full nav) */
.th-nav--minimal {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.th-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
}

.th-nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #f1f5f9;
}

/* Logo image variants: --light = light-ink logo (show on dark nav bg);
   --dark = dark-ink logo (show on light nav bg; not used in this dark-theme site) */
.th-nav__logo-img { height: 28px; width: auto; display: none; }
.th-nav__logo-img--light { display: inline; }
.th-nav__logo-img--dark { display: none; }

.th-nav__logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}

.th-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.th-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s;
}

.th-nav__link:hover,
.th-nav__link--active { color: #f1f5f9; }

.th-nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.th-nav__cta {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.th-nav__cta--button {
    background: var(--th-accent);
    color: #ffffff !important;
}

.th-nav__cta--button:hover {
    filter: brightness(1.12);
    color: #ffffff !important;
    opacity: 1;
}

.th-nav__cta--ghost {
    background: transparent;
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: #f1f5f9 !important;
    margin-left: 4px;
}

.th-nav__cta--ghost:hover {
    border-color: var(--th-accent);
    color: #ffffff !important;
    opacity: 1;
}

.th-nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.th-nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f1f5f9;
    transition: 0.3s;
}

/* Transparent + scrolled: flip to solid when user scrolls past hero */
.th-nav--transparent.th-nav--scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive nav */
@media (max-width: 768px) {
    .th-nav__links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(15, 15, 26, 0.98);
        padding: 16px;
        border-top: 1px solid var(--th-border);
        gap: 4px;
    }

    .th-nav__links.open { display: flex; }

    .th-nav__toggle { display: flex; }

    .th-nav__actions { display: none; }

    .th-nav__links .th-nav__cta {
        display: block;
        text-align: center;
        margin-top: 8px;
    }
}

/* ============================================================
   HERO — th-hero (D-full-bleed)
   ============================================================ */
.th-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--th-bg-dark);
    color: #f1f5f9;
    padding: 0;
}

.th-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.th-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.th-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 14, 23, 0.90) 0%,
        rgba(10, 14, 23, 0.65) 55%,
        rgba(10, 14, 23, 0.20) 100%
    );
    z-index: 1;
}

.th-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 96px 24px 80px;
}

.th-hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--th-secondary);
    margin-bottom: 20px;
    border: 1px solid rgba(13, 148, 136, 0.3);
    padding: 4px 12px;
    border-radius: 4px;
}

.th-hero__title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 720px;
    margin-bottom: 24px;
}

.th-hero__lede {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(203, 213, 225, 0.9);
    max-width: 580px;
    margin-bottom: 40px;
}

.th-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.th-hero__cta-primary {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--th-accent);
    color: #ffffff;
    text-decoration: none;
    transition: filter 0.2s;
}

.th-hero__cta-primary:hover {
    filter: brightness(1.12);
    color: #ffffff;
    opacity: 1;
}

.th-hero__cta-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.3);
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
}

.th-hero__cta-secondary:hover {
    border-color: #e2e8f0;
    color: #ffffff;
    opacity: 1;
}

@media (max-width: 768px) {
    .th-hero { min-height: 78vh; }
    .th-hero__inner { padding: 88px 24px 60px; }
    .th-hero__overlay {
        background: linear-gradient(180deg, rgba(10, 14, 23, 0.45) 0%, rgba(10, 14, 23, 0.88) 100%);
    }
}

/* ============================================================
   STATS — th-stats (B-cards)
   ============================================================ */
.th-stats {
    background: var(--th-bg-alt);
    padding: 64px 0;
}

.th-stats__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.th-stats__item {
    background: var(--th-bg-card);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--th-border);
}

.th-stats__value {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: var(--th-accent);
    line-height: 1.1;
    margin-bottom: 8px;
}

.th-stats__label {
    display: block;
    font-size: 13px;
    color: var(--th-text-body);
    line-height: 1.4;
    font-weight: 500;
}

@media (max-width: 768px) {
    .th-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .th-stats__value { font-size: 30px; }
}

/* ============================================================
   FEATURES — th-features (icon-per-card layout, 3x2 grid)
   features_visual_strategy = icon-per-card
   NO __visual slot, compact icon-text rows, 24-48px FA6 icons
   ============================================================ */
.th-features {
    padding: var(--section-pad) 0;
    background: var(--th-bg-dark);
}

.th-features__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-features__header {
    text-align: center;
    margin-bottom: 56px;
}

.th-features__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--th-secondary);
    margin-bottom: 12px;
}

.th-features__heading {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.th-features__subhead {
    font-size: 17px;
    color: var(--th-text-body);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.th-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* icon-per-card: compact icon + title + body, no image slot */
.th-features__card {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}

.th-features__card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-3px);
}

.th-features__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(124, 58, 237, 0.12);
    border-radius: 10px;
    font-size: 20px;
    color: var(--th-accent);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.th-features__card-title {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.th-features__card-body {
    font-size: 14px;
    color: var(--th-text-body);
    line-height: 1.65;
    flex: 1;
}

@media (max-width: 900px) {
    .th-features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .th-features__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS — th-process (A-numbered)
   ============================================================ */
.th-process {
    padding: var(--section-pad) 0;
    background: var(--th-bg-alt);
}

.th-process__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-process__header {
    text-align: center;
    margin-bottom: 56px;
}

.th-process__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.th-process__step {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 12px;
    padding: 32px 24px;
}

.th-process__step-num {
    display: block;
    font-size: 44px;
    font-weight: 900;
    color: var(--th-accent);
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.th-process__step-title {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.th-process__step-body {
    font-size: 14px;
    color: var(--th-text-body);
    line-height: 1.65;
}

@media (max-width: 900px) {
    .th-process__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .th-process__list { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIALS — th-testimonials (A-quotes)
   ============================================================ */
.th-testimonials {
    padding: var(--section-pad) 0;
    background: var(--th-bg-light);
}

.th-testimonials__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-testimonials__header {
    text-align: center;
    margin-bottom: 56px;
}

.th-testimonials__heading {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: var(--th-text-dark);
    margin-bottom: 12px;
}

.th-testimonials__subhead {
    font-size: 16px;
    color: #475569;
}

.th-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.th-testimonials__card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
}

.th-testimonials__quote {
    font-size: 16px;
    line-height: 1.65;
    color: #1f2937;
    margin: 0 0 28px;
    font-weight: 500;
    font-style: italic;
}

.th-testimonials__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.th-testimonials__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.th-testimonials__author-info { display: flex; flex-direction: column; gap: 2px; }

.th-testimonials__author-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.th-testimonials__author-role {
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 900px) {
    .th-testimonials__grid { grid-template-columns: 1fr; }
    .th-testimonials__card { min-height: auto; }
}

/* ============================================================
   CTA — th-cta (A-banner)
   ============================================================ */
.th-cta {
    background: var(--th-accent);
    padding: 72px 0;
    text-align: center;
}

.th-cta__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-cta__title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.th-cta__body {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.th-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.th-cta__actions .th-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.th-cta__actions .th-btn--white {
    background: #ffffff;
    color: var(--th-accent);
}

.th-cta__actions .th-btn--white:hover {
    filter: brightness(0.95);
    color: var(--th-accent);
    opacity: 1;
}

.th-cta__actions .th-btn--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.th-cta__actions .th-btn--outline:hover {
    border-color: #ffffff;
    color: #ffffff;
    opacity: 1;
}

/* ============================================================
   FOOTER — th-footer (A-4col)
   ============================================================ */
.th-footer {
    background: #0a0a14;
    padding: 72px 0 0;
    border-top: 1px solid var(--th-border);
    color: var(--th-text-body);
}

.th-footer__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 56px;
}

.th-footer__col {
    min-width: 0;
}

.th-footer__col--brand .th-footer__brand-logo {
    font-size: 20px;
    font-weight: 800;
    color: #f1f5f9;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 14px;
}

.th-footer__col--brand .th-footer__brand-logo span {
    color: var(--th-accent);
}

.th-footer__heading {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

.th-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.th-footer__list-item {
    margin-bottom: 10px;
}

.th-footer__link {
    font-size: 14px;
    color: var(--th-text-body);
    text-decoration: none;
    transition: color 0.2s;
}

.th-footer__link:hover {
    color: var(--th-accent);
    opacity: 1;
}

.th-footer__tagline {
    font-size: 14px;
    color: var(--th-text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.th-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--th-text-body);
    margin-bottom: 10px;
    line-height: 1.5;
}

.th-footer__contact-item i {
    color: var(--th-secondary);
    font-size: 13px;
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.th-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.th-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--th-border);
    color: var(--th-text-muted);
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
}

.th-footer__social-link:hover {
    border-color: var(--th-accent);
    color: var(--th-accent);
    opacity: 1;
}

.th-footer__legal {
    border-top: 1px solid var(--th-border);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.th-footer__copy {
    font-size: 13px;
    color: var(--th-text-muted);
}

.th-footer__legal-links {
    display: flex;
    gap: 20px;
}

.th-footer__legal-links a {
    font-size: 13px;
    color: var(--th-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.th-footer__legal-links a:hover {
    color: var(--th-text-body);
    opacity: 1;
}

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

@media (max-width: 576px) {
    .th-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .th-footer__legal { flex-direction: column; align-items: flex-start; }
}

/* Minimal footer — auth/ Pattern A pages (single-line copyright only) */
.th-footer--minimal {
    background: #0a0a14;
    border-top: 1px solid var(--th-border);
    padding: 20px 24px;
    text-align: center;
}
.th-footer--minimal .th-footer__copy {
    font-size: 13px;
    color: var(--th-text-muted);
}
.th-footer--minimal .th-footer__legal-links {
    display: inline-flex;
    gap: 16px;
    margin-top: 8px;
}
.th-footer--minimal .th-footer__legal-links a {
    font-size: 13px;
    color: var(--th-text-muted);
    text-decoration: none;
}
.th-footer--minimal .th-footer__legal-links a:hover {
    color: var(--th-text-body);
}

/* ============================================================
   COOKIE BANNER — th-cookie (B-sensitive, corner-toast-bl)
   mechanism: hidden-attribute
   3 buttons: accept-all, essential-only, dismiss
   border-left: teal accent
   ============================================================ */
.th-cookie {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 460px;
    width: calc(100% - 40px);
    background: #ffffff;
    color: #1f2937;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-left: 4px solid var(--th-secondary);
    border-radius: 10px;
    padding: 20px 20px 16px;
    z-index: 2000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.th-cookie[hidden] { display: none !important; }

.th-cookie__inner { display: flex; flex-direction: column; gap: 12px; }

.th-cookie__text {
    font-size: 13px;
    line-height: 1.55;
    color: #374151;
    margin: 0;
}

.th-cookie__text a {
    color: var(--th-secondary);
    text-decoration: underline;
}

.th-cookie__buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.th-cookie__btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s;
    line-height: 1;
}

.th-cookie__btn--primary {
    background: var(--th-accent);
    color: #ffffff;
}

.th-cookie__btn--primary:hover { filter: brightness(1.1); }

.th-cookie__btn--outline {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: #374151;
}

.th-cookie__btn--outline:hover { background: rgba(15, 23, 42, 0.05); filter: none; }

@media (max-width: 480px) {
    .th-cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; width: auto; }
    .th-cookie__buttons { flex-direction: column; }
    .th-cookie__btn { text-align: center; }
}

/* ============================================================
   SECTION HEADER UTILITY (shared across sections)
   ============================================================ */
.th-section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--th-secondary);
    margin-bottom: 12px;
}

.th-section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
}

.th-section-title--dark {
    color: var(--th-text-dark);
}

.th-section-desc {
    font-size: 17px;
    color: var(--th-text-body);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   PAGE HERO (sub-pages — small eyebrow+h1+lede banner)
   ============================================================ */
.th-page-hero {
    background: var(--th-bg-alt);
    padding: 120px 24px 64px;
    border-bottom: 1px solid var(--th-border);
}

.th-page-hero__inner {
    max-width: var(--site-max);
    margin: 0 auto;
}

.th-page-hero__heading {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.th-page-hero__lede {
    font-size: 17px;
    color: var(--th-text-body);
    max-width: 600px;
    line-height: 1.7;
}

/* ============================================================
   ABOUT PAGE — mission / founding-story / values / stage-focus
   ============================================================ */
.th-about-mission {
    padding: var(--section-pad) 0;
    background: var(--th-accent);
    color: #ffffff;
}

.th-about-mission__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-about-mission__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 12px;
}

.th-about-mission__statement {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    max-width: 820px;
    margin-bottom: 20px;
}

.th-about-mission__context {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    line-height: 1.7;
}

.th-about-story {
    padding: var(--section-pad) 0;
    background: var(--th-bg-dark);
}

.th-about-story__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-about-story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.th-about-story__img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.th-about-story__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--th-secondary);
    display: block;
    margin-bottom: 12px;
}

.th-about-story__title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.th-about-story__body {
    font-size: 16px;
    color: var(--th-text-body);
    line-height: 1.75;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .th-about-story__grid { grid-template-columns: 1fr; gap: 32px; }
}

.th-about-values {
    padding: var(--section-pad) 0;
    background: var(--th-bg-alt);
}

.th-about-values__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-about-values__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.th-about-values__item {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 10px;
    padding: 28px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.th-about-values__icon {
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--th-accent);
    flex-shrink: 0;
}

.th-about-values__text { flex: 1; }

.th-about-values__name {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.th-about-values__desc {
    font-size: 14px;
    color: var(--th-text-body);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 768px) {
    .th-about-values__grid { grid-template-columns: 1fr; }
}

.th-about-stage {
    padding: var(--section-pad) 0;
    background: var(--th-bg-dark);
    border-top: 1px solid var(--th-border);
}

.th-about-stage__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.th-about-stage__body {
    font-size: 16px;
    color: var(--th-text-body);
    line-height: 1.75;
    margin-bottom: 16px;
}

.th-about-stage__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--th-accent);
    letter-spacing: 0.5px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .th-about-stage__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   PRODUCT PAGE — problem / how-it-works / features / target-customer
   ============================================================ */
.th-product-problem {
    padding: var(--section-pad) 0;
    background: var(--th-bg-dark);
}

.th-product-problem__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.th-product-problem__body {
    font-size: 16px;
    color: var(--th-text-body);
    line-height: 1.75;
    margin-bottom: 16px;
}

.th-product-problem__stat {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-left: 3px solid var(--th-secondary);
    border-radius: 8px;
    margin-bottom: 12px;
}

.th-product-problem__stat-icon {
    font-size: 18px;
    color: var(--th-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.th-product-problem__stat-text {
    font-size: 14px;
    color: var(--th-text-body);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .th-product-problem__inner { grid-template-columns: 1fr; gap: 32px; }
}

.th-product-howitworks {
    padding: var(--section-pad) 0;
    background: var(--th-bg-alt);
}

.th-product-howitworks__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-product-howitworks__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.th-product-howitworks__step {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 12px;
    padding: 28px 24px;
    position: relative;
}

.th-product-howitworks__num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--th-secondary);
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.th-product-howitworks__step-title {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.th-product-howitworks__step-body {
    font-size: 14px;
    color: var(--th-text-body);
    line-height: 1.65;
    margin: 0;
}

.th-product-howitworks__visual {
    margin: 40px auto 0;
    max-width: 960px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--th-border);
}

.th-product-howitworks__visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .th-product-howitworks__steps { grid-template-columns: 1fr; }
}

.th-product-integrations {
    padding: var(--section-pad) 0;
    background: var(--th-bg-dark);
}

.th-product-integrations__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.th-product-integrations__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.th-product-integrations__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--th-text-body);
    transition: border-color 0.2s;
}

.th-product-integrations__chip:hover {
    border-color: rgba(124, 58, 237, 0.4);
}

.th-product-integrations__chip i {
    color: var(--th-secondary);
    font-size: 14px;
}

.th-product-target {
    padding: var(--section-pad) 0;
    background: var(--th-bg-alt);
}

.th-product-target__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.th-product-target__body {
    font-size: 16px;
    color: var(--th-text-body);
    line-height: 1.75;
    margin-bottom: 16px;
}

.th-product-target__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(13, 148, 136, 0.10);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--th-secondary);
    margin: 4px 4px 0 0;
}

.th-product-target__notfor {
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 8px;
}

.th-product-target__notfor-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--th-text-muted);
    display: block;
    margin-bottom: 6px;
}

.th-product-target__notfor-text {
    font-size: 14px;
    color: var(--th-text-body);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .th-product-target__inner { grid-template-columns: 1fr; gap: 32px; }
}

.th-product-security {
    padding: var(--section-pad) 0;
    background: var(--th-bg-dark);
}

.th-product-security__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-product-security__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.th-product-security__item {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 10px;
    padding: 24px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.th-product-security__item i {
    font-size: 18px;
    color: var(--th-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.th-product-security__item-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.th-product-security__item-text {
    font-size: 13px;
    color: var(--th-text-body);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .th-product-security__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TEAM PREVIEW (on about page)
   ============================================================ */
.th-team-preview {
    padding: var(--section-pad) 0;
    background: var(--th-bg-dark);
}

.th-team-preview__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-team-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.th-team-preview__card {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
}

.th-team-preview__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 16px;
    display: block;
}

.th-team-preview__name {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.th-team-preview__title {
    font-size: 13px;
    color: var(--th-text-muted);
}

@media (max-width: 768px) {
    .th-team-preview__grid { grid-template-columns: 1fr 1fr; }
}

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

/* ============================================================
   SECURITY PAGE EXTRAS
   ============================================================ */
.th-security {
    padding: var(--section-pad) 0;
    background: var(--th-bg-dark);
}

.th-security__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-security__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.th-security__card {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.th-security__icon {
    font-size: 28px;
    color: var(--th-accent);
}

.th-security__title {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.th-security__body {
    font-size: 14px;
    color: var(--th-text-body);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 768px) {
    .th-security__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECURITY PAGE — section header/title/desc (extra selectors used on security.html)
   ============================================================ */
.th-security__header {
    text-align: center;
    margin-bottom: 0;
}

.th-security__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
}

.th-security__section-desc {
    font-size: 17px;
    color: var(--th-text-body);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   PAGE HERO — th-page-hero__title variant (used on security.html)
   ============================================================ */
.th-page-hero__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

/* ============================================================
   BLOG INDEX — th-blog-index / th-blog-list (B-editorial-list)
   ============================================================ */
.th-blog-index {
    padding: var(--section-pad) 0;
    background: var(--th-bg-dark);
}

.th-blog-index__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.th-blog-list > li { list-style: none; }

.th-blog-list__item {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: start;
    padding: 36px 0;
    border-bottom: 1px solid var(--th-border);
}

.th-blog-list__item:first-child { padding-top: 0; }
.th-blog-list__item:last-child { border-bottom: none; }

.th-blog-list__thumb-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.th-blog-list__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.th-blog-list__thumb-link:hover .th-blog-list__thumb {
    transform: scale(1.03);
}

.th-blog-list__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.th-blog-list__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.th-blog-list__category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--th-secondary);
    background: rgba(13, 148, 136, 0.10);
    border: 1px solid rgba(13, 148, 136, 0.22);
    padding: 3px 10px;
    border-radius: 4px;
}

.th-blog-list__date {
    font-size: 13px;
    color: var(--th-text-muted);
}

.th-blog-list__title {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

.th-blog-list__title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.th-blog-list__title a:hover {
    color: var(--th-accent);
    opacity: 1;
}

.th-blog-list__excerpt {
    font-size: 15px;
    color: var(--th-text-body);
    line-height: 1.65;
    margin: 0;
}

.th-blog-list__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--th-accent);
    text-decoration: none;
    margin-top: 4px;
    transition: gap 0.2s;
}

.th-blog-list__link:hover {
    gap: 10px;
    opacity: 1;
}

@media (max-width: 768px) {
    .th-blog-list__item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 0;
    }
    .th-blog-list__thumb {
        aspect-ratio: 16 / 9;
    }
}

/* ============================================================
   BLOG ARTICLE — th-post (blog-detail standard)
   Blog reading-width CSS (per standards/components/blog-article.md §0)
   ============================================================ */
.th-post {
    background: var(--th-bg-dark);
    min-height: 60vh;
}

.th-post__header {
    background: var(--th-bg-alt);
    padding: 120px 24px 56px;
    border-bottom: 1px solid var(--th-border);
}

.th-post__header-inner {
    max-width: 720px;
    margin: 0 auto;
}

.th-post__title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.th-post__meta {
    font-size: 14px;
    color: var(--th-text-muted);
}

.th-post__byline {
    font-size: 14px;
    color: var(--th-text-muted);
    margin-top: 8px;
}

.th-post__cover-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 0;
}

.th-post__cover-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.th-post__cover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Reading width — canonical per standards/components/blog-article.md §0 */
.th-post__body {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--th-text-body);
}

.th-post__body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 16px;
}

.th-post__body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin-top: 32px;
    margin-bottom: 12px;
}

.th-post__body p {
    margin-bottom: 20px;
}

.th-post__body ul,
.th-post__body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.th-post__body li {
    margin-bottom: 8px;
}

.th-post__body a {
    color: var(--th-accent);
    text-decoration: underline;
}

.th-post__body blockquote {
    border-left: 3px solid var(--th-accent);
    margin: 28px 0;
    padding: 12px 20px;
    background: var(--th-bg-card);
    border-radius: 0 8px 8px 0;
    color: #e2e8f0;
    font-style: italic;
}

/* article-meta and article-category-badge (blog detail header extras) */
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.article-category-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--th-secondary);
    background: rgba(13, 148, 136, 0.10);
    border: 1px solid rgba(13, 148, 136, 0.22);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* ============================================================
   RELATED ARTICLES — th-related (blog detail)
   ============================================================ */
.th-related {
    background: var(--th-bg-alt);
    padding: 64px 0;
    border-top: 1px solid var(--th-border);
}

.th-related__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-related__title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 28px;
}

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

.th-related__card {
    background: var(--th-bg-card);
    border: 1px solid var(--th-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.th-related__card:hover {
    border-color: rgba(124, 58, 237, 0.4);
}

/* Related article thumbnail — MUST have object-fit + bounded height (<=300px) */
.th-related__thumb-link {
    display: block;
    overflow: hidden;
}

.th-related__thumb-link img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.th-related__thumb-link:hover img {
    transform: scale(1.04);
}

.th-related__card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    padding: 16px 20px;
    margin: 0;
    line-height: 1.4;
}

.th-related__card h3 a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s;
}

.th-related__card h3 a:hover {
    color: var(--th-accent);
    opacity: 1;
}

@media (max-width: 768px) {
    .th-related__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL PAGES — th-legal (privacy / terms / cookies)
   ============================================================ */
.th-legal {
    padding: var(--section-pad) 0 80px;
    background: var(--th-bg-dark);
}

.th-legal__inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
}

.th-legal-body {
    max-width: 840px;
    margin: 0 auto;
}

.th-legal-body__inner {
    color: var(--th-text-body);
    font-size: 16px;
    line-height: 1.75;
}

.th-legal-body__inner h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 12px;
}

.th-legal-body__inner h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin-top: 28px;
    margin-bottom: 10px;
}

.th-legal-body__inner p {
    margin-bottom: 16px;
}

.th-legal-body__inner ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.th-legal-body__inner li {
    margin-bottom: 6px;
}

.th-legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.th-legal-table th {
    background: var(--th-bg-card);
    color: #f1f5f9;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--th-border);
}

.th-legal-table td {
    padding: 10px 16px;
    color: var(--th-text-body);
    border: 1px solid var(--th-border);
    vertical-align: top;
    line-height: 1.55;
}

.th-legal-table tr:nth-child(even) td {
    background: var(--th-bg-alt);
}

/* ============================================================
   CONTACT PAGE COLUMN WRAPPERS
   (th-contact__form-col and th-contact__info-col are direct children of th-contact__grid)
   ============================================================ */
.th-contact__form-col {
    min-width: 0;
}

.th-contact__info-col {
    min-width: 0;
}

/* ============================================================
   DASHBOARD WRAP (auth/dashboard.html)
   ============================================================ */
.dashboard-wrap {
    display: flex;
    flex: 1;
    min-height: 100vh;
}

/* ============================================================
   BLOG READING WIDTH ALIAS — post-body
   Required by verify_site.py check_blog_reading_width
   Standards: standards/components/blog-article.md §0
   ============================================================ */
.post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--th-text-body);
}
