/* ====================================================================
 * TDB Design System — ts-* + tdb-* component library
 * Style: Trust & Authority · Navy + Orange · B2B SaaS
 * ==================================================================== */

/* ---------- Tokens (fallbacks; overridden by tdb-tokens.css if loaded) */
:root{
    --tdb-navy:var(--tdb-surface)
    --tdb-navy-soft:var(--tdb-raised)
    
    
    
    --tdb-border-strong:color-mix(in srgb, var(--tdb-line) 70%, var(--tdb-muted))
    
    --tdb-accent-soft:color-mix(in srgb, var(--tdb-accent) 14%, transparent)
    
    --tdb-cyan:var(--tdb-support)
    --tdb-card-bg:var(--tdb-surface)
    --tdb-card-bg-elevated:var(--tdb-raised)
}

/* =====================================================================
 *  CONTAINER + BREADCRUMB
 * ===================================================================== */
.ts-c {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 24px 80px;
    color: var(--tdb-text);
}

.ts-crumb {
    font-size: 13.5px;
    opacity: 0.72;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--tdb-text-muted);
}
.ts-crumb a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.ts-crumb a:hover { color: var(--tdb-accent); }
.ts-crumb span {
    opacity: 0.5;
    margin: 0 4px;
}

/* =====================================================================
 *  HERO
 * ===================================================================== */
.ts-hero {
    padding: 32px 0 56px;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.ts-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--tdb-accent);
    margin: 0 0 18px;
    display: inline-block;
}

/* H2 hero (was H1 before SEO conversion) */
.ts-hero h2,
.ts-hero h2.hero-display {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    color: var(--tdb-text);
    text-wrap: balance;
}
.ts-hero h2 em,
.ts-hero h2.hero-display em {
    color: var(--tdb-accent);
    font-style: normal;
    font-weight: 800;
}

.ts-sub {
    font-size: 18.5px;
    line-height: 1.55;
    max-width: 720px;
    margin: 0 auto 28px;
    opacity: 0.85;
    text-wrap: pretty;
}

.ts-hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* =====================================================================
 *  BUTTONS
 * ===================================================================== */
.ts-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    border: 1px solid transparent;
    line-height: 1.2;
    cursor: pointer;
}
.ts-btn-primary {
    background: var(--tdb-accent);
    color:var(--tdb-accent-ink);
}
.ts-btn-primary:hover {
    background: var(--tdb-accent);
    color:var(--tdb-accent-ink);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}
.ts-btn-secondary {
    background: transparent;
    color: var(--tdb-text);
    border-color: var(--tdb-border-strong);
}
.ts-btn-secondary:hover {
    border-color: var(--tdb-accent);
    color: var(--tdb-accent);
    text-decoration: none;
}

/* =====================================================================
 *  STATS GRID
 * ===================================================================== */
.ts-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 40px 0 56px;
}
.ts-stat {
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-radius: 12px;
    padding: 22px 16px;
    text-align: center;
}
.ts-stat-num {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--tdb-text);
    display: block;
    margin-bottom: 4px;
}
.ts-stat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tdb-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* =====================================================================
 *  TLDR (summary 3-up under hero)
 * ===================================================================== */
.ts-tldr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 12px 0 56px;
    padding: 24px;
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-radius: 14px;
}
.ts-tldr-item {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--tdb-text);
    padding-left: 22px;
    position: relative;
    opacity: 0.92;
}
.ts-tldr-item:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--tdb-success);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
}

/* =====================================================================
 *  SECTION + SECTION HEAD
 * ===================================================================== */
.ts-section {
    padding: 56px 0;
}
.ts-section-head {
    text-align: center;
    margin: 0 auto 36px;
    max-width: 760px;
}
.ts-section-head h2 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: var(--tdb-text);
    text-wrap: balance;
}
.ts-section-head .ts-sub {
    margin-bottom: 0;
}

/* =====================================================================
 *  DETAIL BLOCK (single column + 2-col split)
 * ===================================================================== */
.ts-detail {
    padding: 28px 0;
    margin: 8px 0;
}
.ts-detail-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 820px) {
    .ts-detail-split { grid-template-columns: 1fr; gap: 32px; }
}
.ts-detail-meta {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--tdb-accent);
    margin: 0 0 10px;
}
.ts-detail h3 {
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 14px;
    color: var(--tdb-text);
    letter-spacing: -0.015em;
}
.ts-detail p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--tdb-text);
    opacity: 0.88;
    margin: 0 0 16px;
}

