/*
|--------------------------------------------------------------------------
| ToolVerse - SIP Calculator
|--------------------------------------------------------------------------
| Scope:
| - ONLY .tv-sip-page and SIP-specific descendants
| - No CSS leakage to other tools/pages
| - Fully responsive
|--------------------------------------------------------------------------
*/

.tv-sip-page {
    width: 100%;
    background: #ffffff;
    color: var(--tv-color-text);
}

.tv-sip-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 58px;
    background:
        radial-gradient(circle at 12% 8%, rgba(99, 91, 255, 0.08), transparent 32%),
        linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%);
}

.tv-sip-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: #7b8798;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
}

.tv-sip-breadcrumb a {
    color: var(--tv-color-primary);
}

.tv-sip-breadcrumb span[aria-current="page"] {
    color: #596579;
}

.tv-sip-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
    align-items: center;
    gap: 48px;
}

.tv-sip-eyebrow,
.tv-sip-section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid rgba(99, 91, 255, 0.13);
    border-radius: 999px;
    background: var(--tv-color-primary-soft);
    color: var(--tv-color-primary-dark);
    font-size: 9px;
    font-weight: 760;
    line-height: 1;
    letter-spacing: 0.2px;
}

.tv-sip-hero__content h1 {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--tv-color-heading);
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 830;
    line-height: 1.04;
    letter-spacing: -1.9px;
}

.tv-sip-hero__content > p {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--tv-color-muted);
    font-size: 15px;
    line-height: 1.75;
}

.tv-sip-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 22px;
}

.tv-sip-hero__points span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #536173;
    font-size: 10px;
    font-weight: 650;
}

.tv-sip-hero__points svg {
    width: 17px;
    height: 17px;
    padding: 3px;
    border-radius: 50%;
    background: var(--tv-color-accent-soft);
    fill: none;
    stroke: var(--tv-color-success);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tv-sip-hero__note {
    padding: 22px;
    border: 1px solid rgba(99, 91, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.055);
}

.tv-sip-hero__note-label {
    color: var(--tv-color-primary);
    font-size: 9px;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.55px;
}

.tv-sip-hero__note strong {
    display: block;
    margin-top: 8px;
    color: var(--tv-color-heading);
    font-size: 15px;
    font-weight: 780;
}

.tv-sip-hero__note p {
    margin: 7px 0 0;
    color: var(--tv-color-muted);
    font-size: 10px;
    line-height: 1.65;
}

.tv-sip-calculator-section {
    padding: 64px 0 74px;
    background: #ffffff;
}

.tv-sip-calculator {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    overflow: hidden;
    border: 1px solid rgba(220, 225, 234, 0.96);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.075);
}

.tv-sip-calculator__form,
.tv-sip-results {
    padding: 34px;
}

.tv-sip-calculator__heading > span {
    color: var(--tv-color-primary);
    font-size: 9px;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.55px;
}

.tv-sip-calculator__heading h2 {
    margin: 7px 0 0;
    color: var(--tv-color-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.tv-sip-calculator__heading p {
    margin: 7px 0 0;
    color: var(--tv-color-muted);
    font-size: 11px;
    line-height: 1.6;
}

.tv-sip-field {
    margin-top: 27px;
}

.tv-sip-field__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tv-sip-field__top label {
    color: var(--tv-color-heading);
    font-size: 11px;
    font-weight: 720;
}

.tv-sip-field__input-wrap,
.tv-sip-field__period {
    display: inline-flex;
    align-items: center;
    min-width: 145px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--tv-color-border);
    border-radius: 12px;
    background: #fafbfc;
    color: #667085;
}

.tv-sip-field__input-wrap:focus-within,
.tv-sip-field__period:focus-within {
    border-color: rgba(99, 91, 255, 0.45);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.07);
}

.tv-sip-field__input-wrap input,
.tv-sip-field__period input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 6px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tv-color-heading);
    font-size: 13px;
    font-weight: 760;
    text-align: right;
}

.tv-sip-field__period span,
.tv-sip-field__input-wrap span {
    font-size: 11px;
    font-weight: 700;
}

.tv-sip-field input[type="number"]::-webkit-outer-spin-button,
.tv-sip-field input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.tv-sip-field input[type="number"] {
    -moz-appearance: textfield;
}

.tv-sip-range {
    width: 100%;
    height: 5px;
    margin-top: 17px;
    border-radius: 999px;
    outline: none;
    background:
        linear-gradient(
            to right,
            var(--tv-color-primary) 0%,
            var(--tv-color-primary) 50%,
            #e8ebf1 50%,
            #e8ebf1 100%
        );
    appearance: none;
    -webkit-appearance: none;
}

