@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700&display=swap');

:root {
    --brand-primary: #4f46e5;
    --brand-dark: #1e1b4b;
    --brand-accent: #818cf8;

    /* Typography: 2 families, 1 scale */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-why-label: 'Plus Jakarta Sans', sans-serif;
    --text-xs: 0.75rem;      /* labels, overlines, micro */
    --text-sm: 0.875rem;     /* captions, secondary, small UI */
    --text-base: 1rem;       /* body */
    --text-lg: 1.125rem;     /* lead / emphasis */
    --text-xl: 1.25rem;      /* card titles, hero subtitle */
    --text-2xl: 1.5rem;      /* feature titles */
    --text-3xl: 1.875rem;    /* section subheads, CTA */
    --text-4xl: 2.25rem;     /* section headings */
    --text-hero: 2.25rem;
    --text-hero-lg: 3.75rem;
    --text-stat: 4.5rem;     /* hero stat e.g. ⅔ */

    --maxSize: 760px;
    --node: 170px;
    --ring: #e5e7eb;
    --muted: #6b7280;
    --accent: #4f46e5;
    --shadow: 0 12px 28px rgba(0,0,0,.08);
    --shadowHover: 0 20px 45px rgba(0,0,0,.14), 0 8px 20px rgba(79,70,229,.15);
    --hoverScale: 1.03;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: #ffffff;
    color: #18181b;
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

.cluble-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: var(--text-2xl);
    color: var(--brand-dark);
}

a.cluble-logo {
    text-decoration: none;
}

a.cluble-logo:hover,
a.cluble-logo:focus,
a.cluble-logo:visited {
    text-decoration: none;
    color: var(--brand-dark);
}

.logo-mark {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.logo-circle {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    border: 3px solid var(--brand-primary);
    border-radius: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 70%);
}

.logo-circle-inner {
    position: absolute;
    display: block;
    top: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    border: 3px solid var(--brand-accent);
    border-radius: 50%;
    clip-path: polygon(0 30%, 100% 30%, 100% 100%, 0 100%);
}

.glass-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.hero-headline {
    font-family: var(--font-display);
}

.gradient-text {
    color: var(--brand-dark);
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Flywheel */
.flywheel-wrap {
    position: relative;
    width: 100%;
    max-width: min(760px, 92vw);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.flywheel {
    --wheel: min(var(--maxSize), 92vw);
    --radius: calc((var(--wheel) / 2) - (var(--node) / 2) - 18px);

    position: absolute;
    inset: 0;
    width: var(--wheel);
    height: var(--wheel);
    margin: auto;
    isolation: isolate;
}

.flywheel::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--radius) * 2);
    height: calc(var(--radius) * 2);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--ring);
    background: radial-gradient(circle at center, rgba(0,0,0,.04), rgba(0,0,0,0) 62%);
    z-index: 0;
}

.flywheel::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--radius) * 2);
    height: calc(var(--radius) * 2);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    box-shadow: 0 0 0 10px rgba(79,70,229,.08), 0 0 0 22px rgba(79,70,229,.05);
    transition: opacity 220ms cubic-bezier(.2,.8,.2,1);
}

.flywheel:has(.flywheel-node:hover)::after,
.flywheel:has(.flywheel-node:focus-visible)::after {
    opacity: 1;
}

.flywheel .flywheel-node {
    position: absolute;
    width: var(--node);
    height: var(--node);
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ring);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    left: calc(50% + (var(--radius) * var(--x)));
    top: calc(50% + (var(--radius) * var(--y)));
    transform: translate(-50%, -50%);
    transform-origin: center;
    overflow: visible;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 240ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease;
    z-index: 2;
    outline: none;
}

.flywheel .flywheel-node .flywheel-content {
    padding: 18px;
    width: 100%;
    box-sizing: border-box;
}

.flywheel .flywheel-num {
    font-weight: 800;
    color: #9ca3af;
    margin-bottom: 8px;
    text-align: center;
}

.flywheel .flywheel-title {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--accent);
    font-size: var(--text-2xl);
    margin-bottom: 8px;
    text-align: center;
}

.flywheel .flywheel-desc {
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.25rem;
    max-width: 20ch;
    margin: 0 auto;
    text-align: center;
}

/* Popover callout: positioned by Floating UI (flip/shift) so it never goes offscreen */
.flywheel .flywheel-node .flywheel-popover {
    position: fixed;
    width: max-content;
    max-width: 280px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--ring);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(79,70,229,.08);
    font-size: var(--text-sm);
    line-height: 1.4;
    color: var(--muted);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 10;
}
/* Arrow when popover is below node */
.flywheel .flywheel-node .flywheel-popover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
    filter: drop-shadow(0 -1px 0 var(--ring));
}
.flywheel .flywheel-node .flywheel-popover[data-placement^="top"]::before {
    bottom: auto;
    top: 100%;
    border-bottom-color: transparent;
    border-top-color: #fff;
    filter: drop-shadow(0 1px 0 var(--ring));
}

.flywheel .flywheel-node:hover,
.flywheel .flywheel-node:focus-visible {
    transform: translate(-50%, -50%) scale(var(--hoverScale));
    border-color: rgba(79,70,229,.75);
    box-shadow: var(--shadowHover);
    z-index: 4;
}

.flywheel .flywheel-node:focus-visible {
    outline: 3px solid rgba(79,70,229,.35);
    outline-offset: 4px;
}

