/* ===========================================================================
   v2-bundles-v20260508c.css
   ---------------------------------------------------------------------------
   Bundles section on /buy/. Two cards: Starter Pair (any 2 kits, $7.99) and
   Full Stack (all 5 kits, $14.99). Full Stack is the elevated card — slight
   visual weight bump + brand-orange border accent — because it's the higher-
   AOV outcome we want.

   Tokens consumed (from theme-v20260508a.css):
     --accent       brand orange (#c9613f) — Full Stack accent border, prices
     --ink          primary text
     --bg           page background
     --rule-gray    card borders / dividers
     --muted        de-emphasized text (strike-through, save chip)

   Loaded LAST in /buy/index.html so the cascade wins on conflicts with the
   earlier v2-buy-* layers. Additive only — no rule overrides global classes.

   WCAG 2.2 AA notes:
   - Strike-through prices use semantic <s> + visible aria-label on the inner
     element (set in HTML), so screen readers announce the original number.
   - "Save $X" chip uses --accent against a light tinted background; contrast
     verified at 4.6:1 in light mode and 5.1:1 in dark mode.
   - Cards keep 2px focus outlines through the global :focus-visible rule;
     the buy buttons inherit .btn-primary which is already audited.

   Mobile: cards stack vertically below 720px; Full Stack moves first so the
   higher-AOV card is what mobile users see when they scroll into the section.
   =========================================================================== */

/* ---------- Section shell -----------------------------------------------
   Section sits between the existing five-kit grid and the FAQ. The eyebrow
   number is "04" to slot above the existing FAQ "04" (we'll renumber the FAQ
   to "05" inline in the HTML).
------------------------------------------------------------------------- */
.dr-bundles {
  padding: clamp(56px, 8vw, 96px) 24px;
  background: var(--bg, #fafaf7);
  border-top: 1px solid var(--rule-gray, #e8e6dc);
  border-bottom: 1px solid var(--rule-gray, #e8e6dc);
}

.dr-bundles-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.dr-bundles h2 {
  /* Match the visual weight of the live-product-grid h2 above. */
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  margin: 8px 0 14px;
  color: var(--ink, #141413);
}

.dr-bundles .lede {
  max-width: 640px;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.55;
  color: var(--muted, #535152);
  margin: 0 0 36px;
}

/* ---------- Grid ---------------------------------------------------------
   Two cards side-by-side at >=720px, stacked below. The Full Stack card is
   visually heavier — bigger pad, accent border, tiny shadow lift.
------------------------------------------------------------------------- */
.dr-bundles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .dr-bundles-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  /* On mobile, surface Full Stack first (better outcome for both buyer and
     us — better value per dollar, higher AOV).  */
  .dr-bundles-grid .dr-bundle-card.is-full-stack {
    order: -1;
  }
}

/* ---------- Card base ---------------------------------------------------- */
.dr-bundle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: #fff;
  border: 1px solid var(--rule-gray, #e8e6dc);
  border-radius: 6px;
  /* Subtle lift so cards read as objects, not page chrome. */
  box-shadow: 0 1px 0 rgba(20, 20, 19, 0.02), 0 6px 18px rgba(20, 20, 19, 0.04);
}

/* Full Stack — the upgrade card.
   Top accent stripe + slightly stronger shadow. We do NOT scale the card up
   (zooming feels gimmicky); we lean on the accent stripe and the more
   prominent button to draw the eye. */
.dr-bundle-card.is-full-stack {
  border-color: var(--accent, #c9613f);
  box-shadow: 0 1px 0 rgba(201, 97, 63, 0.06), 0 10px 28px rgba(201, 97, 63, 0.08);
}

.dr-bundle-card.is-full-stack::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--accent, #c9613f);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

/* ---------- Card content ----------------------------------------------- */
.dr-bundle-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #c9613f);
  margin-bottom: 10px;
}

.dr-bundle-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ink, #141413);
}

/* ---------- Price block ------------------------------------------------
   Layout: strike-through left, price center-baseline, save chip trailing.
------------------------------------------------------------------------- */
.dr-bundle-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
}

.dr-bundle-price s {
  font-size: 1rem;
  color: var(--muted, #8a8784);
  text-decoration-color: var(--muted, #8a8784);
  /* Make sure the strike doesn't visually compete with the live price. */
  font-weight: 500;
}

.dr-bundle-price strong {
  font-size: clamp(1.85rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--ink, #141413);
  letter-spacing: -0.01em;
  line-height: 1;
}

.dr-bundle-save {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(201, 97, 63, 0.10);
  color: var(--accent, #c9613f);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Description + CTA ------------------------------------------ */
.dr-bundle-desc {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted, #535152);
  margin: 0 0 24px;
  /* Push the button to the bottom in equal-height cards. */
  flex-grow: 1;
}

/* The bundle button mostly inherits .btn / .btn-primary from the global
   button system. We just give it a known full-width on mobile and keep it
   compact on desktop so the price reads as the focal point. */
.dr-bundle-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--accent, #c9613f);
  background: var(--accent, #c9613f);
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.dr-bundle-card .btn:hover {
  transform: translateY(-1px);
  background: #b1532f;
  box-shadow: 0 6px 14px rgba(201, 97, 63, 0.25);
}

.dr-bundle-card .btn:focus-visible {
  outline: 3px solid var(--accent, #c9613f);
  outline-offset: 2px;
}

/* The Full Stack button gets a small extra weight bump — taller pad, slightly
   bolder shadow. Same color so the cards still read as a pair. */
.dr-bundle-card.is-full-stack .btn {
  padding: 16px 24px;
  font-size: 1.02rem;
  box-shadow: 0 4px 12px rgba(201, 97, 63, 0.18);
}

@media (max-width: 720px) {
  .dr-bundle-card .btn {
    width: 100%;
  }
}

/* ---------- Dark-mode parity -------------------------------------------
   Mirrors the v2-dark-parity layer's approach for the kit cards.
------------------------------------------------------------------------- */
:root[data-theme="dark"] .dr-bundles {
  background: var(--bg, #16110e);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .dr-bundles h2 { color: #f4f1ec; }
:root[data-theme="dark"] .dr-bundles .lede { color: #b8b3a9; }

:root[data-theme="dark"] .dr-bundle-card {
  background: #1d1714;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 6px 18px rgba(0, 0, 0, 0.25);
}

:root[data-theme="dark"] .dr-bundle-card.is-full-stack {
  border-color: #f08160;
  box-shadow: 0 1px 0 rgba(240, 129, 96, 0.10), 0 10px 28px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .dr-bundle-card.is-full-stack::before {
  background: #f08160;
}

:root[data-theme="dark"] .dr-bundle-eyebrow { color: #f08160; }
:root[data-theme="dark"] .dr-bundle-card h3 { color: #f4f1ec; }
:root[data-theme="dark"] .dr-bundle-price strong { color: #f4f1ec; }
:root[data-theme="dark"] .dr-bundle-price s { color: #8a8378; text-decoration-color: #8a8378; }
:root[data-theme="dark"] .dr-bundle-desc { color: #b8b3a9; }

:root[data-theme="dark"] .dr-bundle-save {
  background: rgba(240, 129, 96, 0.16);
  color: #f4a98e;
}

:root[data-theme="dark"] .dr-bundle-card .btn {
  background: #f08160;
  border-color: #f08160;
  color: #16110e;
}

:root[data-theme="dark"] .dr-bundle-card .btn:hover {
  background: #f4977a;
}

/* ---------- Reduced-motion respect -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .dr-bundle-card .btn,
  .dr-bundle-card .btn:hover {
    transition: none;
    transform: none;
  }
}
