@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;800&family=Rubik:wght@300;400;500;700&display=swap');

:root {
    --midnight-blue: #0D1F3D;
    --premium-gold: #F4EFE6;
    --creamy-beige: #B5AD9E;
    --white: #FFFFFF;
    --text-gray: #545b62;
    /* Legacy aliases for easier migration */
    --bg-color: var(--creamy-beige);
    --gold: var(--premium-gold);
    --gold-light: #FAF7F0;
    --gold-dark: #E0D7C5;
    --blue: var(--midnight-blue);
    --blue-light: #1a3556;
    --blue-dark: #081428;
    --text-main: var(--midnight-blue);
    --text-muted: var(--text-gray);
    --transition-speed: 1.4s;
    --cubic-bezier: cubic-bezier(0.77, 0, 0.175, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--creamy-beige);
    font-family: 'Heebo', sans-serif;
    color: var(--midnight-blue);
}

/* Navigation Bar */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--white);
    box-shadow: 0 2px 25px rgba(13, 31, 61, 0.08);
    z-index: 500;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

body.state-finance .main-nav,
body.state-insurance .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    height: 62px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--midnight-blue);
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover {
    color: var(--premium-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--premium-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-search-btn {
    background: none;
    border: none;
    color: var(--midnight-blue);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-btn:hover {
    color: var(--premium-gold);
    background: rgba(244, 239, 230, 0.1);
}

.nav-cta-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--midnight-blue), var(--blue-dark));
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(13, 31, 61, 0.3);
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 31, 61, 0.5);
}

/* Background Effects */
.global-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: 
        /* Subtle warm gold ambient sweep rings on creamy beige */
        radial-gradient(ellipse 150vw 100vh at 50% 120%, transparent 50%, rgba(244, 239, 230,0.18) 51%, rgba(244, 239, 230,0.04) 53%, transparent 55%),
        radial-gradient(ellipse 160vw 110vh at 50% 130%, transparent 50%, rgba(244, 239, 230,0.12) 51%, rgba(244, 239, 230,0.02) 53%, transparent 55%),
        radial-gradient(ellipse 140vw 90vh at 50% 110%, transparent 50%, rgba(244, 239, 230,0.22) 51%, rgba(244, 239, 230,0.06) 52%, transparent 54%),
        /* The base creamy beige */
        var(--creamy-beige);
}

.light-beam {
    position: absolute;
    top: 50%; left: 50%;
    width: 150vw; height: 150vw;
    background: radial-gradient(circle, rgba(244, 239, 230,0.08) 0%, rgba(13,31,61,0.02) 30%, transparent 60%);
    transform: translate(-50%, -50%);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.1); }
}

.gold-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* Typography & Utils */
h1, h2, h3, h4, h5 { font-family: 'Rubik', sans-serif; }
.gold-text { color: var(--white); }
.blue-text { color: var(--white); }
.gold-bg { background: linear-gradient(135deg, var(--premium-gold), var(--gold-dark)); color: var(--midnight-blue); }
.blue-bg { background: linear-gradient(135deg, var(--midnight-blue), var(--blue-dark)); color: #fff; }
.mb-2 { margin-bottom: 0.5rem; }

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-gold {
    background: linear-gradient(135deg, var(--premium-gold), var(--gold-dark));
    color: var(--midnight-blue);
    box-shadow: 0 4px 15px rgba(13,31,61,0.15);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,31,61,0.25);
}

.btn-blue {
    background: linear-gradient(135deg, var(--midnight-blue), #152d50);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(13,31,61,0.3);
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,31,61,0.5);
}

/* Viewport & Scene */
.viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    perspective: 1200px;
}

.scene-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.section {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-speed) var(--cubic-bezier), 
                opacity var(--transition-speed) var(--cubic-bezier),
                visibility var(--transition-speed);
    backface-visibility: hidden;
}

/* Animations Logic */

/* Animations Logic */

/* Initial State */
.hero-section {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    opacity: 1; visibility: visible;
}

.hero-foreground-content {
    transition: opacity var(--transition-speed) var(--cubic-bezier), transform var(--transition-speed) var(--cubic-bezier);
    width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 5;
    pointer-events: none; /* Let clicks pass through to characters! */
}

/* Detail Screens */
.detail-section {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    opacity: 0; visibility: hidden;
    z-index: 20;
    transition: opacity var(--transition-speed) var(--cubic-bezier), transform var(--transition-speed) var(--cubic-bezier);
}

.finance-detail { transform: translate(10vw, 10vh) scale(0.9); }
.insurance-detail { transform: translate(-10vw, 10vh) scale(0.9); }

/* Products sections — start below viewport, slide up on scroll-down */
.finance-products,
.insurance-products {
    transform: translate(0, 100vh) scale(0.95);
}

/* Drifting Characters Shared Transition */
.hero-character {
    transition: transform var(--transition-speed) var(--cubic-bezier), opacity var(--transition-speed) ease;
}

body.state-finance .hero-foreground-content,
body.state-insurance .hero-foreground-content {
    opacity: 0; 
    pointer-events: none;
    transform: scale(0.9) translateZ(-100px);
}

/* ==== State Finance ==== Tomer (left) grows, Dan (right) fades */
body.state-finance .hero-character.right-character {
    opacity: 0;
    transform: translateX(20vw) scale(0.8);
    pointer-events: none;
}
body.state-finance .hero-character.left-character {
    transform-origin: center bottom;
    transform: scale(1.65) translateX(-3vw) translateY(18vh);
    z-index: 10;
}
body.state-finance .hero-character.left-character .character-labels,
body.state-finance .hero-character.left-character .character-grad {
    opacity: 0;
}
body.state-finance .finance-detail {
    transform: translate(0, 0) scale(1);
    opacity: 1; visibility: visible;
}

