/* WySync — pricing widget styles */

/* ───── pricing grid ───── */
.pricing { width: 100%; }
.price-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--bg-2);
  margin-bottom: 32px;
}
.pt-btn {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--fg-2);
  border-right: 1px solid var(--line);
  position: relative;
}
.pt-btn:last-child { border-right: 0; }
.pt-btn.on { background: var(--fg); color: var(--bg); }
.pt-btn .save {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-left: 8px;
  color: var(--accent);
  text-transform: uppercase;
}
.pt-btn.on .save { color: var(--accent); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.price-card {
  padding: 28px 24px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: relative;
}
.price-card:last-child { border-right: 0; }
.price-card.popular {
  background: var(--bg-3);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 1;
}
.price-pop {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.price-name {
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 14px;
}
.price-amount { margin-bottom: 18px; }
.price-amount .amt {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.price-amount .amt-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  display: block;
  margin-top: 4px;
}
.amt-note { color: var(--fg-3); margin-top: 6px; font-size: 11px; }
.price-brands {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 14px;
  font-size: 13px;
}
.price-rows {
  list-style: none;
  display: flex; flex-direction: column;
  font-size: 13px;
  flex: 1;
}
.price-rows li {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
}
.price-rows li:last-child { border-bottom: 0; }
.pr-val { color: var(--fg); font-family: var(--font-mono); font-size: 12px; }
.pr-val.off { color: var(--fg-3); }
.pr-val.yes { color: var(--good); }
.price-best {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: none;
  font-family: var(--font-sans);
}

@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card:nth-child(2) { border-right: 0; }
  .price-card:nth-child(1), .price-card:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 660px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-card { border-right: 0 !important; border-bottom: 1px solid var(--line); }
}

/* ───── brand slider ───── */
.brand-slider {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 28px;
}
.bs-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 24px;
}
.bs-num-big { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.bs-num-unit { font-family: var(--font-mono); color: var(--fg-2); margin-left: 8px; font-size: 13px; }
.bs-tier { text-align: right; }
.bs-tier-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }

.bs-range {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--line);
  outline: none;
  margin: 12px 0 4px;
}
.bs-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.bs-range::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  border-radius: 50%;
}

.bs-ticks {
  display: grid;
  grid-template-columns: 30fr 45fr 175fr 200fr;
  font-size: 10px;
  color: var(--fg-2);
  margin-bottom: 24px;
  position: relative;
}
.bs-tick {
  text-align: left;
  padding: 8px 0 0 0;
  font-family: var(--font-mono);
  color: var(--fg-2);
  cursor: pointer;
  transition: color .15s;
}
.bs-tick:hover { color: var(--fg); }
.bs-tick.on { color: var(--accent); }
.tick-line {
  width: 1px; height: 8px;
  background: var(--line-2);
  margin-bottom: 6px;
}
.bs-tick.on .tick-line { background: var(--accent); }

.bs-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-height: 200px;
  overflow-y: auto;
}
.brand-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg-2);
  letter-spacing: 0.04em;
}
.brand-chip.ghost {
  border-style: dashed;
  color: var(--fg-3);
  background: transparent;
}

/* ───── bundle calculator ───── */
.bundle {
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.bundle-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
}
.bundle-controls {
  padding: 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 28px;
}
.bc-section { display: flex; flex-direction: column; gap: 10px; }
.bc-label {
  color: var(--fg-3);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.bc-radios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.bc-pick {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.bc-pick:hover { border-color: var(--fg-2); }
.bc-pick.on {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent), transparent 92%);
}
.bc-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
  gap: 14px;
}
.bc-toggle input[type="checkbox"] {
  width: 36px; height: 20px;
  appearance: none;
  background: var(--line);
  position: relative;
  cursor: pointer;
  transition: background .2s;
  border-radius: 12px;
}
.bc-toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--bg);
  border-radius: 50%;
  transition: transform .2s;
}
.bc-toggle input[type="checkbox"]:checked { background: var(--accent); }
.bc-toggle input[type="checkbox"]:checked::after { transform: translateX(16px); }
.bc-toggle input[type="checkbox"]:disabled { opacity: 0.5; cursor: not-allowed; }

.bundle-receipt {
  padding: 28px;
  background: var(--bg-3);
  display: flex; flex-direction: column;
}
.bundle-total {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 8px 0 22px;
}
.bundle-lines {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px;
}
.bundle-line {
  display: flex; justify-content: space-between;
  color: var(--fg-2);
}
.bundle-line.discount { color: var(--accent); padding-left: 12px; font-size: 12px; }
.strike {
  text-decoration: line-through;
  color: var(--fg-3);
  margin-right: 8px;
}

@media (max-width: 880px) {
  .bundle-grid { grid-template-columns: 1fr; }
  .bundle-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .bc-radios { grid-template-columns: 1fr; }
}

/* ───── compare table ───── */
.compare-table {
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 13px;
  overflow-x: auto;
}
.ct-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.ct-row:last-child { border-bottom: 0; }
.ct-row > div {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  color: var(--fg-2);
}
.ct-row > div:last-child { border-right: 0; }
.ct-row > div:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  background: var(--bg-3);
}
.ct-row.ct-th > div {
  background: var(--bg-3);
  font-weight: 600;
  color: var(--fg);
  text-transform: none;
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
  font-size: 14px;
}
.ct-row.ct-th > div:first-child { font-weight: 500; color: var(--fg-3); }
.ct-us { background: color-mix(in oklab, var(--accent), transparent 92%) !important; color: var(--fg) !important; font-weight: 500; }
.ct-row.ct-th .ct-us { color: var(--accent) !important; font-weight: 700; }

.ct-foot {
  padding: 14px 18px;
  background: var(--bg-3);
  color: var(--fg-3);
  font-size: 11px;
}

@media (max-width: 880px) {
  .compare-table { font-size: 11px; }
  .ct-row > div { padding: 10px; }
}