/* =====================================================================
 *  FEATURE LIST (bullet with checkmark)
 * ===================================================================== */
.ts-feat-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}
.ts-feat-list li {
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    line-height: 1.55;
    color: var(--tdb-text);
    opacity: 0.92;
}
.ts-feat-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tdb-accent-soft);
    border: 1px solid var(--tdb-accent);
}
.ts-feat-list li:after {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 3px;
    color: var(--tdb-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

/* =====================================================================
 *  ILLUSTRATION container (for SVG)
 * ===================================================================== */
.ts-illu {
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-radius: 14px;
    padding: 18px;
    overflow: hidden;
}
.ts-illu svg {
    width: 100%;
    height: auto;
    display: block;
}

/* =====================================================================
 *  FLOW STEPS (numbered process row)
 * ===================================================================== */
.ts-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 36px;
}
.ts-flow-step {
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .25s;
}
.ts-flow-step:hover {
    border-color: var(--tdb-accent);
}
.ts-flow-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--tdb-accent);
    margin: 0;
    opacity: 0.85;
}
.ts-flow-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--tdb-accent-soft);
    color: var(--tdb-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ts-flow-icon svg { width: 22px; height: 22px; }
.ts-flow-name {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--tdb-text);
    margin: 4px 0 0;
    letter-spacing: -0.005em;
}
.ts-flow-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--tdb-text);
    opacity: 0.78;
    margin: 0;
}

/* =====================================================================
 *  FEATURE GRID (tiles)
 * ===================================================================== */
.ts-feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 32px 0;
}
.ts-feat-tile {
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: var(--tdb-text);
    transition: all .22s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.ts-link.ts-feat-tile,
.ts-feat-tile.ts-link {
    cursor: pointer;
}
.ts-link.ts-feat-tile:hover,
.ts-feat-tile.ts-link:hover {
    transform: translateY(-2px);
    border-color: var(--tdb-accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(37, 99, 235, 0.18) inset;
    color: var(--tdb-text);
    text-decoration: none;
}
.ts-feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--tdb-accent-soft);
    color: var(--tdb-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.ts-feat-icon svg { width: 22px; height: 22px; }
.ts-feat-tile h4 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: var(--tdb-text);
    letter-spacing: -0.005em;
}
.ts-feat-tile p {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--tdb-text);
    opacity: 0.78;
    margin: 0;
}
.ts-feat-link {
    margin-top: auto;
    padding-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tdb-accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ts-feat-link:after {
    content: "→";
    transition: transform .2s;
}
.ts-link:hover .ts-feat-link:after {
    transform: translateX(3px);
}

/* =====================================================================
 *  DIVIDER + BOTTOM CTA
 * ===================================================================== */
.ts-rule {
    border: 0;
    border-top: 1px solid var(--tdb-border);
    margin: 48px 0;
}

.ts-bottom {
    background: linear-gradient(135deg, color-mix(in srgb, var(--tdb-accent) 8%, transparent) 0%, color-mix(in srgb, var(--tdb-support) 5%, transparent) 100%);
    border: 1px solid var(--tdb-border);
    border-radius: 18px;
    padding: 48px 32px;
    text-align: center;
    margin: 56px 0 0;
}
.ts-bottom .ts-eyebrow {
    margin-bottom: 12px;
}
.ts-bottom h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
    color: var(--tdb-text);
    text-wrap: balance;
}

/* =====================================================================
 *  CROSS-SELL BOX
 * ===================================================================== */
.ts-xsell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-left: 4px solid var(--tdb-cyan);
    border-radius: 12px;
    padding: 22px 26px;
    margin: 40px 0;
}
@media (max-width: 720px) {
    .ts-xsell { grid-template-columns: 1fr; }
}
.ts-xsell-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--tdb-text);
    opacity: 0.9;
}

/* =====================================================================
 *  CODE BLOCKS + INLINE MONO
 * ===================================================================== */
.ts-mono,
code {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, Menlo, monospace;
    font-size: 0.92em;
    background: rgba(148, 163, 184, 0.12);
    color: var(--tdb-text);
    padding: 1px 6px;
    border-radius: 4px;
}
.ts-code,
pre.ts-code {
    background: color-mix(in srgb, var(--tdb-ground) 72%, transparent);
    border: 1px solid var(--tdb-border);
    border-radius: 10px;
    padding: 18px 20px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13.5px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
    color: var(--tdb-text);
    margin: 14px 0;
}
.ts-tk-com { color: var(--tdb-muted); font-style: italic; }
.ts-tk-tag { color: var(--tdb-support); }
.ts-tk-attr { color: var(--tdb-warning); }
.ts-tk-str { color: var(--tdb-success); }