/* In products view, bio slides up out, products slides in from below */
body.state-finance.products-view .finance-detail {
    transform: translate(0, -100vh) scale(0.9);
    opacity: 0;
    visibility: hidden;
}
body.state-finance.products-view .finance-products {
    transform: translate(0, 0) scale(1);
    opacity: 1; visibility: visible;
}
body.state-finance.products-view .hero-character.left-character {
    opacity: 0;
}

/* ==== State Insurance ==== Dan (right) grows, Tomer (left) fades */
body.state-insurance .hero-character.left-character {
    opacity: 0;
    transform: translateX(-20vw) scale(0.8);
    pointer-events: none;
}
body.state-insurance .hero-character.right-character {
    transform-origin: center bottom;
    transform: scale(1.65) translateX(3vw) translateY(18vh);
    z-index: 10;
}
body.state-insurance .hero-character.right-character .character-labels,
body.state-insurance .hero-character.right-character .character-grad {
    opacity: 0;
}
body.state-insurance .insurance-detail {
    transform: translate(0, 0) scale(1);
    opacity: 1; visibility: visible;
}

body.state-insurance.products-view .insurance-detail {
    transform: translate(0, -100vh) scale(0.9);
    opacity: 0;
    visibility: hidden;
}
body.state-insurance.products-view .insurance-products {
    transform: translate(0, 0) scale(1);
    opacity: 1; visibility: visible;
}
body.state-insurance.products-view .hero-character.right-character {
    opacity: 0;
}


/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100vw; height: 100vh;
    overflow: hidden;
}

/* Three background shapes: navy halves + elliptical white middle */
.hero-bg-strip {
    position: absolute;
    z-index: 0;
}
.strip-left  { top: 0; bottom: 0; left: 0;    width: 50vw; background: var(--midnight-blue); transition: background 0.6s ease; }
.strip-right { top: 0; bottom: 0; left: 50vw; width: 50vw; background: var(--midnight-blue); transition: background 0.6s ease; }

/* When entering a detail screen, the side opposite the person turns white */
body.state-finance .strip-right { background: var(--white); }
body.state-insurance .strip-left { background: var(--white); }

/* Products view — Finance: panel on RIGHT (white), navy/half-ellipse on LEFT. Insurance: mirror. */
body.state-finance.products-view .strip-left  { background: var(--midnight-blue); }
body.state-finance.products-view .strip-right { background: var(--white); }
body.state-insurance.products-view .strip-left  { background: var(--white); }
body.state-insurance.products-view .strip-right { background: var(--midnight-blue); }

/* Journey view — OPPOSITE of products: panel on opposite side, half-ellipse on the other */
body.state-finance.journey-view .strip-left  { background: var(--white); }
body.state-finance.journey-view .strip-right { background: var(--midnight-blue); }
body.state-insurance.journey-view .strip-left  { background: var(--midnight-blue); }
body.state-insurance.journey-view .strip-right { background: var(--white); }
.strip-mid   {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48vw;
    height: 130vh;
    border-radius: 50%;
    background: var(--white);
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Hide the white ellipse INSTANTLY when entering contact view (no fade reveal) */
body.state-finance.contact-view .strip-mid,
body.state-insurance.contact-view .strip-mid {
    opacity: 0;
    transition: opacity 0s;
}

/* Background Characters */
.hero-character {
    position: absolute;
    bottom: 32vh; /* Raise higher up */
    width: 26vw; 
    height: 52vh; 
    cursor: pointer;
    z-index: 2;
    transition: transform 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.hero-character:hover { transform: scale(1.02) translateY(-10px); }

.hero-character img {
    position: absolute;
    bottom: 0px; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: contain; 
    object-position: bottom;
}

.tomer-image {
    transform: scale(1.06);
    transform-origin: bottom center;
}

.hero-character.left-character { left: 3.5vw; bottom: 38vh; }
.hero-character.right-character { right: 2.5vw; bottom: 38vh; }

.character-labels {
    position: absolute;
    bottom: -15vh;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    text-shadow: 0 1px 6px rgba(230,229,224,0.6);
    transition: opacity 0.3s;
}
.label-name { font-size: 2.2rem; font-weight: bold; color: var(--white); }
.label-role { font-size: 1.2rem; color: rgba(255,255,255,0.72); font-weight: 500;}

.hero-center-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 42vw;
    max-width: 42vw;
    text-align: center;
    z-index: 3;
    pointer-events: none;
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.hero-logo {
    height: 180px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(13, 31, 61, 0.1));
    transform: none;
}

.hero-top { margin-bottom: 2rem; }
.logo { display:flex; align-items:center; justify-content:center; }
.logo-img { height: 80px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.slogan { font-size: 1.6rem; margin-top: 5px; color: var(--text-gray); font-weight: 500;}

.main-title-box { margin-bottom: 0.5rem; margin-top: -100px; }
.main-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 15px; background: linear-gradient(to bottom, var(--midnight-blue), #1a3556); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.subtitle { font-size: 1.9rem; font-weight: 600; line-height: 1.3; color: var(--midnight-blue); }
.subtitle-secondary { font-size: 1.1rem; font-weight: 400; color: var(--text-gray); margin-top: 8px; opacity: 0.85; }

/* SVG Arrows Overlay */
.hero-exact-arrows {
    position: absolute;
    bottom: 3vh;
    left: 0;
    width: 100%;
    height: 12vh;
    z-index: 4;
    pointer-events: none;
    overflow: visible;
}
.dashed-arrow-line {
    stroke-dasharray: 15 15;
    animation: dash-flow 2s linear infinite reverse;
}
.gold-glow-stroke {
    stroke: var(--premium-gold);
    filter: drop-shadow(0 0 6px rgba(244, 239, 230,0.4));
}
.navy-stroke {
    stroke: var(--midnight-blue);
    filter: drop-shadow(0 0 4px rgba(13,31,61,0.2));
}
@keyframes dash-flow {   to { stroke-dashoffset: 100; } }

/* Bottom Actions */
.hero-bottom-actions {
    position: absolute;
    bottom: 0px; 
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
}

.hero-bottom-actions > * {
    pointer-events: auto;
}

/* RTL layout puts insurance first in DOM */
.hero-bottom-actions .insurance-btn { /* Insurance (Right visually) */
    position: absolute;
    bottom: 2vh;
    right: 15.5vw;
    transform: translateX(50%);
}

.hero-bottom-actions .finance-btn { /* Finance (Left visually) */
    position: absolute;
    bottom: 2vh;
    left: 16.5vw;
    transform: translateX(-50%);
}

.route-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s;
    pointer-events: auto; /* re-enable clicks here */
}
/* Removed hover animation scale(1.1) to keep it strictly stationary! */
.action-icon { font-size: 3.5rem; filter: drop-shadow(0 0 8px rgba(244, 239, 230,0.3)); color: var(--premium-gold); }
.blue-bg-glow { filter: drop-shadow(0 0 8px rgba(244, 239, 230,0.3)); color: var(--premium-gold); }
.gold-bg-glow { filter: drop-shadow(0 0 8px rgba(244, 239, 230,0.3)); }

.center-instruction { cursor: pointer; text-align: center; }
.scroll-icon-wrapper { margin-bottom: 15px; }
.bounce-anim { animation: bounce 2s infinite; font-size: 3.5rem; filter: drop-shadow(0 0 12px rgba(244, 239, 230,0.5));}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(20px); } 60% { transform: translateY(10px); } }

