/* ============================================================
   SIFA LANDING V3 — All-light version
   Based on V2, with dark sections converted to light
   ============================================================ */

/* --- V2 ADDITIONAL TOKENS (dark sections) --- */
:root {
    --purple: #603eb0;
    --purple-light: #8b6ce0;
    --purple-glow: rgba(96, 62, 176, 0.4);
    --teal: #4ebab4;
    --teal-glow: rgba(78, 186, 180, 0.35);
    --bg-dark: #0A1227;
    --bg-dark-2: #111120;
    --bg-dark-3: #16162a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-v2: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --bg-light: #faf9fc;
    --bg-light-2: #f2f0f7;
    --text-dark: #1a1a2e;
    --text-dark-muted: #5a5a72;
    --text-v2: #e8e6f0;
    --text-muted-v2: rgba(232, 230, 240, 0.5);
    --text-bright: #ffffff;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* V3 body: light background everywhere */
body.sifa-landing-v3 {
    background: #ffffff;
    color: var(--text-dark);
}
.sifa-landing-v3 #main-nav {
    border: none;
}
.features-section

 {
    background: #faf9fc;
  
}
.why-sifa

 {
 
    background: linear-gradient(180deg, #faf9fc, #f6f3ff);
}
.ws-visual {
    position: relative;
    min-height: 500px;
    background: none;
    border: none;
    top: 0px;
}
.everything-section
 {
    background: #ffffff;
  
}
.hero-header-center {
    text-align: center;
    padding-bottom: 110px;
    margin: auto;
    max-width: 430px;
}
/* Override container padding for V3 */
body.sifa-landing-v3 .container { width: 100%; padding: 0 24px; }
body.sifa-landing-v3 .container-md { max-width: 900px; }
body.sifa-landing-v3 .container-sm { max-width: 680px; }
body.sifa-landing-v3 .center { text-align: center; }


/* --- TYPOGRAPHY --- */
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--text-dark); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: var(--text-dark); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--text-dark); }
.body-lg { font-size: 1.125rem; line-height: 1.7; color: var(--text-dark-muted); max-width: 640px; }
.body-accent { font-size: 1.125rem; font-weight: 600; color: var(--purple); margin-top: 16px; }
.gradient-text { background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-text-dark { background: linear-gradient(135deg, var(--purple) 0%, #4ebab4 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-muted-inline { color: var(--text-dark-muted); }
.section-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; }
.section-eyebrow.center { text-align: center; }
.section-heading { margin-bottom: 48px; color: var(--text-dark); }
.section-heading.center { text-align: center; }

/* --- BUTTONS --- */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--purple); color: white; font-weight: 600; font-size: 0.95rem; border-radius: 12px; border: none; cursor: pointer; transition: all 0.3s var(--ease); position: relative; overflow: hidden; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--purple-glow), 0 0 0 1px rgba(255,255,255,0.1); }
.btn-primary .arrow { transition: transform 0.3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 14px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; color: var(--text-dark-muted); font-weight: 500; font-size: 0.95rem; border-radius: 12px; border: 1px solid rgba(0,0,0,0.12); cursor: pointer; transition: all 0.3s var(--ease); }
.btn-ghost:hover { color: var(--text-dark); border-color: rgba(0,0,0,0.2); background: rgba(0,0,0,0.03); }

/* --- ANNOUNCEMENT BAR --- */
#announce-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 20px; background: linear-gradient(90deg, rgba(96,62,176,0.12), rgba(78,186,180,0.08)); border-bottom: 1px solid var(--border-v2); font-size: 0.82rem; color: var(--text-muted-v2); }
.announce-badge { padding: 2px 10px; background: var(--purple); color: white; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 100px; }
#announce-bar a { color: var(--purple-light); font-weight: 600; transition: color 0.2s; }
#announce-bar a:hover { color: var(--text-bright); }

/* --- NAV --- */
#main-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 0; background: transparent; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: none; }

/* V3 Nav — base state: light page styling (show dark logo for light bg) */
#main-nav .nav-logo-dark { display: none; }
#main-nav .nav-logo-light { display: block; }
#main-nav .nav-link { color: #333; }
#main-nav .nav-link:hover { color: #111; }
#main-nav .nav-pill-link { color: rgb(30 30 50 / 88%); }
#main-nav .nav-pill-link:hover { color: rgba(30, 30, 50, 0.85); }
#main-nav .nav-pill-link.active { color: #ffffff; }
#main-nav .nav-burger span { background: rgba(30, 30, 50, 0.7); }

/* V3 Nav — when JS removes nav-light (dark section like globe) */
#main-nav:not(.nav-light) .nav-logo-dark { display: block; }
#main-nav:not(.nav-light) .nav-logo-light { display: none; }
#main-nav:not(.nav-light) .nav-link { color: rgba(232, 230, 240, 0.85); }
#main-nav:not(.nav-light) .nav-link:hover { color: #fff; }
#main-nav:not(.nav-light) .nav-pill-link { color: rgba(232, 230, 240, 0.65); }
#main-nav:not(.nav-light) .nav-pill-link:hover { color: rgba(232, 230, 240, 0.9); }
#main-nav:not(.nav-light) .nav-pill-link.active { color: #ffffff; }
#main-nav:not(.nav-light) .nav-burger span { background: rgba(232, 230, 240, 0.7); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 50px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text-dark); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-link { font-size: 0.88rem; font-weight: 500; color: var(--text-dark-muted); transition: color 0.2s; }
.nav-link:hover { color: var(--text-dark); }

/* Centred anchor pill */
.nav-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(96, 62, 176, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    padding: 4px;
}

.nav-pill-link {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(30, 30, 50, 0.5);
    border-radius: 100px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-pill-link:hover {
    color: rgba(30, 30, 50, 0.75);
    background: rgba(0, 0, 0, 0.03);
}

.nav-pill-link.active {
    background: var(--purple);
    color: #ffffff;
}

/* Burger (mobile only) */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 102;
}

.nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(30, 30, 50, 0.6);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
    opacity: 0;
}
.nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    z-index: 99;
    pointer-events: none;
}

.nav-overlay.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-overlay-link {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(232, 230, 240, 0.75);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-overlay-link:hover,
.nav-overlay-link:active {
    color: #e8e6f0;
}

/* Scroll targets offset for sticky nav */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }

/* Responsive nav */
@media (max-width: 768px) {
    .nav-pill { display: none; }
    .nav-burger { display: flex; }
}