/* =====================================================================
 *  LIGHT MODE PARITY
 *  (honour both [data-bs-theme="light"] on <html> and body.light-mode)
 * ===================================================================== */
[data-bs-theme="light"] {
    --tdb-text: var(--tdb-on-light);
    --tdb-text-muted: #475569;
    --tdb-border: color-mix(in srgb, var(--tdb-line) 10%, transparent);
    --tdb-border-strong: color-mix(in srgb, var(--tdb-line) 18%, transparent);
    --tdb-card-bg: #ffffff;
    --tdb-card-bg-elevated: #f8fafc;
    --tdb-accent-soft: color-mix(in srgb, var(--tdb-accent) 10%, transparent);
}
body.light-mode {
    --tdb-text: var(--tdb-on-light);
    --tdb-text-muted: #475569;
    --tdb-border: color-mix(in srgb, var(--tdb-line) 10%, transparent);
    --tdb-border-strong: color-mix(in srgb, var(--tdb-line) 18%, transparent);
    --tdb-card-bg: #ffffff;
    --tdb-card-bg-elevated: #f8fafc;
    --tdb-accent-soft: color-mix(in srgb, var(--tdb-accent) 10%, transparent);
}

[data-bs-theme="light"] .ts-c,
body.light-mode .ts-c { color: var(--tdb-text); }

[data-bs-theme="light"] .ts-stat,
[data-bs-theme="light"] .ts-tldr,
[data-bs-theme="light"] .ts-illu,
[data-bs-theme="light"] .ts-flow-step,
[data-bs-theme="light"] .ts-feat-tile,
[data-bs-theme="light"] .ts-xsell,
body.light-mode .ts-stat,
body.light-mode .ts-tldr,
body.light-mode .ts-illu,
body.light-mode .ts-flow-step,
body.light-mode .ts-feat-tile,
body.light-mode .ts-xsell {
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.03);
}

[data-bs-theme="light"] .ts-bottom,
body.light-mode .ts-bottom {
    background: linear-gradient(135deg, color-mix(in srgb, var(--tdb-accent) 5%, transparent) 0%, color-mix(in srgb, var(--tdb-support) 4%, transparent) 100%);
}

[data-bs-theme="light"] .ts-code,
body.light-mode .ts-code {
    background: #f1f5f9;
    color: var(--tdb-on-light);
    border-color: color-mix(in srgb, var(--tdb-line) 12%, transparent);
}

[data-bs-theme="light"] .ts-btn-secondary,
body.light-mode .ts-btn-secondary {
    color: var(--tdb-text);
    border-color: var(--tdb-border-strong);
}

/* =====================================================================
 *  RESTORE: ts2-hero-split-left h1 -> h2 (still needed)
 * ===================================================================== */
.ts2-hero-split-left h2.hero-display {
    font-size: clamp(34px, 4.4vw, 50px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--tdb-text);
    margin: 0 0 18px;
}
.ts2-page-header h2.hero-display {
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 18px;
    color: var(--tdb-text);
}
.ts2-hero-compact h2.hero-display {
    font-size: clamp(32px, 4.2vw, 46px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0 0 16px;
    color: var(--tdb-text);
}
.ts2-hero-split-left h2 em,
.ts2-page-header h2 em,
.ts2-hero-compact h2 em {
    color: var(--tdb-accent);
    font-style: normal;
}

/* =====================================================================
 *  HOMEPAGE path-selection cards mobile fix
 * ===================================================================== */
@media (max-width: 640px) {
    .tdb-paths { grid-template-columns: 1fr !important; gap: 14px !important; margin: 28px 0 20px !important; }
    .tdb-path { padding: 24px 20px !important; }
    .tdb-path-title { font-size: 22px !important; }
    .tdb-hero-lede { font-size: 16.5px !important; }
}
.ts2-hero.tdb-hero-paths + .ts2-trust { padding-top: 16px; }

/* =====================================================================
 *  MOTION + ACCESSIBILITY
 * ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    .ts-btn, .ts-feat-tile.ts-link, .ts-flow-step, .ts-feat-link:after, .tdb-path {
        transition: none !important;
    }
    .ts-btn-primary:hover, .ts-link.ts-feat-tile:hover, .tdb-path:hover {
        transform: none !important;
    }
}
body[data-perf-tier="saver"] .ts-btn-primary:hover,
body[data-perf-tier="saver"] .ts-feat-tile.ts-link:hover,
body[data-perf-tier="saver"] .tdb-path:hover {
    transform: none;
    box-shadow: none;
}

/* ====================================================================
 * SERVICES landing — ts2-fs-* design system
 * ==================================================================== */
.ts2-fs-catalog { margin: 32px 0 56px; }

.ts2-fs-tools {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 20px 0 32px; justify-content: center;
}
.ts2-fs-tool-chip {
    display: inline-flex; align-items: center;
    padding: 6px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    color: var(--tdb-text); background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border); line-height: 1.4;
}