/* --- DETAILS SECTIONS (Finance & Insurance) --- */
.detail-content {
    display: flex;
    flex-direction: column;
    width: 40vw;
    height: auto;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(244, 239, 230,0.3);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(13,31,61,0.2);
    overflow-y: auto;
    padding: 3rem;
    gap: 2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.finance-detail .detail-content {
    right: 5vw;
    width: 55vw;
}

.insurance-detail .detail-content {
    left: 5vw;
    width: 55vw;
}

/* Products panel — for Tomer (finance) on RIGHT, for Dan (insurance) on LEFT */
.finance-products .detail-content {
    right: 5vw;
    width: 55vw;
}

.insurance-products .detail-content {
    left: 5vw;
    width: 55vw;
}

/* Journey panel — OPPOSITE side from products: Tomer on LEFT, Dan on RIGHT */
.finance-journey .detail-content,
.insurance-journey .detail-content {
    top: 80px;
    bottom: auto;
    transform: none;
    width: 55vw;
    max-height: calc(100vh - 100px);
    height: calc(100vh - 100px);
    overflow: hidden;
    padding: 0.5rem 2.5rem 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
}
.finance-journey .detail-content { left: 5vw; }
.insurance-journey .detail-content { right: 5vw; }

/* Bio content (replaces the previous products grid in the detail screens) */
.bio-content {
    padding: 2.5rem 3rem;
    overflow: visible !important;
}

/* Bio mobile header (image + title) and footer (contact button) — hidden on desktop */
.bio-mobile-header,
.bio-mobile-footer { display: none; }
.products-content {
    overflow: visible !important;
}
.bio-title {
    font-size: 2rem;
    color: var(--midnight-blue);
    margin: 0.5rem 0 1.2rem;
    text-align: center;
    font-weight: 800;
}
.bio-paragraph {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-gray);
    text-align: right;
    margin: 0 0 1.5rem;
}
.bio-scroll-hint {
    text-align: center;
    font-size: 0.95rem;
    color: var(--premium-gold);
    margin-top: 1rem;
    font-weight: 500;
    animation: bobDown 1.8s ease-in-out infinite;
    cursor: pointer;
    user-select: none;
}
.bio-scroll-hint:hover { opacity: 0.75; }
@keyframes bobDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

.detail-person-col, .detail-features-col, .detail-products-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.detail-img-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid;
    box-shadow: 0 10px 25px rgba(13,31,61,0.15);
}

.finance-detail .detail-img-wrapper { border-color: var(--premium-gold); }
.insurance-detail .detail-img-wrapper { border-color: var(--midnight-blue); }

.detail-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.person-title {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--midnight-blue);
}

.person-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.person-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.expertise-area h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--midnight-blue);
}

.expertise-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.expertise-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.detail-products-col {
    flex: 1;
    border-right: 1px solid rgba(244, 239, 230,0.2);
    padding-right: 3rem;
}

/* --- Insurance old-style product cards --- */
.products-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid;
    color: var(--midnight-blue);
}

.gold-border { border-color: var(--premium-gold); }
.blue-border { border-color: var(--midnight-blue); }

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--creamy-beige);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(244, 239, 230,0.2);
    transition: transform 0.3s, background 0.3s;
}

.product-card:hover {
    transform: translateX(-5px);
    background: rgba(244, 239, 230,0.15);
}

.product-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.product-text h5 {
    font-size: 1.1rem;
    margin-bottom: 3px;
    color: var(--midnight-blue);
}

.product-text p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* --- Finance Products Grid (Reference Style) --- */

.finance-grid-layout {
    padding: 1.5rem 2rem;
    gap: 1rem;
}

.finance-top-bar {
    display: flex;
    justify-content: center;
    width: 100%;
}

.insurance-grid-layout {
    padding: 1.5rem 2rem;
    gap: 1rem;
}

.insurance-top-bar {
    display: flex;
    justify-content: center;
    width: 100%;
}

.products-grid-col {
    border-right: none !important;
    padding-right: 0 !important;
}

.products-grid-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    color: var(--midnight-blue);
    margin-bottom: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.product-grid-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(13,31,61,0.06);
    border: 1px solid rgba(244, 239, 230,0.25);
}

