/* =========================================================
   NUMERA CALC
   Main Stylesheet
   ========================================================= */


/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {

    --bg: #f7f8fc;
    --surface: #ffffff;
    --surface-2: #f1f3f8;

    --text: #171923;
    --text-soft: #626875;
    --text-faint: #9298a5;

    --border: #e6e8ee;

    --primary: #5b5ce2;
    --primary-dark: #4849c7;
    --primary-soft: #eeeeff;

    --green: #26945a;
    --green-soft: #edf8f1;

    --orange: #c57c24;
    --orange-soft: #fff5e6;

    --blue: #4c7fd3;
    --blue-soft: #edf4ff;

    --red: #d75c6c;
    --red-soft: #fff0f2;

    --purple: #735bd5;
    --purple-soft: #f0edff;

    --cyan: #3e8e9d;
    --cyan-soft: #edf9fb;

    --shadow-sm:
        0 4px 18px rgba(25, 30, 45, 0.045);

    --shadow:
        0 12px 35px rgba(25, 30, 45, 0.075);

    --shadow-lg:
        0 20px 55px rgba(25, 30, 45, 0.11);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;

    --max-width: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);

    color: var(--text);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input {
    font: inherit;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(247, 248, 252, 0.86);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    border-bottom:
        1px solid rgba(230, 232, 238, 0.8);
}


.nav-container {

    width: 100%;

    max-width: var(--max-width);

    min-height: 72px;

    margin: auto;

    padding: 0 24px;

    display: flex;

    align-items: center;

    gap: 30px;
}

.menu-button {

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    flex: 0 0 auto;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    font-size: 22px;

    line-height: 1;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.menu-button:hover {

    transform: translateY(-2px);

    border-color: rgba(91, 92, 226, 0.35);
}

.drawer-overlay {

    position: fixed;

    inset: 0;

    z-index: 1100;

    background: rgba(9, 11, 18, 0.58);

    opacity: 0;

    transition: opacity 0.28s ease;
}

.drawer-overlay:not([hidden]) {

    opacity: 1;
}

.site-drawer {

    position: fixed;

    inset: 0 auto 0 0;

    z-index: 1101;

    width: 85vw;

    max-width: 380px;

    padding: 22px;

    background: var(--surface);

    color: var(--text);

    box-shadow: var(--shadow-lg);

    transform: translateX(-102%);

    visibility: hidden;

    transition:
        transform 0.28s ease,
        visibility 0s linear 0.28s;
}

.site-drawer[aria-hidden="false"] {

    transform: translateX(0);

    visibility: visible;

    transition:
        transform 0.28s ease,
        visibility 0s;
}

.drawer-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}

.drawer-title {

    font-size: 18px;

    font-weight: 750;
}

.drawer-close {

    width: 42px;

    height: 42px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--surface-2);

    color: var(--text);

    cursor: pointer;

    font-size: 30px;

    line-height: 1;
}

.drawer-links {

    display: grid;

    gap: 8px;

    padding-top: 18px;
}

.drawer-links a {

    padding: 13px 14px;

    border-radius: 12px;

    color: var(--text);

    font-size: 15px;

    font-weight: 650;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.drawer-links a:hover,
.drawer-links a:focus-visible {

    outline: none;

    background: var(--primary-soft);

    color: var(--primary);
}

body.drawer-open {

    overflow: hidden;
}

@media (min-width: 651px) {

    .site-drawer {

        width: min(400px, 45vw);
    }
}

@media (prefers-reduced-motion: reduce) {

    .drawer-overlay,
    .site-drawer,
    .menu-button {

        transition: none;
    }
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-size: 20px;

    font-weight: 800;

    letter-spacing: -0.6px;

    white-space: nowrap;
}


.logo-icon {

    width: 37px;

    height: 37px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #696af0,
            #5152d5
        );

    color: white;

    font-size: 19px;

    font-weight: 800;

    box-shadow:
        0 8px 20px rgba(91, 92, 226, 0.24);
}


/* =========================================================
   NAV LINKS
   ========================================================= */

.nav-links {

    display: flex;

    align-items: center;

    gap: 30px;

    margin-left: auto;
}


.nav-links a {

    position: relative;

    color: var(--text-soft);

    font-size: 14px;

    font-weight: 600;

    transition:
        color 0.2s ease;
}