.ts2-fs-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.ts2-fs-svc {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon name price" "icon body body";
    column-gap: 14px; row-gap: 4px;
    align-items: center;
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-radius: 12px; padding: 18px 20px;
    color: var(--tdb-text); text-decoration: none;
    transition: all .22s cubic-bezier(.4,0,.2,1);
}
.ts2-fs-svc:hover {
    transform: translateY(-2px);
    border-color: var(--tdb-accent);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    color: var(--tdb-text); text-decoration: none;
}
.ts2-fs-svc-icon {
    grid-area: icon; width: 40px; height: 40px;
    border-radius: 10px; background: var(--tdb-accent-soft);
    color: var(--tdb-accent);
    display: inline-flex; align-items: center; justify-content: center;
}
.ts2-fs-svc-icon svg { width: 22px; height: 22px; }
.ts2-fs-svc-cat {
    grid-area: name; font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--tdb-text-muted); line-height: 1;
}
.ts2-fs-svc-name {
    grid-area: name; font-size: 16px; font-weight: 700;
    color: var(--tdb-text); margin-top: 16px; line-height: 1.25;
}
.ts2-fs-svc-price {
    grid-area: price; font-size: 17px; font-weight: 800;
    color: var(--tdb-accent); white-space: nowrap;
}
.ts2-fs-svc-body {
    grid-area: body; font-size: 13.5px; line-height: 1.5;
    color: var(--tdb-text); opacity: 0.78;
}

.ts2-fs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px; margin: 32px 0;
}
.ts2-fs-stat {
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-radius: 12px; padding: 22px 16px; text-align: center;
}
.ts2-fs-stat-num {
    font-size: clamp(28px, 3vw, 36px); font-weight: 800;
    color: var(--tdb-text); display: block;
    line-height: 1; margin-bottom: 6px; letter-spacing: -0.015em;
}
.ts2-fs-stat-lbl {
    font-size: 12.5px; font-weight: 600;
    color: var(--tdb-text-muted); text-transform: uppercase;
    letter-spacing: 0.4px; display: block;
}

.ts2-fs-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px; margin: 32px 0;
}
.ts2-fs-step {
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-radius: 14px; padding: 22px 20px; position: relative;
}
.ts2-fs-step-num {
    position: absolute; top: 14px; right: 16px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--tdb-text-muted); opacity: 0.6;
}
.ts2-fs-step-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--tdb-accent-soft); color: var(--tdb-accent);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.ts2-fs-step-icon svg { width: 22px; height: 22px; }

.ts2-fs-ecu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px; margin: 24px 0;
}
.ts2-fs-ecu-card {
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-radius: 10px; padding: 14px 16px;
    display: flex; justify-content: space-between;
    align-items: center; gap: 8px;
    transition: border-color .2s;
}
.ts2-fs-ecu-card:hover { border-color: var(--tdb-accent); }
.ts2-fs-ecu-family {
    font-size: 14.5px; font-weight: 700;
    color: var(--tdb-text); letter-spacing: -0.005em;
}
.ts2-fs-ecu-count {
    font-size: 12px; font-weight: 700; color: var(--tdb-accent);
    background: var(--tdb-accent-soft);
    padding: 3px 8px; border-radius: 999px;
}

.ts2-fs-proof {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; color: var(--tdb-text); opacity: 0.85;
    margin: 12px 0; padding: 6px 14px;
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border); border-radius: 999px;
}
.ts2-fs-proof-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--tdb-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
    animation: ts2-fs-pulse 2.4s ease-in-out infinite;
}
@keyframes ts2-fs-pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.5; }
}
body[data-perf-tier="saver"] .ts2-fs-proof-dot { animation: none; }