.product-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(13,31,61,0.12);
}

.product-grid-img {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.product-grid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-grid-card:hover .product-grid-img img {
    transform: scale(1.08);
}

.product-grid-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--midnight-blue);
    padding: 0.7rem 0.5rem 0.2rem;
    margin: 0;
}

.product-grid-card p {
    font-size: 0.78rem;
    color: var(--midnight-blue);
    line-height: 1.4;
    padding: 0 0.6rem 0.8rem;
    margin: 0;
    font-weight: 600;
}

/* Insurance 5-item grid: 3 on top, 2 centered on bottom */
.insurance-products-grid {
    grid-template-columns: repeat(6, 1fr);
}

.insurance-products-grid .product-grid-card:nth-child(1) {
    grid-column: 1 / 3;
}
.insurance-products-grid .product-grid-card:nth-child(2) {
    grid-column: 3 / 5;
}
.insurance-products-grid .product-grid-card:nth-child(3) {
    grid-column: 5 / 7;
}
.insurance-products-grid .product-grid-card:nth-child(4) {
    grid-column: 2 / 4;
}
.insurance-products-grid .product-grid-card:nth-child(5) {
    grid-column: 4 / 6;
}

.back-btn {
    position: absolute;
    top: 105px;
    left: 30px;
    background: var(--midnight-blue);
    border: 1px solid rgba(244, 239, 230,0.3);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    transition: 0.3s;
    z-index: 100;
}

.back-btn:hover {
    background: #152d50;
    box-shadow: 0 4px 15px rgba(13,31,61,0.3);
}

/* --- BOTTOM GUIDE --- */
.bottom-guide {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 31, 61, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--premium-gold);
    border-radius: 15px;
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
    transition: all 0.5s ease;
}

.guide-title {
    font-size: 0.9rem;
    color: var(--premium-gold);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guide-steps {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.step.active {
    opacity: 1;
}

.step-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--white);
}

.step-text {
    font-size: 0.8rem;
    line-height: 1.2;
    color: var(--white);
}

.step-arrow {
    color: var(--premium-gold);
    font-size: 1rem;
    opacity: 0.5;
}

.zoom-icon {
    position: relative;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--white);
    margin-bottom: 5px;
}

.mini-hero-icon {
    display: flex;
    gap: 5px;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Hide some steps in main view vs detail view */
body:not(.state-finance):not(.state-insurance) #step4,
body:not(.state-finance):not(.state-insurance) #step5 {
    display: none;
}
body:not(.state-finance):not(.state-insurance) .step-arrow:nth-child(6),
body:not(.state-finance):not(.state-insurance) .step-arrow:nth-child(8) {
    display: none;
}

body.state-finance #step1, body.state-insurance #step1,
body.state-finance #step2, body.state-insurance #step2,
body.state-finance #step3, body.state-insurance #step3,
body.state-finance .step-arrow:nth-child(2), body.state-insurance .step-arrow:nth-child(2),
body.state-finance .step-arrow:nth-child(4), body.state-insurance .step-arrow:nth-child(4) {
    display: none;
}

/* ==================================================
   CUSTOMER JOURNEY (third page per persona)
   ================================================== */
