/* ============================================================
   OPTIMANCER — Retail Product Sales Page
   Theme K Champagne Light · dark cinematic hero + final-cta
   Maps legacy /optimancer/retail.html (Royal Protocol)
   onto the current ID 2.0 design system.
   ============================================================ */

/* ---- Dark cinematic hero ---- */
.opt-hero {
  background:
    radial-gradient(ellipse 1100px 520px at 50% 0%, rgba(199, 154, 69, 0.22) 0%, rgba(199, 154, 69, 0.06) 40%, transparent 70%),
    linear-gradient(180deg, #1F1612 0%, #2A1E16 55%, #3A2A1E 85%, #5A4636 100%);
  color: #F5EAD0;
  padding: 112px 24px 96px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.opt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1400px 700px at 50% 30%, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, transparent 70%, rgba(250, 243, 228, 0.18) 92%, rgba(250, 243, 228, 0.45) 100%);
  pointer-events: none;
  z-index: 0;
}
.opt-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Hero typography on dark */
.opt-hero .h1-funnel {
  color: #FFFAEC;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.opt-hero .h1-funnel .ital {
  color: #E8C547;
  font-style: italic;
  text-shadow: 0 2px 20px rgba(199, 154, 69, 0.4);
}
.opt-hero .lead { color: #E8DCC0; }
.opt-hero .eyebrow {
  color: #E8C547;
  border-color: rgba(232, 197, 71, 0.45);
  background: rgba(255, 250, 236, 0.06);
  backdrop-filter: blur(6px);
}
.opt-hero .crumbs { color: #C9B998; }
.opt-hero .crumbs a {
  color: #C9B998;
  border-bottom-color: rgba(201, 185, 152, 0.35);
}
.opt-hero .crumbs a:hover { color: #E8C547; border-bottom-color: #E8C547; }
.opt-hero .crumbs .sep { color: #E8C547; opacity: 0.7; }
.opt-hero .crumbs [aria-current="page"] { color: #FFFAEC; }

/* Hero video frame — brighter glow on dark */
.opt-hero .opt-video {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 720px;
  margin: 28px auto 32px;
  background: #0A0E0F;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(232, 197, 71, 0.55),
    0 0 0 4px rgba(31, 22, 18, 0.55),
    0 0 0 5px rgba(232, 197, 71, 0.32),
    0 24px 60px -20px rgba(0, 0, 0, 0.65),
    0 0 80px -10px rgba(199, 154, 69, 0.25);
}
.opt-hero .opt-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Custom play overlay (matches legacy retail.html behavior) */
.opt-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  border: 0;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.25s ease;
  color: #FFFAEC;
  font-family: 'DM Sans', 'Inter', sans-serif;
}
.opt-video-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.opt-video-play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(232, 197, 71, 0.22);
  border: 1.5px solid rgba(232, 197, 71, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(232, 197, 71, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}
.opt-video-overlay:hover .opt-video-play {
  transform: scale(1.06);
  background: rgba(232, 197, 71, 0.32);
}
.opt-video-play svg {
  width: 32px;
  height: 32px;
  fill: #E8C547;
  margin-left: 4px;
}
.opt-video-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E8C547;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Hero CTA stack */
.opt-hero-cta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.opt-hero-guarantee {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #C9B998;
  margin: 0;
}

/* ============================================================
   BAND ALT — soft champagne alternation
   ============================================================ */
.opt-band-alt {
  background: linear-gradient(180deg, #FFFAEC 0%, #F5EAD0 100%);
}

/* ============================================================
   PROBLEM STATS
   ============================================================ */
.opt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 40px 0 28px;
}
.opt-stat {
  text-align: center;
  padding: 32px 22px;
}
.opt-stat-num {
  display: block;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--gold, #9C7B1A);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.opt-stat p {
  color: var(--cream-dim, #5A4636);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}
.opt-problem-body {
  margin-top: 28px;
  color: var(--cream, #1F1612);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .opt-stats { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   OFFER STACK
   ============================================================ */
.opt-offer-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.opt-offer-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
}
.opt-offer-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(199, 154, 69, 0.12);
  border: 1px solid rgba(199, 154, 69, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold, #9C7B1A);
}
.opt-offer-body h3 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--cream, #1F1612);
  margin: 0 0 8px;
}
.opt-offer-body p {
  color: var(--cream-dim, #5A4636);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   BONUSES — Agency exclusive
   ============================================================ */
.opt-bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.opt-bonus-card {
  padding: 32px 26px;
  text-align: center;
}
.opt-bonus-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(199, 154, 69, 0.12);
  border: 1px solid rgba(199, 154, 69, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold, #9C7B1A);
}
.opt-bonus-card h3 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--cream, #1F1612);
  margin: 0 0 10px;
}
.opt-bonus-card p {
  color: var(--cream-dim, #5A4636);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .opt-bonus-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   PRICING — 3 tiers, Agency featured
   ============================================================ */
.opt-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}
.opt-price-card {
  display: flex;
  flex-direction: column;
  padding: 32px 26px;
  position: relative;
  text-align: center;
}
.opt-price-card--featured {
  background: linear-gradient(180deg, #FFFAEC 0%, #FBF1D4 100%);
  /* stronger gold glow */
  box-shadow:
    0 0 0 2px rgba(156, 123, 26, 0.55),
    0 0 0 5px rgba(255, 250, 236, 0.9),
    0 0 0 7px rgba(199, 154, 69, 0.35),
    0 22px 50px -18px rgba(90, 70, 54, 0.4),
    0 0 60px -10px rgba(232, 197, 71, 0.35);
  transform: translateY(-6px);
}
.opt-price-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #C79A45 0%, #9C7B1A 100%);
  color: #FFFAEC;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(156, 123, 26, 0.35);
}
.opt-price-header {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(156, 123, 26, 0.18);
  margin-bottom: 22px;
}
.opt-price-name {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #9C7B1A);
  margin: 0 0 10px;
}
.opt-price-amount {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--cream, #1F1612);
  letter-spacing: -0.02em;
}
.opt-price-amount sup {
  font-size: 0.55em;
  font-weight: 600;
  vertical-align: super;
  color: var(--gold, #9C7B1A);
  margin-right: 2px;
}
.opt-price-period {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--cream-dim, #5A4636);
  margin-left: 4px;
}
.opt-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  flex: 1;
}
.opt-price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.96rem;
  color: var(--cream, #1F1612);
  line-height: 1.45;
}
.opt-price-features li svg {
  flex: 0 0 16px;
  margin-top: 3px;
  color: var(--gold, #9C7B1A);
}
.opt-price-cta {
  width: 100%;
}
.opt-price-footnote {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--cream-dim, #5A4636);
}

@media (max-width: 980px) {
  .opt-pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .opt-price-card--featured { transform: none; }
}

/* ============================================================
   GUARANTEE
   ============================================================ */
.opt-guarantee-card {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 48px 36px;
  text-align: center;
}
.opt-guarantee-icon {
  color: var(--gold, #9C7B1A);
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}
.opt-guarantee-text {
  color: var(--cream-dim, #5A4636);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 8px;
}

/* ============================================================
   FAQ
   ============================================================ */
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.opt-faq-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.opt-faq-item {
  padding: 0;
  overflow: hidden;
}
.opt-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--cream, #1F1612);
  user-select: none;
}
.opt-faq-item summary::-webkit-details-marker { display: none; }
.opt-faq-item summary > span:first-child { flex: 1; }
.opt-faq-plus {
  flex-shrink: 0;
  color: var(--gold, #9C7B1A);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.25s ease;
}
.opt-faq-item[open] .opt-faq-plus {
  transform: rotate(45deg);
}
.opt-faq-item > div {
  padding: 0 26px 22px;
  border-top: 1px solid rgba(156, 123, 26, 0.18);
  padding-top: 16px;
}
.opt-faq-item p {
  color: var(--cream-dim, #5A4636);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   FINAL CTA — dark cinematic close
   ============================================================ */
.opt-final-cta {
  background:
    radial-gradient(ellipse 1100px 520px at 50% 100%, rgba(199, 154, 69, 0.22) 0%, rgba(199, 154, 69, 0.06) 40%, transparent 70%),
    linear-gradient(180deg, #5A4636 0%, #3A2A1E 25%, #2A1E16 65%, #1F1612 100%);
  color: #F5EAD0;
  padding: 88px 24px 96px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.opt-final-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.opt-final-cta .eyebrow {
  color: #E8C547;
  border-color: rgba(232, 197, 71, 0.45);
  background: rgba(255, 250, 236, 0.06);
}
.opt-final-cta .h2-funnel {
  color: #FFFAEC;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.opt-final-cta .h2-funnel .ital {
  color: #E8C547;
  font-style: italic;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(199, 154, 69, 0.4);
}
.opt-final-cta .lead { color: #E8DCC0; margin-bottom: 28px; }
.opt-final-guarantee {
  margin-top: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #C9B998;
}

/* ============================================================
   Mobile spacing
   ============================================================ */
@media (max-width: 720px) {
  .opt-hero { padding: 84px 20px 72px; }
  .opt-final-cta { padding: 72px 20px 80px; }
  .opt-offer-card { flex-direction: column; align-items: center; text-align: center; }
}
