/* ============================================================
   SAVADUB — PRODUCT SALES PAGES  |  products.css
   Shared by: grc-den-pro.php, webapp-pentest-playbook.php,
              technical-grc-playbook.php
   Builds on main.css tokens + grc-den.css patterns.
   Only rules that BS5 and main.css genuinely cannot produce.
   main.css already provides:
     .hero-section/.hero-bg-grid/.hero-orb, .section-eyebrow,
     .section-title, .section-subtitle, .body-text,
     .btn-savadub-primary/outline/ghost, .py-section, .bg-deep,
     .cta-banner/.cta-banner__bg, .tech-tag/.tech-tags
   grc-den.css already provides:
     .grc-label, .grc-input, .grc-honeypot, .grc-msg--*
   ============================================================ */

/* ── STICKY BUY BAR ──────────────────────────────────────────
   Fixed bottom bar that follows the visitor down the page so
   the CTA is always one tap away. No BS5 equivalent.        */
.sticky-buy-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1050;
  background: rgba(8,16,101,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--clr-border);
  padding: 12px 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.sticky-buy-bar.is-visible { transform: translateY(0); }

.sticky-buy-bar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  margin: 0;
}
.sticky-buy-bar__price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--clr-light-blue);
}

/* ── PRICE ANCHOR BLOCK ──────────────────────────────────────
   Strikethrough "was" price beside the real price. Bootstrap
   has text-decoration-line-through but no compound layout for
   the anchor + badge combo used here.                       */
.price-anchor {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.price-anchor__was {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
}
.price-anchor__now {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: white;
  line-height: 1;
}
.price-anchor__now span { color: var(--clr-red); }
.price-anchor__save {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2ecc71;
  background: rgba(46,204,113,0.12);
  border: 1px solid rgba(46,204,113,0.25);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── URGENCY COUNTDOWN ───────────────────────────────────────
   Live countdown timer digits — needs custom styling for the
   digit boxes and JS to actually tick.                      */
.countdown {
  display: flex;
  gap: 10px;
}
.countdown__unit {
  background: rgba(221,51,51,0.1);
  border: 1px solid rgba(221,51,51,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
  min-width: 64px;
}
.countdown__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--clr-red);
  line-height: 1;
  display: block;
}
.countdown__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  display: block;
  margin-top: 2px;
}

/* ── FILE TREE DISPLAY ───────────────────────────────────────
   Monospace folder/file listing styled like a code editor.
   BS5 has no monospace tree component.                      */
.file-tree {
  background: var(--clr-bg-deep);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  overflow-x: auto;
}
.file-tree__folder {
  color: var(--clr-light-blue);
  font-weight: 600;
}
.file-tree__file {
  color: rgba(255,255,255,0.65);
}
.file-tree__file::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--clr-red);
  margin-right: 10px;
  vertical-align: middle;
}
.file-tree__indent { padding-left: 24px; }
.file-tree__indent-2 { padding-left: 48px; }

/* ── VALUE STACK TABLE ───────────────────────────────────────
   "Here's everything you get + dollar value" rows. BS5 tables
   exist but the line-item + price + strikethrough layout with
   our brand colours needs custom treatment.                  */
.value-stack {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.value-stack__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface);
}
.value-stack__row:last-child { border-bottom: none; }
.value-stack__row--total {
  background: rgba(221,51,51,0.08);
  padding: 20px 24px;
}
.value-stack__item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.value-stack__item i { color: var(--clr-light-blue); font-size: 1rem; flex-shrink: 0; }
.value-stack__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
}
.value-stack__desc {
  font-size: 0.78rem;
  color: var(--clr-muted);
  display: block;
  margin-top: 2px;
}
.value-stack__price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  text-decoration: line-through;
  white-space: nowrap;
  flex-shrink: 0;
}
.value-stack__total-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
}
.value-stack__total-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--clr-red);
  white-space: nowrap;
}

/* ── GUARANTEE SEAL ──────────────────────────────────────────
   Circular badge graphic — no BS5 equivalent for this shape.  */
.guarantee-seal {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 2px dashed rgba(46,204,113,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(46,204,113,0.06);
}
.guarantee-seal i { font-size: 1.8rem; color: #2ecc71; }
.guarantee-seal span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2ecc71;
  margin-top: 4px;
  text-align: center;
  line-height: 1.3;
}

/* ── ACCORDION (FAQ) — custom chevron + brand colours ────────
   BS5 accordion JS works fine; we only restyle visuals since
   BS5 default accordion look doesn't match the dark theme.   */
.savadub-accordion .accordion-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin-bottom: 10px;
}
.savadub-accordion .accordion-button {
  background: transparent;
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 18px 22px;
  box-shadow: none !important;
}
.savadub-accordion .accordion-button:not(.collapsed) {
  background: rgba(102,169,191,0.06);
  color: var(--clr-light-blue);
}
.savadub-accordion .accordion-button::after {
  filter: invert(1) brightness(2);
}
.savadub-accordion .accordion-body {
  color: var(--clr-muted);
  font-size: 0.875rem;
  line-height: 1.75;
  padding: 4px 22px 20px;
}

/* ── EXIT-INTENT MODAL ───────────────────────────────────────
   Custom overlay — BS5 modal markup reused for structure, but
   the exit-intent trigger and last-chance copy are custom.   */
.exit-modal .modal-content {
  background: var(--clr-deep-blue-light);
  border: 1px solid rgba(221,51,51,0.3);
  border-radius: var(--radius-xl);
}
.exit-modal .modal-header,
.exit-modal .modal-footer { border: none; }
.exit-modal .btn-close { filter: invert(1); opacity: 0.6; }

/* ── PRODUCT HERO MOCKUP ─────────────────────────────────────
   Stacked "document preview" graphic for the hero column.    */
.product-mockup {
  position: relative;
  padding: 20px 0;
}
.mockup-sheet {
  background: var(--clr-deep-blue-light);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: -52px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}
.mockup-sheet:hover { transform: translateY(-6px); }
.mockup-sheet--1 { transform: rotate(-3deg) translateX(-10px); z-index: 1; }
.mockup-sheet--2 { transform: rotate(2deg) translateX(10px); z-index: 2; }
.mockup-sheet--3 { transform: rotate(-1deg); z-index: 3; margin-bottom: 0; }
.mockup-sheet__line {
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.mockup-sheet__line--short { width: 55%; }
.mockup-sheet__line--accent { background: var(--clr-red); width: 30%; }

/* ── RESPONSIVE ───────────────────────────────────────────────
   Custom because the components above (sticky bar, countdown,
   value stack rows, mockup stack) need different treatment on
   small screens than plain BS5 column reflow provides.       */
@media (max-width: 767.98px) {
  .sticky-buy-bar { padding: 10px 0; }
  .sticky-buy-bar__title { font-size: 0.8rem; }
  .price-anchor__now { font-size: 1.9rem; }
  .countdown__unit { min-width: 52px; padding: 8px 10px; }
  .countdown__num { font-size: 1.2rem; }
  .value-stack__row { padding: 14px 16px; flex-wrap: wrap; }
  .value-stack__total-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .file-tree { padding: 18px 16px; font-size: 0.74rem; }
  .guarantee-seal { width: 88px; height: 88px; }
  .guarantee-seal i { font-size: 1.4rem; }
  .mockup-sheet { margin-bottom: -36px; padding: 14px 16px; }
}