.finance-journey,
.insurance-journey {
    background: transparent;
    overflow: hidden;
}
.finance-contact,
.insurance-contact {
    display: block;
    background: var(--midnight-blue);
    overflow-y: auto;
    overflow-x: hidden;
}
.finance-contact,
.insurance-contact {
    transform: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
body.state-finance.contact-view .finance-contact,
body.state-insurance.contact-view .insurance-contact {
    transform: none;
    opacity: 1;
    visibility: visible;
    /* visibility flips IMMEDIATELY on enter so the section is alive while it fades in */
    transition: opacity 0.25s ease, visibility 0s linear 0s;
}
/* Hide journey when in contact-view — fade out then hide */
body.state-finance.contact-view .finance-journey,
body.state-insurance.contact-view .insurance-journey {
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
/* Inherit navy strips behind contact-view too */
body.state-finance.contact-view .strip-left,
body.state-finance.contact-view .strip-right,
body.state-insurance.contact-view .strip-left,
body.state-insurance.contact-view .strip-right {
    background: var(--midnight-blue);
}
body.state-finance.contact-view .hero-character.left-character,
body.state-insurance.contact-view .hero-character.right-character {
    opacity: 0;
}
.journey-back {
    position: fixed;
    top: 90px;
    right: 30px;
    z-index: 100;
    background: var(--midnight-blue);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s, transform 0.25s;
    box-shadow: 0 6px 18px rgba(13,31,61,0.25);
}
.journey-back:hover {
    background: #1a3556;
    transform: translateY(-2px);
}

.journey-shell {
    max-width: 70vw;
    margin: 0 auto;
    padding: 7vh 9vw 13vh;
    position: relative;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 30px 80px rgba(13,31,61,0.4);
}

.journey-head { text-align: center; margin-bottom: 8px; }
.journey-eyebrow {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    letter-spacing: 4px; text-transform: uppercase;
    color: var(--midnight-blue);
    padding: 5px 12px;
    background: rgba(13,31,61,0.05);
    border: 1px solid rgba(13,31,61,0.12);
    border-radius: 100px;
    margin-bottom: 12px;
}
.journey-title {
    font-family: 'Rubik', 'Heebo', sans-serif;
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 800;
    color: var(--midnight-blue);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.journey-title em { color: #2a3f6e; font-style: normal; }
.journey-lede {
    font-size: 13px; font-weight: 300;
    color: var(--text-gray);
    line-height: 1.55;
    max-width: 440px;
    margin: 0 auto;
}
.journey-bar {
    width: 36px; height: 2px;
    background: linear-gradient(90deg, var(--midnight-blue), transparent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.journey-timeline { position: relative; }
.journey-svg {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: visible; pointer-events: none;
    z-index: 1;
}
.journey-steps { direction: ltr; position: relative; z-index: 2; }

.j-step {
    width: 46%;
    margin-bottom: 10px;
    position: relative;
}
.j-step:nth-child(odd)  { margin-left: 54%; }
.j-step:nth-child(even) { margin-left: 0; }
.j-step:last-child { margin-bottom: 0; }

.j-card {
    direction: rtl;
    background: #fff;
    border: 1px solid rgba(13,31,61,0.10);
    border-radius: 12px;
    padding: 10px 14px 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(13,31,61,0.07);
}
.j-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(140deg, rgba(13,31,61,0.03) 0%, transparent 50%);
    border-radius: inherit; pointer-events: none;
}

.j-num {
    position: absolute;
    bottom: -6px; right: 12px;
    font-size: 50px; font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(13,31,61,0.10);
    pointer-events: none;
    user-select: none;
}
.j-step:nth-child(even) .j-num { right: auto; left: 12px; }

.j-card-head {
    display: flex; align-items: center; gap: 8px;
    flex-direction: row-reverse;
    margin-bottom: 4px;
}
.j-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: #F4F6FB;
    border: 1px solid rgba(13,31,61,0.10);
    display: flex; align-items: center; justify-content: center;
}
.j-icon svg { width: 15px; height: 15px; color: var(--midnight-blue); }

.j-label-wrap { text-align: right; }
.j-step-label {
    display: block;
    font-size: 9px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--midnight-blue);
    opacity: 0.55;
    margin-bottom: 2px;
}
.j-step-title {
    font-family: 'Rubik', 'Heebo', sans-serif;
    font-size: 0.95rem; font-weight: 700;
    color: var(--midnight-blue);
    line-height: 1.2;
    letter-spacing: -0.2px;
}
.j-step-desc {
    font-size: 0.78rem; font-weight: 500;
    color: var(--midnight-blue);
    line-height: 1.45;
    text-align: right;
}

@media (max-width: 760px) {
    .journey-shell { padding: 70px 24px 80px; }
    .j-step, .j-step:nth-child(odd), .j-step:nth-child(even) {
        width: 100%; margin-left: 0; margin-bottom: 70px;
    }
    .j-num { font-size: 60px; }
}

/* === Showing the journey via state === */
.finance-journey,
.insurance-journey {
    transform: translate(0, 100vh) scale(0.95);
}
body.state-finance.journey-view .finance-journey {
    transform: translate(0, 0) scale(1);
    opacity: 1; visibility: visible;
}
body.state-insurance.journey-view .insurance-journey {
    transform: translate(0, 0) scale(1);
    opacity: 1; visibility: visible;
}
/* Hide products + bio in journey view */
body.state-finance.journey-view .finance-products,
body.state-finance.journey-view .finance-detail {
    transform: translate(0, -100vh) scale(0.9);
    opacity: 0; visibility: hidden;
}
body.state-insurance.journey-view .insurance-products,
body.state-insurance.journey-view .insurance-detail {
    transform: translate(0, -100vh) scale(0.9);
    opacity: 0; visibility: hidden;
}
/* Hide character in journey view */
body.state-finance.journey-view .hero-character.left-character,
body.state-insurance.journey-view .hero-character.right-character {
    opacity: 0;
}
/* ============== CONTACT SECTION ============== */
.contact-section {
    width: 100%;
    background: var(--white);
    padding: 70px 6vw;
    margin: 0;
}
.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: #F4EFE6;
    border: 1px solid rgba(13,31,61,0.08);
    border-radius: 10px;
    padding: 60px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info {
    text-align: right;
    direction: rtl;
}
.contact-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-gray);
    margin-bottom: 14px;
}
.contact-title {
    font-family: 'Rubik', 'Heebo', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--midnight-blue);
    margin-bottom: 18px;
    line-height: 1.1;
}
.contact-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 360px;
}
.contact-rows { display: flex; flex-direction: column; gap: 22px; }
.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(13,31,61,0.12);
    padding-top: 12px;
}
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-gray);
    white-space: nowrap;
    flex-shrink: 0;
}
.contact-val {
    font-weight: 700;
    color: var(--midnight-blue);
    font-size: 1rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    direction: rtl;
}
.contact-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(13,31,61,0.25);
    padding: 8px 4px;
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    color: var(--midnight-blue);
    text-align: right;
    outline: none;
    transition: border-color 0.25s;
}
.contact-input::placeholder { color: rgba(13,31,61,0.45); }
.contact-input:focus { border-bottom-color: var(--midnight-blue); }
.contact-submit {
    margin-top: 8px;
    background: var(--midnight-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 16px 24px;
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s;
}
.contact-submit:hover { background: #1a3556; }
.contact-discretion {
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-gray);
    margin-top: 8px;
}

/* ============== SITE FOOTER ============== */
.site-footer {
    width: 100%;
    background: var(--midnight-blue);
    color: rgba(255,255,255,0.85);
    padding: 60px 6vw 50px;
}
.footer-cols {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
    direction: rtl;
}
.footer-brand {
    font-family: 'Rubik', 'Heebo', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.footer-brand em { font-style: normal; color: rgba(255,255,255,0.7); }
.footer-bottom-logo {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.footer-logo {
    height: 140px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
}
@media (max-width: 768px) {
    .footer-logo { height: 110px; }
    .footer-bottom-logo { margin-top: 30px; padding-top: 24px; }
}
.footer-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 360px;
}
.footer-col-title {
    font-family: 'Rubik', 'Heebo', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links li {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: color 0.2s;
}
.footer-links li:hover { color: var(--white); }
.footer-contact-row {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}
.footer-contact-row strong {
    color: var(--white);
    font-weight: 700;
    margin-left: 6px;
}

@media (max-width: 800px) {
    .contact-inner { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
    .footer-cols { grid-template-columns: 1fr; gap: 30px; }
}

/* =====================================================
   MOBILE / RESPONSIVE (≤ 768px)
   ===================================================== */
@media (max-width: 768px) {
    /* Nav */
    .main-nav { height: 56px; }
    .nav-container { padding: 0 4vw; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.85rem; padding: 4px 0; }
    .nav-logo { height: 32px; }

    /* === NEW MOBILE HERO: full-height split columns with characters + white dome on top === */

    /* Floating hero characters not used here (we put them as bg in the columns) */
    .hero-character { display: none; }
    .character-labels { display: none; }

    /* In hero state hide the strip backgrounds (the columns themselves serve as background) */
    body:not(.state-finance):not(.state-insurance) .strip-left,
    body:not(.state-finance):not(.state-insurance) .strip-right,
    body:not(.state-finance):not(.state-insurance) .strip-mid {
        display: none;
    }

    /* BOTTOM SPLIT — actually full-height: two columns, each with a character bg.
       The dome above will overlay on top of these. The leftover around the dome's
       curve naturally belongs to whichever column is underneath, integrating them. */
    .hero-bottom-actions {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: row;
        background: var(--white);
        z-index: 2;
        pointer-events: auto;
    }
    .hero-bottom-actions .insurance-btn,
    .hero-bottom-actions .finance-btn {
        position: relative;
        overflow: hidden;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: center;
        gap: 8px;
        padding: 0 0.3rem 10vh;
        background-color: var(--white);
        cursor: pointer;
    }
    /* Layer 1 (::before) — themed background photo with faded-blue tint;
       lighter overlay so the imagery (charts, medical scene) is clearly visible */
    .hero-bottom-actions .finance-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            linear-gradient(rgba(13, 31, 61, 0.35), rgba(13, 31, 61, 0.45)),
            url('./assets/product_analytics.png') center / cover no-repeat;
        filter: blur(1px);
        z-index: 0;
        pointer-events: none;
    }
    .hero-bottom-actions .insurance-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: var(--midnight-blue);
        background-image:
            linear-gradient(rgba(13, 31, 61, 0.35), rgba(13, 31, 61, 0.45)),
            url('./assets/product_health.png'),
            url('./assets/product_health.png');
        background-size: auto, auto 40%, cover;
        background-position: center, center 35%, center;
        background-repeat: no-repeat;
        filter: blur(1px);
        z-index: 0;
        pointer-events: none;
    }
    /* Layer 2 (::after) — character image anchored to the bottom.
       Dan's source image has more headroom around his head, so size him up to match Tomer visually */
    .hero-bottom-actions .finance-btn::after {
        content: '';
        position: absolute;
        inset: 0;
        background: url('./assets/tomer.png') center bottom / auto 70% no-repeat;
        z-index: 1;
        pointer-events: none;
    }
    .hero-bottom-actions .insurance-btn::after {
        content: '';
        position: absolute;
        inset: 0;
        background: url('./assets/dan.png') 30% 108% / auto 70% no-repeat;
        z-index: 1;
        pointer-events: none;
    }
    /* Divider between columns */
    .hero-bottom-actions .insurance-btn {
        border-left: 1px solid rgba(255,255,255,0.18);
    }
    /* Navy "pill" containing icon + white text, overlaid on the character body.
       Min-width keeps both pills the same length; nowrap prevents the longer label from wrapping */
    .hero-bottom-actions .route-label {
        position: relative;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 10px;
        min-width: 11rem;
        background: var(--midnight-blue);
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.25);
        white-space: nowrap;
    }
    .route-action .action-icon { font-size: 1.1rem; color: var(--white) !important; filter: none; line-height: 1; flex-shrink: 0; }
    .route-action .action-icon i { color: var(--white) !important; }
    .route-action span { font-size: 0.9rem !important; color: var(--white) !important; font-weight: 700 !important; text-shadow: none; white-space: nowrap; }

    /* TOP DOME: larger logo + text — taller dome so the two text lines aren't cut by the curve */
    .hero-center-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        height: 26vh;
        background: var(--white);
        border-bottom-left-radius: 50% 100%;
        border-bottom-right-radius: 50% 100%;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 1.5rem 2vh;
        z-index: 5;
        pointer-events: auto;
    }
    .hero-logo-wrapper {
        margin-bottom: 0.3rem;
        line-height: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .hero-logo { height: 56px; transform: none; display: block; margin: 0 auto; }
    .main-title-box { margin-top: 0; text-align: center; width: 100%; }
    .main-title { font-size: 1.05rem; line-height: 1.1; margin-bottom: 2px; font-weight: 800; text-align: center; }
    .subtitle { font-size: 0.85rem; line-height: 1.2; font-weight: 600; text-align: center; }
    .subtitle-secondary { font-size: 0.72rem; line-height: 1.2; text-align: center; }

    /* Bio / Products / Journey panels: full-width on mobile */
    .finance-detail .detail-content,
    .insurance-detail .detail-content,
    .finance-products .detail-content,
    .insurance-products .detail-content {
        left: 4vw !important;
        right: 4vw !important;
        width: auto !important;
        max-width: none;
        top: 80px !important;
        bottom: 2vh !important;
        height: auto !important;
        max-height: calc(100dvh - 100px) !important;
        padding: 0.8rem 1rem !important;
        transform: none !important;
        overflow-y: auto !important;
    }
    .finance-journey .detail-content,
    .insurance-journey .detail-content {
        left: 4vw !important;
        right: 4vw !important;
        width: auto !important;
        max-height: calc(100vh - 90px) !important;
        height: calc(100vh - 90px) !important;
        padding: 0.5rem 0.8rem !important;
        top: 70px !important;
    }

    /* On mobile, when bio is open the big character shrinks toward the panel and fades out
       — gives the illusion that the big character "becomes" the small avatar */
    body.state-finance .hero-character.left-character,
    body.state-insurance .hero-character.right-character {
        opacity: 0 !important;
        transform: scale(0.45) translateY(-30vh) !important;
        pointer-events: none;
    }

    /* Bio mobile: larger header + readable text that fills the white panel */
    .bio-mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    .bio-avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        object-position: top;
        border: 3px solid var(--premium-gold);
        box-shadow: 0 6px 16px rgba(13,31,61,0.18);
        background: var(--creamy-beige);
    }
    .insurance-detail .bio-avatar { border-color: var(--midnight-blue); }
    .bio-mobile-header .bio-title {
        font-size: 1.5rem;
        margin: 0;
        text-align: center;
        font-weight: 800;
    }
    /* Footer with the contact button — sits naturally at the end of content */
    .bio-mobile-footer {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 0.3rem;
    }
    .bio-mobile-footer .btn {
        padding: 10px 22px;
        font-size: 0.95rem;
    }
    /* Hide the duplicate standalone top-bar button and standalone title on mobile */
    .bio-content > .finance-top-bar,
    .bio-content > .insurance-top-bar,
    .bio-content > .bio-title { display: none; }

    /* Bio paragraphs: larger readable text in navy */
    .bio-paragraph {
        font-size: 0.92rem;
        line-height: 1.55;
        text-align: center;
        margin-bottom: 0.7rem;
        font-weight: 500;
        color: var(--midnight-blue);
    }
    .bio-content { gap: 0.4rem; }
    /* Hide scroll hint on mobile since everything fits on one screen */
    .bio-scroll-hint { display: none; }

    /* Products grid: 2 columns on mobile */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .insurance-products-grid { grid-template-columns: repeat(2, 1fr); }
    .insurance-products-grid .product-grid-card:nth-child(n) { grid-column: auto; }
    .product-grid-img { height: 80px; }
    .product-grid-card h5 { font-size: 0.88rem; padding: 0.5rem 0.4rem 0.15rem; }
    .product-grid-card p { font-size: 0.7rem; padding: 0 0.5rem 0.6rem; }
    .products-grid-title { font-size: 1.3rem; margin-bottom: 0.6rem; }
    .finance-grid-layout, .insurance-grid-layout { padding: 0.6rem 0.6rem 3.5rem; gap: 0.6rem; }
    .products-content { padding-bottom: 3rem !important; }

    /* Journey: full-width single-column */
    .j-step { width: 100%; margin-left: 0 !important; margin-bottom: 8px; }
    .j-step:nth-child(odd)  { margin-left: 0 !important; }
    .j-step:nth-child(even) { margin-left: 0 !important; }
    .j-card { padding: 8px 12px; }
    .j-num { display: none; }
    .journey-title { font-size: 1.3rem; }
    .journey-lede { font-size: 0.85rem; }
    .journey-svg { display: none; }

    /* Contact card */
    .contact-section { padding: 40px 4vw; }
    .contact-inner { padding: 24px 20px; gap: 24px; }
    .contact-title { font-size: 1.6rem; }
    .contact-desc { font-size: 0.9rem; }

    /* Footer */
    .site-footer { padding: 40px 5vw 35px; }
    .footer-brand { font-size: 1.4rem; }
    .footer-col-title { font-size: 0.95rem; margin-bottom: 12px; }
    .footer-desc, .footer-contact-row, .footer-links li { font-size: 0.85rem; }

    /* Top bar button (contact) */
    .finance-top-bar .btn, .insurance-top-bar .btn { padding: 8px 14px; font-size: 0.85rem; }

    /* On mobile: when bio OR products view is open, the area around the white panel is fully navy */
    body.state-finance:not(.journey-view):not(.contact-view),
    body.state-insurance:not(.journey-view):not(.contact-view) {
        background-color: var(--midnight-blue);
    }
    body.state-finance:not(.journey-view):not(.contact-view) .global-bg,
    body.state-insurance:not(.journey-view):not(.contact-view) .global-bg {
        background: var(--midnight-blue);
    }
    body.state-finance:not(.journey-view):not(.contact-view) .strip-left,
    body.state-finance:not(.journey-view):not(.contact-view) .strip-right,
    body.state-insurance:not(.journey-view):not(.contact-view) .strip-left,
    body.state-insurance:not(.journey-view):not(.contact-view) .strip-right {
        background: var(--midnight-blue);
    }
    body.state-finance:not(.journey-view):not(.contact-view) .strip-mid,
    body.state-insurance:not(.journey-view):not(.contact-view) .strip-mid {
        opacity: 0;
    }

    /* Journey view on mobile: mostly white, with navy half-ellipse curves on the sides */
    body.state-finance.journey-view,
    body.state-insurance.journey-view {
        background-color: var(--white);
    }
    body.state-finance.journey-view .global-bg,
    body.state-insurance.journey-view .global-bg {
        background: var(--white);
    }
    /* Left navy strip — narrow, with curved right edge */
    body.state-finance.journey-view .strip-left,
    body.state-insurance.journey-view .strip-left {
        background: var(--midnight-blue);
        width: 9vw;
        border-top-right-radius: 100% 50%;
        border-bottom-right-radius: 100% 50%;
    }
    /* Right navy strip — narrow, with curved left edge */
    body.state-finance.journey-view .strip-right,
    body.state-insurance.journey-view .strip-right {
        background: var(--midnight-blue);
        left: auto;
        right: 0;
        width: 9vw;
        border-top-left-radius: 100% 50%;
        border-bottom-left-radius: 100% 50%;
    }
    body.state-finance.journey-view .strip-mid,
    body.state-insurance.journey-view .strip-mid {
        opacity: 0;
    }
    /* Journey shell: transparent (no white pill since background is already white) */
    .finance-journey .journey-shell,
    .insurance-journey .journey-shell {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
        padding: 30px 14px 50px;
    }
    /* Enable scrolling, full height fits viewport */
    .finance-journey .detail-content,
    .insurance-journey .detail-content {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-height: calc(100dvh - 90px) !important;
        height: calc(100dvh - 90px) !important;
        -webkit-overflow-scrolling: touch;
        left: 10vw !important;
        right: 10vw !important;
    }
}