.tv-sip-range::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: var(--tv-color-primary);
    box-shadow: 0 2px 8px rgba(99, 91, 255, 0.26);
    cursor: pointer;
    -webkit-appearance: none;
}

.tv-sip-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: var(--tv-color-primary);
    box-shadow: 0 2px 8px rgba(99, 91, 255, 0.26);
    cursor: pointer;
}

.tv-sip-field__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 7px;
    color: #98a2b3;
    font-size: 8px;
    font-weight: 600;
}

.tv-sip-error {
    margin-top: 18px;
    padding: 11px 13px;
    border: 1px solid rgba(217, 45, 32, 0.14);
    border-radius: 11px;
    background: #fff6f5;
    color: var(--tv-color-danger);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.5;
}

.tv-sip-error[hidden] {
    display: none;
}

.tv-sip-results {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background:
        linear-gradient(
            150deg,
            #0f1f1b 0%,
            #132a24 58%,
            #1f3f36 100%
        );
    color: #ffffff;
}

.tv-sip-results__top {
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.tv-sip-results__top > span {
    color: #afc0ba;
    font-size: 10px;
    font-weight: 650;
}

.tv-sip-results__top > strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 830;
    line-height: 1;
    letter-spacing: -1.8px;
}

.tv-sip-results__top > small {
    display: block;
    margin-top: 8px;
    color: #80988f;
    font-size: 8px;
    font-weight: 600;
}

.tv-sip-results__summary {
    margin-top: 22px;
}

.tv-sip-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tv-sip-result-row span {
    color: #a6b5b0;
    font-size: 9px;
}

.tv-sip-result-row strong {
    color: #ffffff;
    font-size: 11px;
    font-weight: 760;
}

.tv-sip-result-row--total {
    border-bottom: 0;
}

.tv-sip-breakdown {
    margin-top: 25px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.045);
}

.tv-sip-breakdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #afbeb9;
    font-size: 8px;
    font-weight: 650;
}

.tv-sip-breakdown__bar {
    display: flex;
    width: 100%;
    height: 8px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.tv-sip-breakdown__invested {
    width: 50%;
    background: #7c74ff;
}

.tv-sip-breakdown__returns {
    width: 50%;
    background: #41c7a6;
}

.tv-sip-breakdown__legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
}

.tv-sip-breakdown__legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9aaea7;
    font-size: 8px;
    font-weight: 600;
}

.tv-sip-breakdown__legend strong {
    color: #ffffff;
    font-size: 8px;
}

.tv-sip-breakdown__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.tv-sip-breakdown__dot--invested {
    background: #7c74ff;
}

.tv-sip-breakdown__dot--returns {
    background: #41c7a6;
}

.tv-sip-results__note {
    margin-top: 18px;
    padding: 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

.tv-sip-results__note strong {
    font-size: 9px;
    font-weight: 760;
}

.tv-sip-results__note p {
    margin: 4px 0 0;
    color: #9badA6;
    font-size: 8px;
    line-height: 1.6;
}

.tv-sip-reset {
    width: fit-content;
    min-height: 38px;
    margin-top: 18px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #c1d0ca;
    font-size: 9px;
    font-weight: 700;
}

.tv-sip-reset:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.tv-sip-content {
    padding: 74px 0;
    background: #f8fafc;
}

.tv-sip-content__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
    align-items: start;
    gap: 48px;
}

.tv-sip-article {
    max-width: 780px;
}

.tv-sip-article h2 {
    margin: 36px 0 0;
    color: var(--tv-color-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.65px;
}

.tv-sip-article .tv-sip-section-label + h2 {
    margin-top: 11px;
}

.tv-sip-article p {
    margin: 11px 0 0;
    color: var(--tv-color-muted);
    font-size: 12px;
    line-height: 1.8;
}

.tv-sip-formula {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(99, 91, 255, 0.12);
    border-radius: 15px;
    background: #ffffff;
}

.tv-sip-formula strong {
    display: block;
    color: var(--tv-color-heading);
    font-size: 13px;
    font-weight: 780;
    line-height: 1.6;
}

.tv-sip-formula span {
    display: block;
    margin-top: 6px;
    color: var(--tv-color-muted);
    font-size: 9px;
    line-height: 1.6;
}

.tv-sip-factors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin-top: 17px;
}

.tv-sip-factors > div {
    padding: 15px;
    border: 1px solid var(--tv-color-border);
    border-radius: 14px;
    background: #ffffff;
}

.tv-sip-factors strong {
    color: var(--tv-color-heading);
    font-size: 10px;
    font-weight: 760;
}

.tv-sip-factors p {
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.6;
}

