body.qg-simulator-page {
    --qg-black: #050505;
    --qg-ink: #11131a;
    --qg-muted: #6f737d;
    --qg-line: #dedfe2;
    --qg-soft: #f3f3f1;
    --qg-white: #fff;
    background: #fff;
    color: var(--qg-ink);
    overflow-x: hidden;
}

.qg-simulator-page section.page {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff;
}

.qg-simulator-page section.page > .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.qg-simulator-page section.page > .container > h2,
.qg-simulator-page section.page > .container > h1 {
    display: none !important;
}

.qg-simulator-page .qg-sim,
.qg-simulator-page .qg-sim * {
    box-sizing: border-box;
}

.qg-sim {
    width: 100%;
    margin: 0;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background: #fff;
}

.qg-sim a { text-decoration: none; }

.qg-sim-nav {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 28px max(24px, calc((100vw - 1180px) / 2));
    background: var(--qg-black);
    border-top: 1px solid rgba(255,255,255,.1);
}

.qg-sim-nav a {
    color: #8d8d91;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    padding: 11px 17px;
    font-size: 13px;
    font-weight: 650;
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.qg-sim-nav a:hover { color: #fff; transform: translateY(-2px); }
.qg-sim-nav a[aria-current="page"] { color: #050505; background: #fff; border-color: #fff; }

.qg-sim-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    justify-items: center;
    min-height: 560px;
    padding: 105px max(24px, calc((100vw - 1180px) / 2)) 150px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        var(--qg-black);
    background-size: 84px 84px;
}

.qg-sim-hero::after {
    content: "QG";
    position: absolute;
    z-index: -1;
    right: -50px;
    bottom: -175px;
    color: rgba(255,255,255,.022);
    font-size: clamp(280px, 38vw, 610px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.09em;
}

.qg-sim-hero__glow {
    position: absolute;
    z-index: -1;
    width: 700px;
    height: 500px;
    left: 50%;
    top: -310px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    filter: blur(100px);
    animation: qg-sim-breathe 8s ease-in-out infinite alternate;
}

@keyframes qg-sim-breathe {
    to { transform: translateX(-50%) scale(1.18); opacity: .6; }
}

.qg-sim-eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 24px;
    color: #777980;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.qg-sim-eyebrow > span {
    display: block;
    width: 32px;
    height: 1px;
    background: currentColor;
}

.qg-sim-hero .qg-sim-eyebrow { color: #8b8b90; }

.qg-simulator-page .qg-sim-hero h1 {
    width: 100%;
    min-width: 0;
    max-width: 980px;
    margin: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(50px, 7.2vw, 105px);
    font-weight: 470;
    letter-spacing: -.065em;
    line-height: .96;
}

.qg-simulator-page .qg-sim-hero h1 em { color: #77787c; font-style: normal; }

.qg-sim-lead {
    max-width: 740px;
    margin: 35px auto 0;
    color: #aaaab0;
    font-size: clamp(17px, 1.55vw, 22px);
    font-weight: 400;
    line-height: 1.65;
}

.qg-sim-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-top: 38px;
    color: #77787d;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .04em;
}

.qg-sim-trust span { display: flex; align-items: center; }
.qg-sim-trust span + span::before { content: ""; width: 3px; height: 3px; margin: 0 14px; border-radius: 50%; background: #55565a; }

.qg-sim-tool {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
    width: min(1180px, calc(100% - 48px));
    margin: -72px auto 0;
    border: 1px solid #d9d9dc;
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 38px 100px rgba(0,0,0,.13);
    overflow: hidden;
}

.qg-sim-form { padding: 64px; }

.qg-sim-step {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 16px;
    color: #83858a;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.qg-sim-step span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: #11131a;
    font-size: 10px;
}

.qg-sim-step p { margin: 0; }

.qg-sim-form > h2 {
    max-width: 600px;
    margin: 0 0 44px;
    color: #11131a;
    font-size: clamp(28px, 3.1vw, 46px);
    font-weight: 520;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.qg-field { margin-top: 26px; }
.qg-field label,
.qg-choice-grid legend {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    color: #3e4148;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.qg-field label span { color: #9a9ba0; font-weight: 550; text-transform: none; letter-spacing: 0; }
.qg-field small { display: block; margin-top: 9px; color: #777980; font-size: 12px; line-height: 1.45; }

.qg-field input,
.qg-field select {
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 0 18px;
    color: #11131a;
    border: 1px solid #d6d7da;
    border-radius: 13px;
    outline: 0;
    background: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 560;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.qg-field input:focus,
.qg-field select:focus { border-color: #15171d; box-shadow: 0 0 0 4px rgba(17,19,26,.08); }
.qg-field input::placeholder { color: #a4a6ab; opacity: 1; }

.qg-input-unit { position: relative; }
.qg-input-unit input { padding-right: 60px; }
.qg-input-unit > span {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #75777d;
    font-size: 15px;
    font-weight: 700;
    pointer-events: none;
}

.qg-field--amount input { min-height: 76px; font-size: 29px; letter-spacing: -.02em; }

.qg-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    min-width: 0;
    margin: 28px 0 0;
    padding: 0;
    border: 0;
}

.qg-choice-grid legend { grid-column: 1 / -1; }
.qg-choice-grid label { position: relative; display: block; margin: 0; cursor: pointer; }
.qg-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.qg-choice-grid label > span {
    display: flex;
    flex-direction: column;
    min-height: 90px;
    padding: 18px;
    border: 1px solid #d9dade;
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.qg-choice-grid label:hover > span { transform: translateY(-2px); }
.qg-choice-grid input:focus-visible + span { box-shadow: 0 0 0 4px rgba(17,19,26,.1); }
.qg-choice-grid input:checked + span { color: #fff; border-color: #11131a; background: #11131a; }
.qg-choice-grid strong { font-size: 14px; font-weight: 700; }
.qg-choice-grid small { margin-top: 4px; color: #85878d; font-size: 11px; line-height: 1.35; }
.qg-choice-grid input:checked + span small { color: #aeb0b5; }

.qg-choice-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qg-choice-grid--three label > span { min-height: 104px; }

.qg-employer-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.qg-employer-regime {
    display: grid;
    gap: 3px;
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px solid #dadbde;
    border-left: 4px solid #11131a;
    border-radius: 13px;
    background: #f6f6f4;
}
.qg-employer-regime > span {
    color: #898b90;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.qg-employer-regime strong { color: #11131a; font-size: 14px; }
.qg-employer-regime small { color: #74767c; font-size: 11px; line-height: 1.45; }

.qg-sim-advanced {
    margin-top: 24px;
    border-top: 1px solid #e2e3e5;
    border-bottom: 1px solid #e2e3e5;
}
.qg-sim-advanced summary {
    position: relative;
    padding: 17px 30px 17px 0;
    color: #555860;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}
.qg-sim-advanced summary::-webkit-details-marker { display: none; }
.qg-sim-advanced summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    color: #11131a;
    font-size: 20px;
    font-weight: 400;
    transform: translateY(-50%);
}
.qg-sim-advanced[open] summary::after { content: "−"; }
.qg-sim-advanced .qg-field { margin: 4px 0 20px; }

.qg-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 18px 0;
    border-top: 1px solid #e5e5e7;
}
.qg-toggle-row + .qg-toggle-row { margin-top: 0; }
.qg-toggle-row strong,
.qg-toggle-row small { display: block; }
.qg-toggle-row strong { font-size: 14px; }
.qg-toggle-row small { margin-top: 2px; color: #84868c; font-size: 11px; }

.qg-switch { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.qg-switch input { position: absolute; opacity: 0; }
.qg-switch span { position: relative; width: 43px; height: 25px; border-radius: 99px; background: #d4d5d8; transition: background .2s ease; }
.qg-switch span::after { content: ""; position: absolute; width: 19px; height: 19px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s ease; }
.qg-switch input:checked + span { background: #11131a; }
.qg-switch input:checked + span::after { transform: translateX(18px); }
.qg-switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(17,19,26,.12); }
.qg-switch i { min-width: 45px; color: #73757b; font-size: 11px; font-style: normal; font-weight: 700; }

.qg-sim-result {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 64px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(255,255,255,.13), transparent 34%),
        #0b0c0f;
}

.qg-sim-result .qg-sim-eyebrow { color: #777980; }
.qg-result-label { margin: 28px 0 0; color: #97999f; font-size: 14px; }
.qg-result-main { display: flex; align-items: flex-start; gap: 6px; margin: 3px 0 36px; color: #fff; font-size: clamp(55px, 6vw, 84px); font-weight: 480; letter-spacing: -.07em; line-height: 1; white-space: nowrap; }
.qg-result-main--range { font-size: clamp(38px, 4.2vw, 60px); }
.qg-result-main sup { margin-top: .18em; color: #777980; font-size: .34em; font-weight: 650; letter-spacing: 0; }

.qg-result-lines { border-top: 1px solid rgba(255,255,255,.13); }
.qg-result-lines > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.qg-result-lines span { color: #9b9da2; font-size: 12px; }
.qg-result-lines span small { color: #686a70; }
.qg-result-lines strong { max-width: 60%; color: #fff; font-size: 13px; text-align: right; }
.qg-result-note { margin: 22px 0 0; color: #74767c; font-size: 11px; line-height: 1.55; }

.qg-sim-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 60px;
    margin-top: 28px;
    padding: 0 22px;
    color: #11131a;
    border: 1px solid #fff;
    border-radius: 12px;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
    transition: color .22s ease, background .22s ease, transform .22s ease;
}
.qg-sim-button:hover { color: #fff; background: transparent; transform: translateY(-2px); }
.qg-sim-button span { font-size: 19px; font-weight: 400; }
.qg-sim-button [data-out="official-label"] { font-size: 12px; font-weight: 750; }

.qg-sim-copy {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 130px 0 20px;
}

.qg-sim-copy > h2 {
    max-width: 820px;
    margin: 0;
    color: #101218;
    font-size: clamp(38px, 5.4vw, 72px);
    font-weight: 480;
    letter-spacing: -.06em;
    line-height: 1.03;
}

.qg-sim-copy__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 70px;
    border-top: 1px solid #dadadd;
}
.qg-sim-copy__grid > div { min-width: 0; padding: 34px 38px 20px 0; }
.qg-sim-copy__grid > div + div { padding-left: 38px; border-left: 1px solid #dadadd; }
.qg-sim-copy__grid span { color: #a0a2a6; font-size: 11px; font-weight: 700; }
.qg-sim-copy__grid h3 { margin: 24px 0 12px; color: #11131a; font-size: 19px; font-weight: 680; }
.qg-sim-copy__grid p { margin: 0; color: #74767c; font-size: 14px; line-height: 1.75; }

.qg-source-note {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 48px;
    padding: 22px 0;
    color: #777980;
    border-top: 1px solid #e1e2e4;
    border-bottom: 1px solid #e1e2e4;
    font-size: 12px;
}
.qg-source-note strong { color: #24262c; }
.qg-source-note a { color: #11131a; border-bottom: 1px solid #11131a; }

.qg-sim-faq { padding-bottom: 110px; }
.qg-sim-faq__list { margin-top: 60px; border-top: 1px solid #d8d9dc; }
.qg-sim-faq details { border-bottom: 1px solid #d8d9dc; }
.qg-sim-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px 0; color: #171920; font-size: 17px; font-weight: 650; list-style: none; cursor: pointer; }
.qg-sim-faq summary::-webkit-details-marker { display: none; }
.qg-sim-faq summary span { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border: 1px solid #d6d7da; border-radius: 50%; font-size: 18px; font-weight: 400; transition: transform .25s ease, color .25s ease, background .25s ease; }
.qg-sim-faq details[open] summary span { color: #fff; background: #11131a; transform: rotate(45deg); }
.qg-sim-faq details > div { max-width: 850px; padding: 0 70px 28px 0; color: #6f7177; font-size: 14px; line-height: 1.8; }

.qg-sim-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 60px;
    padding: 105px max(24px, calc((100vw - 1180px) / 2));
    color: #fff;
    background: #08090b;
}
.qg-simulator-page .qg-sim-cta h2 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(42px, 5.4vw, 76px); font-weight: 470; letter-spacing: -.06em; line-height: 1; }
.qg-sim-cta p:not(.qg-sim-eyebrow) { margin: 25px 0 0; color: #898b90; font-size: 15px; }
.qg-sim-cta .qg-sim-button { width: 280px; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
    .qg-sim-tool,
    .qg-sim-copy > * { animation: qg-sim-rise .6s both; animation-timeline: view(); animation-range: entry 0 entry 28%; }
    @keyframes qg-sim-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 900px) {
    .qg-sim-hero { min-height: 480px; padding-top: 85px; }
    .qg-sim-tool { grid-template-columns: 1fr; }
    .qg-sim-form, .qg-sim-result { padding: 48px; }
    .qg-sim-result { min-height: 530px; }
    .qg-sim-copy__grid { grid-template-columns: 1fr; }
    .qg-sim-copy__grid > div { padding: 28px 0; border-bottom: 1px solid #dedfe2; }
    .qg-sim-copy__grid > div + div { padding-left: 0; border-left: 0; }
    .qg-sim-cta { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 600px) {
    .qg-sim-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 18px 16px;
        scrollbar-width: none;
    }
    .qg-sim-nav::-webkit-scrollbar { display: none; }
    .qg-sim-nav a { flex: 0 0 auto; padding: 9px 13px; font-size: 11px; }
    .qg-sim-hero { min-height: 430px; padding: 64px 20px 115px; }
    .qg-simulator-page .qg-sim-hero h1 { overflow-wrap: anywhere; font-size: clamp(40px, 12vw, 56px); }
    .qg-sim-hero .qg-sim-eyebrow { gap: 8px; font-size: 10px; letter-spacing: .12em; }
    .qg-sim-hero .qg-sim-eyebrow > span { width: 22px; }
    .qg-sim-lead { margin-top: 25px; font-size: 15px; line-height: 1.6; }
    .qg-sim-trust { margin-top: 28px; font-size: 10px; }
    .qg-sim-tool { width: calc(100% - 24px); margin-top: -58px; border-radius: 20px; }
    .qg-sim-form, .qg-sim-result { padding: 34px 22px; }
    .qg-sim-form > h2 { margin-bottom: 30px; font-size: 29px; }
    .qg-field--amount input { min-height: 68px; font-size: 25px; }
    .qg-choice-grid { grid-template-columns: 1fr; }
    .qg-choice-grid label > span { min-height: 74px; }
    .qg-choice-grid--two { grid-template-columns: 1fr 1fr; }
    .qg-choice-grid--two label > span { min-height: 90px; padding: 14px; }
    .qg-choice-grid--three { grid-template-columns: 1fr; }
    .qg-choice-grid--three label > span { min-height: 72px; }
    .qg-employer-inline { grid-template-columns: 1fr; gap: 0; }
    .qg-toggle-row { gap: 12px; }
    .qg-sim-result { min-height: auto; }
    .qg-result-main { font-size: 55px; white-space: normal; }
    .qg-result-main--range { font-size: 37px; }
    .qg-result-lines > div { gap: 12px; }
    .qg-result-lines strong { max-width: 55%; }
    .qg-sim-copy { width: calc(100% - 40px); padding-top: 92px; }
    .qg-sim-copy > h2 { font-size: 40px; }
    .qg-sim-copy__grid { margin-top: 45px; }
    .qg-source-note { flex-direction: column; gap: 9px; }
    .qg-sim-faq { padding-bottom: 80px; }
    .qg-sim-faq__list { margin-top: 40px; }
    .qg-sim-faq summary { padding: 22px 0; font-size: 14px; }
    .qg-sim-faq details > div { padding-right: 0; }
    .qg-sim-cta { gap: 40px; padding-top: 78px; padding-bottom: 78px; }
    .qg-simulator-page .qg-sim-cta h2 { font-size: 44px; }
    .qg-sim-cta .qg-sim-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .qg-sim *, .qg-sim *::before, .qg-sim *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
