/* =============================================
   CALCULATOR
   ============================================= */
:root{
    --brandBlue: #13213c;
    --brandBlueDark: #173F86;
    --brandBlueSoft: rgba(32,80,164,.14);
    --bg: transparent;
    --text: #0b0b0b;
    --muted: #5f6b7a;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0,0,0,.10);
    --radius: 18px;
}

.wrap{ max-width: 1080px; margin: 34px auto 60px; padding: 0 18px; }

.wrap h1{
    text-align: center;
    font-size: 33px;
    line-height: 1.15;
    margin: 10px 0 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #0f172a;
    font-family: 'PlusJakartaSans', sans-serif;
}

.grid{ display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
.panel{ padding: 10px 6px; }
.control{ margin: 18px 0 34px; }
.row{ display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }

.label{
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    font-family: 'PlusJakartaSans', sans-serif;
}

.valueBox{
    width: 56px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0f172a;
    background: #f3f4f6;
    font-family: 'PlusJakartaSans', sans-serif;
}

.valueInput{ text-align: center; outline: none; padding: 0 6px; appearance: textfield; -moz-appearance: textfield; }
.valueInput:focus{ background: #ffffff; border-color: rgba(32,80,164,.55); box-shadow: 0 0 0 3px rgba(32,80,164,.18); }
.valueInput::-webkit-outer-spin-button,
.valueInput::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }

.sliderWrap{ display: grid; grid-template-columns: 1fr; gap: 8px; }

input[type="range"]{
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brandBlue) 0%, var(--brandBlue) 0%, #e5e7eb 0%, #e5e7eb 100%);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--brandBlue);
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    cursor: pointer;
    margin-top: -5px;
}

input[type="range"]::-moz-range-thumb{
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--brandBlue);
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    cursor: pointer;
}

input[type="range"]::-moz-range-track{ height: 6px; border-radius: 999px; background: #e5e7eb; }

.minmax{ display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -2px; font-family: 'PlusJakartaSans', sans-serif; }

.help{
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    max-width: 520px;
    line-height: 1.5;
    font-family: 'Newsreader', serif;
    font-weight: 400;
}

.brands{
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    max-width: 520px;
    line-height: 1.35;
    font-style: italic;
    opacity: .95;
    font-family: 'Newsreader', serif;
    font-weight: 300;
}

.card{
    background: var(--brandBlue);
    color: white;
    border-radius: var(--radius);
    padding: 30px 26px 24px;
    box-shadow: var(--shadow);
    min-height: 420px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card:before{
    content: "";
    position: absolute;
    inset: -120px auto auto -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.22), rgba(255,255,255,0));
    pointer-events: none;
    transform: rotate(-10deg);
}

.card:after{
    content: "";
    position: absolute;
    inset: auto -140px -140px auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 40% 40%, rgba(0,0,0,.10), rgba(0,0,0,0));
    pointer-events: none;
    transform: rotate(12deg);
}

.cardContent{ position: relative; z-index: 1; }

.kpiTitle{
    font-size: 13px;
    font-weight: 600;
    opacity: .95;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-family: 'PlusJakartaSans', sans-serif;
}

.kpiValue{
    font-size: 42px;
    font-weight: 700;
    margin: 8px 0 10px;
    letter-spacing: -.03em;
    line-height: 1;
    font-family: 'PlusJakartaSans', sans-serif;
}

.kpiSub{
    font-size: 13px;
    opacity: .92;
    margin-bottom: 18px;
    line-height: 1.5;
    max-width: 360px;
    font-family: 'Newsreader', serif;
    font-weight: 400;
}

.pill{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.26);
    padding: 8px 10px;
    border-radius: 999px;
    margin: 4px 0 18px;
    color: #ffffff;
    backdrop-filter: blur(2px);
    font-family: 'PlusJakartaSans', sans-serif;
}

.headline{
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -.02em;
    font-family: 'PlusJakartaSans', sans-serif;
}

.desc{
    font-size: 14px;
    opacity: .94;
    line-height: 1.5;
    margin: 0 0 16px;
    max-width: 360px;
    font-family: 'Newsreader', serif;
    font-weight: 400;
}

.cta{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 999px;
    padding: 12px 16px;
    background: #ffffff;
    color: var(--brandBlue);
    font-weight: 700;
    font-family: 'PlusJakartaSans', sans-serif;
    font-size: 15px;
    cursor: pointer;
    margin-top: 18px;
    box-shadow: 0 12px 22px rgba(0,0,0,.18);
    transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease;
    position: relative;
    overflow: hidden;
}

.cta:hover{
    background: var(--brandBlue);
    color: #ffffff;
    border-color: rgba(255,255,255,.9);
}

.note{
    margin-top: 10px;
    font-size: 10px;
    opacity: .92;
    line-height: 1.35;
    font-family: 'Newsreader', serif;
    font-weight: 300;
}

@media (max-width: 900px){
    .grid{ grid-template-columns: 1fr; }
    .card{ min-height: auto; }
    .wrap h1{ font-size: 28px; }
    .kpiValue{ font-size: 36px; }
    .headline{ font-size: 20px; }
}
