@font-face {
    font-family: "Premium Plex";
    src: url("/assets/fonts/IBMPlexSans-Regular.ttf") format("truetype");
    font-display: swap;
    font-weight: 400;
}
@font-face {
    font-family: "Premium Plex";
    src: url("/assets/fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
    font-display: swap;
    font-weight: 600 800;
}

.bp {
    --bp-ink: #172236;
    --bp-muted: #4f5d72;
    --bp-surface: #fff;
    --bp-subtle: #f3f6fb;
    --bp-border: #dce4ee;
    --bp-accent: #2649a8;
    --bp-negative: #c24f63;
    color: var(--bp-ink);
    font-family: "Premium Plex", system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    margin: .9rem auto 4.5rem;
}
.bp a { color: var(--bp-accent); text-underline-offset: .18em; }
.bp h1, .bp h2, .bp h3, .bp strong { font-weight: 650; }
.bp h2 { margin: 0; font-size: clamp(1.65rem, 3.6vw, 2.55rem); letter-spacing: -.045em; }
.bp h3 { letter-spacing: -.025em; }
.bp [hidden] { display: none !important; }
.bp [id] { scroll-margin-top: 1.3rem; }
.bp :focus-visible { outline: 3px solid #4d7de9; outline-offset: 4px; }

.bp-hero {
    --bp-hero-link: #e4edff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(13rem, .55fr);
    align-items: end;
    gap: clamp(1.75rem, 8vw, 6rem);
    padding: clamp(1.6rem, 5vw, 4.3rem);
    border-radius: 1.45rem;
    color: #f6f8ff;
    background: #142b54;
    background-image: linear-gradient(126deg, #101d35 12%, #132a54 65%, #23489b 100%);
}
.bp-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(circle at 90% 80%, #75acfc35, transparent 49%),
        repeating-radial-gradient(ellipse at 95% 80%, transparent 0 54px, #96b8ff24 55px 56px, transparent 57px 72px);
    mask-image: linear-gradient(90deg, transparent 38%, #000 80%);
}
.bp-overline {
    margin: 0 0 1.25rem;
    font-size: .77rem;
    font-weight: 650;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #b8cafa;
}
.bp-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.75rem, 7.5vw, 5.8rem);
    line-height: .96;
    letter-spacing: -.075em;
}
.bp-hero h1 span { color: #b4ccff; }
.bp-hero-intro { max-width: 32rem; margin: 0; color: #e1e9fb; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.bp-hero-links { display: flex; flex-wrap: wrap; gap: 1rem 1.3rem; align-items: center; margin-top: 1.65rem; }
.bp-hero-links a { color: var(--bp-hero-link); font-weight: 600; }
.bp-hero-links .bp-cta { display: inline-flex; gap: .6rem; color: #102043; background: #dce8ff; text-decoration: none; padding: .65rem .95rem; border-radius: .55rem; }
.bp-cta:hover { background: #fff; }
.bp-facts { margin: 0; }
.bp-facts div { display: flex; flex-direction: column-reverse; gap: .15rem; padding: .75rem 0; border-top: 1px solid #bbd3ff56; }
.bp-facts dt { color: #d1e1ff; font-size: .86rem; font-weight: 400; }
.bp-facts dd { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 650; line-height: 1.05; letter-spacing: -.045em; }
.bp-facts time { font-size: .75em; }

.bp-section { margin-top: clamp(2.1rem, 5vw, 4.25rem); }
.bp-section-heading { margin-bottom: 1.05rem; }
.bp-section-heading p { margin: .4rem 0 0; color: var(--bp-muted); }
.bp-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1rem; }
.bp-insights > div { padding: 1rem; border-top: 2px solid #7e9bdf; background: var(--bp-subtle); border-radius: 0 0 .7rem .7rem; }
.bp-insights strong { font-size: 1.05rem; }
.bp-insights p { color: var(--bp-muted); margin: .25rem 0 0; font-size: .93rem; }

.bp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; align-items: start; }
.bp-panel { padding: clamp(.95rem, 2.5vw, 1.55rem); background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: 1rem; }
.bp-scenarios { display: flex; flex-wrap: wrap; gap: .42rem; margin-bottom: 1rem; }
.bp-scenarios button {
    appearance: none;
    font: inherit;
    padding: .38rem .67rem;
    font-size: .84rem;
    font-weight: 600;
    border: 1px solid var(--bp-border);
    background: var(--bp-subtle);
    color: var(--bp-ink);
    border-radius: 1rem;
}
.bp-scenarios button[aria-pressed="true"] { background: #dbe7ff; border-color: #a7bfef; color: #142e66; }
.bp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.bp-fields label { display: grid; gap: .28rem; align-content: start; font-weight: 600; font-size: .86rem; }
.bp-fields label input, .bp-fields label select {
    font: inherit;
    font-weight: 400;
    color: var(--bp-ink);
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: .45rem;
    width: 100%;
    min-width: 0;
    min-height: 2.52rem;
    padding: .4rem .58rem;
}
.bp-fields label input:focus, .bp-fields label select:focus { border-color: #7395e1; }
.bp-tuning { margin-top: 1rem; border-top: 1px solid var(--bp-border); padding-top: .75rem; }
.bp-tuning summary, .bp-alternatives summary { cursor: pointer; font-weight: 600; color: var(--bp-accent); }
.bp-tuning .bp-fields { margin: .8rem 0; }
.bp-checkbox { display: flex; gap: .6rem; align-items: start; margin-top: .65rem; font-size: .87rem; }
.bp-checkbox input { flex: 0 0 auto; margin-top: .3rem; accent-color: #2649a8; }

.bp-score { background: var(--bp-subtle); }
.bp-score h3 { margin: 0; font-size: 1.13rem; }
.bp-summary { min-height: 2.3em; margin: .4rem 0 .68rem; font-weight: 650; font-size: 1.12rem; }
.bp-chart { margin: 0; padding: 0; list-style: none; }
.bp-chart li + li { margin-top: .42rem; }
.bp-chart-label { display: flex; justify-content: space-between; gap: .4rem; font-size: .87rem; }
.bp-chart-label strong { white-space: nowrap; }
.bp-track { position: relative; height: .42rem; margin-top: .22rem; background: var(--bp-border); border-radius: .3rem; }
.bp-track::after { content: ""; position: absolute; inset: 0 auto 0 50%; width: 1px; background: var(--bp-muted); }
.bp-bar { position: absolute; inset: 0 auto 0 50%; border-radius: .3rem; }
.bp-bar-negative { right: 50%; left: auto; }
.bp-chart-foot, .bp-privacy { margin: .72rem 0 0; color: var(--bp-muted); font-size: .83rem; }

.bp-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.bp-result { padding: .88rem 1rem; border: 1px solid var(--bp-border); background: var(--bp-surface); border-radius: .85rem; min-width: 0; }
.bp-result:first-child { border-color: #8baded; box-shadow: inset 0 2px #8baded; }
.bp-result-title { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .65rem; }
.bp-place { background: var(--bp-subtle); border-radius: .38rem; min-width: 1.85rem; padding: .29rem .35rem; text-align: center; font-weight: 650; }
.bp-result h3 { font-size: 1.08rem; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.bp-result-title p { margin: .1rem 0 0; font-size: .87rem; }
.bp-net { text-align: right; white-space: nowrap; }
.bp-net strong { display: block; font-size: 1.15rem; line-height: 1.05; }
.bp-net span { font-size: .78rem; }
.bp-muted { color: var(--bp-muted); }
.bp-result-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; margin: .8rem 0; }
.bp-result-metrics div { background: var(--bp-subtle); padding: .38rem .45rem; border-radius: .4rem; }
.bp-result-metrics dt { font-size: .72rem; color: var(--bp-muted); font-weight: 400; }
.bp-result-metrics dd { margin: 0; font-size: .92rem; font-weight: 600; }
.bp-result-foot { display: flex; justify-content: space-between; gap: .25rem .7rem; flex-wrap: wrap; font-size: .79rem; }
.bp-result-cost { font-size: .78rem; margin: .45rem 0 0; }
.bp-alternatives { margin-top: .4rem; font-size: .79rem; }
.bp-alternatives ul { margin: .22rem 0 0; padding-inline-start: 1.1rem; }
.bp-unavailable { border: 1px dashed var(--bp-border); padding: .7rem .9rem; margin-top: .85rem; border-radius: .65rem; font-size: .9rem; }
.bp-unavailable p { margin: 0 0 .35rem; color: var(--bp-muted); }
.bp-unavailable ul { display: flex; flex-wrap: wrap; gap: .2rem .8rem; list-style: none; margin: 0; padding: 0; }

.bp-bank-list { display: grid; gap: .57rem; }
.bp-bank { background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: .75rem; min-width: 0; }
.bp-bank summary { cursor: pointer; padding: .68rem .85rem; font-weight: 650; }
.bp-bank-logo { display: inline-grid; place-items: center; min-width: 2.25rem; min-height: 1.85rem; background: var(--bp-subtle); border-radius: .35rem; font-size: .74rem; margin-inline: .12rem .33rem; }
.bp-bank-count { float: inline-end; padding-top: .29rem; color: var(--bp-muted); font-size: .79rem; font-weight: 400; }
.bp-bank-body { border-top: 1px solid var(--bp-border); padding: .85rem; }
.bp-bank-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; margin: 0 0 .75rem; }
.bp-bank-notes div { padding: .55rem .62rem; background: var(--bp-subtle); border-radius: .4rem; }
.bp-bank-notes dt { font-weight: 650; }
.bp-bank-notes dd { margin: .1rem 0 0; font-size: .9rem; color: var(--bp-muted); }
.bp-table { overflow-x: auto; }
.bp-table table { min-width: 41rem; width: 100%; border-collapse: collapse; font-size: .85rem; }
.bp-table td, .bp-table th { border-bottom: 1px solid var(--bp-border); vertical-align: top; padding: .55rem .46rem; }
.bp-table thead th { background: var(--bp-subtle); }
.bp-table small { display: block; margin-top: .2rem; color: var(--bp-muted); font-weight: 400; }
.bp-table ul { margin: 0; padding-inline-start: 1rem; }
.bp-notes { margin: .7rem 0; padding-inline-start: 1.15rem; font-size: .88rem; }
.bp-notes li + li { margin-top: .25rem; }
.bp-sources { display: flex; flex-wrap: wrap; gap: .3rem .85rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; }

.bp-method { background: var(--bp-subtle); border-radius: 1rem; padding: clamp(1rem, 3vw, 2rem); }
.bp-formula { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .56rem; font-size: 1.12rem; }
.bp-formula span { color: var(--bp-accent); }
.bp-formula small { display: block; color: var(--bp-muted); font-size: .75rem; }
.bp-method-grid, .bp-other { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; }
.bp-method-grid h3, .bp-other h3 { font-size: 1.08rem; margin: 0 0 .25rem; }
.bp-method-grid p, .bp-other p, .bp-method-note { color: var(--bp-muted); font-size: .92rem; margin: 0 0 .5rem; }
.bp-method-note { margin-top: .7rem; }
.bp-other > div { background: var(--bp-surface); border: 1px solid var(--bp-border); padding: .8rem .9rem; border-radius: .7rem; }
.bp-other a { font-size: .87rem; }

[data-bs-theme="dark"] .bp {
    --bp-ink: #eaf0fa;
    --bp-muted: #aab9d0;
    --bp-surface: #192438;
    --bp-subtle: #202f47;
    --bp-border: #3c506d;
    --bp-accent: #a4c2ff;
    --bp-negative: #ec8091;
    color-scheme: dark;
}
@media (max-width: 767px) {
    .bp-hero, .bp-grid, .bp-results { grid-template-columns: minmax(0, 1fr); }
    .bp-hero::after { mask-image: linear-gradient(90deg, transparent 24%, #000 86%); }
    .bp-facts { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: .55rem; }
    .bp-facts div { padding: .5rem 0 0; }
    .bp-facts dt { font-size: .74rem; line-height: 1.25; }
    .bp-insights { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .bp-insights > div { padding: .65rem .75rem; }
}
@media (max-width: 420px) {
    .bp-facts dd { font-size: 1.25rem; }
    .bp-hero-links { gap: .65rem .85rem; font-size: .89rem; }
    .bp-fields { gap: .65rem .56rem; }
    .bp-fields label { font-size: .83rem; }
    .bp-result-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-bank-notes, .bp-method-grid, .bp-other { grid-template-columns: minmax(0, 1fr); }
}
.bp-overview { margin-bottom: .75rem; }
.bp-overview p { font-size: .87rem; margin: 0 0 .65rem; }
.bp-overview table { min-width: 34rem; }

.bp-mode {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .25rem;
    background: var(--bp-subtle);
    border: 1px solid var(--bp-border);
    border-radius: .66rem;
}
.bp-mode button, .bp-more {
    font: inherit;
    font-size: .9rem;
    font-weight: 650;
    border: 1px solid transparent;
    border-radius: .47rem;
    background: transparent;
    color: var(--bp-muted);
    padding: .42rem .7rem;
}
.bp-mode button[aria-pressed="true"] {
    color: var(--bp-accent);
    background: var(--bp-surface);
    border-color: var(--bp-border);
}
.bp-mode-note { color: var(--bp-muted); font-size: .86rem; margin: .45rem 0 .85rem; }
.bp-comparison { font-size: .86rem; margin: 0 0 .65rem; color: var(--bp-muted); }
.bp-pair-allocation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .85rem; }
.bp-pair-bank { background: var(--bp-subtle); padding: .65rem; border-radius: .55rem; }
.bp-pair-bank h4 { margin: 0 0 .15rem; font-size: .95rem; font-weight: 650; }
.bp-pair-bank p { margin: 0 0 .3rem; font-size: .79rem; }
.bp-pair-bank a { font-size: .78rem; }
.bp-pair-figures { margin: .4rem 0; }
.bp-pair-figures div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem .4rem; }
.bp-pair-figures dt { color: var(--bp-muted); font-weight: 400; font-size: .77rem; }
.bp-pair-figures dd { margin: 0; font-weight: 650; font-size: .87rem; }
.bp-pair-foot { font-size: .79rem; margin-bottom: 0; }
.bp-more { margin-top: .7rem; background: var(--bp-subtle); border-color: var(--bp-border); color: var(--bp-accent); }
.bp-method-family { margin: .8rem 0; padding-top: .7rem; border-top: 1px solid var(--bp-border); }
.bp-method-family h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.bp-method-family p { color: var(--bp-muted); font-size: .92rem; margin: 0 0 .4rem; }
@media (max-width: 420px) {
    .bp-mode button { font-size: .81rem; padding: .36rem .5rem; }
    .bp-pair-allocation { gap: .4rem; }
    .bp-pair-bank { padding: .55rem; }
    .bp-pair-figures div { display: block; }
}

.bp-pin { border: 0; border-top: 1px solid var(--bp-border); min-width: 0; margin: 1rem 0 0; padding: .55rem 0 0; }
.bp-pin legend { float: none; width: auto; padding-right: .45rem; font-size: .9rem; font-weight: 650; }
.bp-field-note { margin: .45rem 0; color: var(--bp-muted); font-size: .8rem; }
.bp-fields small { display: block; color: var(--bp-muted); font-weight: 400; }
.bp-fields :disabled { opacity: .6; }
.bp-calendar, .bp-detail-table { width: 100%; border-collapse: collapse; margin-top: .55rem; text-align: left; }
.bp-calendar :is(th, td), .bp-detail-table :is(th, td) { border-bottom: 1px solid var(--bp-border); padding: .32rem .25rem; }
.bp-calendar thead th, .bp-detail-table thead th { color: var(--bp-muted); background: var(--bp-subtle); line-height: 1.2; }
.bp-calendar { font-size: .77rem; }
.bp-calendar td:last-child, .bp-calendar th:last-child { text-align: center; }
.bp-calendar input[type="number"] { width: 100%; min-width: 0; max-width: 7rem; padding: .36rem .23rem; font: inherit; color: var(--bp-ink); background: var(--bp-surface); border: 1px solid var(--bp-border); border-radius: .32rem; }
.bp-calendar input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: #2649a8; vertical-align: middle; }
.bp-benefit-detail { border-top: 1px solid var(--bp-border); padding-top: .56rem; margin-top: .66rem; }
.bp-detail-table { table-layout: fixed; font-size: .78rem; line-height: 1.32; overflow-wrap: anywhere; }
.bp-detail-table th:first-child { width: 26%; font-weight: 600; }
.bp-detail-table :is(th, td) { vertical-align: top; }
.bp-pair:only-child { grid-column: 1 / -1; }
