/* "Save time. Save money. Kill busy work." — tool savings calculator (savings.js).
   Shared by plans.html (Pricing), advisor.html and enterprise.html. BlueMind style: tools as grouped chips on the
   left; on the right, your stack and one BlueMind plan as two white cards on the brand gradient. */

.sv__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sv__head .eyebrow { justify-content: center; }
.sv__head .lead { margin-top: 18px; }

.sv__box { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: stretch; }
.sv__label { font-size: 14px; color: var(--muted); }

/* Left: tools as chips, in groups */
.sv__pick { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.sv__chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
/* Icon-only tool tiles; the name shows in a tooltip on hover or focus */
.sv__app { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
.sv__app img { width: auto; height: 32px; max-width: 64%; object-fit: contain; }
.sv__app:hover { border-color: var(--slate-300, #c2c2c2); transform: translateY(-1px); }
.sv__app[aria-pressed="true"] { border-color: var(--blue-500); box-shadow: inset 0 0 0 1.5px var(--blue-500); }
.sv__app[aria-pressed="true"]::before { content: ""; position: absolute; top: -8px; right: -8px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.5 2.2 2.2L11.5 6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 0 0 3px var(--surface); }
.sv__app:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.sv__app::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 3; padding: 5px 9px; border-radius: 8px; background: var(--ink); font-size: 13px; line-height: 1.2; color: #fff; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 4px); transition: opacity 0.15s ease, transform 0.15s ease; }
.sv__app:hover::after, .sv__app:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.sv__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
.sv__people, .sv__compare { display: flex; align-items: center; gap: 12px; }
.sv__step { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-full); }
.sv__step button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--slate-10, #f8f8f8); font-size: 13px; color: var(--ink); cursor: pointer; }
.sv__step button:hover { background: var(--slate-50); }
.sv__step output { min-width: 32px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.sv__plans { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-full); }
.sv__plans button { padding: 6px 14px; border: 0; border-radius: var(--radius-full); background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.sv__plans button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Right: your stack vs BlueMind, white cards on the brand gradient */
.sv__stage { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: url("assets/harmony/hero-gradient.jpg?v=5d3800f471") 0% 42% / 200% auto; }
.sv__stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--surface) 35%, transparent); }
.sv__card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; padding: 18px 20px; border-radius: 18px; background: var(--surface); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 12px 28px -16px rgba(16, 24, 40, 0.22); }
.sv__card .sv__label { grid-column: 1 / -1; }
.sv__empty { font-size: 14px; color: var(--muted); }
.sv__card--bm { display: block; }
.sv__bmrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sv__card--bm .sv__plan { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.sv__plan img { width: 20px; height: 20px; }
.sv__plan b { font-weight: 600; }
.sv__pct { display: flex; align-items: baseline; margin: 0; gap: 6px; font-size: 15px; color: var(--muted); }
.sv__pct b { font-size: 34px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--blue-500); font-variant-numeric: tabular-nums; }
/* Top card: the picked tools as a list, then the yearly total */
.sv__card--list { display: block; }
.sv__lines { display: grid; margin-top: 6px; list-style: none; }
.sv__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sv__lines li span:last-child { color: var(--muted); white-space: nowrap; }
.sv__lines b { font-weight: 500; color: var(--ink); }
.sv__lines:not(:empty) ~ .sv__empty { display: none; }
.sv__card--list .sv__empty { padding: 10px 0; }
.sv__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; font-size: 15px; font-weight: 500; }
.sv__total span:last-child { color: var(--muted); font-weight: 400; white-space: nowrap; }
.sv__total b { font-size: 22px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.sv__arrow { align-self: center; display: grid; place-items: center; width: 32px; height: 32px; margin: -2px 0; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); font-size: 14px; color: var(--ink); }

.sv__ctas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sv__ctas .btn { flex: 1; }
.sv__fine { max-width: 720px; margin: 16px auto 0; text-align: center; font-size: 13px; color: var(--muted); }

@media (max-width: 1000px) {
  .sv__box { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sv__pick, .sv__stage { padding: 20px 16px; border-radius: 20px; }
  .sv__chips { grid-template-columns: repeat(4, 1fr); gap: 8px; }

  .sv__app img { height: 26px; }
  .sv__ctas .btn { flex: 1 1 100%; }
}

/* Advisor page: the pricing band that links to the Pricing page (plans.html) */
.pr-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 56px; border-radius: 32px; background: url("assets/harmony/hero-gradient.jpg?v=5d3800f471") 0% 40% / 180% auto; position: relative; isolation: isolate; overflow: hidden; }
.pr-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--surface) 40%, transparent); }
.pr-cta .lead { margin-top: 12px; color: var(--ink-2, #474747); }
.pr-cta .btn { flex: none; }
@media (max-width: 700px) {
  .pr-cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; border-radius: 24px; }
  .pr-cta .btn { width: 100%; }
}