/* --- HERO + GLOBE --- */
#hero { position: relative; padding: 120px 0 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%); }
.hero-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 900px; height: 600px; background: radial-gradient(ellipse at center, var(--purple-glow) 0%, transparent 65%), radial-gradient(ellipse at 70% 40%, var(--teal-glow) 0%, transparent 55%); filter: blur(80px); pointer-events: none; animation: heroGlowPulse 8s ease-in-out infinite; }
@keyframes heroGlowPulse { 0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 24px; }
.hero-eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 20px; }
.hero-sub { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--text-dark-muted); line-height: 1.7; margin-top: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-social-proof { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; font-size: 0.82rem; color: var(--text-dark-muted); }
.avatar-stack { display: flex; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: white; border: 2px solid #ffffff; margin-left: -6px; }
.avatar:first-child { margin-left: 0; }

/* Globe container */
.globe-section { width: 100%; max-width: 960px; margin: 40px auto 0; position: relative; }
.globe-clip {
    position: relative;
    width: 100%;
    aspect-ratio: 1.95 / 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
}
.globe-glow { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 60%; background: radial-gradient(ellipse at center bottom, rgba(96,62,176,0.15) 0%, transparent 70%); pointer-events: none; z-index: 1; }
.globe-clip svg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; height: auto; }
.grid-line { fill: none; stroke: rgba(255,255,255,0.09); stroke-width: 0.7; }
.grid-line.equator { stroke: rgba(255,255,255,0.14); stroke-width: 1; }
.globe-outline { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 1.5; }
.city-pulse { fill: none; stroke-width: 1.5; opacity: 0; animation: pulse-ring 3s ease-out infinite; }
@keyframes pulse-ring { 0% { r: 10; opacity: 0.4; } 100% { r: 40; opacity: 0; } }
.city-dot { filter: url(#city-glow); }
.city-core { fill: #ffffff; opacity: 0.5; }
.city-name { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; fill: #e8e6f0; opacity: 0.9; }
.city-code { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; opacity: 0.55; }
.conn-line { fill: none; stroke-width: 1.2; stroke-linecap: round; opacity: 0.12; }
.conn-dot { filter: url(#arc-glow); }
.globe-legend { display: flex; gap: 24px; justify-content: center; padding: 12px 0 0; font-size: 0.75rem; color: var(--text-muted-v2); font-family: 'JetBrains Mono', monospace; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.legend-dot.purple { background: var(--purple-light); }
.legend-dot.teal { background: var(--teal); }

/* V3 light-mode: boost city chip contrast — NOT needed when globe is dark */

/* --- TRUST BAR --- */
#trust-bar { padding: 40px 0; border-top: 1px solid var(--border-v2); border-bottom: 1px solid var(--border-v2); }
.trust-label { text-align: center; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted-v2); margin-bottom: 20px; }
.trust-items { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.trust-item { font-size: 0.85rem; color: var(--text-muted-v2); font-weight: 500; }
.trust-divider { width: 1px; height: 16px; background: var(--border-v2); }

/* === LIGHT SECTIONS === */
.section-light { background: var(--bg-light); color: var(--text-dark); }
.section-dark { background: var(--bg-light-2); color: var(--text-dark); }
.section-light h2 { color: var(--text-dark); }
.section-light h3 { color: var(--text-dark); }
.section-light .section-eyebrow { color: var(--purple); }
.section-light .body-lg { color: var(--text-dark-muted); }
.section-light .body-accent { color: var(--purple); }
.section-light .text-muted-inline { color: var(--text-dark-muted); }

/* --- PROBLEM (light) --- */
#problem { padding: 120px 0; }
.problem-content { max-width: 700px; }
#problem h2 { margin-bottom: 24px; }

/* --- FINANCIAL HORIZON RADAR (light, semicircle) --- */
#radar { padding: 100px 0 60px; overflow: hidden; }
.radar-header { margin-bottom: 48px; }
.radar-header h2 { margin-bottom: 20px; }
.radar-stage { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; }
#radar-svg { width: 100%; height: auto; display: block; }

/* Rings */
.radar-ring { fill: none; stroke: rgba(96,62,176,0.11); stroke-width: 1; }
.radar-ring-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; fill: rgba(96,62,176,0.3); font-weight: 500; }
.radar-baseline { stroke: rgba(96,62,176,0.12); stroke-width: 1; }
.radar-center { fill: rgba(96,62,176,0.12); stroke: rgba(96,62,176,0.3); stroke-width: 1.5; }
.radar-center-label { font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700; fill: rgba(96,62,176,0.4); text-anchor: middle; letter-spacing: 0.15em; }

/* Sweep */
.radar-sweep-line { stroke: rgba(96,62,176,0.45); stroke-width: 1.5; }

/* Nodes */
.radar-node-dot { fill: rgba(96,62,176,0.12); stroke: rgba(96,62,176,0.25); stroke-width: 1; transition: all 0.4s ease; }
.radar-node-dot.active { fill: #603eb0; stroke: #603eb0; filter: url(#nodePulse); }
.radar-node-ring { fill: none; stroke: rgba(96,62,176,0.3); stroke-width: 1; opacity: 0; }
.radar-node-ring.active { opacity: 1; animation: radarPing 1s ease-out; }
@keyframes radarPing { 0% { r: 5; opacity: 0.5; stroke-width: 2; } 100% { r: 24; opacity: 0; stroke-width: 0.5; } }
.radar-node-echo { fill: none; stroke: rgba(96,62,176,0.5); opacity: 0; animation: radarEcho 2.5s infinite ease-out; transform-origin: center; }
@keyframes radarEcho { 0% { r: 4.5; opacity: 0.6; stroke-width: 1.5; } 100% { r: 16; opacity: 0; stroke-width: 0; } }

/* Event cards */
#radar-cards { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.radar-card { position: absolute; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: 0 6px 24px rgba(0,0,0,0.07), 0 0 0 1px rgba(96,62,176,0.08); opacity: 0; transform: scale(0.9) translateY(6px); transition: opacity 0.6s ease, transform 0.6s ease; pointer-events: none; white-space: nowrap; z-index: 10; }
.radar-card.visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; transition: opacity 0.4s ease, transform 0.4s ease; }
.radar-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.radar-card-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.radar-card-icon svg { width: 16px; height: 16px; }
.radar-card-year { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; font-weight: 900; color: var(--purple); text-transform: uppercase; }
.radar-card-title { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.radar-card-detail { font-size: 0.72rem; color: var(--text-dark-muted); margin-top: 3px; }

/* --- FEATURE CARDS CAROUSEL (light) --- */
#features { padding: 100px 0 80px; }
.features-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.features-header h2 { margin: 0; }
.carousel-nav { display: flex; gap: 8px; flex-shrink: 0; padding-top: 8px; }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.12); background: white; color: var(--text-dark); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease); }
.carousel-btn:hover { background: var(--purple); color: white; border-color: var(--purple); }
.feature-track-wrap { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
.feature-track-wrap::-webkit-scrollbar { display: none; }
.feature-cards-track { display: flex; gap: 16px; scroll-snap-type: x mandatory; }
.feature-card { flex: 0 0 240px; min-height: 240px; padding: 28px; border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.06); background: #fff; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.4s var(--ease); scroll-snap-align: start; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.feature-card:hover { border-color: rgba(96,62,176,0.2); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.fcard-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--purple); margin-bottom: 12px; }
.fcard-tagline { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); line-height: 1.3; letter-spacing: -0.01em; }
.fcard-icon { font-size: 2.5rem; margin-top: auto; padding-top: 20px; }
.feature-card-cta { background: linear-gradient(135deg, var(--purple), var(--purple-light)); border: none; color: white; text-align: center; justify-content: center; align-items: center; }
.fcard-count { font-family: 'JetBrains Mono', monospace; font-size: 3.5rem; font-weight: 800; }
.fcard-count-label { font-size: 0.9rem; font-weight: 500; opacity: 0.85; margin-bottom: 16px; }
.fcard-see-all { color: white; font-weight: 600; font-size: 0.88rem; opacity: 0.9; transition: opacity 0.2s; }
.fcard-see-all:hover { opacity: 1; }
.features-footer-text { font-size: 0.9rem; color: var(--text-dark-muted); line-height: 1.7; max-width: 640px; margin-top: 32px; }

/* --- SMILE CHART SECTION --- */
#try-it { padding: 120px 0; }
.glass-panel { background: rgba(10, 15, 30, 0.4); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border-v2); border-radius: 32px; padding: 40px; box-shadow: 0 20px 60px -10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1); }
.impact-bar { display: flex; justify-content: space-between; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border-v2); }
.metric { display: flex; flex-direction: column; }
.metric-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted-v2); margin-bottom: 8px; }
.metric-value { font-family: 'JetBrains Mono', monospace; font-size: 36px; font-weight: 500; color: var(--text-v2); }
.metric-value.success { color: var(--teal); }
.metric-value.warning { color: #fb7185; }
.chart-container { position: relative; width: 100%; height: 460px; user-select: none; }
.chart-container svg { width: 100%; height: 100%; overflow: visible; }
.smile-grid-line { stroke: rgba(255,255,255,0.05); stroke-width: 1; }
.smile-axis-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; fill: var(--text-muted-v2); }
.curve-path { fill: none; stroke: var(--purple-light); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 12px var(--purple-glow)); }
.curve-fill { fill: url(#gradientPrimary); }
.node-group { cursor: grab; }
.node-group:active { cursor: grabbing; }
.node-circle { fill: #0a0f1e; stroke: var(--purple-light); stroke-width: 4; transition: all 0.3s; filter: drop-shadow(0 0 8px var(--purple-glow)); }
.node-group:hover .node-circle { stroke-width: 6; }
.node-text-age { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; fill: #fff; pointer-events: none; }
.node-label-box { fill: rgba(0,0,0,0.6); stroke: var(--border-v2); stroke-width: 1; rx: 12; }
.node-label-text { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; fill: #fff; pointer-events: none; }
.node-label-sub { font-family: 'Inter', sans-serif; font-size: 11px; fill: var(--text-muted-v2); pointer-events: none; }

/* --- BENTO GRID (light) --- */
#product { padding: 120px 0; }
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.section-light .bento-card { border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.06); background: #fff; overflow: hidden; transition: all 0.4s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.section-light .bento-card:hover { border-color: rgba(0,0,0,0.1); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.bento-text { padding: 32px 32px 24px; }
.bento-text h3 { margin-bottom: 8px; }
.bento-text p { font-size: 0.9rem; color: var(--text-dark-muted); line-height: 1.6; }
.bento-lg { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; }
.bento-lg .bento-text { padding: 48px; }
.bento-lg .bento-image { padding: 24px; }
.bento-md { display: flex; flex-direction: column; }
.bento-sm { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.bento-stat { font-family: 'JetBrains Mono', monospace; font-size: 2.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.bento-sm p { font-size: 0.88rem; color: var(--text-dark-muted); line-height: 1.5; }
.bento-accent-light { background: linear-gradient(135deg, rgba(96,62,176,0.06), rgba(78,186,180,0.04)) !important; }

/* Screenshot placeholder */
.screenshot-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; min-height: 220px; border-radius: var(--radius-sm); border: 2px dashed rgba(0,0,0,0.1); background: var(--bg-light-2); color: var(--text-dark-muted); font-size: 0.85rem; font-weight: 500; margin: 0 16px 16px; }
.screenshot-placeholder .ph-icon { font-size: 2rem; opacity: 0.3; }
.bento-lg .screenshot-placeholder { margin: 24px; min-height: 300px; }

/* --- WHY SIFA ACCORDION + VISUAL PANELS (light) --- 
#why-sifa { padding: 100px 0; }
#why-sifa h2 { margin-bottom: 12px; }
.ws-sub { font-size: 1rem; color: var(--text-dark-muted); max-width: 640px; line-height: 1.7; margin-bottom: 48px; }
.ws-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.ws-accordion { display: flex; flex-direction: column; gap: 2px; }
.ws-item { border-top: 1px solid rgba(0,0,0,0.06); padding: 16px 0; cursor: pointer; transition: all 0.3s var(--ease); }
.ws-item-header { display: flex; align-items: center; gap: 16px; }
.ws-num { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 600; color: var(--text-dark-muted); min-width: 28px; }
.ws-item-title { font-size: 1rem; font-weight: 600; color: var(--text-dark); transition: color 0.2s; }
.ws-item.active .ws-item-title { color: var(--purple); }
.ws-item.active .ws-num { color: var(--purple); }
.ws-item-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), opacity 0.3s; opacity: 0; }
.ws-item.active .ws-item-body { max-height: 200px; opacity: 1; }
.ws-item-body p { font-size: 0.9rem; color: var(--text-dark-muted); line-height: 1.7; padding: 12px 0 4px 44px; }
.ws-visual { position: relative; min-height: 360px; }
.ws-visual-panel { position: absolute; top: 0; left: 0; right: 0; opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); pointer-events: none; }
.ws-visual-panel.active { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }
*/
/* Panel 1: Chat mockup */
.ws-chat { background: #fff; border-radius: 20px; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 4px 20px rgba(0,0,0,0.06); padding: 24px; }
.ws-chat-header { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.06); margin-bottom: 16px; }
.ws-chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--purple); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.ws-chat-name { font-weight: 600; color: var(--text-dark); font-size: 0.9rem; }
.ws-chat-status { font-size: 0.72rem; color: #22c55e; margin-left: auto; }
.ws-msg { padding: 12px 16px; border-radius: 16px; font-size: 0.88rem; line-height: 1.6; margin-bottom: 10px; max-width: 90%; }
.ws-msg.user { background: var(--purple); color: white; margin-left: auto; border-bottom-right-radius: 4px; }
.ws-msg.sifa { background: var(--bg-light-2); color: var(--text-dark); border-bottom-left-radius: 4px; }
.ws-msg.sifa strong { color: var(--purple); font-weight: 600; }

/* Panel 2: Compare cards */
.ws-compare-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.ws-compare-card { flex: 1; padding: 24px; border-radius: var(--radius); text-align: center; }
.ws-compare-card.generic { background: #fff; border: 1px solid rgba(0,0,0,0.06); }
.ws-compare-card.sifa { background: linear-gradient(135deg, rgba(96,62,176,0.08), rgba(78,186,180,0.06)); border: 1px solid rgba(96,62,176,0.15); }
.ws-compare-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dark-muted); margin-bottom: 8px; }
.ws-compare-rate { font-family: 'JetBrains Mono', monospace; font-size: 2.5rem; font-weight: 700; color: var(--text-dark); }
.ws-compare-card.sifa .ws-compare-rate { color: var(--purple); }
.ws-compare-sub { font-size: 0.78rem; color: var(--text-dark-muted); margin-top: 6px; }
.ws-compare-vs { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-dark-muted); font-weight: 600; }
.ws-compare-impact { background: #fff; border-radius: var(--radius); padding: 20px; font-size: 0.9rem; color: var(--text-dark); line-height: 1.6; border: 1px solid rgba(0,0,0,0.06); }
.ws-compare-impact strong { color: var(--purple); }

/* Panel 3: Scenarios */
.ws-scenarios { display: flex; flex-direction: column; gap: 8px; }
.ws-scenario-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.ws-scenario-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.ws-scenario-text { flex: 1; }
.ws-scenario-title { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.ws-scenario-effect { font-size: 0.78rem; color: var(--text-dark-muted); margin-top: 2px; }
.ws-scenario-badge { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; font-weight: 600; padding: 4px 12px; border-radius: 100px; white-space: nowrap; }
.ws-scenario-badge.positive { background: #dcfce7; color: #16a34a; }
.ws-scenario-badge.neutral { background: #ede9fe; color: #7c3aed; }
.ws-cascade-arrow { text-align: center; font-size: 0.78rem; color: var(--text-dark-muted); padding: 2px 0; }
.ws-cascade-summary { text-align: center; padding: 16px; font-size: 0.85rem; color: var(--text-dark-muted); font-style: italic; }

/* Panel 4: Currencies */
.ws-currencies { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ws-currency-flow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ws-currency-pill { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 100px; background: #fff; border: 1px solid rgba(0,0,0,0.06); font-size: 0.85rem; font-weight: 500; color: var(--text-dark); box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.ws-currency-code { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--purple); font-size: 0.82rem; }
.ws-merge-arrow { font-size: 1.5rem; color: var(--text-dark-muted); }
.ws-unified-card { background: linear-gradient(135deg, rgba(96,62,176,0.08), rgba(78,186,180,0.06)); border: 1px solid rgba(96,62,176,0.15); border-radius: var(--radius); padding: 28px; text-align: center; width: 100%; }
.ws-unified-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dark-muted); margin-bottom: 6px; }
.ws-unified-val { font-family: 'JetBrains Mono', monospace; font-size: 2.2rem; font-weight: 700; color: var(--purple); }
.ws-unified-sub { font-size: 0.82rem; color: var(--text-dark-muted); margin-top: 6px; }

/* Panel 5: No agenda */
.ws-no-agenda { background: #fff; border-radius: 20px; border: 1px solid rgba(0,0,0,0.06); padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.ws-agenda-title { font-weight: 700; font-size: 1.1rem; color: var(--text-dark); margin-bottom: 20px; }
.ws-agenda-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 0.9rem; color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.04); }
.ws-agenda-x { color: #ef4444; font-weight: 700; font-size: 1rem; width: 20px; text-align: center; }
.ws-agenda-instead { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 16px; border-radius: var(--radius-sm); background: #dcfce7; }
.ws-agenda-check { color: #16a34a; font-weight: 700; font-size: 1.2rem; width: 20px; text-align: center; flex-shrink: 0; }
.ws-agenda-instead-title { font-weight: 700; font-size: 0.95rem; color: #16a34a; }
.ws-agenda-instead-sub { font-size: 0.82rem; color: var(--text-dark-muted); margin-top: 4px; }

/* --- TESTIMONIALS (light) --- */
#testimonials { padding: 120px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.section-light .testimonial { padding: 32px; border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.06); background: #fff; transition: all 0.4s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.section-light .testimonial:hover { border-color: rgba(0,0,0,0.1); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.section-light .testimonial p { font-size: 0.95rem; line-height: 1.7; color: var(--text-dark); font-style: italic; margin-bottom: 20px; }
.section-light .testimonial footer { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.section-light .testimonial footer strong { color: var(--text-dark); }
.section-light .testimonial footer span { color: var(--text-dark-muted); }
.section-light .testimonial footer span::before { content: '·'; margin-right: 8px; }

/* --- FAQ --- 
#faq { padding: 120px 0; }
.faq-list { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.faq-item { border-radius: var(--radius-sm); border: 1px solid var(--border-v2); background: var(--bg-card); transition: all 0.3s var(--ease); overflow: hidden; }
.faq-item[open] { border-color: var(--border-hover); background: var(--bg-card-hover); }
.faq-item summary { padding: 20px 24px; font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; color: var(--text-v2); }
.faq-item summary:hover { color: var(--text-bright); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: 'JetBrains Mono', monospace; font-size: 1.2rem; color: var(--text-muted-v2); transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-muted-v2); line-height: 1.7; }
*/
/* --- PROMPT BOX CTA --- */
#join { padding: 120px 0 80px; position: relative; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 500px; background: radial-gradient(ellipse, var(--purple-glow) 0%, transparent 70%); filter: blur(80px); pointer-events: none; }
.prompt-box { position: relative; z-index: 1; background: #ffffff; border-radius: 28px; padding: 56px 56px 40px; text-align: left; box-shadow: 0 24px 80px -12px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08); }
.prompt-text { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; color: var(--text-dark); letter-spacing: -0.03em; line-height: 1.2; min-height: 2.6em; }
.prompt-cursor { display: inline-block; width: 3px; height: 0.85em; background: var(--purple); margin-left: 3px; vertical-align: baseline; animation: cursorBlink 1s steps(2) infinite; }
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.prompt-cta-row { display: flex; justify-content: flex-end; margin-top: 32px; }
.cta-note { position: relative; z-index: 1; color: var(--text-muted-v2); font-size: 0.78rem; margin-top: 20px; text-align: center; }

/* --- FOOTER --- */
#site-footer { padding: 40px 0; border-top: 1px solid rgba(0,0,0,0.08); }
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: var(--text-dark-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--text-dark-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-dark); }
.footer-legal { font-size: 0.72rem; color: var(--text-dark-muted); opacity: 0.6; }

/* --- SCROLL REVEAL --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .radar-card { padding: 10px 14px; border-radius: 10px; }
    .radar-card-icon { width: 22px; height: 22px; border-radius: 6px; }
    .radar-card-icon svg { width: 14px; height: 14px; }
    .radar-card-year { font-size: 0.75rem; }
    .radar-card-title { font-size: 0.75rem; }
    .radar-card-detail { font-size: 0.65rem; }
}

/* --- NEW HERO (V8) --- */
.ambient-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(96, 62, 176, 0.08) 0%, rgba(78, 186, 180, 0.04) 40%, transparent 70%);
    transform: translate(30%, -20%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}
.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-header-left {
    text-align: left;
    margin-bottom: 120px;
}
.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem); /* Slightly smaller heading */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-title .block {
    display: block;
}
/* ── Hero Descriptor (monospace treatment) ── */
.hero-descriptor {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark-muted);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.hero-descriptor-prefix {
    color: #603eb0;
    margin-right: 7px;
    top: 11px;
    position: relative;
}

.hero-descriptor-accent {
    color: var(--purple);
}

/* ── Stat Bridges (section transitions) ── */
.stat-bridge {
    position: relative;
    padding: 48px 40px;
    overflow: hidden;
}

.stat-bridge-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-bridge-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
    margin-bottom: 20px;
}

.stat-bridge-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.stat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.stat-tag svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.stat-tag:hover {
    transform: translateY(-1px);
}
/* --- TESTIMONIAL --- */
.testimonial-section {
    padding: 120px 0;
    background: var(--bg-light-2);
}

        .testimonial-layout {
            display: flex;
            gap: 80px;
            align-items: center;
        }

        .testimonial-quote-mark {
            font-size: 160px;
            line-height: 0.7;
            color: var(--teal);
            font-weight: 900;
            font-family: serif;
        }

        .testimonial-content {
            flex: 1;
        }

    .testimonial-text {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -1px;
    color: var(--sifa-dark);
    margin-bottom: 32px;
}
@media (max-width: 720px) {
     .testimonial-text {
    font-size: 20px;
     }
     .testimonial-layout {
    gap: 40px;
}
.testimonial-quote-mark {
    font-size: 110px;
}
}

.testimonial-author

 {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-dark-muted);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: var(--bg-light);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

        .author-details div:first-child {
            font-weight: 600;
            color: var(--dark);
        }

        .author-details div:last-child {
            font-size: 14px;
            color: var(--text-muted);
        }
/* Globe bridge: dark → light */


.bridge-globe .stat-bridge-title {
    color: rgba(232, 230, 240, 0.4);
}

.bridge-globe .stat-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(232, 230, 240, 0.65);
}

.bridge-globe .stat-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(96, 62, 176, 0.3);
    color: #e8e6f0;
}

.bridge-globe .stat-tag svg {
    color: #603eb0;
    opacity: 0.6;
}

/* Radar bridge: light → dark */
.bridge-radar {
    background: #faf9fc;
}

.bridge-radar .stat-bridge-title {
    color: rgba(90, 90, 114, 0.6);
}

.bridge-radar .stat-tag {
    background: rgba(96, 62, 176, 0.06);
    border: 1px solid rgba(96, 62, 176, 0.1);
    color: rgba(26, 26, 46, 0.6);
}

.bridge-radar .stat-tag:hover {
    background: rgba(96, 62, 176, 0.12);
    border-color: rgba(96, 62, 176, 0.25);
    color: #1a1a2e;
}

.bridge-radar .stat-tag svg {
    color: #603eb0;
    opacity: 0.5;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark-muted);
    margin-bottom: 0;
}
.floating-card {
    width: 100%;
    max-width: 680px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 32px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    margin-bottom: -40px;
}
.fc-top {
    margin-bottom: 10px;
}
.fc-question {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
    height: 50px;
}
.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--purple);
    font-weight: 400;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.fc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 24px;
}
.fc-hint {
    font-size: 0.9rem;
    color: var(--text-dark-muted);
}
.fc-btn {
    box-shadow: 0 10px 15px -3px rgba(96, 62, 176, 0.5);
}
.hero-screens-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-screens-container {
    position: relative;
    z-index: 1;
    margin-top: -100px;
    width: 100%;
    height: 640px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Play button overlay */
.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: -50px;
    padding: 0;
}

.hero-play-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #ffffff;
    color: #603eb0;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow:
        0 0 0 0 rgba(255, 255, 255, 0.4),
        0 0 0 14px rgba(255, 255, 255, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.25);
    animation: playPulse 2.5s ease-in-out infinite;
}

.hero-play-circle svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.hero-play-btn:hover .hero-play-circle {
    transform: scale(1.12);
    background: #f5f3ff;
    color: #4e2fa0;
    animation: none;
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.5),
        0 0 0 14px rgba(255, 255, 255, 0.2),
        0 12px 40px rgba(0, 0, 0, 0.3);
}

@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4), 0 0 0 14px rgba(255, 255, 255, 0.15), 0 12px 40px rgba(0, 0, 0, 0.25); }
    50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0), 0 0 0 14px rgba(255, 255, 255, 0.15), 0 12px 40px rgba(0, 0, 0, 0.25); }
}