@media (max-width: 640px) {
    :root { --node: 140px; }
    .flywheel .flywheel-title { font-size: var(--text-lg); }
    .flywheel .flywheel-desc,
    .flywheel .flywheel-node .flywheel-popover { font-size: var(--text-xs); }
}

@media (prefers-reduced-motion: reduce) {
    .flywheel .flywheel-node,
    .flywheel::after,
    .flywheel .flywheel-node .flywheel-popover { transition: none !important; }
}

.section-tag {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.moat-pillar {
    border-top: 4px solid #f4f4f5;
    padding-top: 1.5rem;
    transition: border-color 0.3s ease;
}

.moat-pillar:hover {
    border-top-color: var(--brand-primary);
}

.moat-pillar-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.12);
    color: var(--brand-primary);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 800;
}

.moat-pillar-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: #27272a;
    margin: 0 0 0.5rem 0;
    text-wrap: balance;
}

.moat-pillar-lead {
    font-size: var(--text-sm);
    color: #52525b;
    line-height: 1.45;
    margin: 0 0 1rem 0;
    max-width: 28ch;
}

.highlight-box {
    background: #ffffff;
    border-radius: 0.75rem;
}

/* Focus visible for keyboard/screen reader users */
a:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    body { scroll-behavior: auto; }
    .glass-card:hover { transition: none; }
    .moat-pillar { transition: none; }
}

/* ========== Layout ========== */
.page { padding: 1rem; padding-top: 4rem; }
@media (min-width: 768px) { .page { padding: 2rem; padding-top: 4.5rem; } }

