/* ============================================================
   SusuFlex — Phase 0 polish (2026-06-10)
   Loaded after light-theme-patch.css.
   1. Content must never be invisible (no-JS / failed-JS safety)
   2. Reduced-motion support for reveal animations
   3. Hero headline legibility over the gradient shader
   4. Mobile-only elements stay mobile-only
   5. Footer newsletter overflow guard
   6. Brand gradient aligned with the app (blue → cyan)
   7. SVG icon + initials-avatar system (emoji replacement)
   ============================================================ */

/* ── 1. If JS never runs, nothing may stay hidden ── */
html:not(.js) .reveal,
html:not(.js) .reveal-stagger,
html:not(.js) .reveal-scale,
html:not(.js) .reveal-left,
html:not(.js) .reveal-right,
html:not(.js) .fade-in {
    opacity: 1 !important;
    transform: none !important;
}

/* ── 2. Reduced motion: show content immediately, no movement ── */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-stagger,
    .reveal-scale,
    .reveal-left,
    .reveal-right,
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ── 3. Hero headline: guaranteed legibility over the shader gradient ── */
.hero .headline-massive {
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35), 0 8px 32px rgba(15, 23, 42, 0.35);
}

/* ── 4. The sticky CTA is a mobile pattern — never on desktop ── */
@media (min-width: 768px) {
    .mobile-sticky-cta {
        display: none !important;
    }
}

/* ── 5. Newsletter form: wrap instead of clipping at narrow desktop widths ── */
.newsletter-form {
    flex-wrap: wrap;
}

/* ── 6. One brand gradient: blue → cyan (matches the app's primaryGradient) ── */
:root {
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
}