.hero-play-label {
    display: none;
}

/* ── Video Modal ── */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(9 18 39 / 80%);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-modal-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}
.hero-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.hero-screen.active {
    opacity: 1;
}
.hero-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   MONEY MAP SHOWCASE — Standalone section between Radar & Features
   ═══════════════════════════════════════════════════════════════ */

#money-map-showcase {
    background: var(--bg-light);
}
.money-map-showcase-frame {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBE FEATURE — Starfield Background
   ═══════════════════════════════════════════════════════════════ */

#globe-feature {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0) 15%),
        radial-gradient(ellipse at 50% 100%, rgba(64, 6, 89, 0.11) 30%, rgba(7, 13, 53, 0.59) 60%, rgba(16, 38, 108, 0.71) 100%),
        linear-gradient(180deg, #0e1530 0%, #0A1227 100%);
            padding-top: 300px !important;
}

/* Top gradient fade — blends white page into dark globe */
#globe-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 250px;
    background: linear-gradient(to bottom, #ffffff 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Starfield canvas — dark mode stars */
#starfield-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Globe section dark-mode text overrides (dark island in light page) */
#globe-feature h2 { color: var(--text-bright); }
#globe-feature .section-eyebrow { color: var(--purple-light); }
#globe-feature .body-lg { color: var(--text-muted-v2); }
#globe-feature .btn-ghost { color: var(--text-muted-v2); border-color: var(--border-v2); }
#globe-feature .btn-ghost:hover { color: var(--text-bright); border-color: var(--border-hover); background: var(--bg-card); }

/* Ensure globe content sits above stars — exclude canvas */
#globe-feature > *:not(#starfield-canvas) {
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(90deg, #603eb0 0%, #4ebab4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   MONEY MAP — Inline Hero Animation
   ═══════════════════════════════════════════════════════════════ */

.mm-wrap { width: 100%; max-width: 1100px; margin: 0 auto; }

.mm-container {
    background: rgb(7 16 36);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* --- HEADER --- */
.mm-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mm-header-left { display: flex; align-items: center; gap: 10px; }
.mm-chevron { width: 20px; height: 20px; color: rgba(255,255,255,0.5); }
.mm-header-title { font-size: 15px; font-weight: 700; color: #e2e8f0; }
.mm-header-sub { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 1px; }
.mm-header-right { display: flex; align-items: center; gap: 8px; }
.mm-toggle-group { display: flex; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.mm-toggle {
    padding: 5px 12px; font-size: 11px; font-weight: 600; font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.4); background: transparent; border: none; cursor: default; transition: all 0.3s;
}
.mm-toggle.active { background: rgba(255,255,255,0.1); color: #e2e8f0; }

/* --- PHASE --- */
.mm-phase {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700;
    letter-spacing: 0.25em; color: rgba(139, 111, 208, 0.35); transition: color 0.8s ease;
    z-index: 1; pointer-events: none; white-space: nowrap;
}
.mm-phase.drawing { color: rgba(78, 186, 180, 0.35); }
.mm-phase.retirement { color: rgba(96, 165, 250, 0.35); }

/* --- CANVAS --- */
.mm-canvas {
    position: relative; width: 100%; height: 580px; overflow: hidden;
}

/* --- EDGES --- */
.mm-edges { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.mm-edge-path { fill: none; stroke-width: 2; stroke-linecap: round; opacity: 0.25; transition: opacity 0.6s ease; }
.mm-edge-path.hidden { opacity: 0; }
.mm-edge-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; }
.mm-edge-label-bg { rx: 10; ry: 10; opacity: 0.9; }
.mm-edge-dot { opacity: 0; filter: url(#edgeGlow); }
.mm-edge-dot.flowing { opacity: 0.85; }

/* --- NODE BASE --- */
.mm-node {
    position: absolute; display: flex; border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3); overflow: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease; z-index: 2; min-width: 150px;
}
.mm-node.mm-hidden { opacity: 0; pointer-events: none; transform: scale(0.92); }
.mm-node.mm-ghost { opacity: 0.35; }
.mm-node-bar { width: 4px; border-radius: 14px 0 0 14px; flex-shrink: 0; }
.mm-node-body { padding: 10px 14px; flex: 1; min-width: 0; }
.mm-node-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.mm-node-label { font-size: 13px; font-weight: 600; color: #e2e8f0; white-space: nowrap; }
.mm-node-badge {
    font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 100px;
    white-space: nowrap; line-height: 1.2;
}
.mm-node-sub { font-size: 10px; color: rgba(255,255,255,0.35); margin-bottom: 4px; }
.mm-node-value {
    font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 700; transition: color 0.3s;
}
.mm-node-unit { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.3); margin-left: 2px; }

/* --- NODE POSITIONS --- */
.mm-node-income#node-salary          { left: 2%; top: 50px; }
.mm-node-income#node-partner-salary  { left: 2%; top: 185px; }
.mm-node-unallocated#node-unallocated { left: 2%; top: 330px; }
.mm-node-expense#node-expenses       { right: 3%; top: 20px; }
.mm-node-asset#node-vanguard         { right: 3%; top: 160px; }
.mm-node-asset#node-pension          { right: 3%; top: 290px; }
.mm-node-dream#node-motorhome        { left: 15%; top: 400px; }
.mm-node-dream#node-villa            { left: 30%; top: 380px; }
.mm-node-dream#node-cruise           { left: 48%; top: 400px; }

/* --- HUB NODE --- */
.mm-hub {
    position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
    width: 240px; min-height: 220px;
    background: rgba(15, 23, 42, 0.9); border: 1.5px solid rgba(96, 62, 176, 0.35);
    border-radius: 18px; padding: 16px; text-align: center; z-index: 3;
    box-shadow: 0 0 40px rgba(96, 62, 176, 0.25), 0 4px 24px rgba(0,0,0,0.4);
    transition: border-color 0.8s ease, box-shadow 0.8s ease;
}
.mm-hub.deficit {
    border-color: rgba(255, 90, 99, 0.3);
    box-shadow: 0 0 40px rgba(255, 90, 99, 0.15), 0 4px 24px rgba(0,0,0,0.4);
}
.mm-hub.breathing {
    animation: hubBreath 3s ease-in-out infinite;
}
@keyframes hubBreath {
    0%, 100% {
        box-shadow: 0 0 30px rgba(22, 163, 74, 0.15), 0 4px 24px rgba(0,0,0,0.4);
        border-color: rgba(22, 163, 74, 0.25);
    }
    50% {
        box-shadow: 0 0 55px rgba(22, 163, 74, 0.3), 0 4px 24px rgba(0,0,0,0.4);
        border-color: rgba(22, 163, 74, 0.45);
    }
}

/* --- MILESTONE CARD --- */
.mm-milestone {
    position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid rgba(22, 163, 74, 0.3);
    border-radius: 14px; padding: 14px 24px; text-align: center;
    z-index: 4; white-space: nowrap;
    box-shadow: 0 0 40px rgba(22, 163, 74, 0.15), 0 4px 20px rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 1.2s ease, transform 1.2s ease;
    transform: translateX(-50%) translateY(8px);
}
.mm-milestone.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.mm-milestone-check {
    font-size: 20px; margin-bottom: 4px;
}
.mm-milestone-title {
    font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700;
    color: #86efac; letter-spacing: 0.05em;
}
.mm-milestone-sub {
    font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 3px;
}
.mm-hub-title { font-size: 15px; font-weight: 700; color: #e2e8f0; }
.mm-hub-subtitle { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.mm-hub-gauge { margin: 8px auto 0; width: 140px; }
.mm-gauge-svg { width: 140px; height: 70px; }
.mm-hub-net {
    font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700;
    color: #16a34a; margin-top: -2px; transition: color 0.5s ease;
}
.mm-hub-net.deficit-val { color: #ff5a63; }
.mm-hub-net-unit { font-size: 11px; color: rgba(255,255,255,0.3); font-weight: 500; margin-left: 2px; }
.mm-hub-flows { display: flex; justify-content: center; gap: 16px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.1); }
.mm-hub-flow-in { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: #34d399; }
.mm-hub-flow-out { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: #f87171; }
.mm-hub-flow-label { font-weight: 400; color: rgba(255,255,255,0.3); margin-left: 2px; }
.mm-hub-nw { font-size: 10px; color: #16a34a; margin-top: 6px; transition: color 0.5s ease; }
.mm-hub-nw.amber { color: #d97706; }
.mm-hub-nw.red { color: #dc2626; }

/* --- RESERVES GROUP --- */
.mm-reserves {
    position: absolute; right: 3%; bottom: 10px;
    width: 220px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px;
    z-index: 2;
    transition: opacity 0.6s ease;
}
.mm-reserves-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mm-reserves-title { font-size: 13px; font-weight: 700; color: #e2e8f0; }
.mm-reserves-count {
    font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 100px;
    background: rgba(78,186,180,0.2); color: #5eead4;
}
.mm-reserves-sub { font-size: 10px; color: rgba(255,255,255,0.3); margin-bottom: 10px; }
.mm-reserves-item {
    display: flex; background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; overflow: hidden; margin-bottom: 6px;
}
.mm-reserves-item .mm-node-bar { width: 3px; }
.mm-reserves-item-body { padding: 8px 12px; flex: 1; }
.mm-reserves-item .mm-node-label { font-size: 12px; }
.mm-reserves-item .mm-node-value { font-size: 14px; }
.mm-reserves-item .mm-node-badge { font-size: 8px; }

/* --- DEPLETED GROUP --- */
.mm-depleted {
    position: absolute; left: 2%; top: 20px; min-width: 200px;
    background: rgba(15, 23, 42, 0.7); border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 14px; padding: 14px; z-index: 2;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.mm-depleted.mm-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
.mm-depleted-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mm-depleted-title { font-size: 13px; font-weight: 700; color: #e2e8f0; }
.mm-depleted-count {
    font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 100px;
    background: rgba(248,113,113,0.25); color: #fca5a5;
}
.mm-depleted-sub { font-size: 10px; color: rgba(255,255,255,0.3); margin-bottom: 10px; }
.mm-depleted-item {
    display: flex; background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; overflow: hidden; margin-bottom: 6px; transition: opacity 0.4s ease;
}
.mm-depleted-item.mm-hidden { display: none; }
.mm-depleted-item .mm-node-bar { width: 3px; }
.mm-depleted-item-body { padding: 8px 12px; flex: 1; }
.mm-depleted-item .mm-node-label { font-size: 12px; }
.mm-depleted-item .mm-node-value { font-size: 14px; }
.mm-depleted-item .mm-node-badge { font-size: 8px; }

/* --- SCRUBBER --- */
.mm-scrubber {
    padding: 12px 24px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.mm-scrubber-inner {
    display: flex; align-items: center; gap: 16px;
    max-width: 75%; margin: 0 auto;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
    padding: 12px 20px; box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.mm-play-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(96, 62, 176, 0.3); background: rgba(15, 23, 42, 0.9);
    color: #603eb0; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; cursor: default; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.mm-play-btn.active { background: #603eb0; color: #fff; box-shadow: 0 2px 12px rgba(96, 62, 176, 0.35); }

.mm-track-area { position: relative; flex: 1; padding-top: 32px; }
.mm-age-label { position: absolute; top: 0; transform: translateX(-50%); z-index: 5; transition: left 0.05s linear; }
.mm-age-label-inner {
    display: flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 8px;
    background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3); white-space: nowrap;
}
.mm-age-text { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: #e2e8f0; transition: color 0.3s; }
.mm-age-text.teal { color: #0d9488; }
.mm-year-text { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.35); }
.mm-age-stem { width: 1px; height: 8px; background: rgba(255,255,255,0.15); margin: 0 auto; }

.mm-track { position: relative; width: 100%; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.05); overflow: visible; }
.mm-track-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, #603eb0, #8b5cf6); transition: width 0.05s linear; }
.mm-track-fill-teal { position: absolute; top: 0; height: 100%; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #5eead4, #4ebab4); transition: width 0.05s linear, left 0.05s linear; display: none; }
.mm-retire-mark { position: absolute; top: 50%; transform: translateY(-50%); width: 2px; height: 16px; border-radius: 1px; background: #603eb0; opacity: 0.5; }

.mm-thumb {
    position: absolute; top: 30px; width: 14px; height: 14px; border-radius: 50%;
    background: #1e293b; border: 2.5px solid #603eb0; box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    transform: translateX(-50%); pointer-events: none; transition: left 0.05s linear, border-color 0.3s ease; z-index: 4;
}
.mm-thumb.teal { border-color: #4ebab4; }

.mm-ticks { position: relative; width: 100%; height: 18px; margin-top: 8px; }
.mm-tick {
    position: absolute; transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.2); font-weight: 500;
}
.mm-tick-retire { color: #603eb0; font-weight: 700; font-size: 10px; }

/* --- MM FOOTER --- */
.mm-footer {
    text-align: center; padding: 8px 24px 14px;
    font-size: 10px; color: rgba(255,255,255,0.25);
    font-family: 'Inter', sans-serif;
}

/* --- UTILITY --- */
.mm-hidden { opacity: 0 !important; pointer-events: none !important; }

/* ═══ MONEY MAP RESPONSIVE — CSS zoom for clean scaling ═══ */
@media (max-width: 1140px) {
    .mm-wrap { zoom: 0.82; }
}
@media (max-width: 900px) {
    .mm-wrap { zoom: 0.65; }
}
@media (max-width: 640px) {
    .mm-wrap { zoom: 0.50; }
}
@media (max-width: 420px) {
    .mm-wrap { zoom: 0.38; }
}

/* ============================================================
   TOAST NOTIFICATIONS SECTION
   ============================================================ */

/* ── Toast Stage ── */
.toast-stage {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    min-height: 160px;
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.toast-stage.dragging {
    cursor: grabbing;
}

/* ── Individual Toast ── */
.sifa-toast {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(20px) scale(0.96);
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 18px 22px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    will-change: transform, opacity;
}

.sifa-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(96, 62, 176, 0.1);
}

.sifa-toast.active.no-transition { transition: none; }

.sifa-toast.exit-left {
    opacity: 0;
    transform: translateX(calc(-50% - 60px)) translateY(0) scale(0.95);
}

.sifa-toast.exit-right {
    opacity: 0;
    transform: translateX(calc(-50% + 60px)) translateY(0) scale(0.95);
}

.sifa-toast.enter-from-left {
    transform: translateX(calc(-50% - 40px)) translateY(0) scale(0.96);
}

.sifa-toast.enter-from-right {
    transform: translateX(calc(-50% + 40px)) translateY(0) scale(0.96);
}

/* ── Toast Layout ── */
.toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 16px;
    height: 16px;
}

.toast-meta {
    flex: 1;
    text-align: left;
}

.toast-category {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.5;
    margin-bottom: 2px;
}

.toast-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.toast-body {
    text-align: left;
    padding-left: 46px;
}

.toast-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1;
}

.toast-value-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.5;
    margin-top: 3px;
}

/* ── Toast Timer Bar ── */
.toast-timer {
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.toast-timer-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: none;
}

.sifa-toast.active .toast-timer-fill {
    width: 100%;
    transition: width var(--toast-duration, 4200ms) linear;
}

.sifa-toast.active.no-transition .toast-timer-fill {
    transition: none;
}

/* ── Colour Variants ── */
.toast-insight  .toast-icon { background: rgba(96, 62, 176, 0.15); color: #9b81f5; }
.toast-insight  .toast-value { color: #9b81f5; }
.toast-insight  .toast-timer-fill { background: #603eb0; }

.toast-warning  .toast-icon { background: rgba(255, 90, 99, 0.12); color: #ff5a63; }
.toast-warning  .toast-value { color: #ff5a63; }
.toast-warning  .toast-timer-fill { background: #ff5a63; }

.toast-success  .toast-icon { background: rgba(78, 186, 180, 0.15); color: #4ebab4; }
.toast-success  .toast-value { color: #4ebab4; }
.toast-success  .toast-timer-fill { background: #4ebab4; }

.toast-milestone .toast-icon { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.toast-milestone .toast-value { color: #f59e0b; }
.toast-milestone .toast-timer-fill { background: #f59e0b; }

.toast-info     .toast-icon { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.toast-info     .toast-value { color: #60a5fa; }
.toast-info     .toast-timer-fill { background: #60a5fa; }

.toast-dream    .toast-icon { background: rgba(187, 67, 203, 0.12); color: #bb43cb; }
.toast-dream    .toast-value { color: #bb43cb; }
.toast-dream    .toast-timer-fill { background: #bb43cb; }

/* ── Dot Indicators ── */
.toast-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.toast-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    cursor: pointer;
}

.toast-dot:hover {
    background: rgba(0, 0, 0, 0.25);
}

.toast-dot.active {
    background: #603eb0;
    width: 20px;
    border-radius: 3px;
}

/* ── Swipe hint ── */
.swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    opacity: 0.3;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text-v2, #e8e6f0);
    transition: opacity 0.4s ease;
}

.swipe-hint svg {
    width: 16px;
    height: 16px;
}

.toast-stage:hover ~ .toast-dots ~ .swipe-hint,
.toast-stage.dragging ~ .toast-dots ~ .swipe-hint {
    opacity: 0;
}

/* ── Ambient glow ── */
.toast-stage::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(96, 62, 176, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================================
   CHECKOUT SECTION — V2 overrides
   ============================================================ */

/* Light background for checkout on V2's dark body */
.sifa-landing-v2 .checkout-section {
    background: var(--sifa-surface-alt);
}

/* Ensure heading text stays dark on the light section */
.sifa-landing-v2 .checkout-inner h2 {
    color: var(--text-dark);
}

.sifa-landing-v2 .checkout-sub {
    color: var(--text-dark-muted);
}

.sifa-landing-v2 .checkout-guarantee {
    color: var(--text-dark-muted);
}

/* ── Value propositions grid ── */
.checkout-value-props {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 56px;
    text-align: left;
    max-width: 720px;
    margin: 40px auto 48px;
}

.checkout-value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.925rem;
    color: var(--text-dark);
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.checkout-value-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: var(--purple);
}

@media (max-width: 720px) {
    .checkout-value-props {
        max-width: 100%;
    }
    .checkout-value-item {
        white-space: normal;
    }
}

@media (max-width: 540px) {
    .checkout-value-props {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ── Pricing display ── */
.checkout-pricing {
    margin: 32px 0 32px;
    text-align: center;
}

.checkout-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.checkout-currency {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: var(--text-dark-muted);
    font-weight: 500;
    margin-right: 2px;
}

.checkout-period {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark-muted);
    font-weight: 500;
    margin-left: 4px;
    letter-spacing: -0.01em;
}

/* ── Smart pricing block (trial variant) ── */
.checkout-pricing-today {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.checkout-price-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dark-muted);
}

.checkout-price-hero {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    font-weight: 700;
    color: var(--purple);
    letter-spacing: -0.03em;
    line-height: 1;
}

.checkout-pricing-detail {
    font-size: 0.9rem;
    color: var(--text-dark-muted);
    line-height: 1.6;
    margin: 12px 0 0;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ── Hide 'Remove' links in the checkout ── */
.checkout-section .wcopc .opc_remove_from_cart,
.checkout-section .wcopc .product-remove,
.checkout-section .wcopc td.product-remove,
.checkout-section .wcopc th.product-remove {
    display: none !important;
}

/* ============================================================
   MOBILE RESPONSIVE — 768px and below
   ============================================================ */
@media (max-width: 768px) {

    /* ── 1. Chat card: remove dead whitespace ── */
    .ws-visual {
        min-height: auto;
    }
    .ws-chat {
        padding: 20px;
    }

    /* ── 2. Globe section: prevent pin clipping ── */
    .globe-section {
        overflow: hidden;
    }
    .globe-clip svg {
        width: 120%;           /* slight zoom so rightmost pins stay visible */
        left: 45%;             /* shift left to rebalance */
    }

    /* ── 3. Hero: reduce dead vertical space ── */
    .hero-header-left {
        margin-bottom: 48px;   /* was 120px */
    }
    #hero {
        padding-top: 80px;     /* was 120px */
    }
    .hero-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    /* ── 4. Money Map: prevent overflow ── */
    .money-map-showcase-frame img,
    .money-map-showcase-frame iframe {
        max-width: 100%;
        height: auto;
    }

    /* ── 5. Feature carousel: better peek ── */
    .feature-card {
        flex: 0 0 280px;      /* wider card on mobile so it fills more viewport */
    }

    /* ── 6. Carousel arrows: Apple HIG touch targets ── */
    .carousel-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.1rem;
    }

    /* ── 7. Checkout form card: more internal padding ── */
    .checkout-section .wcopc-checkout,
    .checkout-section .woocommerce-checkout {
        padding: 20px 16px;
    }

    /* ── 8. "What sets SIFA apart" accordion: tighter ── */
    .ws-item-body p {
        padding-left: 0;
    }

    /* ── 9. Radar section: reduce dead space ── */
    #radar {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* ── 10. Feature section: less top padding ── */
    #features {
        padding: 60px 0 60px;
    }

    /* ── 11. Reviews: stack on mobile ── */
    .reviews-carousel-track .review-card {
        min-width: 280px;
    }

    /* ── 12. Everything section grid: single column ── */
    .everything-grid {
        grid-template-columns: 1fr;
    }

    /* ── 13. Floating card: prevent right edge crowding ── */
    .floating-card {
        margin-left: 8px;
        margin-right: 8px;
    }

    /* ── 14. "See it live" section: reduce padding ── */
    #see-it-live {
        padding: 60px 0;
    }

    /* ── 15. Smile chart: mobile sizing ── */
    .chart-container {
        height: 300px;
    }
    .glass-panel {
        padding: 24px 16px;
        border-radius: 20px;
    }
    .impact-bar {
        flex-wrap: wrap;
        gap: 16px;
    }
    .metric-value {
        font-size: 24px;
    }
}

/* ── Extra-small devices (< 420px) ── */
@media (max-width: 420px) {

    /* Tighter hero */
    .hero-header-left {
        margin-bottom: 32px;
    }
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }

    /* Feature cards fill more of the viewport */
    .feature-card {
        flex: 0 0 260px;
    }

    /* Globe: tighter legend */
    .globe-legend {
        gap: 12px;
        font-size: 0.65rem;
    }

    /* Reviews: narrower cards */
    .reviews-carousel-track .review-card {
        min-width: 260px;
    }

    /* Checkout pricing: slightly smaller for narrow screens */
    .checkout-price-hero {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }
}