.ts2-fs-cta-banner {
    background: linear-gradient(135deg, color-mix(in srgb, var(--tdb-accent) 10%, transparent) 0%, color-mix(in srgb, var(--tdb-support) 6%, transparent) 100%);
    border: 1px solid var(--tdb-border);
    border-radius: 16px; padding: 36px 32px;
    text-align: center; margin: 48px 0 0;
}

/* ====================================================================
 * FAQ — ts2-faq-* design system
 * ==================================================================== */
.ts2-faq-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px; margin: 32px 0; align-items: start;
}
@media (max-width: 860px) {
    .ts2-faq-layout { grid-template-columns: 1fr; }
}

.ts2-faq-sidebar {
    position: sticky; top: 100px;
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-radius: 14px; padding: 22px 20px;
}
.ts2-faq-sidebar-h {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--tdb-text-muted); margin: 0 0 14px;
}
.ts2-faq-sidebar a {
    display: block; padding: 8px 0;
    color: var(--tdb-text); text-decoration: none; font-size: 14.5px;
    border-bottom: 1px solid var(--tdb-border);
    transition: color .2s, padding-left .2s;
}
.ts2-faq-sidebar a:last-child { border-bottom: 0; }
.ts2-faq-sidebar a:hover {
    color: var(--tdb-accent); padding-left: 4px; text-decoration: none;
}

.ts2-faq-search { margin-bottom: 28px; }
.ts2-faq-search input,
.ts2-faq-search input[type="search"] {
    width: 100%; padding: 12px 16px;
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border); border-radius: 10px;
    color: var(--tdb-text); font-size: 15px; outline: none;
    transition: border-color .2s;
}
.ts2-faq-search input:focus { border-color: var(--tdb-accent); }

.ts2-faq-grid { display: grid; gap: 10px; margin-bottom: 32px; }

.ts2-faq-cat-block { margin-bottom: 28px; }
.ts2-faq-cat-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; margin-bottom: 14px;
    border-bottom: 1px solid var(--tdb-border);
}
.ts2-faq-cat-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--tdb-accent-soft); color: var(--tdb-accent);
    display: inline-flex; align-items: center; justify-content: center;
}
.ts2-faq-cat-icon svg { width: 20px; height: 20px; }
.ts2-faq-cat-name {
    font-size: 18px; font-weight: 700;
    color: var(--tdb-text); margin: 0; flex: 1;
}
.ts2-faq-cat-count {
    font-size: 12.5px; font-weight: 700; color: var(--tdb-accent);
    background: var(--tdb-accent-soft);
    padding: 3px 10px; border-radius: 999px;
}

.ts2-faq-q {
    background: var(--tdb-card-bg);
    border: 1px solid var(--tdb-border);
    border-radius: 10px; padding: 0; overflow: hidden;
    transition: border-color .2s;
}
.ts2-faq-q[open] { border-color: var(--tdb-accent); }
.ts2-faq-q > summary {
    cursor: pointer; list-style: none;
    padding: 16px 44px 16px 20px;
    font-size: 15.5px; font-weight: 600;
    color: var(--tdb-text); line-height: 1.45;
    position: relative; transition: color .2s;
}
.ts2-faq-q > summary::-webkit-details-marker { display: none; }
.ts2-faq-q > summary:after {
    content: "+"; position: absolute;
    right: 18px; top: 50%; transform: translateY(-50%);
    font-size: 22px; font-weight: 400;
    color: var(--tdb-accent); line-height: 1;
    transition: transform .2s;
}
.ts2-faq-q[open] > summary:after { content: "\2212"; }
.ts2-faq-q > summary:hover { color: var(--tdb-accent); }
.ts2-faq-q > *:not(summary) {
    padding: 0 22px 18px; font-size: 14.5px;
    line-height: 1.65; color: var(--tdb-text); opacity: 0.85;
}

/* ====================================================================
 * PRICING TIER TAB — ts2-features-tier
 * ==================================================================== */
.ts2-features-tier {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 10px;
}
.ts2-features-tier li {
    padding-left: 26px; position: relative;
    font-size: 14.5px; line-height: 1.5;
    color: var(--tdb-text); opacity: 0.92;
}
.ts2-features-tier li:before {
    content: "\2713"; position: absolute;
    left: 0; top: 0;
    color: var(--tdb-success); font-weight: 700;
}
.ts2-features-tier[hidden] { display: none; }

/* ====================================================================
 * Footer payment-method chips — tdb-pay
 * Renders the title="..." attribute as a small uppercase chip.
 * ==================================================================== */