/* ── 7a. Inline SVG icons (Lucide-style, stroke = currentColor) ── */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* ── 7b. Initials avatars (replace emoji faces) ── */
.avi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-style: normal;
}
.avi-1 { background: linear-gradient(135deg, #2563EB, #0EA5E9); }
.avi-2 { background: linear-gradient(135deg, #10B981, #34D399); }
.avi-3 { background: linear-gradient(135deg, #8B5CF6, #A855F7); }
.avi-4 { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.avi-5 { background: linear-gradient(135deg, #EC4899, #F472B6); }

/* Team avatars: real photo (founder) or initials, filling the circle */
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.team-avatar.avi {
    font-size: 1.6rem;
}
.team-avatar .icon {
    width: 1.2em;
    height: 1.2em;
}

/* Members in the app-mock card and flow diagrams are emoji-sized;
   give letter avatars a proportional size inside those containers. */
.member.avi,
.seg-who.avi {
    font-size: 0.72em;
    width: 1.9em;
    height: 1.9em;
}
.member-node .avi {
    font-size: 0.78em;
    width: 1.8em;
    height: 1.8em;
    margin-bottom: 2px;
}

/* Success checks in the app mock */
.payment-icon .icon {
    color: #10B981;
}

/* ============================================================
   Phase 1 — product-forward showcase + display typography
   ============================================================ */

/* ── ContainerScroll tablet + app slideshow ── */
.ts-section {
    position: relative;
    height: 240vh;
    background: #050505;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
}
.ts-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    perspective: 1000px;
    overflow: hidden;
}
.ts-header { text-align: center; margin-bottom: 1.5rem; will-change: transform; }
.ts-eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: #94A3B8; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
}
.ts-title-sm { margin: 0.9rem 0 0; color: #CBD5E1; font-size: 1.4rem; }
.ts-title-lg {
    margin: 0; color: #fff; font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05;
}
.ts-card-frame {
    width: min(64rem, 94vw);
    height: 40rem;
    border: 4px solid #6C6C6C;
    border-radius: 30px;
    background: #222;
    padding: 1.4rem;
    will-change: transform;
    box-shadow: 0 0 #0000004d, 0 9px 20px #0000004a, 0 37px 37px #00000042,
        0 84px 50px #00000026, 0 149px 60px #0000000a, 0 233px 65px #00000003;
}
.ts-screen {
    position: relative; height: 100%; width: 100%;
    border-radius: 1rem; overflow: hidden; background: #0A0F1E;
}
.ts-slide {
    position: absolute; inset: 0; display: flex;
    opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
}
.ts-slide.is-active { opacity: 1; pointer-events: auto; }
.ts-side {
    width: 190px; flex: none; background: #070B16;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.2rem 0.85rem; display: flex; flex-direction: column; gap: 0.35rem;
}
.ts-side-logo {
    display: flex; align-items: center; gap: 0.5rem;
    color: #F8FAFC; font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem;
}
.ts-side-logo .icon { color: #38BDF8; }
.ts-nav-item {
    display: flex; align-items: center; gap: 0.6rem;
    color: #94A3B8; font-size: 0.82rem; font-weight: 500;
    padding: 0.5rem 0.65rem; border-radius: 0.55rem;
}
.ts-nav-item.is-active { background: rgba(37, 99, 235, 0.2); color: #fff; }
.ts-side-foot {
    margin-top: auto; display: flex; align-items: center; gap: 0.55rem;
    color: #CBD5E1; font-size: 0.8rem;
}
.ts-user { width: 1.8rem; height: 1.8rem; font-size: 0.75rem; }
.ts-body {
    flex: 1; padding: 1.3rem 1.5rem; display: flex; flex-direction: column;
    gap: 0.9rem; min-width: 0;
}
.ts-rowline { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.ts-h { margin: 0; color: #F8FAFC; font-size: 1.25rem; font-weight: 700; }
.ts-h2 { margin: 0; color: #E2E8F0; font-size: 0.92rem; font-weight: 600; display: flex; align-items: center; gap: 0.45rem; }
.ts-sub { margin: 0; color: #64748B; font-size: 0.8rem; }
.ts-sub2 { color: #64748B; font-size: 0.74rem; }
.ts-num { margin: 0.15rem 0 0; color: #F8FAFC; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.ts-teal { color: #2DD4BF; }
.ts-green { color: #34D399; }
.ts-red { margin: 0; color: #F87171; font-size: 0.74rem; font-weight: 600; }
.ts-right { text-align: right; margin-left: auto; }
.ts-card {
    background: #101729; border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.9rem; padding: 0.95rem 1.05rem;
}
.ts-grow { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; min-height: 0; }
.ts-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.ts-delta { display: inline-flex; align-items: center; gap: 0.3rem; color: #34D399; font-size: 0.74rem; font-weight: 600; }
.ts-chart { width: 100%; flex: 1; min-height: 0; }
.ts-live { display: inline-flex; align-items: center; gap: 0.4rem; color: #34D399; font-size: 0.76rem; font-weight: 600; }
.ts-live-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #34D399; }
.ts-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: rgba(255, 255, 255, 0.07); color: #CBD5E1;
    border-radius: 9999px; padding: 0.28rem 0.7rem; font-size: 0.72rem; font-weight: 600;
}
.ts-chip--teal { background: rgba(45, 212, 191, 0.16); color: #2DD4BF; }
.ts-chip--cta { background: rgba(37, 99, 235, 0.3); color: #fff; }
.ts-kpis { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ts-circles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.ts-circles .ts-card { display: flex; flex-direction: column; gap: 0.7rem; }
.ts-badge-teal {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: rgba(45, 212, 191, 0.15); color: #2DD4BF;
    border-radius: 9999px; padding: 0.25rem 0.65rem; font-size: 0.7rem; font-weight: 700;
}
.ts-avirow { display: flex; align-items: center; }
.ts-avirow .avi { width: 1.7rem; height: 1.7rem; font-size: 0.68rem; border: 2px solid #101729; margin-right: -0.45rem; }
.ts-more { margin-left: 0.8rem; color: #64748B; font-size: 0.72rem; }
.ts-progress { height: 0.45rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ts-progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563EB, #38BDF8); }
.ts-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; flex: 1; min-height: 0; }
.ts-vcenter { align-items: center; }
.ts-gaugewrap { display: flex; align-items: center; justify-content: center; }
.ts-gauge { width: min(15rem, 100%); }
.ts-rules { display: flex; flex-direction: column; gap: 0.7rem; color: #CBD5E1; font-size: 0.84rem; }
.ts-rule { display: flex; align-items: center; gap: 0.6rem; }
.ts-pill {
    display: inline-flex; justify-content: center; min-width: 2.4rem;
    border-radius: 9999px; padding: 0.18rem 0.5rem; font-size: 0.74rem; font-weight: 700;
}
.ts-pill--green { background: rgba(52, 211, 153, 0.16); color: #34D399; }
.ts-pill--amber { background: rgba(251, 191, 36, 0.16); color: #FBBF24; }
.ts-pill--red { background: rgba(248, 113, 113, 0.16); color: #F87171; }
.ts-calstrip { display: flex; gap: 0.55rem; }
.ts-day {
    flex: 1; text-align: center; color: #94A3B8; font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05); border-radius: 0.7rem; padding: 0.5rem 0;
}
.ts-day b { display: block; color: #E2E8F0; font-size: 0.95rem; }
.ts-day.is-active { background: rgba(37, 99, 235, 0.35); color: #DBEAFE; }
.ts-bill { display: flex; align-items: center; gap: 0.8rem; }
.ts-bill-ic {
    width: 2.2rem; height: 2.2rem; flex: none; border-radius: 0.6rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(37, 99, 235, 0.18); color: #93C5FD;
}
.ts-bill-ic--red { background: rgba(248, 113, 113, 0.18); color: #F87171; }
.ts-bill-ic--green { background: rgba(52, 211, 153, 0.16); color: #34D399; }
.ts-urgent { display: flex; align-items: center; gap: 0.8rem; background: #3B1212; border-color: rgba(248, 113, 113, 0.35); }
.ts-payout {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; gap: 0.5rem;
}
.ts-payout-ring {
    width: 3.6rem; height: 3.6rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.25), rgba(56, 189, 248, 0.25));
    border: 1px solid rgba(94, 234, 212, 0.4); color: #5EEAD4; font-size: 1.4rem;
}
.ts-payout-title { font-size: 1.5rem; }
.ts-payout-amount {
    margin: 0; font-size: 3.4rem; font-weight: 800; letter-spacing: -0.03em;
    background: linear-gradient(90deg, #5EEAD4, #38BDF8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ts-claim {
    display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem;
    background: #2DD4BF; color: #04221F; font-weight: 700; font-size: 0.9rem;
    border-radius: 9999px; padding: 0.65rem 1.6rem;
}
.ts-confetti { position: absolute; width: 0.5rem; height: 0.5rem; border-radius: 2px; opacity: 0.85; }
.ts-confetti--1 { top: 18%; left: 24%; background: #5EEAD4; transform: rotate(20deg); }
.ts-confetti--2 { top: 26%; right: 20%; background: #8B5CF6; transform: rotate(-15deg); }
.ts-confetti--3 { bottom: 24%; left: 32%; background: #FBBF24; transform: rotate(40deg); }
.ts-confetti--4 { bottom: 30%; right: 28%; background: #38BDF8; transform: rotate(-30deg); }
.ts-quick { display: flex; gap: 0.5rem; }
.ts-qa {
    display: inline-flex; flex-direction: column; align-items: center; gap: 0.3rem;
    background: rgba(255, 255, 255, 0.06); color: #CBD5E1;
    border-radius: 0.7rem; padding: 0.55rem 0.9rem; font-size: 0.68rem; font-weight: 600;
}
.ts-qa .icon { color: #38BDF8; }
.ts-dots {
    position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.45rem; z-index: 5;
}
.ts-dot {
    width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 0; padding: 0;
    background: rgba(255, 255, 255, 0.25); cursor: pointer;
}
.ts-dot.is-active { background: #38BDF8; }
@media (max-width: 900px) {
    .ts-card-frame { height: 30rem; padding: 0.6rem; }
    .ts-side { width: 56px; padding: 0.9rem 0.5rem; align-items: center; }
    .ts-nav-item span, .ts-side-logo, .ts-side-foot span:last-child { display: none; }
    .ts-side-logo { display: none; }
    .ts-stats, .ts-circles, .ts-twocol { grid-template-columns: 1fr; }
    .ts-body { padding: 0.9rem; overflow: hidden; }
    .ts-section { height: 200vh; }
}
@media (prefers-reduced-motion: reduce) {
    .ts-slide { transition: none; }
}

/* ============================================================
   Phase 3 — Woven Light hero (Three.js particle weave)
   ============================================================ */
.hero-weave {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
}
.hero-weave__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-weave__canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-weave__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 52rem;
}
/* soft vignette so copy stays readable over the particle field */
.hero-weave__content::before {
    content: "";
    position: absolute;
    inset: -18% -30%;
    z-index: -1;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6) 30%, transparent 72%);
    filter: blur(8px);
    pointer-events: none;
}
.hero-weave__title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    margin: 0;
    letter-spacing: normal;
}
.hw-w {
    display: inline-block;
    white-space: nowrap;
}
.hw-c {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    /* One continuous SusuFlex gradient spanning the whole headline: a measuring
       script (hero-title-gradient.js) sets --x = each glyph's horizontal offset
       and --w = the total text width, so the brand colours read as a single
       flowing sheet across "Woven by Trust" rather than per-letter repeats.
       Aurora-harmonised cyan -> blue -> indigo -> violet -> fuchsia spectrum.
       Falls back to a 200% per-letter gradient until the script runs. */
    background-image: linear-gradient(90deg, #22D3EE, #3B82F6, #6366F1, #8B5CF6, #A855F7, #D946EF, #A855F7, #8B5CF6, #6366F1, #3B82F6, #22D3EE);
    background-repeat: repeat-x;
    /* Taller-than-line-box + vertically centred so the gradient covers glyph
       descenders (the "y"/"g" tails) — a 100% height clips them under text-clip.
       Horizontal gradient, so vertical size doesn't change the colours. */
    background-size: var(--w, 200%) 240%;
    background-position: calc(-1 * var(--x, 0px)) center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Static premium gradient: animating background-position on background-clip:text
       forces a full repaint of every glyph each frame (x12) — too heavy alongside the
       WebGL hero, it pinned constrained renderers. Keep the continuous look, drop the
       continuous repaint. */
    animation: hwChar 1.2s cubic-bezier(0.2, 0.65, 0.3, 0.9) forwards;
    animation-delay: calc(0.7s + var(--i) * 0.1s);
}
.hero-weave__sub {
    margin: 1.5rem auto 0;
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #CBD5E1;
    opacity: 0;
    animation: hwFade 1.2s ease forwards;
    animation-delay: 2.4s;
}
.hero-weave__cta-row {
    margin-top: 2.5rem;
    opacity: 0;
    animation: hwFade 1s ease forwards;
    animation-delay: 3s;
}
.hero-weave__cta {
    color: #fff !important;
    padding: 0.85rem 2.1rem;
    font-weight: 600;
    font-size: 1rem;
}
@keyframes hwChar {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hwFade {
    to { opacity: 1; }
}
@keyframes hwFlow {
    to { background-position-x: calc(-1 * var(--x, 0px) - var(--w, 200%)); }
}
/* Particle-text headline (hero-particles.js): a canvas over the hero that draws
   "Woven by Trust" as interactive brand-gradient particles. Active on desktop+mouse
   only; when on, the CSS gradient glyphs go transparent but stay in the DOM for
   layout + screen readers (so it degrades to the gradient headline everywhere else). */
.hw-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: block; }
.hw-particles-on .hero-weave__title .hw-c {
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    background: none !important;
}
@media (prefers-reduced-motion: reduce) {
    .hw-c,
    .hero-weave__sub,
    .hero-weave__cta-row {
        animation: none;
        opacity: 1;
        transform: none;
    }
    /* the measured continuous gradient stays as a static single sheet */
}

/* ── Display typeface: Geist over Inter body ── */
h1,
h2,
.section-title,
.headline-massive,
.headline-large,
.section-heading-dark,
.explainer-heading,
.example-heading,
.money-flow-title,
.timeline-title,
.cta-content h2,
.section-header h2 {
    font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.02em;
}

/* ── FlexGuide robot stage (Spline) ── */
.robot-stage {
    position: relative;
    height: 100vh;
    background: #050507;
    overflow: hidden;
}
.robot-stage__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.robot-stage__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(4rem, 10vh, 7rem) 1.5rem 0;
    text-align: center;
    color: #fff;
    pointer-events: none;
}
.robot-stage__title {
    margin: 0.8rem 0 0;
    color: #fff;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.robot-stage__sub {
    margin: 0.6rem 0 0;
    color: #A5B4C8;
    font-size: 1rem;
}
.robot-stage__loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #94A3B8;
    font-size: 0.9rem;
}
.robot-stage__spin {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #38BDF8;
    animation: robotSpin 0.8s linear infinite;
}
@keyframes robotSpin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .robot-stage { height: auto; padding: 5rem 1rem; }
    .robot-stage__canvas, .robot-stage__loader { display: none; }
    .robot-stage__overlay { position: relative; padding-top: 0; }
}

/* ── FlexGuide ask panel (morphing AI input under the robot) ── */
@property --ai-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
.color-orb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex: none;
    overflow: hidden;
    position: relative;
    background:
        conic-gradient(from calc(var(--ai-angle) * 2) at 25% 70%, #c084fc, transparent 20% 80%, #c084fc),
        conic-gradient(from calc(var(--ai-angle) * 2) at 45% 75%, #67e8f9, transparent 30% 60%, #67e8f9),
        conic-gradient(from calc(var(--ai-angle) * -3) at 80% 20%, #f9a8d4, transparent 40% 60%, #f9a8d4),
        conic-gradient(from var(--ai-angle) at 20% 80%, #f9a8d4, transparent 10% 90%, #f9a8d4),
        conic-gradient(from calc(var(--ai-angle) * -2) at 85% 10%, #a5b4fc, transparent 20% 80%, #a5b4fc),
        #0e1322;
    filter: blur(1.5px) contrast(1.4) saturate(1.4);
    animation: aiOrbSpin 20s linear infinite;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.35);
}
.color-orb--sm {
    width: 20px;
    height: 20px;
}
@keyframes aiOrbSpin {
    to { --ai-angle: 360deg; }
}
.ai-dock {
    position: absolute;
    left: 50%;
    bottom: 2.6rem;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    justify-content: center;
}
.ai-panel {
    width: 168px;
    height: 44px;
    border-radius: 22px;
    background: rgba(11, 15, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    position: relative;
    transition:
        width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        height 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-radius 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.is-open .ai-panel {
    width: min(360px, 92vw);
    height: 212px;
    border-radius: 14px;
}
.has-answer .ai-panel {
    height: 332px;
}
.ai-pill {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: none;
    border: 0;
    color: #E2E8F0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease;
}
.is-open .ai-pill {
    opacity: 0;
    pointer-events: none;
}
.ai-form {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0.7rem 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease 0.12s;
}
.is-open .ai-form {
    opacity: 1;
    pointer-events: auto;
}
.ai-form-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.2rem 0.45rem;
}
.ai-form-title {
    color: #F1F5F9;
    font-size: 0.86rem;
    font-weight: 600;
    flex: 1;
    text-align: left;
}
.ai-submit {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}
.ai-submit kbd {
    color: #CBD5E1;
    font-size: 0.68rem;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.05);
}
.ai-form textarea {
    flex: 1;
    width: 100%;
    resize: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #F1F5F9;
    font: inherit;
    font-size: 0.88rem;
    padding: 0.65rem 0.8rem;
    outline: 0;
}
.ai-form textarea::placeholder {
    color: #64748B;
}
.ai-form textarea:focus {
    border-color: rgba(56, 189, 248, 0.55);
}
.ai-answer {
    margin-top: 0.55rem;
    max-height: 116px;
    overflow-y: auto;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    color: #DBEAFE;
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: left;
}
.ai-answer a {
    color: #5EEAD4;
    text-decoration: underline;
}
.ai-answer.is-thinking::after {
    content: "FlexGuide is thinking6";
    color: #64748B;
    animation: aiPulse 0.9s ease-in-out infinite alternate;
}
@keyframes aiPulse {
    from { opacity: 0.45; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .color-orb { animation: none; }
    .ai-panel { transition: none; }
    .ai-answer.is-thinking::after { animation: none; }
}

/* ============================================================
   DotField stage — interactive dot grid (js/dot-field.js)
   Replaces the features section content; the glass capsule
   glides over it. Empty by design for now.
   ============================================================ */
.dot-stage {
    position: relative;
    /* !important: light-theme-patch forces .features transparent */
    background: #050816 !important;
    overflow: hidden;
    padding: 6rem 0;
}
.dot-stage__bg {
    position: absolute;
    inset: 0;
}
.dot-stage__inner {
    position: relative;
}

/* ============================================================
   ROSCA world map (js/world-map.js) — replaces What is a Susu
   ============================================================ */
.world-rosca {
    /* !important: light-theme-patch forces .susu-explainer transparent */
    background: #000 !important;
    padding: 6rem 0 5rem;
}
.wr-head {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 2.5rem;
}
.wr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #7DD3FC;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.wr-title {
    margin: 0.9rem 0 1rem;
    color: #fff;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
}
.wr-grad {
    background: linear-gradient(90deg, #5EEAD4, #38BDF8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wr-sub {
    margin: 0;
    color: #CBD5E1;
    font-size: 1.02rem;
    line-height: 1.65;
}
.wr-sub strong { color: #F8FAFC; }
.wr-wrap { position: relative; }
.wr-map {
    position: relative;
    aspect-ratio: 2 / 1;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #050816;
}
.wr-dots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, white 10%, white 90%, transparent);
    mask-image: linear-gradient(to bottom, transparent, white 10%, white 90%, transparent);
}
.wr-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.wr-arc {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: wrDraw 9s ease-in-out infinite;
}
@keyframes wrDraw {
    0% { stroke-dashoffset: 1; }
    12% { stroke-dashoffset: 1; }
    48% { stroke-dashoffset: 0; }
    82% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 1; }
}
.is-paused .wr-arc { animation-play-state: paused; }
.is-reduced .wr-arc { animation: none; stroke-dashoffset: 0; }
.wr-node { cursor: pointer; }
.wr-node:focus-visible { outline: 2px solid #38BDF8; outline-offset: 2px; }
.wr-node__core,
.wr-label {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.25s ease;
}
.wr-node:hover .wr-node__core,
.wr-node.is-active .wr-node__core { transform: scale(1.6); }
.wr-label__bg {
    fill: rgba(5, 8, 22, 0.92);
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 0.6;
}
.wr-node.is-active .wr-label__bg { stroke: #38BDF8; }
.wr-label__text {
    fill: #E2E8F0;
    font-size: 9px;
    font-weight: 600;
    font-family: inherit;
}
.wr-info {
    background: rgba(5, 8, 22, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    margin-top: 1rem;
}
@media (min-width: 768px) {
    .wr-info {
        position: absolute;
        left: 1.1rem;
        bottom: 1.1rem;
        max-width: 330px;
        margin-top: 0;
    }
}
.wr-info__region {
    color: #7DD3FC;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.wr-info__name {
    margin: 0.3rem 0 0.45rem;
    color: #F8FAFC;
    font-size: 1.35rem;
    font-weight: 800;
}
.wr-info__blurb {
    margin: 0 0 0.7rem;
    color: #CBD5E1;
    font-size: 0.88rem;
    line-height: 1.55;
}
.wr-info__stat {
    display: inline-flex;
    background: rgba(45, 212, 191, 0.14);
    color: #5EEAD4;
    border-radius: 9999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.74rem;
    font-weight: 700;
}

/* ============================================================
   CPU architecture — trusted tech feeding the SusuFlex die
   ============================================================ */
.cpu-section {
    /* !important: light-theme-patch forces partner sections transparent */
    background: #050505 !important;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) !important;
    background-size: 22px 22px !important;
    padding: 4.5rem 0 5rem;
}
.cpu-head { text-align: center; margin-bottom: 2rem; }
.cpu-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94A3B8;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.cpu-stage {
    max-width: 1060px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    background: #0A0A0F;
    padding: 1.5rem;
}
.cpu-svg { display: block; width: 100%; height: auto; }
.cpu-trace {
    stroke-dashoffset: 100;
    animation: cpuDraw 1.1s cubic-bezier(0.25, 0.1, 0.5, 1) forwards;
}
@keyframes cpuDraw { to { stroke-dashoffset: 0; } }
.cpu-l {
    offset-rotate: 0deg;
    offset-distance: 0%;
}
@keyframes cpuTravel {
    0% { offset-distance: 0%; opacity: 0; }
    8% { opacity: 1; }
    62% { offset-distance: 100%; opacity: 1; }
    68% { opacity: 0; }
    100% { offset-distance: 100%; opacity: 0; }
}
.cpu-l-stripe {
    offset-path: path('M 28 24 v 19 q 0 5 5 5 h 55');
    animation: cpuTravel 4.2s linear 0.0s infinite;
}
.cpu-l-firebase {
    offset-path: path('M 40 55 h 48');
    animation: cpuTravel 3.6s linear 0.6s infinite;
}
.cpu-l-google {
    offset-path: path('M 28 86 v -19 q 0 -5 5 -5 h 55');
    animation: cpuTravel 4.6s linear 1.1s infinite;
}
.cpu-l-ssl {
    offset-path: path('M 192 24 v 19 q 0 5 -5 5 h -55');
    animation: cpuTravel 4.0s linear 0.3s infinite;
}
.cpu-l-pci {
    offset-path: path('M 176 55 h -44');
    animation: cpuTravel 3.4s linear 0.9s infinite;
}
.cpu-l-vanta {
    offset-path: path('M 192 86 v -19 q 0 -5 -5 -5 h -55');
    animation: cpuTravel 4.8s linear 1.4s infinite;
}
.is-paused .cpu-l { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .cpu-trace { animation: none; stroke-dashoffset: 0; }
    .cpu-l { animation: none; opacity: 0; }
}

/* ── Water ripple background (js/water-ripple.js) ── */
.dot-stage__bg canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.ripple-fallback {
    background: url('../images/ripple-bg.webp') center / cover no-repeat;
}
.ripple-fallback::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
}

/* ── Consolidated trust + CTA on the water stage (liquid glass) ── */
.ws-head {
    max-width: 46rem;
    margin: 0 auto 2rem;
    padding: 2rem 2.2rem;
    text-align: center;
    color: #0F172A;
}
.ws-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #155E75;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.ws-title {
    margin: 0.7rem 0 0.6rem;
    color: #0F172A;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
}
.ws-sub {
    margin: 0;
    color: #1E293B;
    font-size: 1.02rem;
}
.ws-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    max-width: 70rem;
    margin: 0 auto;
}
.ws-card {
    padding: 1.5rem 1.5rem 1.4rem;
}
.ws-card .trust-pillar-title { color: #0F172A; }
.ws-card .trust-pillar-text { color: #1E293B; margin: 0.8rem 0 0; }
.ws-row {
    display: flex;
    justify-content: center;
    margin: 2rem 0 3.5rem;
}
.ws-cta {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    text-align: center;
    color: #0F172A;
}
.ws-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
}
.ws-counter .counter-text { color: #0F172A !important; font-size: 0.9rem; }
.ws-cta-title {
    margin: 1.1rem 0 0.7rem;
    color: #0F172A !important;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
}
.ws-cta-sub {
    margin: 0 auto 1.6rem;
    max-width: 38rem;
    color: #1E293B !important;
}
.ws-cta .waitlist-row input {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: #0F172A;
}
.ws-note {
    margin-top: 0.9rem;
    color: #334155 !important;
    opacity: 1 !important;
    font-size: 0.85rem;
}
@media (max-width: 900px) {
    .ws-grid { grid-template-columns: 1fr; max-width: 30rem; }
    .ws-cta { padding: 2.2rem 1.3rem; }
}

/* ── Water-stage panels: identical to the original glass capsule ── */
.ws-head,
.ws-card,
.ws-cta {
    border-radius: 9999px !important;
    background: transparent !important;
}
.ws-head { padding: 2.6rem 4rem; }
.ws-card { padding: 2rem 2.8rem; }
.ws-cta { padding: 3.4rem 4rem; }
/* light halo keeps dark copy readable on pure transparent glass */
.ws-head, .ws-card, .ws-cta {
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.55), 0 0 2px rgba(255, 255, 255, 0.6);
}
/* nested glass loses its tint inside a backdrop-filtered parent —
   buttons and badges inside the panels get solid fills instead */
.dot-stage .btn-primary {
    background: rgba(37, 99, 235, 0.92) !important;
    text-shadow: none;
}
.dot-stage .btn-primary::before { display: none; }
.dot-stage .btn-outline-amber {
    background: rgba(245, 158, 11, 0.85) !important;
    color: #1F2937 !important;
    text-shadow: none;
}
.dot-stage .btn-outline-amber::before { display: none; }
.ws-counter { background: rgba(255, 255, 255, 0.82); text-shadow: none; }
.ws-counter .counter-text strong { color: #0F172A !important; }
.ws-cta .waitlist-row input { text-shadow: none; }
@media (max-width: 900px) {
    .ws-head { padding: 2rem 1.8rem; }
    .ws-card { padding: 1.7rem 1.6rem; }
    .ws-cta { padding: 2.4rem 1.5rem; }
}

/* ── SusuFlex Card scanner stream (js/card-stream.js) ── */
.cs-section {
    /* vertical bridge: robot bg (#050507) at top -> footer black at bottom,
       so the section blends into both neighbors with no hard edge */
    background: linear-gradient(180deg, #050507 0%, #020205 28%, #000 100%);
    padding: 4.5rem 0 5rem;
    overflow: hidden;
}
.cs-head { text-align: center; margin-bottom: 2.2rem; }
.cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #A5B4FC;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.cs-title {
    margin: 0.7rem 0 0;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
}
.cs-stage {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.cs-sparks {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.cs-scanline {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 110%;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    background: linear-gradient(to bottom, transparent, #8B5CF6, transparent);
    box-shadow: 0 0 10px #A78BFA, 0 0 20px #A78BFA, 0 0 30px #8B5CF6, 0 0 50px #6366F1;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    pointer-events: none;
    animation: csPulse 1.5s infinite alternate ease-in-out;
}
.cs-scanline.is-on { opacity: 1; }
@keyframes csPulse {
    from { transform: translate(-50%, -50%) scaleY(1); }
    to { transform: translate(-50%, -50%) scaleY(1.04); }
}
.cs-track {
    display: flex;
    align-items: center;
    gap: 60px;
    height: 100%;
    will-change: transform;
}
.cs-card {
    position: relative;
    width: 400px;
    height: 250px;
    flex: none;
}
.cs-normal {
    position: absolute;
    inset: 0;
    z-index: 2;
    clip-path: inset(0 0 0 var(--clip-right, 0%));
}
.cs-normal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    filter: brightness(1.08) contrast(1.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.cs-ascii {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 15px;
    clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
}
.cs-ascii pre {
    margin: 0;
    width: 100%;
    height: 100%;
    color: rgba(220, 210, 255, 0.6);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    line-height: 13px;
    white-space: pre;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.2));
    mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.2));
    animation: csGlitch 0.1s infinite linear alternate-reverse;
}
@keyframes csGlitch {
    0%, 16%, 50%, 100% { opacity: 1; }
    15%, 99% { opacity: 0.9; }
    49% { opacity: 0.8; }
}
.cs-stage.is-reduced .cs-track { justify-content: center; }
.cs-stage.is-reduced .cs-ascii,
.cs-stage.is-reduced .cs-scanline,
.cs-stage.is-reduced .cs-sparks { display: none; }
@media (prefers-reduced-motion: reduce) {
    .cs-ascii pre { animation: none; }
    .cs-scanline { animation: none; }
}
@media (max-width: 700px) {
    .cs-stage { height: 180px; }
    .cs-card { width: 288px; height: 180px; }
    .cs-track { gap: 36px; }
}

/* ── Footer: black (blends with the card section above) ── */
.footer { background: #000 !important; }

/* ── Homepage is dark end-to-end: black body so no white shows through
   sub-pixel gaps between dark sections (e.g. card scanner -> footer).
   Scoped to the homepage (only it has the weave hero) so light
   subpages keep their white body. ── */
body:has(.hero-weave) { background: #000 !important; }

/* ── Robot dropped: FlexGuide section is now a clean centered band ── */
.robot-stage {
    height: auto !important;
    min-height: 0 !important;
    padding: 5.5rem 1.5rem 6rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.robot-stage__canvas,
.robot-stage__loader { display: none !important; }
.robot-stage__overlay {
    position: relative !important;
    inset: auto !important;
    padding: 0 !important;
    max-width: 40rem;
}
.ai-dock {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-top: 2.25rem;
}

/* ── FlexGuide suggestion chips ── */
.ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.7rem;
}
.ai-chip {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #CBD5E1;
    border-radius: 9999px;
    padding: 0.34rem 0.7rem;
    font: inherit;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.ai-chip:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.4);
    color: #E0F2FE;
}
.ai-chip:focus-visible {
    outline: 2px solid #38BDF8;
    outline-offset: 2px;
}

/* ============================================================
   Live money-flow telemetry (js/money-flow.js) — #live-flow
   ============================================================ */
.mf-section {
    /* bridge: map section (#050816) above -> cpu dots (#050505) below */
    background: linear-gradient(180deg, #050816 0%, #04060E 45%, #050505 100%) !important;
    padding: 5.5rem 0 5rem;
}
.mf-head {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 2.6rem;
}
.mf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #86EFAC;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.mf-live-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
    animation: mfPulse 1.8s ease-out infinite;
}
@keyframes mfPulse {
    70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.mf-title {
    margin: 0.9rem 0 1rem;
    color: #fff;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
}
.mf-grad {
    background: linear-gradient(90deg, #5EEAD4, #38BDF8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mf-sub {
    margin: 0;
    color: #94A3B8;
    font-size: 1.02rem;
    line-height: 1.65;
}
.mf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 64rem;
    margin: 0 auto;
}
.mf-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    text-align: left;
    background: rgba(10, 17, 31, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1.1rem !important;
    padding: 1.4rem 1.5rem;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.mf-card:hover,
.mf-card.is-active {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.45) !important;
}
.mf-card--hot:hover,
.mf-card--hot.is-active {
    border-color: rgba(251, 191, 36, 0.5) !important;
}
.mf-card:focus-visible {
    outline: 2px solid #38BDF8;
    outline-offset: 3px;
}
.mf-label {
    color: #7C8CA5;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.mf-value {
    color: #F8FAFC;
    font-weight: 800;
    font-size: clamp(1.35rem, 2.6vw, 2.05rem);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.mf-card--hot .mf-value { color: #FCD34D; }
.mf-rate {
    display: inline-flex;
    gap: 0.3rem;
    background: rgba(45, 212, 191, 0.12);
    color: #5EEAD4;
    border-radius: 9999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
}
.mf-card--hot .mf-rate {
    background: rgba(251, 191, 36, 0.12);
    color: #FCD34D;
}
.mf-rate em { font-style: normal; opacity: 0.65; font-weight: 600; }
.mf-flow {
    max-width: 64rem;
    margin: 1.6rem auto 0;
}
.mf-flow-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
}
.mf-flow-title {
    color: #CBD5E1;
    font-size: 0.92rem;
    font-weight: 700;
}
.mf-session {
    color: #64748B;
    font-size: 0.78rem;
}
.mf-session strong {
    color: #5EEAD4;
    font-variant-numeric: tabular-nums;
}
.mf-session em { font-style: normal; opacity: 0.7; }
.mf-bar {
    display: flex;
    height: 3rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.mf-seg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: filter 0.25s ease;
}
.mf-seg span {
    position: relative;
    z-index: 1;
    color: rgba(2, 6, 23, 0.85);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.mf-seg--offline {
    background: linear-gradient(90deg, #B45309, #F59E0B 55%, #FCD34D);
}
.mf-seg--digital {
    background: linear-gradient(90deg, #0D9488, #2DD4BF);
}
.mf-seg--digital span { color: #02201C; }
.mf-seg--offline::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: mfSweep 3.2s linear infinite;
}
@keyframes mfSweep {
    to { transform: translateX(100%); }
}
.mf-seg.is-lit,
.mf-seg:hover {
    filter: brightness(1.18);
}
.mf-seg:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}
.mf-caption {
    margin: 0.85rem 0 0;
    min-height: 2.6em;
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}
.mf-caption strong { color: #E2E8F0; }
.mf-note {
    margin: 2.2rem auto 0;
    max-width: 40rem;
    text-align: center;
    color: #475569;
    font-size: 0.72rem;
    line-height: 1.6;
}
@media (max-width: 860px) {
    .mf-grid { grid-template-columns: 1fr; max-width: 30rem; }
    .mf-seg--digital span { display: none; }
    .mf-flow-head { flex-direction: column; gap: 0.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mf-live-dot { animation: none; }
    .mf-seg--offline::after { animation: none; display: none; }
    .mf-card, .mf-card:hover, .mf-card.is-active { transform: none; transition: none; }
}

/* ============================================================
   TABLET CHARTS — synthesized "Terminal precision +" (Phase 4)
   Stretch fix in markup: viewBox + preserveAspectRatio="xMidYMid
   meet" + vector-effect="non-scaling-stroke" on every stroke.
   Animations key on ".ts-slide.is-active <sel>" so they re-trigger
   each time tablet-scroll.js toggles .is-active.
   ============================================================ */
.tp-chart { width: 100%; height: 100%; flex: 1; min-height: 0; display: block; overflow: visible; }
.tp-chart text { font-family: ui-monospace,'SF Mono',Menlo,Consolas,monospace; }
.tp-grid line { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.tp-axis      { stroke: rgba(255,255,255,0.12); stroke-width: 1; }
.tp-grid text { letter-spacing: 0.02em; }

/* resting / no-JS / pre-active = final, fully visible */
.tp-area  { opacity: 1; }
.tp-line, .tp-line-glow { stroke-dasharray: 1; stroke-dashoffset: 0; }
.tp-point, .tp-callout, .tp-xlab { opacity: 1; }
.tp-bar   { transform: scaleY(1); transform-box: fill-box; transform-origin: 50% 100%; }
.tp-point-pulse { transform-box: fill-box; transform-origin: center; opacity: 0; }

/* entrance — only while the slide is active (re-fires on re-show) */
.ts-slide.is-active .tp-line {
    stroke-dashoffset: 1;
    animation: tpDraw 1.15s cubic-bezier(.22,.61,.36,1) forwards;
}
.ts-slide.is-active .tp-line-glow {
    stroke-dashoffset: 1;
    animation: tpDraw 1.25s cubic-bezier(.22,.61,.36,1) forwards;
}
.ts-slide.is-active .tp-area    { opacity: 0; animation: tpFade .9s ease .25s forwards; }
.ts-slide.is-active .tp-xlab    { opacity: 0; animation: tpFade .5s ease .7s  forwards; }
.ts-slide.is-active .tp-grid,
.ts-slide.is-active .tp-axis    { opacity: 0; animation: tpFade .4s ease       forwards; }
.ts-slide.is-active .tp-point {
    opacity: 0; transform-box: fill-box; transform-origin: center;
    animation: tpPop .45s cubic-bezier(.34,1.56,.64,1) 1s forwards;
}
.ts-slide.is-active .tp-callout {
    opacity: 0; transform: translateY(4px);
    animation: tpRise .45s ease 1.1s forwards;
}
.ts-slide.is-active .tp-point-pulse {
    animation: tpPulse 2.4s ease-out 1.2s infinite;
}
.ts-slide.is-active .tp-bar {
    transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%;
    animation: tpGrow .6s cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: calc(.15s + var(--i) * .09s);
}
.ts-slide.is-active .tp-bar--now { filter: drop-shadow(0 0 5px rgba(94,234,212,0.45)); }

@keyframes tpDraw { to { stroke-dashoffset: 0; } }
@keyframes tpFade { to { opacity: 1; } }
@keyframes tpPop  { 0% { opacity: 0; transform: scale(.2); } 100% { opacity: 1; transform: scale(1); } }
@keyframes tpRise { to { opacity: 1; transform: translateY(0); } }
@keyframes tpGrow { to { transform: scaleY(1); } }
@keyframes tpPulse { 0% { transform: scale(1); opacity: .5; } 70%,100% { transform: scale(3.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .ts-slide.is-active .tp-line,
    .ts-slide.is-active .tp-line-glow,
    .ts-slide.is-active .tp-area,
    .ts-slide.is-active .tp-xlab,
    .ts-slide.is-active .tp-grid,
    .ts-slide.is-active .tp-axis,
    .ts-slide.is-active .tp-point,
    .ts-slide.is-active .tp-point-pulse,
    .ts-slide.is-active .tp-callout,
    .ts-slide.is-active .tp-bar { animation: none !important; }
    .tp-line, .tp-line-glow { stroke-dashoffset: 0 !important; }
    .tp-area, .tp-xlab, .tp-grid, .tp-axis, .tp-point, .tp-callout { opacity: 1 !important; }
    .tp-callout { transform: none !important; }
    .tp-point-pulse { opacity: 0 !important; }
    .tp-bar { transform: scaleY(1) !important; }
}




/* ── Contrast: lift dim secondary labels on the dark homepage sections ── */
.mf-note { color: #94A3B8 !important; }
.mf-session, .mf-session em { color: #94A3B8 !important; }
.ts-sub, .ts-sub2, .ts-more { color: #94A3B8 !important; }
.tp-grid text { fill: #94A3B8; }