.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -7px;

    width: 0;

    height: 2px;

    border-radius: 2px;

    background: var(--primary);

    transition:
        width 0.2s ease;
}


.nav-links a:hover {

    color: var(--primary);
}


.nav-links a:hover::after {

    width: 100%;
}


/* =========================================================
   THEME BUTTON
   ========================================================= */

.theme-button {

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    font-size: 17px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}


.theme-button:hover {

    transform: translateY(-2px);

    border-color:
        rgba(91, 92, 226, 0.35);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    position: relative;

    padding:
        110px 24px
        100px;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 15% 20%,
            rgba(91, 92, 226, 0.11),
            transparent 28%
        ),

        radial-gradient(
            circle at 85% 20%,
            rgba(72, 155, 240, 0.09),
            transparent 30%
        ),

        linear-gradient(
            180deg,
            #fafaff 0%,
            var(--bg) 100%
        );
}

.category-hero {

    padding-bottom: 72px;
}

.category-hero + .section,
.category-hero + .general-section {

    padding-top: 44px;
}


.hero::before {

    content: "";

    position: absolute;

    width: 380px;

    height: 380px;

    right: -180px;

    top: -170px;

    border-radius: 50%;

    border:
        1px solid rgba(91, 92, 226, 0.12);
}


.hero::after {

    content: "";

    position: absolute;

    width: 250px;

    height: 250px;

    left: -140px;

    bottom: -150px;

    border-radius: 50%;

    background:
        rgba(91, 92, 226, 0.045);
}


.hero-content {

    position: relative;

    z-index: 1;

    max-width: 820px;

    margin: auto;

    text-align: center;
}


/* =========================================================
   HERO BADGE
   ========================================================= */

.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        7px 14px;

    margin-bottom: 24px;

    border:
        1px solid #dedfff;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.78);

    color: var(--primary);

    font-size: 12px;

    font-weight: 750;

    box-shadow:
        0 5px 18px rgba(50, 55, 100, 0.04);
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.hero h1 {

    max-width: 850px;

    margin: auto;

    font-size:
        clamp(46px, 7vw, 76px);

    line-height: 1.02;

    letter-spacing: -4px;

    font-weight: 850;
}


.hero h1 span {

    display: inline-block;

    color: var(--primary);

    position: relative;
}


.hero h1 span::after {

    content: "";

    position: absolute;

    left: 4px;

    right: 3px;

    bottom: -5px;

    height: 5px;

    border-radius: 10px;

    background:
        rgba(91, 92, 226, 0.15);
}


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.hero p {

    max-width: 650px;

    margin:
        25px auto
        35px;

    color: var(--text-soft);

    font-size: 17px;

    line-height: 1.75;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-box {

    max-width: 650px;

    height: 64px;

    margin: auto;

    padding:
        0 17px;

    display: flex;

    align-items: center;

    gap: 12px;

    border:
        1px solid var(--border);

    border-radius: 17px;

    background: var(--surface);

    box-shadow: var(--shadow);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.search-box:focus-within {

    border-color:
        rgba(91, 92, 226, 0.65);

    box-shadow:
        0 0 0 4px
        rgba(91, 92, 226, 0.09),
        var(--shadow);

    transform:
        translateY(-1px);
}


.search-icon {

    width: 30px;

    display: grid;

    place-items: center;

    color: #8e94a1;

    font-size: 25px;
}


.search-box input {

    flex: 1;

    min-width: 0;

    border: none;

    outline: none;

    background: transparent;

    color: var(--text);

    font-size: 15px;
}


.search-box input::placeholder {

    color: #a0a5b0;
}


.search-box kbd {

    padding:
        4px 8px;

    border:
        1px solid var(--border);

    border-radius: 7px;

    background: var(--surface-2);

    color: #8a909b;

    font-size: 10px;

    font-weight: 600;
}


/* =========================================================
   GENERAL SECTION
   ========================================================= */

.section {

    width: 100%;

    max-width: var(--max-width);

    margin: auto;

    padding:
        85px 24px;
}

.general-section {

    width: 100%;

    max-width: var(--max-width);

    margin: auto;

    padding: 72px 24px 85px;
}


.section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 32px;
}


.eyebrow {

    margin-bottom: 8px;

    color: var(--primary);

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 2px;
}


.section-heading h2 {

    font-size: 32px;

    line-height: 1.2;

    letter-spacing: -1.2px;
}


.section-description {

    max-width: 310px;

    color: var(--text-soft);

    font-size: 13px;

    text-align: right;
}


/* =========================================================
   CATEGORY GRID
   ========================================================= */

.category-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}