.tdb-pay {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.tdb-pay__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid color-mix(in srgb, var(--tdb-line) 22%, transparent);
    font-size: 9.5px;
    font-weight: 700;
    color: color-mix(in srgb, var(--tdb-text) 78%, transparent);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: border-color .2s, color .2s;
}
.tdb-pay__logo::before {
    content: attr(title);
}
.tdb-pay__logo:hover {
    border-color: var(--tdb-accent);
    color: var(--tdb-text);
}
/* Brand-tint individual cards just enough to be recognisable */
.tdb-pay__logo.visa { color: #1a1f71; background: #f7faff; border-color: #d2dfee; }
.tdb-pay__logo.mc { color: #ff5f00; background: #fffaf5; border-color: #f3d5b4; }
.tdb-pay__logo.stripe { color: #635bff; background: #f5f4ff; border-color: #d6d2ff; }
.tdb-pay__logo.googlepay { color: #1a73e8; background: #f4f8ff; border-color: #cfe0fa; }
.tdb-pay__logo.applepay { color: #000; background: #fff; border-color: #d4d4d8; }

[data-bs-theme="light"] .tdb-pay__logo,
body.light-mode .tdb-pay__logo {
    background: color-mix(in srgb, var(--tdb-band) 4%, transparent);
    border-color: color-mix(in srgb, var(--tdb-line) 10%, transparent);
    color: var(--tdb-text-muted);
}
[data-bs-theme="light"] .tdb-pay__logo.visa,
body.light-mode .tdb-pay__logo.visa { color: #1a1f71; background: #f7faff; border-color: #d2dfee; }
[data-bs-theme="light"] .tdb-pay__logo.mc,
body.light-mode .tdb-pay__logo.mc { color: #ff5f00; background: #fffaf5; border-color: #f3d5b4; }
[data-bs-theme="light"] .tdb-pay__logo.stripe,
body.light-mode .tdb-pay__logo.stripe { color: #635bff; background: #f5f4ff; border-color: #d6d2ff; }
[data-bs-theme="light"] .tdb-pay__logo.googlepay,
body.light-mode .tdb-pay__logo.googlepay { color: #1a73e8; background: #f4f8ff; border-color: #cfe0fa; }
[data-bs-theme="light"] .tdb-pay__logo.applepay,
body.light-mode .tdb-pay__logo.applepay { color: #000; background: #fff; border-color: #d4d4d8; }

/* ====================================================================
 * Homepage path-card modifier accents
 * ==================================================================== */
.tdb-path-b2b .tdb-path-icon { color: var(--tdb-accent); background: var(--tdb-accent-soft); }
.tdb-path-b2c .tdb-path-icon { color: var(--tdb-cyan); background: color-mix(in srgb, var(--tdb-support) 14%, transparent); }
.tdb-path-b2c .tdb-path-eyebrow { color: var(--tdb-cyan); }
.tdb-path-b2c .tdb-path-cta { color: var(--tdb-cyan); }
.tdb-path-b2c .tdb-path-bullets li:before { color: var(--tdb-cyan); }
.tdb-path-b2c:hover { border-color: var(--tdb-cyan); box-shadow: 0 12px 40px rgba(34, 211, 238, 0.18); }

/* ====================================================================
 * Misc product-page custom blocks (TunerSuite product)
 * Lightweight fallbacks so empty BEM elements aren't naked.
 * ==================================================================== */
.tdb-hero-lb,
.tdb-hero--tuning {
    /* These are heavily inline-styled product page blocks; only ensure
       they retain the dark surface tint if their inline background fails. */
}

/* ====================================================================
 * Sticky on-page WhatsApp / Tawk floats — ensure z-index above content
 * ==================================================================== */
#tdb-wa-float, #tdb-exit-overlay {
    z-index: 9999;
}

/* ====================================================================
 * Bootstrap-style fallback for tab-pane on my-account
 * ==================================================================== */
.tdb-tab-pane { display: none; }
.tdb-tab-pane.active,
.tdb-tab-pane.show.active,
.tdb-tab-pane[aria-hidden="false"] { display: block; }
.tdb-tab-pane.fade {
    opacity: 0;
    transition: opacity .15s linear;
}
.tdb-tab-pane.fade.show.active,
.tdb-tab-pane.fade.active { opacity: 1; }

/* Safe defaults for product-page BEM blocks that rely heavily on inline CSS.
   Prevents a fully-naked block on cache-bust regression. */
.tdb-hero-lb,
.tdb-hero--tuning,
.tdb-hero__visual-frame {
    color: inherit;
}
