/* The dark web price (templates/site/hooks/_dark_price.html, assets/lp/js/hooks/dark_price.js). One hero,
   the price tag; the questions are the kit's chips, the line items a kit-style list. The card lays itself
   out by its own width (a container query). Palette: the brand blue family and white at opacities; green
   only for an item the visitor's own answer keeps out of the price. */

.dp { container-type: inline-size; }
.dp-card { position: relative; border-radius: 24px; padding: 32px 36px; }
.dp-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "qs" "tag" "items" "src"; gap: 24px; }
.dp-intro { grid-area: intro; }
.dp-qs { grid-area: qs; display: flex; flex-direction: column; gap: 22px; }
.dp-tagcol { grid-area: tag; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dp-items { grid-area: items; min-width: 0; }
.dp-items:empty { display: none; }
.dp-src { grid-area: src; margin: 0; }

.dp-kicker { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 5px 14px 5px 12px; margin: 0 0 16px; border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 15px; line-height: 20px; color: #FFFFFF; }
.dp-kicker svg { width: 16px; height: 16px; color: var(--bx-peri); flex: none; }
.dp-intro .bxc-h2 { margin: 0 0 10px; }

/* ---------- the two questions ---------- */
.dp-q__t { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-weight: 500; font-size: 16px; line-height: 22px; color: #FFFFFF; }
.dp-q__n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: -1px;
    font: 600 12px/1 var(--bx-font-numbers); color: var(--bx-peri); background: rgba(38, 75, 255, .16); box-shadow: inset 0 0 0 1px rgba(133, 133, 233, .35);
    transition: background .3s var(--bx-ease), color .3s var(--bx-ease); }
.dp-q.is-done .dp-q__n { color: #FFFFFF; background: var(--bx-ramp); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.dp-q .bxc-chips { padding-left: 34px; }

/* ---------- the hero: the price tag ---------- */
.dp-tag { position: relative; width: 100%; max-width: 360px; aspect-ratio: 340 / 168; transform: rotate(-4deg);
    filter: drop-shadow(0 24px 36px rgba(38, 75, 255, .32)); }
.dp-tag__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dp-tag__string { fill: none; stroke: rgba(185, 195, 255, .55); stroke-width: 1.5; stroke-linecap: round; }
.dp-tag__in { position: absolute; top: 0; bottom: 0; left: 19%; right: 3%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; }
.dp-tag__k, .dp-tag__s { font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .78); }
.dp-price { display: block; margin: 2px 0; font-family: var(--bx-font-numbers); font-weight: 500; font-size: 64px; line-height: 68px; letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums; color: #FFFFFF; }
.dp-tag.is-empty .dp-price { color: rgba(255, 255, 255, .38); }
/* loading: until the script is ready the price is a skeleton in its own place, and the chips wait for it */
.dp-sk-price { display: inline-block; width: 148px; height: 52px; border-radius: 14px; vertical-align: middle; }
.dp:not(.is-ready) .bxc-chip { opacity: .4; cursor: not-allowed; }
.dp:not(.is-ready) .bxc-chip:hover { background: rgba(255, 255, 255, .05); }
.dp:not(.is-ready) .bxc-chip:active { transform: none; }
.dp-tag.is-pop { animation: dp-pop .6s var(--bx-ease); }
@keyframes dp-pop { 0% { transform: rotate(-4deg) scale(.94); } 55% { transform: rotate(-4deg) scale(1.03); } 100% { transform: rotate(-4deg) scale(1); } }
/* the one link under the tag is a real 44px target for a thumb; the extra height sits around the words, so the words
   keep their place under the tag */
.dp-full { margin: -12px 0 -12px; text-align: center; }
.dp-full .bxc-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- the line items, behind the gate ---------- */
.dp-listhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.dp-listhead b { font-family: var(--bx-font-numbers); font-weight: 500; font-size: 20px; line-height: 24px; }
.dp-listhead span { font-size: 13px; line-height: 18px; color: var(--bx-text-3); }
.dp-list { margin: 0; padding: 0; list-style: none; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--bx-line-8); }
.dp-item { position: relative; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 18px; margin: 0; list-style: none; }
.dp-item + .dp-item::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--bx-line-8); }
.dp-item__ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center;
    color: var(--bx-peri); background: rgba(38, 75, 255, .18); box-shadow: inset 0 0 0 1px rgba(133, 133, 233, .3); }
.dp-item__ico svg { width: 16px; height: 16px; }
.dp-item.is-off .dp-item__ico { color: #7BD394; background: rgba(49, 166, 80, .14); box-shadow: inset 0 0 0 1px rgba(49, 166, 80, .35); }
.dp-item.is-open .dp-item__ico { color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--bx-line-14); }
.dp-item__txt { flex: 1; min-width: 0; }
.dp-item__txt b { display: block; font-weight: 500; font-size: 15px; line-height: 20px; }
.dp-item__txt i { display: block; margin-top: 2px; font-style: normal; font-size: 13px; line-height: 18px; color: var(--bx-text-3); }
.dp-item__v { flex: none; font-family: var(--bx-font-numbers); font-weight: 500; font-size: 18px; line-height: 22px; font-variant-numeric: tabular-nums; color: #FFFFFF; text-align: right; }
.dp-item.is-off .dp-item__v, .dp-item.is-open .dp-item__v { font-family: var(--bx-font); font-weight: 400; font-size: 13px; line-height: 18px; color: var(--bx-text-3); }
.dp-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-top: 10px; border-radius: 14px;
    background: rgba(38, 75, 255, .12); box-shadow: inset 0 0 0 1px rgba(133, 133, 233, .4); font-size: 15px; line-height: 20px; }
.dp-total b { font-family: var(--bx-font-numbers); font-weight: 500; font-size: 22px; line-height: 26px; font-variant-numeric: tabular-nums; }
.dp-next { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 16px 16px 16px 20px; border-radius: 16px;
    background: rgba(38, 75, 255, .10); box-shadow: inset 0 0 0 1px rgba(133, 133, 233, .35); }
.dp-next__txt { flex: 1; min-width: 0; }
.dp-next__txt b { display: block; font-weight: 500; font-size: 16px; line-height: 22px; }
.dp-next__txt i { display: block; margin-top: 2px; font-style: normal; font-size: 14px; line-height: 20px; color: var(--bx-text-2); }
.dp-next .btn { flex: none; }
.dp-items { animation: dp-rise .4s var(--bx-ease) both; }
@keyframes dp-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- wide: the questions on the left, the tag beside them ---------- */
@container (min-width: 900px) {
    .dp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "intro tag" "qs tag" "items items" "src src"; column-gap: 48px; row-gap: 28px; }
    .dp-tagcol { align-self: center; }
}
@container (max-width: 560px) {
    .dp-card { padding: 22px 18px 24px; }
    .dp-grid { gap: 22px; }
    .dp-q .bxc-chips { padding-left: 0; }
    .dp-price { font-size: 52px; line-height: 56px; }
    .dp-sk-price { width: 120px; height: 44px; }
    .dp-tag__k, .dp-tag__s { font-size: 12px; line-height: 16px; }
    .dp-listhead { flex-direction: column; align-items: flex-start; gap: 2px; }
    .dp-item { padding: 12px 14px; gap: 12px; }
    .dp-item + .dp-item::before { left: 56px; }
    .dp-next { flex-direction: column; align-items: stretch; padding: 16px; }
    .dp-next .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .dp-tag.is-pop, .dp-items { animation: none; }
    .dp-q__n { transition: none; }
}
