
@font-face {
    font-family: 'Satoshi';
    /*src: url('./fonts/Satoshi-Bold.otf') format('opentype');*/
    src: url("../font/Inter-Bold.ttf");
    font-weight: 700;
}
@font-face {
    font-family: 'Satoshi';
    /*src: url('./fonts/Satoshi-Medium.otf') format('opentype');*/
    src: url("../font/Inter-Bold.ttf");
    font-weight: 500;
}
@font-face {
    font-family: 'Manrope';
    /*src: url('./fonts/Manrope-Regular.otf') format('opentype');*/
    src: url("../font/Inter-Bold.ttf");
    font-weight: 400;
}
@font-face {
    font-family: 'Manrope';
    /*src: url('./fonts/Manrope-SemiBold.otf') format('opentype');*/
    src: url("../font/Inter-Bold.ttf");
    font-weight: 600;
}
@font-face {
    font-family: 'Manrope';
    /*src: url('./fonts/manrope-extrabold.otf') format('opentype');*/
    src: url("../font/Inter-Bold.ttf");
    font-weight: 900;
}


.main-container {
    display: flex;
    gap: 50px;
    /*align-items: center;*/
    justify-content: center; 
    padding: 20px;
}

.card1 {
    background: #ffffff;
    width: 498px; 
    /*height: 621px;*/
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.title1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 40px;
    background: linear-gradient(90deg, #E00083 0%, #FF8912 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #E00083;
    transform: translateY(0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 28px;
}

.description1 {
    font-size: 14px;
    line-height: 18px;
    color: #1a1a1ac2;
    font-weight: 700;
    margin-bottom: 20px;
    min-height: 60px;
    transform: translateY(0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-icon1 {
    position: absolute;
    top: 220px;  
    left: 80px;
    width: 64px; 
    height: auto;
    opacity: 0.58; 
    
    transform: translateY(0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.visuals-container1 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 36px;
    position: relative;
    height: 300px;
}

.chart-goal-wrapper1 {
    width: 150px; 
    height: 150px;
    position: relative;

}

.circular-chart-goal1 {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.track-outer1 {
    fill: none;
    stroke: rgba(129, 129, 129, 0.27);
    stroke-width: 8; 
    stroke-linecap: round;
}

.arc-outer1 {
    fill: none;
    stroke: #2FAA68;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 100; 
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.track-inner1 {
    fill: none;
    stroke: rgba(129, 129, 129, 0.27);
    stroke-width: 6; 
    stroke-linecap: round;
}

.arc-inner1 {
    fill: none;
    stroke: #707070;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-bg-outer1 { fill: #2FAA68; }
.icon-bg-inner1 { fill: #707070; }

.icon-group-inner-moving1 {
    offset-path: path('M 50 18 A 32 32 0 1 1 49.99 18'); 
    offset-distance: 0%; 
    offset-rotate: 0deg; 
    transition: offset-distance 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-group-outer-moving1 {
    offset-path: path('M 50 8 A 42 42 0 1 1 49.99 8');
    offset-distance: 0%;
    offset-rotate: 0deg;
    transition: offset-distance 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.card1:hover .arc-outer1 { stroke-dashoffset: 10; }
.card1:hover .icon-group-outer-moving1 { offset-distance: 90%; }
.card1:hover .arc-inner1 { stroke-dashoffset: 18; }
.card1:hover .icon-group-inner-moving1 { offset-distance: 82%; }

.goal-text1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}
.goal-text1 .label1 {
    font-size: 0.85rem;
    color: #444;
    font-weight: 700;
    margin-bottom: -3px;
}
.goal-text1 .value1 {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #333;
}
.goal-text1 .sub-label1 {
    font-size: 0.5rem;
    color: #666;
    margin-top: 2px;
    font-weight: 500;
}

.chart-main-wrapper1 {
    position: absolute;
    top: 0;
    right: 10%;
    width: 150px;
    height: 150px;
    /*margin-bottom: 20px; */
    /*margin-right: 20px;*/
}

.donut-chart1 {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-segment1 {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 0, 100;
    transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 0.8s ease;
}

.donut-segment1.segment-top1 { stroke: #CE4049; transition-delay: 0.4s; }
.donut-segment1.segment-bottom-right1 { stroke: #2FAA68; transition-delay: 0.2s; }
.donut-segment1.segment-bottom-left1 { stroke: #EFB82C; transition-delay: 0s; }

.card1:not(.switched):hover .donut-segment1.segment-bottom-left1 { stroke-dasharray: 22, 100; }
.card1:not(.switched):hover .donut-segment1.segment-bottom-right1 { stroke-dasharray: 25, 100; }
.card1:not(.switched):hover .donut-segment1.segment-top1 { stroke-dasharray: 38, 100; }

.center-text1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #444; 
    transition: color 0.5s ease;
}

.card1.switched .center-text1 { color: #444; }

.badge1 {
    position: absolute;
    background: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    transition: transform 0.3s;
}

.badge-top1 { top: -15px; left: 10px; }
.badge-right1 { bottom: 30px; right: -25px; }
.badge-left1 { bottom: 20px; left: -35px; }

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

.btn-primary1 {
    background: linear-gradient(90deg, #7b81ec 0%, #a86bf5 100%);
    border: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 30px;
    color: rgb(255, 255, 255);
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-primary1:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(123, 129, 236, 0.4);
}

.link-details1 {
    text-decoration: none;
    color: #888;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.link-details1:hover { color: #444; }

.fade-out {
    opacity: 0;
    transform: translateY(20px); 
}

.card2 {
    background: #ffffff;
    width: 498px; 
    /*height: 621px;*/
    padding: 50px 40px 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.title2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 40px;
    background: linear-gradient(90deg, #0A60CB 0%, #27C4F4 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #27C4F4;
    margin-bottom: 28px;
    white-space: nowrap;
}

.description2 {
    font-size: 14px;
    line-height: 18px;
    color: #1a1a1ac2;
    font-weight: 700;
    margin-bottom: 20px;
    min-height: 60px;
}

.controls {
    margin-bottom: 10px;
}

.dropdown-wrapper {
    position: relative;
    max-width: 280px;
    width: 90%;
}

.custom-dropdown {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.dropdown-selected {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    /*margin-top: 5px;*/
    padding: 0;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
    box-sizing: border-box;
}

.custom-dropdown:hover .dropdown-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-options li {
    padding: 10px 15px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    color: #333;
    transition: background 0.2s;
}

.dropdown-options li:hover {
    background-color: #f0f0f0;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: #666;
}

.chart-container {
    position: relative;
    height: 200px;
    display: flex;
}

.y-axis2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 12px;
    line-height: 1;
    color: #232323;
    font-weight: 600;
    margin-right: 10px;
    text-align: right;
    height: 95%;
}

.chart-area {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wave-chart {
    width: 100%;
    height: 190px;
    overflow: visible;
}

.wave-layer {
    transition: d .6s cubic-bezier(0.4, 0, 0.2, 1); 
}

.x-axis2 {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    line-height: 1;
    color: #232323;
    font-weight: 600;
    margin-top: 5px;
    padding: 0 5px;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer; 
    transition: opacity 0.3s;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: box-shadow 0.3s ease;
}

.solo-dot { background-color: #0A60CB; }
.family-dot { background-color: #4485E9; }
.business-dot { background-color: #27C4F4; }

.legend-item.active .solo-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0A60CB; }
.legend-item.active .family-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4485E9; }
.legend-item.active .business-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #27C4F4; }

.label {
    font-size: 14px;
    color: #232323;
    font-weight: 400;
}

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

.btn-primary2 {
    background: linear-gradient(90deg, #7b81ec 0%, #a86bf5 100%);
    border: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 30px;
    color: rgb(255, 255, 255);
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-primary2:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(123, 129, 236, 0.4);
}

.link-details2 {
    text-decoration: none;
    color: #888;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.link-details2:hover { color: #444; }

.card3 {
    background: #ffffff;
    width: 498px; 
    /*height: 621px;*/
    padding: 50px 40px 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    position: relative;
}

.title3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 40px;
    background: linear-gradient(90deg, #3C3059 0%, #B16AFE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #3C3059;
    margin-bottom: 28px;
}

.description3 {
    font-size: 14px;
    line-height: 18px;
    color: #1a1a1ac2;
    font-weight: 700;
    margin-bottom: 20px;
    min-height: 60px;
}

.visuals-wrapper {
    width: 100%;
    position: relative;
    padding-top: 48px;
}

.line-chart-container {
    display: flex;
    width: 100%;
    /* Remove fixed height to allow aspect ratio scaling */
    height: auto;
    min-height: 150px; 
    position: relative;
    align-items: stretch;
    margin-bottom: 25px;
}

.card3Legend{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 30px;
}
.card3Legend p{
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 18px;
    color: #232323;
    font-weight: 400;
    gap: 6px;
}
.card3Legend b{
    display: block;
    width: 10px;
    height: 3px;
    border-radius: 10px;
    background: #4485E9;
}

.y-axis3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    margin-right: 15px;
    color: #444;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    /* Allow it to follow the container's stretched height */
    height: auto;
}

.chart-content {
    flex-grow: 1;
    width: 100%;
    position: relative;
    /* Aspect Ratio Hack for 340x160 SVG (160/340 = 47.06%) */
    height: 0;
    padding-bottom: 47.06%;
}

.line-chart-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-track {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.6;
}

.chart-track.thick {
    stroke-width: 1.5;
    opacity: 0.6;
}

.chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card3.hover-state .chart-line {
    stroke-dashoffset: 0 !important;
}

.chart-line.pink { stroke: #E31D93; stroke-width: 1.5; }
.chart-line.yellow { stroke: #F3D68B; stroke-width: 1.5; }
.chart-line.orange { stroke: #FF9528; stroke-width: 1.5; }
.chart-line.purple { stroke: #524378; stroke-width: 1.5; }

.x-axis3 {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #232323;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 10px;
    line-height: 1;
    
    /* Position absolute to sit below the ratio-locked chart */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

.tooltip-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; 
}

.card3.hover-state .tooltip-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.card3.hover-state .peak-pos { transform: translate(-50%, -100%); transition-delay: 1.5s; }
.card3.hover-state .low-pos { transform: translate(-50%, -100%); transition-delay: 0.7s; }
.card3.hover-state .purple-pos { transform: translate(-50%, -100%); transition-delay: 1.4s; }

/* EXACT POSITIONS REQUESTED 
   Because aspect ratio is now locked, these work on all screen sizes.
*/
.peak-pos { left: 45.6%; top: 10.7%; transform: translate(-50%, -100%); }
.low-pos { left: 54.4%; top: 89.8%; transform: translate(-50%, -100%); }
.purple-pos { left: 72.1%; top: 35%; transform: translate(-50%, -100%); }

.peak-pos .chart-tooltip,
.purple-pos .chart-tooltip,
.low-pos .chart-tooltip {
    margin-bottom: 8px;
}
.card1, .card2, .card3 {
    width: calc(33% - 30px);
    /*height: 100%;*/
    position: relative;
    padding-bottom: 120px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.actions1,
.actions2,
.actions3{
    position: absolute;
    bottom: 50px;
    left: 40px;
}

.card1:hover, 
.card2:hover, 
.card3:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); 
}
.chart-tooltip {
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card3.hover-state .peak-pos .chart-tooltip { opacity: 1; transform: scale(1); transition-delay: 1.8s; }
.card3.hover-state .low-pos .chart-tooltip { opacity: 1; transform: scale(1); transition-delay: 1.0s; }
.card3.hover-state .purple-pos .chart-tooltip { opacity: 1; transform: scale(1); transition-delay: 1.7s; }

.pink-dot {
    width: 11px; height: 11px;
    background-color: #E31D93;
    border-radius: 50%; border: 2px solid white;
    box-shadow: 0 0 0 1px #E31D93;
    pointer-events: auto; cursor: pointer; z-index: 100;
}
.orange-dot {
    width: 11px; height: 11px;
    background-color: #FF9528;
    border-radius: 50%; border: 2px solid white;
    box-shadow: 0 0 0 1px #FF9528;
    pointer-events: auto; cursor: pointer; z-index: 100;
}
.purple-dot {
    width: 11px; height: 11px;
    background-color: #524378;
    border-radius: 50%; border: 2px solid white;
    box-shadow: 0 0 0 1px #524378;
    pointer-events: auto; cursor: pointer; z-index: 100;
}

.chart-tooltip img { width: 16px; height: auto; }
.chart-tooltip span { font-family: 'Manrope', sans-serif; font-size: 0.75rem; font-weight: 600; color: #333; }

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

.btn-primary3 {
    background: linear-gradient(90deg, #7b81ec 0%, #B16AFE 100%);
    border: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 30px;
    color: rgb(255, 255, 255);
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-primary3:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(177, 106, 254, 0.4);
}

.link-details3 {
    text-decoration: none;
    color: #888;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.link-details3:hover { color: #444; }

.arrow {
    font-size: 1rem;
}


@media (max-width: 1235px) {
    .main-container {
        flex-wrap: wrap;
        gap: 30px;
    }
    .card1, .card2, .card3 {
        width: 100%;
        max-width: 600px;
        height: auto;
        /*min-height: 550px;*/
        /*padding: 30px 20px;*/
    }
    
    /* REMOVED OVERRIDES for .peak-pos, .low-pos, .purple-pos 
       because the main class definitions now handle scaling automatically.
    */
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .card1, .card2, .card3 {
        width: 100%; 
        max-width: 400px;
        /*height: auto;*/
        /*min-height: 550px;*/
        /*padding: 30px 20px;*/
    }

    .chart-container, .visuals-wrapper, .visuals-container1 {
        transform: scale(0.9);
        transform-origin: center;
        margin-bottom: 0;
    }
    
    .actions1, .actions2, .actions3 {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .actions3 {
        margin-top: 30px;
    }
}