/* ==========================================================================
   Project quote builder (quote.php)
   ========================================================================== */
.btn--light { background: #fff; color: var(--blue-700); }
.btn--light:hover { background: var(--sky-100); color: var(--blue-700); }

/* "Buy our software" tag + band */
.buy-tag { background: linear-gradient(90deg, #0B3FD6, #1E74FF 60%, #2EA8FF); color: #fff; }
.buy-tag__inner { display: flex; align-items: center; gap: 22px; padding-block: 18px; flex-wrap: wrap; }
.buy-tag__inner p { margin: 0; flex: 1; min-width: 260px; font-size: 15px; color: #EAF2FF; }
.buy-tag__inner strong { color: #fff; }
.buy-tag__label { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; background: #fff; color: var(--blue-700); padding: 9px 14px 9px 12px; border-radius: 999px; }
.buy-tag__label .icon { width: 16px; height: 16px; }
.buy-band { background: radial-gradient(800px 300px at 90% 10%, rgba(46, 168, 255, .25), transparent 60%), linear-gradient(135deg, #071530, #0B2A6B); color: #C5D1E8; padding-block: 64px; }
.buy-band__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.buy-band h2 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); margin-top: 18px; }
.buy-band__card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 28px; }
.buy-band__email { display: block; font: 600 clamp(16px, 1.6vw, 20px) var(--font-head); color: #fff; margin-bottom: 20px; overflow-wrap: anywhere; }
.buy-band__email:hover { color: var(--sky-400); }
@media (max-width: 860px) { .buy-band__inner { grid-template-columns: 1fr; } }

/* Layout */
.quote { display: grid; grid-template-columns: 1fr 400px; gap: 36px; align-items: start; }
@media (max-width: 1100px) { .quote { grid-template-columns: 1fr; } }
.quote__builder { display: grid; gap: 28px; min-width: 0; }
.quote__step { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; background: #fff; min-width: 0; }
.quote__step legend { font: 600 19px var(--font-head); color: var(--ink); padding: 0 10px; margin-left: -10px; display: flex; align-items: center; gap: 12px; }
.quote__num { width: 32px; height: 32px; border-radius: 50%; background: var(--btn-blue); color: #fff; display: inline-grid; place-items: center; font-size: 15px; }
.quote__hint { font-size: 14px; color: var(--muted); margin: 4px 0 8px; }
.quote__group { font: 600 13px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin: 22px 0 12px; }

/* Tier radio cards */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 640px) { .tier-grid { grid-template-columns: 1fr; } }
.tier { position: relative; cursor: pointer; }
.tier input { position: absolute; opacity: 0; }
.tier__body { display: block; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.tier__body strong { display: block; font: 600 16px var(--font-head); color: var(--ink); margin-bottom: 4px; }
.tier__body small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.tier__mult { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--blue-600); background: var(--sky-100); padding: 3px 9px; border-radius: 999px; }
.tier input:checked + .tier__body { border-color: var(--blue-600); background: #F5F9FF; box-shadow: 0 0 0 3px rgba(30, 116, 255, .15); }
.tier input:focus-visible + .tier__body { outline: 3px solid var(--sky-400); outline-offset: 2px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 700px) { .product-grid { grid-template-columns: 1fr; } }
.product { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 16px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.product:hover { border-color: #BCD3F7; }
.product input[type="checkbox"] { position: absolute; opacity: 0; }
.product.is-on { border-color: var(--blue-600); background: #F5F9FF; box-shadow: 0 0 0 3px rgba(30, 116, 255, .12); }
.product:has(input:focus-visible) { outline: 3px solid var(--sky-400); outline-offset: 2px; }
.product__check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #C4D0E4; display: grid; place-items: center; color: transparent; background: #fff; }
.product__check .icon { width: 14px; height: 14px; stroke-width: 3; }
.product.is-on .product__check { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.product__icon { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--sky-100); color: var(--blue-600); display: grid; place-items: center; }
.product__icon .icon { width: 22px; height: 22px; }
.product__body { display: grid; gap: 4px; min-width: 0; padding-right: 22px; }
.product__name { font: 600 15px/1.3 var(--font-head); color: var(--ink); }
.product__tag { display: inline-block; font: 700 10px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #0B5CFF, #2EA8FF); padding: 4px 7px; border-radius: 4px; vertical-align: 2px; margin-left: 4px; }
.product__desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.product__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; font-weight: 500; color: var(--ink); margin-top: 2px; }
.product__meta span { display: inline-flex; align-items: center; gap: 5px; }
.product__meta .icon { width: 14px; height: 14px; color: var(--blue-600); }
.product__qty { align-self: center; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.product__qty input { width: 58px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; font: 500 14px var(--font-body); }

/* Switches */
.switch { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; cursor: pointer; position: relative; }
.switch + .switch { border-top: 1px solid var(--line); }
.switch input { position: absolute; opacity: 0; }
.switch__ui { width: 44px; height: 24px; flex: none; border-radius: 999px; background: #C9D3E4; position: relative; transition: background .2s; margin-top: 2px; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + .switch__ui { background: var(--blue-600); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--sky-400); outline-offset: 2px; }
.switch strong { display: block; color: var(--ink); font-size: 15px; }
.switch small { display: block; color: var(--muted); font-size: 13.5px; }

/* Summary card */
.quote__summary { position: sticky; top: calc(var(--header-h) + 20px); }
.qsum { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.qsum__head { background: linear-gradient(135deg, #071530, #0B2A6B); padding: 22px 24px; color: #C5D1E8; }
.qsum__logo { height: 34px; width: auto; margin-bottom: 14px; }
.qsum__meta { display: grid; gap: 2px; font-size: 13px; }
.qsum__meta strong { color: #fff; font-weight: 600; }
.qsum__body { padding: 20px 24px 6px; }
.qsum__tier { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.qsum__tier strong { color: var(--ink); }
.qsum__empty { background: var(--surface); border-radius: 10px; padding: 16px; font-size: 14px; color: var(--muted); }
.qsum__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.qsum__table th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.qsum__table th:not(:first-child), .qsum__table td:not(:first-child) { text-align: right; white-space: nowrap; padding-left: 10px; }
.qsum__table td { padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink); vertical-align: top; }
.qsum__table td small { display: block; font-size: 12px; color: var(--muted); }
.qsum__totals { margin: 14px 0 0; display: grid; gap: 6px; }
.qsum__totals div { display: flex; justify-content: space-between; font-size: 14.5px; }
.qsum__totals dt { color: var(--muted); }
.qsum__totals dd { margin: 0; font-weight: 600; color: var(--ink); }
.qsum__grand { margin-top: 8px; padding: 14px 16px; border-radius: 10px; background: var(--sky-100); align-items: center; }
.qsum__grand dt { color: var(--ink) !important; font-weight: 600; }
.qsum__grand dd { font: 700 26px var(--font-head) !important; color: var(--blue-700) !important; }
.qsum__timeline { margin-top: 18px; }
.qsum__timeline h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.qsum__timeline h3 .icon { color: var(--blue-600); width: 18px; height: 18px; }
.qbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface); margin: 6px 0 12px; }
.qbar__build { background: var(--btn-blue); width: 80%; }
.qbar__deploy { background: #22C55E; width: 20%; }
.qsum__timeline li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 3px 0; color: var(--text); flex-wrap: wrap; }
.qsum__timeline strong { color: var(--ink); }
.qsum__timeline small { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--build { background: var(--blue-600); }
.dot--deploy { background: #22C55E; }
.qsum__total-days { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.qsum__actions { padding: 16px 24px 4px; display: grid; gap: 10px; }
.qsum__actions .btn--ghost { color: var(--blue-700); border-color: var(--blue-600); }
.qsum__actions .btn--ghost:hover { background: var(--sky-100); color: var(--blue-700); }
.qsum__note { font-size: 12.5px; color: var(--muted); padding: 10px 24px 20px; margin: 0; }
.quote [hidden] { display: none !important; }

/* Print / Save as PDF: just the quote */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .topbar, .site-header, .page-hero, .buy-band, .section--surface, .site-footer, .to-top, .quote__builder, .qsum__actions, .search { display: none !important; }
  .section { padding: 0; }
  .quote { display: block; }
  .quote__summary { position: static; max-width: 640px; margin: 16px auto 0; }
  .qsum { box-shadow: none; }
  .buy-tag, .qsum__head, .qsum__grand, .qbar span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 640px) {
  .buy-tag__inner .btn--light { width: 100%; white-space: normal; font-size: 14px; padding: 13px 16px; }
  .quote__summary { position: static; }
  .quote__step { padding: 18px; }
}