/* ============================================================
   APPLY THE MOBILE HERO DESIGN UNIVERSALLY (also on desktop)
   ============================================================ */

/* Hide floating characters and 3-strip bg in hero state on all sizes */
.hero-character { display: none; }
.character-labels { display: none; }
body:not(.state-finance):not(.state-insurance) .strip-left,
body:not(.state-finance):not(.state-insurance) .strip-right,
body:not(.state-finance):not(.state-insurance) .strip-mid {
    display: none;
}

/* BOTTOM SPLIT: full-height columns with character bgs */
.hero-bottom-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    background: var(--white);
    z-index: 2;
    pointer-events: auto;
}
.hero-bottom-actions .insurance-btn,
.hero-bottom-actions .finance-btn {
    position: relative;
    overflow: hidden;
    top: auto; bottom: auto; left: auto; right: auto;
    transform: none;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    padding: 0 0.3rem 10vh;
    background-color: var(--white);
    cursor: pointer;
}
.hero-bottom-actions .finance-btn::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(rgba(13, 31, 61, 0.35), rgba(13, 31, 61, 0.45)),
        url('./assets/product_analytics.png') center / cover no-repeat;
    filter: blur(1px);
    z-index: 0;
    pointer-events: none;
}
.hero-bottom-actions .insurance-btn::before {
    content: '';
    position: absolute; inset: 0;
    background-color: var(--midnight-blue);
    background-image:
        linear-gradient(rgba(13, 31, 61, 0.35), rgba(13, 31, 61, 0.45)),
        url('./assets/product_health.png'),
        url('./assets/product_health.png');
    background-size: auto, auto 40%, cover;
    background-position: center, center 35%, center;
    background-repeat: no-repeat;
    filter: blur(1px);
    z-index: 0;
    pointer-events: none;
}
.hero-bottom-actions .finance-btn::after {
    content: '';
    position: absolute; inset: 0;
    background: url('./assets/tomer.png') center bottom / auto 70% no-repeat;
    z-index: 1;
    pointer-events: none;
}
.hero-bottom-actions .insurance-btn::after {
    content: '';
    position: absolute; inset: 0;
    background: url('./assets/dan.png') 30% 108% / auto 70% no-repeat;
    z-index: 1;
    pointer-events: none;
}
.hero-bottom-actions .insurance-btn {
    border-left: 1px solid rgba(255,255,255,0.18);
}
.hero-bottom-actions .route-label {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    min-width: 11rem;
    background: var(--midnight-blue);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    white-space: nowrap;
}
.route-action .action-icon { font-size: 1.1rem; color: var(--white) !important; filter: none; line-height: 1; flex-shrink: 0; }
.route-action .action-icon i { color: var(--white) !important; }
.route-action span { font-size: 0.9rem !important; color: var(--white) !important; font-weight: 700 !important; text-shadow: none; white-space: nowrap; }

