/* Bundles (/bundles) on the funnel shell (css/tc/funnel.css). The prototype ships
   no bundles page; cards follow the funnel cards (16px radius, line border, tc
   card surface) and the shop card's price/CTA rhythm. The inline script in
   marketing/bundles.blade.php builds .bn-method rows (with .bn-m-price) and
   toggles .open on #bnModalBackdrop / .active on .bn-method — keep those names. */

/* ---------- Grid + cards ---------- */
.tc-bundles-page .bn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 56px;
}
.tc-bundles-page .bn-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tc-line);
  border-radius: 16px;
  background: var(--tc-card);
  transition: border-color 200ms, transform 320ms cubic-bezier(.2, .7, .3, 1);
}
.tc-bundles-page .bn-card:hover { border-color: var(--tc-line-2); transform: translateY(-4px); }
.tc-bundles-page .bn-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  border-bottom: 1px solid var(--tc-line);
}
.tc-bundles-page .bn-visual img { width: 100%; height: 100%; object-fit: cover; }
/* the rotating fallback gradients are always dark, so the glyph stays light */
.tc-bundles-page .bn-visual svg { width: 44px; height: 44px; color: rgba(255, 255, 255, .85); }
.tc-bundles-page .bn-save {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tc-pop);
  color: #0b0c0f;
  font-family: var(--tc-font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tc-bundles-page .bn-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}
.tc-bundles-page .bn-body .bn-name {
  margin: 0;
  font-family: var(--tc-font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--tc-ink);
  overflow-wrap: anywhere;
}
.tc-bundles-page .bn-desc {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--tc-ink-2);
}
.tc-bundles-page .bn-members {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--tc-line);
  list-style: none;
}
.tc-bundles-page .bn-members li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--tc-ink-2);
}
.tc-bundles-page .bn-members svg { flex-shrink: 0; width: 14px; height: 14px; color: var(--tc-fn-ok); }
.tc-bundles-page .bn-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 18px;
}
.tc-bundles-page .bn-price {
  font-family: var(--tc-font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--tc-ink);
}
.tc-bundles-page .bn-compare {
  font-family: var(--tc-font-mono);
  font-size: 13px;
  color: var(--tc-ink-3);
  text-decoration: line-through;
}
.tc-bundles-page .bn-card .bn-add { width: 100%; justify-content: center; }
.tc-bundles-page .bn-add:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Shipping modal ---------- */
/* css/style.css gives .page-wrapper z-index:1, a stacking context that trapped the
   fixed backdrop under the fixed nav (z 200). This page has no orbs to sit above
   (body.tc-page hides them), so release it and let the modal cover the nav. */
body.tc-page .page-wrapper:has(> .tc-bundles-page) { z-index: auto; }
.tc-bundles-page .bn-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px;
  overflow-y: auto;
  background: color-mix(in srgb, #0b0c0f 60%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.tc-bundles-page .bn-modal-backdrop.open { display: flex; }
.tc-bundles-page .bn-modal {
  width: 100%;
  max-width: 540px;
  padding: 28px;
  border: 1px solid var(--tc-line);
  border-radius: 16px;
  background: var(--tc-card);
  box-shadow: var(--tc-shadow-elev);
}
.tc-bundles-page .bn-modal h3 {
  margin: 0 0 4px;
  font-family: var(--tc-font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--tc-ink);
  overflow-wrap: anywhere;
}
.tc-bundles-page .bn-modal-sub { margin-bottom: 8px; font-size: 14.5px; color: var(--tc-ink-3); }
.tc-bundles-page .bn-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
}
.tc-bundles-page .bn-form > div { min-width: 0; }
.tc-bundles-page .bn-form .full { grid-column: 1 / -1; }
.tc-bundles-page .bn-form label:not(.bn-method) {
  display: block;
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tc-ink-3);
}
.tc-bundles-page .bn-form input:not([type="radio"]) {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--tc-line-2);
  border-radius: 10px;
  background: var(--tc-canvas);
  color: var(--tc-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 200ms, box-shadow 200ms;
}
.tc-bundles-page .bn-form input:not([type="radio"]):focus {
  outline: none;
  border-color: var(--tc-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc-accent) 22%, transparent);
}
.tc-bundles-page .bn-qty-row { display: flex; align-items: center; gap: 10px; }
.tc-bundles-page .bn-qty-row input { width: 96px; text-align: center; }
.tc-bundles-page .bn-methods {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.tc-bundles-page .bn-method {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--tc-line-2);
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--tc-ink-2);
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.tc-bundles-page .bn-method:hover { border-color: var(--tc-ink-3); }
.tc-bundles-page .bn-method input { flex-shrink: 0; width: 16px; height: 16px; margin: 0; accent-color: var(--tc-accent); }
.tc-bundles-page .bn-method.active {
  border-color: var(--tc-accent);
  background: color-mix(in srgb, var(--tc-accent) 12%, transparent);
  color: var(--tc-ink);
}
.tc-bundles-page .bn-m-price {
  margin-left: auto;
  padding-left: 12px;
  font-family: var(--tc-font-mono);
  font-size: 13px;
  color: var(--tc-ink);
  white-space: nowrap;
}
.tc-bundles-page .bn-err {
  grid-column: 1 / -1;
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: var(--tc-fn-danger);
}
.tc-bundles-page .bn-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.tc-bundles-page .bn-modal-actions .bn-add { flex: 1; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .tc-bundles-page .bn-modal { padding: 22px 18px; }
  .tc-bundles-page .bn-form { grid-template-columns: minmax(0, 1fr); }
  .tc-bundles-page .bn-modal-actions .tc-btn { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-bundles-page .bn-card,
  .tc-bundles-page .bn-method { transition: none; }
  .tc-bundles-page .bn-card:hover { transform: none; }
}
