/* SistemaUPS calculator — premium UI. Prefix .sc (and .sc-cta for the teaser). Light theme only. */
.sc, .sc * { box-sizing: border-box; }
.sc, .sc-cta {
    --sc-ink: #0f172a;
    --sc-muted: #64748b;
    --sc-line: #e2e8f0;
    --sc-blue: #2563eb;
    --sc-navy-a: #0b1220;
    --sc-navy-b: #172554;
    --sc-accent: #f59e0b;
    --sc-accent-2: #fbbf24;
    --sc-ok: #34d399;
}
.sc {
    font-family: var(--sai-font-body, Inter, Arial, sans-serif);
    color: var(--sc-ink);
    max-width: 1180px;
    margin: 0 auto;
}
.sc h3, .sc h4 { font-family: var(--sai-font-head, "Plus Jakarta Sans", Arial, sans-serif); color: inherit; margin: 0; letter-spacing: -.01em; }
.sc p { margin: 0; }

/* layout */
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; }
.sc-inputs { display: grid; gap: 20px; }
.sc-result { position: sticky; top: 96px; }
/* Neve's .wrapper uses overflow:hidden, which breaks position:sticky; clip hides the overflow without creating a scroll container. */
body:has(.sc-grid) .wrapper { overflow: clip; }
/* short laptop screens: keep the whole result box reachable while it follows the scroll */
@media (min-width: 1021px) and (max-height: 780px) {
    .sc-result { top: 72px; max-height: calc(100vh - 84px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

/* cards */
.sc-card {
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(15, 23, 42, .18);
}
.sc-step-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.sc-step-head h3 { font-size: 1.15rem; font-weight: 800; }
.sc-step-head p { color: var(--sc-muted); font-size: .92rem; margin-top: 3px; line-height: 1.45; }
.sc-step-head-2 { margin-top: 26px; }
.sc-step-n {
    flex: none; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; font: 800 .9rem var(--sai-font-head, Arial);
    color: #fff; background: linear-gradient(135deg, var(--sc-blue), #1e3a8a);
    box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .7);
}

/* chips + pills */
.sc-pill, .sc-cta .sc-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font: 700 .74rem/1 var(--sai-font-body, Arial); letter-spacing: .04em; text-transform: uppercase;
    padding: 7px 12px; border-radius: 999px; background: #eff6ff; color: var(--sc-blue);
}
.sc-pill-dark { background: rgba(255, 255, 255, .1); color: #bfdbfe; }
.sc-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.sc-presets > span { font-size: .85rem; color: var(--sc-muted); margin-right: 2px; }
.sc-chip {
    appearance: none; border: 1px solid var(--sc-line); background: #f8fafc; color: var(--sc-ink);
    font: 600 .85rem var(--sai-font-body, Arial); padding: 8px 14px; border-radius: 999px; cursor: pointer;
    text-decoration: none; transition: all .15s ease;
}
.sc-chip:hover { border-color: var(--sc-blue); color: var(--sc-blue); background: #eff6ff; }
.sc-chip-ghost { background: transparent; color: var(--sc-muted); }

/* device tiles */
.sc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sc-tile { position: relative; border: 1.5px solid var(--sc-line); border-radius: 16px; background: #fff; transition: all .18s ease; overflow: hidden; }
.sc-tile:hover { border-color: #93c5fd; transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(37, 99, 235, .45); }
.sc-tile.is-on { border-color: var(--sc-blue); background: linear-gradient(180deg, #eff6ff, #fff 70%); box-shadow: 0 10px 24px -14px rgba(37, 99, 235, .55); }
.sc-tile-main {
    appearance: none; background: none; border: 0; width: 100%; cursor: pointer; text-align: left;
    padding: 14px 14px 10px; display: grid; gap: 6px; font-family: inherit; color: inherit;
}
.sc-tile-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f1f5f9; color: #334155; transition: all .18s ease; }
.sc-tile.is-on .sc-tile-ico { background: var(--sc-blue); color: #fff; }
.sc-tile-name { font-weight: 700; font-size: .88rem; line-height: 1.25; }
.sc-tile-w { font-size: .78rem; color: var(--sc-muted); font-weight: 600; }
.sc-stepper {
    display: none; align-items: center; justify-content: space-between; gap: 6px;
    padding: 8px 10px; border-top: 1px dashed #bfdbfe; background: rgba(239, 246, 255, .7);
}
.sc-tile.is-on .sc-stepper { display: flex; }
.sc-stepper button {
    appearance: none; width: 30px; height: 30px; border-radius: 9px; border: 1px solid #bfdbfe; background: #fff;
    color: var(--sc-blue); font: 700 1.1rem/1 var(--sai-font-body, Arial); cursor: pointer; padding: 0;
}
.sc-stepper button:hover { background: var(--sc-blue); color: #fff; }
.sc-stepper output { font: 800 1rem var(--sai-font-head, Arial); min-width: 20px; text-align: center; }

.sc-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--sc-line); font-weight: 600; font-size: .92rem; }
.sc-extra-input { display: inline-flex; align-items: center; gap: 8px; }
.sc-extra-input input { width: 100px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: 700 1rem var(--sai-font-body, Arial); text-align: right; background: #fff; }
.sc-extra-input input:focus { outline: 2px solid var(--sc-blue); outline-offset: 1px; }
.sc-extra-input i { font-style: normal; color: var(--sc-muted); font-weight: 700; }
.sc-warn-soft { margin-top: 12px !important; font-size: .82rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 14px; line-height: 1.45; }

/* segmented control */
.sc-seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: #f1f5f9; border-radius: 14px; }
.sc-seg-btn {
    appearance: none; flex: 1 1 0; min-width: 72px; border: 0; background: transparent; cursor: pointer;
    font: 700 .88rem var(--sai-font-body, Arial); color: #475569; padding: 11px 12px; border-radius: 10px; transition: all .15s ease;
}
.sc-seg-btn:hover { color: var(--sc-ink); }
.sc-seg-btn.is-on { background: #fff; color: var(--sc-blue); box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }

/* result panel */
.sc-result {
    border-radius: 24px; padding: 26px; color: #e2e8f0;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(56, 189, 248, .22), transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(245, 158, 11, .14), transparent 55%),
        linear-gradient(160deg, var(--sc-navy-a), var(--sc-navy-b));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 30px 60px -28px rgba(11, 18, 32, .75), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.sc-res-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sc-share { appearance: none; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #dbeafe; font: 600 .8rem var(--sai-font-body, Arial); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.sc-share:hover { background: rgba(255, 255, 255, .14); }
.sc-res-main { display: flex; align-items: center; gap: 18px; }
.sc-gauge-wrap { position: relative; width: 124px; height: 124px; flex: none; }
.sc-gauge { width: 100%; height: 100%; }
.sc-gauge-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sc-gauge-txt b { font: 800 1.7rem var(--sai-font-head, Arial); color: #fff; line-height: 1; }
.sc-gauge-txt span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin-top: 4px; }
.sc-res-nums { display: grid; gap: 14px; }
.sc-res-nums span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 600; }
.sc-res-nums b { display: block; font: 800 1.75rem/1.1 var(--sai-font-head, Arial); color: #fff; margin-top: 3px; }
.sc-res-nums small { color: #94a3b8; font-size: .78rem; }
.sc-advice { list-style: none; margin: 20px 0 18px; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 10px; }
.sc-advice li { position: relative; padding-left: 22px; font-size: .88rem; line-height: 1.5; color: #cbd5e1; }
.sc-advice li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--sc-ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .16); }
.sc-advice strong { color: #fff; }
.sc-advice a { color: #7dd3fc; text-decoration: underline; }
.sc-fine { font-size: .76rem; color: #94a3b8; line-height: 1.5; margin-top: 14px !important; }
.sc-fine-center { text-align: center; color: var(--sc-muted); margin: 14px 0 36px !important; }
.sc-fine-center a { color: var(--sc-blue); text-decoration: underline; }
.sc-empty { text-align: center; padding: 26px 8px; }
.sc-empty-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #93c5fd; }
.sc-empty-ico svg { width: 30px; height: 30px; }
.sc-empty h3 { color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.sc-empty p { color: #94a3b8; font-size: .9rem; line-height: 1.55; }

/* buttons */
.sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 800 .95rem var(--sai-font-head, Arial); padding: 14px 22px; border-radius: 14px; transition: all .18s ease; }
.sc-btn-block { width: 100%; }
.sc-btn-accent { color: #1b1305 !important; background: linear-gradient(180deg, var(--sc-accent-2), var(--sc-accent)); box-shadow: 0 10px 22px -10px rgba(245, 158, 11, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.sc-btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(245, 158, 11, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }

/* recommendations */
.sc-recs { margin-top: 34px; scroll-margin-top: 96px; }
.sc-recs-head { text-align: center; margin-bottom: 22px; }
.sc-recs-head h3 { font-size: 1.6rem; font-weight: 800; }
.sc-recs-head p { color: var(--sc-muted); margin-top: 6px; }
.sc-rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.sc-rec { position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--sc-line); border-radius: 22px; padding: 26px 22px 22px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 30px -20px rgba(15, 23, 42, .22); }
.sc-rec.is-picked { border: 2px solid var(--sc-accent); box-shadow: 0 24px 44px -24px rgba(245, 158, 11, .55); transform: translateY(-4px); }
.sc-rec-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, var(--sc-accent-2), var(--sc-accent)); color: #1b1305; font: 800 .72rem var(--sai-font-body, Arial); letter-spacing: .05em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.sc-rec-kind { font: 700 .74rem var(--sai-font-body, Arial); letter-spacing: .06em; text-transform: uppercase; color: var(--sc-blue); }
.sc-rec-img { display: flex; justify-content: center; align-items: center; height: 132px; background: #f8fafc; border-radius: 14px; padding: 8px; }
.sc-rec-img.is-empty { flex-direction: column; gap: 4px; color: #94a3b8; }
.sc-rec-img.is-empty span { font-size: .72rem; }
.sc-rec-img img { max-height: 116px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.sc-rec h4 { font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.sc-rec .sc-load { margin-top: auto; }
.sc-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sc-feats li { font-size: .78rem; font-weight: 600; color: #334155; background: #f1f5f9; border-radius: 999px; padding: 5px 10px; }
.sc-load-top { display: flex; justify-content: space-between; font-size: .82rem; color: var(--sc-muted); font-weight: 600; margin-bottom: 6px; }
.sc-load-top b { color: var(--sc-ink); }
.sc-bar { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #34d399, #2563eb); }
.sc-rec-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: .84rem; }
.sc-rec-links a { color: var(--sc-blue); text-decoration: underline; }
.sc-rec .sc-btn { margin-top: auto; }

/* comparison table */
.sc-table-wrap { margin-top: 26px; overflow-x: auto; border: 1px solid var(--sc-line); border-radius: 18px; background: #fff; }
.sc-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.sc-table th, .sc-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.sc-table thead th { background: #f8fafc; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sc-muted); }
.sc-table tbody tr:last-child th, .sc-table tbody tr:last-child td { border-bottom: 0; }
.sc-table tbody th { font-weight: 700; }
.sc-table-link { color: var(--sc-blue); font-weight: 700; text-decoration: none; white-space: nowrap; }
.sc-table-link:hover { text-decoration: underline; }
.sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* mobile bar */
.sc-mobilebar { display: none; }

/* teaser banner */
.sc-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
    border-radius: 24px; padding: 30px 34px; color: #e2e8f0;
    background: radial-gradient(120% 90% at 100% 0%, rgba(56, 189, 248, .22), transparent 55%), linear-gradient(160deg, #0b1220, #172554);
    box-shadow: 0 30px 60px -30px rgba(11, 18, 32, .7);
    font-family: var(--sai-font-body, Inter, Arial, sans-serif);
    margin: 28px 0 36px;
}
.sc-cta-copy { max-width: 640px; display: grid; gap: 10px; }
.sc-cta .sc-pill { background: rgba(255, 255, 255, .1); color: #bfdbfe; width: fit-content; }
.sc-cta-title { margin: 0; font: 800 1.6rem/1.2 var(--sai-font-head, Arial); color: #fff; }
.sc-cta p { margin: 0; color: #cbd5e1; line-height: 1.55; }
.sc-cta-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sc-cta .sc-chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #e2e8f0; }
.sc-cta .sc-chip:hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .4); }

/* responsive */
@media (max-width: 1020px) {
    .sc-grid { grid-template-columns: 1fr; }
    .sc-result { position: static; }
}
@media (max-width: 640px) {
    .sc-card, .sc-result { padding: 20px 16px; border-radius: 18px; }
    .sc-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sc-res-main { flex-direction: column; text-align: center; }
    .sc-gauge-wrap { margin: 0 auto; }
    .sc-seg { flex-wrap: nowrap; gap: 3px; }
    .sc-seg-btn { min-width: 0; flex: 1 1 0; padding: 10px 2px; font-size: .78rem; white-space: nowrap; }
    .sc-rec.is-picked { transform: none; }
    .sc-cta { padding: 24px 20px; }
    .sc-cta .sc-btn { width: 100%; }
    .sc-mobilebar {
        position: fixed; left: 12px; right: 68px; bottom: 12px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 10px 10px 16px; border-radius: 18px; color: #fff; background: rgba(11, 18, 32, .94); backdrop-filter: blur(8px);
        box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); transform: translateY(140%); transition: transform .25s ease;
    }
    .sc-mobilebar[hidden] { display: none; }
    .sc-mobilebar.is-away { transform: translateY(0); }
    .sc-mobilebar b { display: block; font: 800 1.1rem var(--sai-font-head, Arial); }
    .sc-mobilebar span { font-size: .8rem; color: #94a3b8; }
    .sc-mobilebar .sc-btn { padding: 11px 16px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sc *, .sc-cta * { transition: none !important; }
}

/* FAQ accordion used under the calculator */
.sai-faq { display: grid; gap: 10px; margin: 8px 0 24px; }
.sai-faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 4px 18px; }
.sai-faq-item[open] { border-color: #93c5fd; box-shadow: 0 10px 24px -18px rgba(37, 99, 235, .5); }
.sai-faq-item summary { cursor: pointer; font: 700 1rem var(--sai-font-head, Arial); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sai-faq-item summary::-webkit-details-marker { display: none; }
.sai-faq-item summary::after { content: "+"; color: #2563eb; font-weight: 800; font-size: 1.2rem; }
.sai-faq-item[open] summary::after { content: "−"; }
.sai-faq-item p { margin: 0 0 14px; color: #475569; line-height: 1.6; }

/* requirement toggles (step 4) and per-card warnings */
.sc-flts { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font: 700 .88rem var(--sai-font-body, Arial); color: #475569; background: #fff; border: 1.5px solid var(--sc-line); border-radius: 999px; padding: 9px 16px 9px 12px; transition: all .15s ease; }
.sc-toggle i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; display: inline-block; position: relative; flex: none; transition: all .15s ease; }
.sc-toggle:hover { border-color: var(--sc-blue); color: var(--sc-blue); }
.sc-toggle.is-on { background: #eff6ff; border-color: var(--sc-blue); color: var(--sc-blue); }
.sc-toggle.is-on i { background: var(--sc-blue); border-color: var(--sc-blue); }
.sc-toggle.is-on i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sc-rec-warn { margin: 0; font-size: .8rem; line-height: 1.45; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 10px; }
.sc-rec-grid:has(> .sc-rec:only-child) { max-width: 440px; margin: 0 auto; }

/* manufacturer-published runtime line on the recommendation cards */
.sc-rt { margin: 0; font-size: .8rem; line-height: 1.45; color: #334155; background: #f8fafc; border-left: 3px solid var(--sc-blue); border-radius: 6px; padding: 8px 10px; }
.sc-rt span { display: block; margin-top: 2px; color: var(--sc-muted); font-size: .74rem; }

/* consumption above every catalog model: no overloaded product is promoted */
.sc-overload { background: #fffbeb; border: 1px solid #fde68a; border-radius: 18px; padding: 20px 22px; color: #78350f; }
.sc-overload p { margin: 0 0 14px; line-height: 1.55; }
.sc-overload-links { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-btn-ghost { background: #fff; color: var(--sc-blue); border: 1.5px solid #bfdbfe; box-shadow: none; }
.sc-btn-ghost:hover { background: #eff6ff; }
.sc-overload { margin-bottom: 32px; }