/* TOP DOME */
.hero-center-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 26vh;
    background: var(--white);
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1.5rem 2vh;
    z-index: 5;
    pointer-events: auto;
}
.hero-logo-wrapper {
    margin-bottom: 0.3rem;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.hero-logo { height: 56px; transform: none; display: block; margin: 0 auto; }
.main-title-box { margin-top: 0; text-align: center; width: 100%; }
.main-title { font-size: 1.05rem; line-height: 1.1; margin-bottom: 2px; font-weight: 800; text-align: center; }
.subtitle { font-size: 0.85rem; line-height: 1.2; font-weight: 600; text-align: center; }
.subtitle-secondary { font-size: 0.72rem; line-height: 1.2; text-align: center; }

/* === DESKTOP-SPECIFIC SIZING (larger fonts, characters, pills) === */
@media (min-width: 769px) {
    .hero-center-content {
        height: 26vh;
        padding: 1rem 1.5rem 4vh;
    }
    .hero-logo { height: 110px; }
    .main-title { font-size: 2rem; line-height: 1.15; margin-bottom: 6px; }
    .subtitle { font-size: 1.5rem; line-height: 1.2; }
    .subtitle-secondary { font-size: 1.1rem; line-height: 1.3; margin-top: 4px; }

    .hero-bottom-actions .insurance-btn,
    .hero-bottom-actions .finance-btn {
        padding: 0 2vw 12vh;
    }
    /* On desktop, the insurance bg is a single full-cover image (no inner mini-tile) */
    .hero-bottom-actions .insurance-btn::before {
        background-color: var(--midnight-blue);
        background-image:
            linear-gradient(rgba(13, 31, 61, 0.35), rgba(13, 31, 61, 0.45)),
            url('./assets/product_health.png');
        background-size: auto, cover;
        background-position: center, center;
        background-repeat: no-repeat;
    }
    .hero-bottom-actions .finance-btn::after {
        background: url('./assets/tomer.png') center bottom / auto 75% no-repeat;
    }
    .hero-bottom-actions .insurance-btn::after {
        background: url('./assets/dan.png') 40% 105% / auto 75% no-repeat;
    }
    .hero-bottom-actions .route-label {
        padding: 14px 24px;
        min-width: 16rem;
        border-radius: 14px;
        gap: 12px;
    }
    .route-action .action-icon { font-size: 1.6rem; }
    .route-action span { font-size: 1.3rem !important; }
}