.container {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

.container-narrow {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.badge {
    padding: 0.5rem 1.25rem;
    border: 1px solid #e4e4e7;
    border-radius: 9999px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #52525b;
    background: #f4f4f5;
}

.header-inner {
    text-align: center;
    margin-bottom: 7rem;
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
@media (min-width: 1024px) { .hero-title { font-size: var(--text-hero-lg); } }

.hero-subtitle {
    font-size: var(--text-xl);
    color: #52525b;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.625;
    font-weight: 300;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Alternating section backgrounds for easier scanning */
.main-content > section {
    position: relative;
    padding-top: 4rem;
    padding-bottom: 4rem;
    z-index: 0;
}
.main-content > section::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    top: 0;
    bottom: 0;
    z-index: -1;
}
.main-content > section:nth-of-type(odd)::before {
    background: #ffffff;
}
.main-content > section:nth-of-type(even)::before {
    background: #f8fafc;
}
/* Defensibility / brand promise already has its own dark block; keep preceding stripe subtle */
.main-content > section.moat-space::before {
    background: #f1f5f9;
}
.main-content > section.section-flywheel::before {
    background: #ffffff;
}
.main-content > section.cta-section::before {
    background: #f8fafc;
}

.section-center { text-align: center; }

.section-heading {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.section-heading-sm {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: 2rem;
    text-wrap: balance;
}

/* Founder cards: 1 per row on small screens, 3 equal columns when there’s room */
.grid-team {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
    justify-items: center;
}
@media (min-width: 64rem) {
    .grid-team {
        grid-template-columns: repeat(3, 1fr);
        justify-items: stretch;
    }
}

.grid-team .glass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 22rem;
    box-sizing: border-box;
    height: 100%;
}
@media (min-width: 64rem) {
    .grid-team .glass-card {
        max-width: none;
        min-width: 0;
        align-items: center;
    }
}
.grid-team .glass-card:hover {
    transform: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}
/* Keep founder card content centered when stacked; left-align when 3-up */
.grid-team .glass-card.card-center { text-align: center; }
@media (min-width: 64rem) {
    .grid-team .glass-card.card-center { text-align: center; }
}

.grid-why {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

/* Why: three problem columns + AI callout + opportunity */
.why-problems {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .why-problems { grid-template-columns: repeat(3, 1fr); }
}
.why-problem {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e4e4e7;
}
@media (min-width: 768px) {
    .why-problem { border-bottom: none; border-right: 1px solid #e4e4e7; padding: 0 1.5rem; }
    .why-problem:last-child { border-right: none; }
}
.why-problem:last-of-type { border-bottom: none; }
.why-problem-label {
    display: block;
    font-family: var(--font-why-label);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
    text-wrap: balance;
}
.why-problem-stat {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.1;
    margin: 0 0 0.5rem 0;
}
.why-problem-lead {
    font-size: var(--text-lg);
    font-weight: 600;
    color: #27272a;
    margin: 0 0 0.25rem 0;
    line-height: 1.35;
    text-wrap: balance;
}
.why-problem-caption {
    font-size: var(--text-sm);
    color: #52525b;
    line-height: 1.5;
    margin: 0;
    text-wrap: balance;
}
.why-ai-callout {
    margin-bottom: 2rem;
    text-align: left;
}
.why-opportunity {
    padding-top: 0.5rem;
}
.why-opportunity-heading {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 1rem 0;
    line-height: 1.3;
    text-wrap: balance;
}
.why-opportunity-text {
    font-size: var(--text-base);
    line-height: 1.6;
    color: #3f3f46;
    margin: 0;
    text-wrap: balance;
}
@media (min-width: 640px) {
    .why-problem-stat { font-size: 3rem; }
}
@media (prefers-color-scheme: dark) {
    .why-problem { border-bottom-color: #3f3f46; border-right-color: #3f3f46; }
    .why-problem-stat { color: #fafafa; }
    .why-problem-lead { color: #fafafa; }
    .why-problem-caption { color: #a1a1aa; }
    .why-opportunity-heading { color: #fafafa; }
    .why-opportunity-text { color: #a1a1aa; }
}
html[data-theme="dark"] .why-problem { border-bottom-color: #3f3f46; border-right-color: #3f3f46; }
html[data-theme="dark"] .why-problem-stat { color: #fafafa; }
html[data-theme="dark"] .why-problem-lead { color: #fafafa; }
html[data-theme="dark"] .why-problem-caption { color: #a1a1aa; }
html[data-theme="dark"] .why-opportunity-heading { color: #fafafa; }
html[data-theme="dark"] .why-opportunity-text { color: #a1a1aa; }
.solution-head { margin-bottom: 2.5rem; }

.grid-solution {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .grid-solution { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}

.solution-card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 0 0.75rem 0.75rem 0;
    border-left: 4px solid var(--brand-primary);
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
}
.solution-card-2 { border-left-color: #059669; }
.solution-card-3 { border-left-color: #0ea5e9; }

/* Solution card icon: full-width flex container, span = circle, i = icon */
.solution-card-icon {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.solution-card-icon span {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(79, 70, 229, 0.12);
    color: var(--brand-primary);
}
.solution-card-2 .solution-card-icon span { background: rgba(5, 150, 105, 0.12); color: #059669; }
.solution-card-3 .solution-card-icon span { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }

.solution-card-icon i {
    font-size: 1.125rem;
    line-height: 0;
    display: block;
    color: inherit;
}

.solution-card-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #18181b;
    margin: 0;
    line-height: 1.3;
    text-wrap: balance;
}

.solution-card-lead {
    font-size: var(--text-sm);
    color: #52525b;
    line-height: 1.5;
    margin: 0;
}

.grid-moat {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) { .grid-moat { grid-template-columns: repeat(3, 1fr); } }

.grid-moat .moat-pillar {
    height: 100%;
    box-sizing: border-box;
}

.card-pad { padding: 2rem; }
@media (min-width: 768px) { .card-pad { padding: 2rem; text-align: left; } }
.card-pad-lg { padding: 2.5rem; }
.card-pad-xl { padding: 2.5rem; }
.card-flex { display: flex; flex-direction: column; gap: 1rem; }

.card-center { text-align: center; }
@media (min-width: 768px) { .card-center { text-align: left; } }

.team-headshot {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e4e4e7;
    margin: 0 auto 1.25rem;
    flex-shrink: 0;
}
@media (min-width: 64rem) {
    .grid-team .team-headshot { margin: 0 auto 1.25rem; }
}
.team-headshot img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 45%;
    display: block;
}
.team-headshot img.headshot-center {
    object-position: 18% 22%;
}

.team-name-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.25rem;
}
@media (min-width: 64rem) {
    .grid-team .team-name-row { justify-content: center; }
}

.team-linkedin {
    display: inline-flex;
    flex-shrink: 0;
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.team-linkedin:hover,
.team-linkedin:focus,
.team-linkedin:visited {
    text-decoration: none;
}
.team-linkedin:hover {
    color: #0a66c2;
}
.team-linkedin i {
    font-size: var(--text-xl);
}

.team-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.team-role { font-size: var(--text-xs); font-weight: 600; color: var(--brand-primary); margin-bottom: 1rem; text-transform: uppercase; }
.team-bio { font-size: var(--text-sm); color: #52525b; line-height: 1.625; margin: 0; }

.stat-big { font-family: var(--font-display); font-size: var(--text-stat); font-weight: 700; color: var(--brand-primary); }
.stat-caption { font-size: var(--text-lg); font-weight: 500; color: #27272a; margin-top: 1rem; line-height: 1.25; }

.flex-col-center { display: flex; flex-direction: column; align-items: center; }

.highlight-pad { padding: 2rem; }
.highlight-border { border: 1px solid rgba(79, 70, 229, 0.2); }
.body-text { color: #3f3f46; line-height: 1.625; font-size: var(--text-base); }
.body-text-muted { color: #52525b; line-height: 1.625; font-size: var(--text-base); }
.lead-in { font-weight: 700; color: var(--brand-primary); }

/* ---------- Who (VC-style audience section) ---------- */
.who-section {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0.5rem;
}
.who-lead {
    font-size: var(--text-lg);
    line-height: 1.5;
    color: #3f3f46;
    margin: 0 0 1.5rem 0;
    text-align: center;
}
.who-segments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.who-pill {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--brand-primary);
    background: rgba(79, 70, 229, 0.08);
    border-radius: 9999px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}
.who-want {
    font-size: var(--text-base);
    line-height: 1.6;
    color: #52525b;
    margin: 0 0 2.5rem 0;
    text-align: center;
    text-wrap: balance;
}
.who-insight {
    padding: 1.75rem 2rem;
    background: #f8fafc;
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 0.75rem 0.75rem 0;
    text-align: left;
}
.who-insight-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    margin: 0 0 0.5rem 0;
}
.who-insight-text {
    font-size: var(--text-lg);
    font-weight: 500;
    line-height: 1.45;
    color: #27272a;
    margin: 0;
}
@media (prefers-color-scheme: dark) {
    .who-lead { color: #a1a1aa; }
    .who-want { color: #a1a1aa; }
    .who-pill { color: var(--brand-accent); background: rgba(129, 140, 248, 0.15); border-color: rgba(129, 140, 248, 0.3); }
    .who-insight { background: #27272a; border-left-color: var(--brand-primary); }
    .who-insight-label { color: var(--brand-accent); }
    .who-insight-text { color: #fafafa; }
}
html[data-theme="dark"] .who-lead { color: #a1a1aa; }
html[data-theme="dark"] .who-want { color: #a1a1aa; }
html[data-theme="dark"] .who-pill { color: var(--brand-accent); background: rgba(129, 140, 248, 0.15); border-color: rgba(129, 140, 248, 0.3); }
html[data-theme="dark"] .who-insight { background: #27272a; border-left-color: var(--brand-primary); }
html[data-theme="dark"] .who-insight-label { color: var(--brand-accent); }
html[data-theme="dark"] .who-insight-text { color: #fafafa; }
html[data-theme="light"] .who-insight { background: #f8fafc; }

/* ---------- Structural Shift (two-panel infographic) ---------- */
.structural-shift-section {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.shift-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
}
@media (min-width: 768px) {
    .shift-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 0;
        align-items: stretch;
    }
}

.shift-panel {
    padding: 2rem 1.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e4e4e7;
    background: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
}
.shift-panel-decline {
    background: linear-gradient(to right, rgba(220, 38, 38, 0.04), transparent);
}
.shift-panel-opportunity {
    background: linear-gradient(to right, rgba(79, 70, 229, 0.06), transparent);
}
@media (min-width: 768px) {
    .shift-panel { padding: 2.25rem 2rem; }
}

.shift-label-icon-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.shift-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-block;
}
.shift-panel-decline .shift-label { color: #b91c1c; }
.shift-panel-opportunity .shift-label { color: var(--brand-primary); }

.shift-icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
}
.shift-icon-wrap .shift-icon-svg {
    flex-shrink: 0;
    display: block;
}
.shift-icon-decline {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}
.shift-icon-opportunity {
    background: rgba(79, 70, 229, 0.12);
    color: var(--brand-primary);
}

.shift-panel-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: #18181b;
    margin: 0;
    line-height: 1.5;
    padding-top: 0.05em;
    padding-bottom: 10px; /* room for descenders (e.g. g in "matching") */
    overflow: visible;
    flex-shrink: 0;
    display: block;
    text-wrap: balance;
}

.shift-panel-lead {
    font-size: var(--text-base);
    color: #3f3f46;
    line-height: 1.5;
    margin: 0;
}

.shift-stat-callout {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    align-self: center;
}
.shift-stat-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #b91c1c;
    line-height: 1;
}
.shift-stat-meta {
    font-size: var(--text-xs);
    color: #737373;
    font-weight: 500;
}

.shift-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: var(--text-base);
    color: #52525b;
    line-height: 1.55;
}
.shift-list li {
    margin-bottom: 0.5rem;
    padding: 0.35rem 0 0.35rem 1rem;
    position: relative;
    border-left: 3px solid transparent;
}
.shift-list li:last-child {
    margin-bottom: 0;
}
/* Colored accent bar per panel */
.shift-panel-decline .shift-list li {
    border-left-color: #dc2626;
    padding-left: 1rem;
}
.shift-panel-opportunity .shift-list li {
    border-left-color: var(--brand-primary);
    padding-left: 1rem;
}

.shift-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #a1a1aa;
    font-size: var(--text-xl);
}
.shift-connector-arrow {
    display: inline-block;
    transform: rotate(90deg); /* right arrow → down on mobile */
    transition: transform 0.4s ease;
}
@media (prefers-reduced-motion: reduce) {
    .shift-connector-arrow { transition: none; }
}
@media (min-width: 768px) {
    .shift-connector {
        padding: 0 1rem;
    }
    .shift-connector-arrow {
        transform: rotate(0deg);
    }
}

.moat-space { margin-top: 4rem; }

.moat-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}
.moat-list li {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2em 0.5em;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 4px;
}

.brand-promise-box {
    background: #fff;
    color: #18181b;
    border-radius: 0 0.75rem 0.75rem 0;
    border-left: 4px solid var(--brand-primary);
    padding: 2.5rem 2.75rem;
    margin-top: 4rem;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}
.brand-promise-label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.25em; color: var(--brand-primary); margin-bottom: 0.75rem; display: block; }
.brand-promise-title { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; margin: 0 0 0.75em 0; line-height: 1.2; text-wrap: balance; letter-spacing: -0.02em; color: #18181b; }
.brand-promise-text { font-size: var(--text-base); color: #52525b; margin: 0; font-weight: 400; line-height: 1.5; max-width: 34rem; }

.section-flywheel { padding-top: 3rem; padding-bottom: 3rem; }
.flywheel-head { text-align: center; margin-bottom: 4rem; }
.flywheel-head h2 { text-wrap: balance; }

.cta-section { padding-bottom: 8rem; margin-top: 2rem; }
.cta-divider { width: 4rem; height: 4px; background: #f4f4f5; margin-left: auto; margin-right: auto; margin-bottom: 3rem; }
.cta-title { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; margin-bottom: 2rem; text-wrap: balance; }
.cta-wrap { display: flex; justify-content: center; }

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #4f46e5;
    color: #fff;
    border-radius: 9999px;
    font-weight: 700;
    font-size: var(--text-sm);
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.15);
    text-decoration: none;
}
.cta-button:hover,
.cta-button:focus,
.cta-button:visited {
    background: #4338ca;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.25);
    text-decoration: none;
}
.cta-button:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* ---------- Breadcrumb progress nav (connected arrows) ---------- */
.breadcrumb-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    padding: 0.6rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 20px -5px rgba(0, 0, 0, 0.08), 0 20px 40px -10px rgba(0, 0, 0, 0.06);
}
.breadcrumb-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.65rem; /* offset so first segment (also -0.65rem) stays aligned */
}
/*
 * Arrow shape: front point uses 12% horizontal over 50% vertical (88%→100% at center).
 * Back V-notch uses the same angle: 12% inward to tip, so opening at 2%, tip at 14%.
 * All segments share the same width and margin so spacing is identical everywhere.
 */
.breadcrumb-segment-first {
    clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}
.breadcrumb-segment:not(.breadcrumb-segment-first) {
    clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 2% 100%, 14% 50%, 2% 0);
}
.breadcrumb-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    min-width: 7rem;
    max-width: 7rem;
    flex: 0 0 7rem;
    margin-left: -0.65rem;
    padding: 0.5rem 1rem 0.5rem 1.25rem;
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #71717a;
    background: #e4e4e7;
    transition: background 0.35s ease, color 0.2s ease;
    box-sizing: border-box;
}
.breadcrumb-segment:hover {
    background: #d4d4d8;
    color: #52525b;
}
.breadcrumb-segment-text {
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: -0.01em;
}
/* Filled = section visible or already passed; previous = dark primary, current = primary */
.breadcrumb-segment.filled {
    background: #4338ca;
    color: #fff;
}
.breadcrumb-segment.filled:hover {
    background: #4f46e5;
    color: #fff;
}
.breadcrumb-segment.filled[aria-current="true"] {
    background: #6366f1;
    color: #fff;
}
.breadcrumb-segment.filled[aria-current="true"]:hover {
    background: #818cf8;
    color: #fff;
}
.breadcrumb-segment.filled .breadcrumb-segment-text {
    color: #fff;
}
@media (max-width: 900px) {
    .breadcrumb-segment { width: 5.5rem; min-width: 5.5rem; max-width: 5.5rem; flex: 0 0 5.5rem; padding: 0.45rem 0.6rem 0.45rem 1rem; font-size: 0.65rem; }
    .breadcrumb-segment:not(.breadcrumb-segment-first) { margin-left: -0.65rem; }
}
@media (max-width: 600px) {
    .breadcrumb-inner { flex-wrap: wrap; justify-content: center; gap: 0.25rem; padding-left: 0; }
    .breadcrumb-segment,
    .breadcrumb-segment-first { clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%); margin-left: 0; width: 4rem; min-width: 4rem; max-width: 4rem; flex: 0 0 4rem; }
    .breadcrumb-segment-text { font-size: 0.6rem; }
}

.footer-inner { padding-top: 3rem; padding-bottom: 3rem; border-top: 1px solid #f4f4f5; text-align: center; }
.footer-text { color: #a1a1aa; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; }

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-top: 2rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e4e4e7;
    background: #f4f4f5;
    color: #52525b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-size: 1rem;
}
.theme-toggle-btn:hover {
    background: #e4e4e7;
    color: #27272a;
}
.theme-toggle-btn .theme-icon {
    display: none;
}
.theme-toggle-btn .theme-icon-dark { display: block; }
.theme-toggle-btn .theme-icon-light { display: none; }

.logo-focus:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-primary); }
.logo-focus { border-radius: 0.5rem; }

/* ---------- Dark theme (OS/device preference) ---------- */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #18181b;
        color: #fafafa;
    }
    .cluble-logo,
    a.cluble-logo:hover,
    a.cluble-logo:focus,
    a.cluble-logo:visited {
        color: #f4f4f5;
    }
    .badge {
        background: #27272a;
        border-color: #3f3f46;
        color: #a1a1aa;
    }
    .hero-subtitle { color: #a1a1aa; }
    .gradient-text {
        background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .main-content > section:nth-of-type(odd)::before { background: #18181b; }
    .main-content > section:nth-of-type(even)::before { background: #27272a; }
    .main-content > section.moat-space::before { background: #27272a; }
    .main-content > section.section-flywheel::before { background: #18181b; }
    .main-content > section.cta-section::before { background: #27272a; }
    .section-heading,
    .section-heading-sm,
    .flywheel-head h2 { color: #fafafa; }
    .glass-card {
        background: #27272a;
        border-color: #3f3f46;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    }
    .glass-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25); }
    .grid-team .glass-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25); }
    .team-headshot { background: #3f3f46; }
    .team-name { color: #fafafa; }
    .team-bio { color: #a1a1aa; }
    .team-linkedin { color: #a1a1aa; }
    .team-linkedin:hover { color: #60a5fa; }
    .stat-caption { color: #d4d4d8; }
    .highlight-box {
        background: #27272a;
        border-color: rgba(129, 140, 248, 0.3);
    }
    .highlight-border { border-color: rgba(129, 140, 248, 0.25); }
    .body-text { color: #d4d4d8; }
    .body-text-muted { color: #a1a1aa; }
    .shift-panel {
        background: #27272a;
        border-color: #3f3f46;
    }
    .shift-panel-decline { background: linear-gradient(to right, rgba(220, 38, 38, 0.15), transparent); }
    .shift-panel-opportunity { background: linear-gradient(to right, rgba(129, 140, 248, 0.12), transparent); }
    .shift-panel-title { color: #fafafa; }
    .shift-panel-lead { color: #a1a1aa; }
    .shift-list { color: #a1a1aa; }
    .shift-stat-callout {
        background: rgba(220, 38, 38, 0.15);
        border-color: rgba(220, 38, 38, 0.35);
    }
    .shift-stat-meta { color: #a1a1aa; }
    .moat-pillar-title { color: #fafafa; }
    .moat-pillar-lead { color: #a1a1aa; }
    .moat-pillar-num { background: rgba(129, 140, 248, 0.2); color: var(--brand-accent); }
    .solution-card { background: #27272a; border-color: #3f3f46; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
    .solution-card-2 { border-left-color: #10b981; }
    .solution-card-3 { border-left-color: #38bdf8; }
    .solution-card-icon span { background: rgba(129, 140, 248, 0.2); color: var(--brand-accent); }
    .solution-card-2 .solution-card-icon span { background: rgba(16, 185, 129, 0.2); color: #34d399; }
    .solution-card-3 .solution-card-icon span { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
    .solution-card-title { color: #fafafa; }
    .solution-card-lead { color: #a1a1aa; }
    .moat-pillar { border-top-color: #3f3f46; }
    .moat-pillar:hover { border-top-color: var(--brand-primary); }
    .brand-promise-box {
        background: #27272a;
        border-left-color: var(--brand-accent);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .brand-promise-label { color: var(--brand-accent); }
    .brand-promise-title { color: #fafafa; }
    .brand-promise-text { color: #a1a1aa; }
    .cta-divider { background: #3f3f46; }
    .cta-title { color: #fafafa; }
    .footer-inner { border-top-color: #3f3f46; }
    .footer-text { color: #71717a; }
    .breadcrumb-nav {
        background: rgba(24, 24, 27, 0.75);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 10px 20px -5px rgba(0, 0, 0, 0.25), 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    }
    .breadcrumb-segment {
        background: #3f3f46;
        color: #a1a1aa;
    }
    .breadcrumb-segment:hover {
        background: #52525b;
        color: #d4d4d8;
    }
    .flywheel::before {
        border-color: #3f3f46;
        background: radial-gradient(circle at center, rgba(255,255,255,.03), transparent 62%);
    }
    .flywheel .flywheel-node {
        background: #27272a;
        border-color: #3f3f46;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    }
    .flywheel .flywheel-num { color: #71717a; }
    .flywheel .flywheel-title { color: var(--brand-accent); }
    .flywheel .flywheel-desc { color: #a1a1aa; }
    .flywheel .flywheel-node .flywheel-popover { color: #a1a1aa; background: #27272a; border-color: #3f3f46; box-shadow: 0 10px 40px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.2); }
    .flywheel .flywheel-node .flywheel-popover::before { border-bottom-color: #27272a; filter: drop-shadow(0 -1px 0 #3f3f46); }
    .flywheel .flywheel-node .flywheel-popover[data-placement^="top"]::before { border-top-color: #27272a; filter: drop-shadow(0 1px 0 #3f3f46); }
    .logo-focus:focus-visible { box-shadow: 0 0 0 2px #18181b, 0 0 0 4px var(--brand-primary); }
}

/* Force dark when user selects Dark (any OS) */
html[data-theme="dark"] body { background-color: #18181b; color: #fafafa; }
html[data-theme="dark"] .cluble-logo,
html[data-theme="dark"] a.cluble-logo:hover,
html[data-theme="dark"] a.cluble-logo:focus,
html[data-theme="dark"] a.cluble-logo:visited { color: #f4f4f5; }
html[data-theme="dark"] .badge { background: #27272a; border-color: #3f3f46; color: #a1a1aa; }
html[data-theme="dark"] .hero-subtitle { color: #a1a1aa; }
html[data-theme="dark"] .gradient-text { background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
html[data-theme="dark"] .main-content > section:nth-of-type(odd)::before { background: #18181b; }
html[data-theme="dark"] .main-content > section:nth-of-type(even)::before { background: #27272a; }
html[data-theme="dark"] .main-content > section.moat-space::before { background: #27272a; }
html[data-theme="dark"] .main-content > section.section-flywheel::before { background: #18181b; }
html[data-theme="dark"] .main-content > section.cta-section::before { background: #27272a; }
html[data-theme="dark"] .section-heading,
html[data-theme="dark"] .section-heading-sm,
html[data-theme="dark"] .flywheel-head h2 { color: #fafafa; }
html[data-theme="dark"] .glass-card { background: #27272a; border-color: #3f3f46; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2); }
html[data-theme="dark"] .glass-card:hover,
html[data-theme="dark"] .grid-team .glass-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.25); }
html[data-theme="dark"] .team-headshot { background: #3f3f46; }
html[data-theme="dark"] .team-name { color: #fafafa; }
html[data-theme="dark"] .team-bio { color: #a1a1aa; }
html[data-theme="dark"] .team-linkedin { color: #a1a1aa; }
html[data-theme="dark"] .team-linkedin:hover { color: #60a5fa; }
html[data-theme="dark"] .stat-caption { color: #d4d4d8; }
html[data-theme="dark"] .highlight-box { background: #27272a; border-color: rgba(129,140,248,0.3); }
html[data-theme="dark"] .highlight-border { border-color: rgba(129,140,248,0.25); }
html[data-theme="dark"] .body-text { color: #d4d4d8; }
html[data-theme="dark"] .body-text-muted { color: #a1a1aa; }
html[data-theme="dark"] .shift-panel { background: #27272a; border-color: #3f3f46; }
html[data-theme="dark"] .shift-panel-decline { background: linear-gradient(to right, rgba(220,38,38,0.15), transparent); }
html[data-theme="dark"] .shift-panel-opportunity { background: linear-gradient(to right, rgba(129,140,248,0.12), transparent); }
html[data-theme="dark"] .shift-panel-title { color: #fafafa; }
html[data-theme="dark"] .shift-panel-lead { color: #a1a1aa; }
html[data-theme="dark"] .shift-list { color: #a1a1aa; }
html[data-theme="dark"] .shift-stat-callout { background: rgba(220,38,38,0.15); border-color: rgba(220,38,38,0.35); }
html[data-theme="dark"] .shift-stat-meta { color: #a1a1aa; }
html[data-theme="dark"] .moat-pillar-title { color: #fafafa; }
html[data-theme="dark"] .moat-pillar-lead { color: #a1a1aa; }
html[data-theme="dark"] .moat-pillar-num { background: rgba(129, 140, 248, 0.2); color: var(--brand-accent); }
html[data-theme="dark"] .solution-card { background: #27272a; border-color: #3f3f46; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
html[data-theme="dark"] .solution-card-2 { border-left-color: #10b981; }
html[data-theme="dark"] .solution-card-3 { border-left-color: #38bdf8; }
html[data-theme="dark"] .solution-card-icon span { background: rgba(129, 140, 248, 0.2); color: var(--brand-accent); }
html[data-theme="dark"] .solution-card-2 .solution-card-icon span { background: rgba(16, 185, 129, 0.2); color: #34d399; }
html[data-theme="dark"] .solution-card-3 .solution-card-icon span { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
html[data-theme="dark"] .solution-card-title { color: #fafafa; }
html[data-theme="dark"] .solution-card-lead { color: #a1a1aa; }
html[data-theme="dark"] .moat-pillar { border-top-color: #3f3f46; }
html[data-theme="dark"] .brand-promise-box { background: #27272a; border-left-color: var(--brand-accent); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
html[data-theme="dark"] .brand-promise-label { color: var(--brand-accent); }
html[data-theme="dark"] .brand-promise-title { color: #fafafa; }
html[data-theme="dark"] .brand-promise-text { color: #a1a1aa; }
html[data-theme="dark"] .cta-divider { background: #3f3f46; }
html[data-theme="dark"] .cta-title { color: #fafafa; }
html[data-theme="dark"] .footer-inner { border-top-color: #3f3f46; }
html[data-theme="dark"] .footer-text { color: #71717a; }
html[data-theme="dark"] .breadcrumb-nav { background: rgba(24,24,27,0.75); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2), 0 10px 20px -5px rgba(0,0,0,0.25), 0 20px 40px -10px rgba(0,0,0,0.2); }
html[data-theme="dark"] .breadcrumb-segment { background: #3f3f46; color: #a1a1aa; }
html[data-theme="dark"] .breadcrumb-segment:hover { background: #52525b; color: #d4d4d8; }
html[data-theme="dark"] .flywheel::before { border-color: #3f3f46; background: radial-gradient(circle at center, rgba(255,255,255,.03), transparent 62%); }
html[data-theme="dark"] .flywheel .flywheel-node { background: #27272a; border-color: #3f3f46; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2); }
html[data-theme="dark"] .flywheel .flywheel-num { color: #71717a; }
html[data-theme="dark"] .flywheel .flywheel-title { color: var(--brand-accent); }
html[data-theme="dark"] .flywheel .flywheel-desc { color: #a1a1aa; }
html[data-theme="dark"] .flywheel .flywheel-node .flywheel-popover { color: #a1a1aa; background: #27272a; border-color: #3f3f46; box-shadow: 0 10px 40px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.2); }
html[data-theme="dark"] .flywheel .flywheel-node .flywheel-popover::before { border-bottom-color: #27272a; filter: drop-shadow(0 -1px 0 #3f3f46); }
html[data-theme="dark"] .flywheel .flywheel-node .flywheel-popover[data-placement^="top"]::before { border-top-color: #27272a; filter: drop-shadow(0 1px 0 #3f3f46); }
html[data-theme="dark"] .logo-focus:focus-visible { box-shadow: 0 0 0 2px #18181b, 0 0 0 4px var(--brand-primary); }

/* Force light when user selects Light (any OS) */
html[data-theme="light"] body { background-color: #ffffff; color: #18181b; }
html[data-theme="light"] .cluble-logo,
html[data-theme="light"] a.cluble-logo:hover,
html[data-theme="light"] a.cluble-logo:focus,
html[data-theme="light"] a.cluble-logo:visited { color: var(--brand-dark); }
html[data-theme="light"] .badge { background: #f4f4f5; border-color: #e4e4e7; color: #52525b; }
html[data-theme="light"] .hero-subtitle { color: #52525b; }
html[data-theme="light"] .gradient-text { color: var(--brand-dark); background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
html[data-theme="light"] .main-content > section:nth-of-type(odd)::before { background: #ffffff; }
html[data-theme="light"] .main-content > section:nth-of-type(even)::before { background: #f8fafc; }
html[data-theme="light"] .main-content > section.moat-space::before { background: #f1f5f9; }
html[data-theme="light"] .main-content > section.section-flywheel::before { background: #ffffff; }
html[data-theme="light"] .main-content > section.cta-section::before { background: #f8fafc; }
html[data-theme="light"] .section-heading,
html[data-theme="light"] .section-heading-sm,
html[data-theme="light"] .flywheel-head h2 { color: #18181b; }
html[data-theme="light"] .glass-card { background: #ffffff; border-color: #e4e4e7; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
html[data-theme="light"] .glass-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08); }
html[data-theme="light"] .grid-team .glass-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08); }
html[data-theme="light"] .team-headshot { background: #e4e4e7; }
html[data-theme="light"] .team-name { color: #18181b; }
html[data-theme="light"] .team-bio { color: #52525b; }
html[data-theme="light"] .team-linkedin { color: #71717a; }
html[data-theme="light"] .team-linkedin:hover { color: #0a66c2; }
html[data-theme="light"] .stat-caption { color: #27272a; }
html[data-theme="light"] .highlight-box { background: #ffffff; }
html[data-theme="light"] .body-text { color: #3f3f46; }
html[data-theme="light"] .body-text-muted { color: #52525b; }
html[data-theme="light"] .shift-panel { background: #fff; border-color: #e4e4e7; }
html[data-theme="light"] .shift-panel-decline { background: linear-gradient(to right, rgba(220, 38, 38, 0.04), transparent); }
html[data-theme="light"] .shift-panel-opportunity { background: linear-gradient(to right, rgba(79, 70, 229, 0.06), transparent); }
html[data-theme="light"] .shift-panel-title { color: #18181b; }
html[data-theme="light"] .shift-panel-lead { color: #3f3f46; }
html[data-theme="light"] .shift-list { color: #52525b; }
html[data-theme="light"] .shift-stat-meta { color: #737373; }
html[data-theme="light"] .moat-pillar-title { color: #27272a; }
html[data-theme="light"] .moat-pillar-lead { color: #52525b; }
html[data-theme="light"] .solution-card { background: #fff; border-color: #e4e4e7; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
html[data-theme="light"] .solution-card-2 { border-left-color: #059669; }
html[data-theme="light"] .solution-card-3 { border-left-color: #0ea5e9; }
html[data-theme="light"] .solution-card-title { color: #18181b; }
html[data-theme="light"] .solution-card-lead { color: #52525b; }
html[data-theme="light"] .moat-pillar { border-top-color: #f4f4f5; }
html[data-theme="light"] .cta-divider { background: #f4f4f5; }
html[data-theme="light"] .cta-title { color: #18181b; }
html[data-theme="light"] .footer-inner { border-top-color: #f4f4f5; }
html[data-theme="light"] .footer-text { color: #a1a1aa; }
html[data-theme="light"] .breadcrumb-nav { background: rgba(255,255,255,0.35); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 20px -5px rgba(0,0,0,0.08), 0 20px 40px -10px rgba(0,0,0,0.06); }
html[data-theme="light"] .breadcrumb-segment { background: #e4e4e7; color: #71717a; }
html[data-theme="light"] .breadcrumb-segment:hover { background: #d4d4d8; color: #52525b; }
html[data-theme="light"] .flywheel .flywheel-node { background: #fff; border-color: var(--ring); box-shadow: var(--shadow); }
html[data-theme="light"] .flywheel .flywheel-num { color: #9ca3af; }
html[data-theme="light"] .flywheel .flywheel-title { color: var(--accent); }
html[data-theme="light"] .flywheel .flywheel-desc { color: #6b7280; }
html[data-theme="light"] .flywheel .flywheel-node .flywheel-popover { color: #6b7280; background: #fff; border-color: var(--ring); box-shadow: 0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(79,70,229,.08); }
html[data-theme="light"] .flywheel .flywheel-node .flywheel-popover::before { border-bottom-color: #fff; filter: drop-shadow(0 -1px 0 var(--ring)); }
html[data-theme="light"] .flywheel .flywheel-node .flywheel-popover[data-placement^="top"]::before { border-top-color: #fff; filter: drop-shadow(0 1px 0 var(--ring)); }
html[data-theme="light"] .logo-focus:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-primary); }
html[data-theme="light"] .brand-promise-box { background: #fff; border-left-color: var(--brand-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
html[data-theme="light"] .brand-promise-label { color: var(--brand-primary); }
html[data-theme="light"] .brand-promise-title { color: #18181b; }
html[data-theme="light"] .brand-promise-text { color: #52525b; }
html[data-theme="light"] .theme-toggle-btn { background: #f4f4f5; border-color: #e4e4e7; color: #71717a; }
html[data-theme="light"] .theme-toggle-btn:hover { background: #e4e4e7; color: #27272a; }

/* Theme toggle button styles when page is dark (OS or forced) */
@media (prefers-color-scheme: dark) {
    .theme-toggle-btn { background: #27272a; border-color: #3f3f46; color: #a1a1aa; }
    .theme-toggle-btn:hover { background: #3f3f46; color: #d4d4d8; }
}
html[data-theme="dark"] .theme-toggle-btn { background: #27272a; border-color: #3f3f46; color: #a1a1aa; }
html[data-theme="dark"] .theme-toggle-btn:hover { background: #3f3f46; color: #d4d4d8; }