.category-card {

    position: relative;

    min-height: 150px;

    padding: 21px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.category-card:hover {

    transform:
        translateY(-5px);

    border-color:
        #d6d9e2;

    box-shadow:
        var(--shadow-lg);
}


.category-icon {

    width: 45px;

    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    font-size: 19px;

    font-weight: 800;

    transition:
        transform 0.25s ease;
}


.category-card:hover .category-icon {

    transform:
        scale(1.08)
        rotate(-3deg);
}


.category-card h3 {

    margin-top: 17px;

    font-size: 16px;

    line-height: 1.2;

    letter-spacing: -0.25px;
}


.category-card p {

    margin-top: 4px;

    color: var(--text-soft);

    font-size: 11px;

    line-height: 1.45;
}


.arrow {

    position: absolute;

    right: 18px;

    bottom: 17px;

    color: #a0a5b0;

    font-size: 18px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.category-card:hover .arrow {

    color: var(--primary);

    transform:
        translateX(4px);
}


/* =========================================================
   CATEGORY COLORS
   ========================================================= */

.finance .category-icon {

    background: var(--green-soft);

    color: var(--green);
}


.education .category-icon {

    background: var(--purple-soft);

    color: var(--purple);
}


.health .category-icon {

    background: var(--red-soft);

    color: var(--red);
}


.home .category-icon {

    background: var(--orange-soft);

    color: var(--orange);
}


.vehicle .category-icon {

    background: var(--blue-soft);

    color: var(--blue);
}


.math .category-icon {

    background: var(--primary-soft);

    color: var(--primary);
}


.time .category-icon {

    background: var(--cyan-soft);

    color: var(--cyan);
}


.technology .category-icon {

    background: #f0f2f5;

    color: #58616e;
}


/* =========================================================
   POPULAR SECTION
   ========================================================= */

.popular-section {

    padding-top: 20px;
}


.view-all {

    color: var(--primary);

    font-size: 13px;

    font-weight: 750;

    transition:
        color 0.2s ease;
}


.view-all:hover {

    color: var(--primary-dark);
}


.calculator-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 17px;
}


.calculator-card {

    position: relative;

    padding: 24px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.calculator-card {

    min-height: 190px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.calculator-icon {

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    margin-bottom: 14px;

    border-radius: 12px;

    background: var(--primary-soft);

    font-size: 19px;
}

.calculator-content {

    flex: 1;

}

.card-arrow {

    position: absolute;

    right: 22px;

    bottom: 17px;

    color: var(--text-faint);

    font-size: 18px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.calculator-card:hover .card-arrow {

    color: var(--primary);

    transform: translateX(4px);
}


.calculator-card:hover {

    transform:
        translateY(-5px);

    border-color:
        #d5d8e1;

    box-shadow:
        var(--shadow-lg);
}


.calculator-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 19px;
}


.small-icon {

    width: 44px;

    height: 44px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 18px;

    font-weight: 800;
}


.popular-label {

    padding:
        5px 9px;

    border-radius: 999px;

    background: var(--green-soft);

    color: var(--green);

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 0.3px;
}


.calculator-card h3 {

    margin-bottom: 8px;

    font-size: 18px;

    line-height: 1.25;

    letter-spacing: -0.35px;
}


.calculator-card p {

    min-height: 67px;

    color: var(--text-soft);

    font-size: 12px;

    line-height: 1.65;
}


.calculator-link {

    display: inline-flex;

    align-items: center;

    margin-top: 15px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    transition:
        gap 0.2s ease;
}


/* =========================================================
   WHY NUMERA CALC
   ========================================================= */

.why-section {

    margin-top: 25px;

    padding:
        85px 24px;

    background: var(--surface);

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}


.why-container {

    width: 100%;

    max-width: var(--max-width);

    margin: auto;

    display: grid;

    grid-template-columns:
        0.85fr 1.15fr;

    gap: 90px;

    align-items: center;
}

.category-info .why-container {

    grid-template-columns: minmax(0, 1fr);

    gap: 28px;

    align-items: start;
}

.category-info .section-heading {

    display: block;

    max-width: 780px;

    margin: 0;
}

.category-info .section-label {

    display: block;

    margin-bottom: 10px;
}

.category-info .section-heading h2,
.category-info .info-box h2 {

    max-width: 720px;

    margin: 0 0 12px;

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.15;
}

.category-info .section-heading p,
.category-info .info-box p {

    max-width: 760px;

    margin: 0 0 10px;

    color: var(--text-soft);

    font-size: 15px;

    line-height: 1.7;
}

.category-info .why-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.category-info .why-card {

    min-width: 0;

    padding: 22px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: var(--bg);
}

.category-info .why-icon {

    margin-bottom: 12px;

    font-size: 22px;
}

.category-info .why-card h3 {

    margin-bottom: 6px;

    font-size: 16px;
}

.category-info .why-card p {

    margin: 0;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.65;
}

.category-info.info-section {

    width: 100%;

    max-width: var(--max-width);

    padding: 72px 24px 85px;
}

.category-info .info-box {

    max-width: 780px;

    margin: 0 0 28px;
}

.category-info .info-box .section-label {

    margin-bottom: 10px;
}

.category-info .info-box p:last-child {

    margin-bottom: 0;
}

.category-info .category-info-features {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.category-info .category-info-feature {

    min-width: 0;

    padding: 22px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: var(--surface);
}

.category-info .category-info-feature-icon {

    display: block;

    margin-bottom: 12px;

    font-size: 22px;
}

.category-info .category-info-feature h3 {

    margin-bottom: 6px;

    font-size: 16px;
}

.category-info .category-info-feature p {

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.65;
}

.category-info .category-info-note {

    margin-top: 10px;

    font-size: 13px;
}

.category-info .why-card,
.category-info .category-info-feature {

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.category-info .why-card:hover,
.category-info .category-info-feature:hover {

    transform: translateY(-3px);

    border-color: var(--primary);

    box-shadow: var(--shadow-sm);
}


.why-text h2 {

    max-width: 520px;

    font-size: 41px;

    line-height: 1.13;

    letter-spacing: -1.8px;
}


.why-text > p:last-child {

    max-width: 480px;

    margin-top: 20px;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.75;
}


.features {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}


.feature {

    display: flex;

    gap: 13px;

    padding: 19px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background: var(--bg);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}


.feature:hover {

    transform:
        translateY(-3px);

    border-color:
        #d6d9e1;
}


.feature > span {

    width: 39px;

    height: 39px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 11px;

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 14px;
}


.feature h3 {

    margin-bottom: 3px;

    font-size: 13px;
}


.feature p {

    color: var(--text-soft);

    font-size: 11px;

    line-height: 1.55;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {

    padding:
        60px 24px
        25px;

    background: var(--bg);
}


.footer-container {

    width: 100%;

    max-width: var(--max-width);

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr 1.3fr;

    gap: 70px;
}

.calculator-category-page .footer-container {

    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(0, 1fr));

    gap: 38px;
}

.footer-column {

    display: grid;

    align-content: start;

    gap: 9px;
}

.footer-column h4 {

    margin-bottom: 4px;

    font-size: 13px;
}

.footer-column a {

    display: block;

    width: fit-content;

    color: var(--text-soft);

    font-size: 12px;

    transition: color 0.2s ease;
}

.footer-column a:hover {

    color: var(--primary);
}

.footer-brand p {

    margin-top: 12px;

    color: var(--text-soft);

    font-size: 12px;
}


.footer-links {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}


.footer-links h4 {

    margin-bottom: 14px;

    font-size: 12px;
}


.footer-links a {

    display: block;

    margin-bottom: 9px;

    color: var(--text-soft);

    font-size: 11px;

    transition:
        color 0.2s ease;
}


.footer-links a:hover {

    color: var(--primary);
}


.footer-bottom {

    width: 100%;

    max-width: var(--max-width);

    margin:
        45px auto
        0;

    padding-top: 20px;

    border-top:
        1px solid var(--border);

    color: var(--text-faint);

    font-size: 10px;
}


/* =========================================================
   DARK MODE
   ========================================================= */

body.dark-mode {

    --bg: #0e1015;

    --surface: #171920;

    --surface-2: #20222b;

    --text: #f1f2f5;

    --text-soft: #a5a9b5;

    --text-faint: #747987;

    --border: #292c36;

    --primary: #7778ed;

    --primary-dark: #6869dd;

    --primary-soft: #242549;

    --shadow-sm:
        0 4px 18px rgba(0, 0, 0, 0.18);

    --shadow:
        0 12px 35px rgba(0, 0, 0, 0.28);

    --shadow-lg:
        0 20px 55px rgba(0, 0, 0, 0.38);
}


body.dark-mode .navbar {

    background:
        rgba(14, 16, 21, 0.86);

    border-bottom-color:
        rgba(41, 44, 54, 0.85);
}


body.dark-mode .hero {

    background:

        radial-gradient(
            circle at 15% 20%,
            rgba(91, 92, 226, 0.14),
            transparent 28%
        ),

        radial-gradient(
            circle at 85% 20%,
            rgba(72, 155, 240, 0.08),
            transparent 30%
        ),

        linear-gradient(
            180deg,
            #11131b,
            var(--bg)
        );
}


body.dark-mode .hero-badge {

    background:
        rgba(91, 92, 226, 0.08);

    border-color:
        #30325a;
}


body.dark-mode .category-card:hover,
body.dark-mode .calculator-card:hover,
body.dark-mode .feature:hover {

    border-color:
        #3b3e49;
}


body.dark-mode .finance .category-icon {

    background: #172b20;

    color: #59ca87;
}


body.dark-mode .education .category-icon {

    background: #282241;

    color: #a697ff;
}


body.dark-mode .health .category-icon {

    background: #321e25;

    color: #ff8795;
}


body.dark-mode .home .category-icon {

    background: #352b1c;

    color: #e5aa55;
}


body.dark-mode .vehicle .category-icon {

    background: #1d2940;

    color: #7eabf1;
}


body.dark-mode .math .category-icon {

    background: #27264b;

    color: #8889f6;
}


body.dark-mode .time .category-icon {

    background: #1a2c30;

    color: #6fc1ce;
}


body.dark-mode .technology .category-icon {

    background: #252830;

    color: #a5acb7;
}


body.dark-mode .popular-label {

    background: #172b20;

    color: #59ca87;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .category-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .calculator-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .why-container {

        grid-template-columns: 1fr;

        gap: 50px;
    }

    .category-info .why-grid,
    .category-info .category-info-features {

        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .footer-container {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 36px;
    }

    .calculator-category-page .footer-container {

        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .nav-container {

        min-height: 64px;

        padding:
            0 17px;
    }


    .nav-links {

        display: none;
    }


    .hero {

        padding:
            75px 18px
            70px;
    }

    .category-hero {

        padding-bottom: 30px;
    }

    .category-hero + .section,
    .category-hero + .general-section {

        padding-top: 28px;
    }


    .hero h1 {

        font-size: 47px;

        letter-spacing: -2.7px;
    }


    .hero h1 span::after {

        height: 3px;

        bottom: -3px;
    }


    .hero p {

        margin-top: 20px;

        font-size: 14px;

        line-height: 1.7;
    }


    .hero-badge {

        font-size: 10px;

        padding:
            6px 11px;
    }


    .search-box {

        height: 58px;

        padding:
            0 14px;

        border-radius: 15px;
    }


    .search-box kbd {

        display: none;
    }


    .section {

        padding:
            62px 17px;
    }

    .general-section {

        padding: 58px 17px 70px;
    }

    .section-heading {

        display: block;

        margin-bottom: 25px;
    }


    .section-heading h2 {

        font-size: 27px;
    }


    .section-description {

        margin-top: 9px;

        text-align: left;

        font-size: 12px;
    }


    .category-grid {

        grid-template-columns: 1fr;

        gap: 11px;
    }


    .category-card {

        min-height: 124px;

        padding: 19px;
    }


    .calculator-grid {

        grid-template-columns: 1fr;

        gap: 12px;
    }


    .calculator-card {

        padding: 21px;
    }


    .calculator-card p {

        min-height: auto;
    }


    .why-section {

        padding:
            65px 17px;
    }

    .category-info .why-grid,
    .category-info .category-info-features {

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .category-info.info-section {

        padding: 58px 17px 70px;
    }

    .category-info .why-card,
    .category-info .category-info-feature {

        padding: 19px;
    }


    .why-text h2 {

        font-size: 32px;

        letter-spacing: -1.2px;
    }


    .why-text > p:last-child {

        font-size: 13px;
    }


    .features {

        grid-template-columns: 1fr;

        gap: 11px;
    }


    .footer {

        padding:
            55px 17px
            22px;
    }

    .calculator-category-page .footer-container {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 30px 22px;
    }


    .footer-links {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 25px;
    }

    .footer-bottom {

        margin-top: 35px;
    }

}

@media (max-width: 450px) {

    .calculator-category-page .footer-container {

        grid-template-columns: 1fr;

        gap: 25px;
    }
}

@media (max-width: 450px) {

    .category-info .why-grid,
    .category-info .category-info-features {

        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .hero h1 {

        font-size: 41px;

        letter-spacing: -2.2px;
    }


    .logo {

        font-size: 18px;
    }


    .logo-icon {

        width: 34px;

        height: 34px;
    }


    .hero-badge {

        font-size: 9px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {

    outline:
        3px solid
        rgba(91, 92, 226, 0.35);

    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition: none !important;

        animation: none !important;
    }

}


/* =========================================================
   FINANCE CALCULATOR DIALOG
   ========================================================= */

.finance-dialog {

    width: min(540px, calc(100% - 32px));

    max-height: min(90vh, 760px);

    margin: auto;

    padding: 28px;

    border: 1px solid var(--border);

    border-radius: 22px;

    background: var(--surface);

    color: var(--text);

    box-shadow: var(--shadow-lg);
}


.finance-dialog::backdrop {

    background: rgba(14, 16, 21, 0.62);

    backdrop-filter: blur(4px);
}


.finance-dialog-heading {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 18px;

    margin-bottom: 23px;
}


.finance-dialog-heading h2 {

    margin-top: 7px;

    font-size: 25px;
}


.finance-dialog-close {

    width: 36px;

    height: 36px;

    flex: 0 0 auto;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: var(--surface-2);

    color: var(--text);

    font-size: 24px;

    line-height: 1;

    cursor: pointer;
}


.finance-calculator-fields {

    display: grid;

    gap: 15px;
}


.finance-calculator-field {

    display: grid;

    gap: 7px;

    color: var(--text-soft);

    font-size: 12px;

    font-weight: 700;
}


.finance-calculator-field input,
.finance-calculator-field select {

    width: 100%;

    min-height: 46px;

    padding: 0 13px;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: var(--bg);

    color: var(--text);

    font: inherit;

    font-size: 14px;
}


.finance-calculate-button {

    width: 100%;

    min-height: 48px;

    margin-top: 18px;

    border: 0;

    border-radius: 12px;

    background: var(--primary);

    color: #fff;

    font: inherit;

    font-weight: 800;

    cursor: pointer;
}


.finance-calculate-button:hover {

    background: var(--primary-dark);
}


.finance-calculator-result {

    display: grid;

    gap: 9px;

    margin-top: 17px;

    padding: 15px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background: var(--surface-2);
}


.finance-calculator-result[hidden],
.finance-calculator-error[hidden] {

    display: none;
}


.finance-calculator-result p {

    display: flex;

    justify-content: space-between;

    gap: 16px;

    margin: 0;

    color: var(--text-soft);

    font-size: 13px;
}


.finance-calculator-result strong {

    color: var(--text);

    text-align: right;
}


.finance-calculator-error {

    margin: 13px 0 0;

    color: #c33a46;

    font-size: 13px;
}


.finance-calculator-note {

    margin: 13px 0 0;

    color: var(--text-faint);

    font-size: 11px;

    line-height: 1.6;
}


.search-status {

    margin: 12px 4px 0;

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.5;
}


.search-status[hidden] {

    display: none;
}


@media (max-width: 520px) {

    .finance-dialog {

        padding: 22px;
    }


    .finance-calculator-result p {

        flex-direction: column;

        gap: 3px;
    }


    .finance-calculator-result strong {

        text-align: left;
    }

}