.tv-sip-disclaimer {
    margin-top: 24px;
    padding: 17px 18px;
    border-left: 3px solid var(--tv-color-primary);
    border-radius: 0 13px 13px 0;
    background: #f2f1ff;
}

.tv-sip-disclaimer strong {
    display: block;
    color: var(--tv-color-heading);
    font-size: 10px;
    font-weight: 770;
}

.tv-sip-disclaimer p {
    margin-top: 5px;
    font-size: 9px;
}

.tv-sip-related {
    position: sticky;
    top: calc(var(--tv-header-height) + 24px);
}

.tv-sip-related h2 {
    margin: 11px 0 0;
    color: var(--tv-color-heading);
    font-size: 20px;
    font-weight: 790;
}

.tv-sip-related__list {
    display: grid;
    gap: 9px;
    margin-top: 17px;
}

.tv-sip-related__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 12px 13px;
    border: 1px solid var(--tv-color-border);
    border-radius: 14px;
    background: #ffffff;
}

.tv-sip-related__list a:hover {
    border-color: rgba(99, 91, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.055);
}

.tv-sip-related__list span {
    color: var(--tv-color-heading);
    font-size: 10px;
    font-weight: 740;
}

.tv-sip-related__list small {
    display: block;
    margin-top: 3px;
    color: var(--tv-color-muted);
    font-size: 8px;
}

.tv-sip-related__list b {
    color: var(--tv-color-primary);
    font-size: 14px;
}

.tv-sip-faq {
    padding: 74px 0 82px;
    background: #ffffff;
}

.tv-sip-faq__head {
    max-width: 680px;
    margin-bottom: 25px;
}

.tv-sip-faq__head h2 {
    margin: 11px 0 0;
    color: var(--tv-color-heading);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 810;
    letter-spacing: -1.1px;
}

.tv-sip-faq__head p {
    margin: 10px 0 0;
    color: var(--tv-color-muted);
    font-size: 11px;
    line-height: 1.65;
}

.tv-sip-faq__list {
    display: grid;
    gap: 9px;
    max-width: 900px;
}

.tv-sip-faq__item {
    overflow: hidden;
    border: 1px solid var(--tv-color-border);
    border-radius: 15px;
    background: #ffffff;
}

.tv-sip-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 62px;
    padding: 14px 16px;
    color: var(--tv-color-heading);
    font-size: 11px;
    font-weight: 740;
    cursor: pointer;
    list-style: none;
}

.tv-sip-faq__item summary::-webkit-details-marker {
    display: none;
}

.tv-sip-faq__item summary i {
    position: relative;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border: 1px solid var(--tv-color-border);
    border-radius: 9px;
    background: #fafbfc;
}

.tv-sip-faq__item summary i::before,
.tv-sip-faq__item summary i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: #667085;
    transform: translate(-50%, -50%);
}

.tv-sip-faq__item summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.tv-sip-faq__item[open] summary i::after {
    transform: translate(-50%, -50%);
}

.tv-sip-faq__item > div {
    padding: 0 16px 15px;
}

.tv-sip-faq__item > div p {
    margin: 0;
    color: var(--tv-color-muted);
    font-size: 10px;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .tv-sip-hero__layout,
    .tv-sip-content__layout {
        grid-template-columns: 1fr;
    }

    .tv-sip-calculator {
        grid-template-columns: 1fr;
    }

    .tv-sip-related {
        position: static;
        max-width: 620px;
    }
}

@media (max-width: 700px) {
    .tv-sip-hero {
        padding: 34px 0 45px;
    }

    .tv-sip-hero__content h1 {
        font-size: clamp(32px, 10vw, 42px);
        letter-spacing: -1.35px;
    }

    .tv-sip-hero__content > p {
        font-size: 13px;
    }

    .tv-sip-calculator-section {
        padding: 48px 0 56px;
    }

    .tv-sip-calculator {
        border-radius: 19px;
    }

    .tv-sip-calculator__form,
    .tv-sip-results {
        padding: 22px;
    }

    .tv-sip-field__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .tv-sip-field__input-wrap,
    .tv-sip-field__period {
        width: 100%;
    }

    .tv-sip-content {
        padding: 56px 0;
    }

    .tv-sip-factors {
        grid-template-columns: 1fr;
    }

    .tv-sip-faq {
        padding: 56px 0 62px;
    }
}

@media (max-width: 420px) {
    .tv-sip-calculator__form,
    .tv-sip-results {
        padding: 18px;
    }

    .tv-sip-breakdown__head,
    .tv-sip-breakdown__legend {
        align-items: flex-start;
        flex-direction: column;
    }

    .tv-sip-formula {
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tv-sip-related__list a {
        transition: none;
    }

    .tv-sip-related__list a:hover {
        transform: none;
    }
}