/**
 * Gefälschte Rolex V3 — Custom Stylesheet
 * TASK-123 (V3 upgrade from EPIC-005 V2)
 * Educational landing page with unified sequential quiz block
 */

/* ============================================================
   CSS CUSTOM PROPERTIES — COLORS & SPACING
   ============================================================ */
:root {
  /* Primary Colors */
  --color-primary: #1B5E20;
  --color-primary-light: #E8F5E9;

  /* Quick Check Amber Theme */
  --color-quick-check-bg: #FFF8E1;
  --color-quick-check-border: #FFB300;
  --color-quick-check-icon: #FF8F00;

  /* Quiz Feedback Colors */
  --color-correct: #2E7D32;
  --color-correct-bg: #E8F5E9;
  --color-incorrect: #C62828;
  --color-incorrect-bg: #FFEBEE;

  /* Neutral Colors */
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #555;
  --color-text-tertiary: #777;
  --color-text-muted: #999;
  --color-border: #E0E0E0;
  --color-bg-light: #F5F5F5;
  --color-bg-off-white: #FAFAFA;

  /* ToC Colors */
  --color-toc-bg: rgba(255, 255, 255, 0.95);
  --color-toc-active: #1B5E20;
  --color-toc-hover: #E8F5E9;

  /* Spacing — reduced from V3 originals (96/56/48/32) */
  --spacing-section-desktop: 56px;
  --spacing-section-mobile: 36px;
  --spacing-subsection-desktop: 36px;
  --spacing-subsection-mobile: 24px;
  --content-max-width: 800px;
  --page-max-width: 1200px;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.gefaelschte-rolex-page {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text-primary);
  line-height: 1.6;
}

/* Override Flatsome defaults that add hidden spacing */
#content.gefaelschte-rolex-page {
  padding-bottom: 0;
}

.gefaelschte-rolex-page .large-12.col {
  padding: 0;
}

/* ============================================================
   PAGE BODY — Flex layout for sidebar + main content
   ============================================================ */
.page-body {
  position: relative;
}

@media (min-width: 1120px) {
  .page-body {
    display: flex;
    align-items: stretch; /* Sidebar must stretch full height for sticky to work */
    max-width: 1080px; /* Tight fit: sidebar(200) + gap(20) + content(800) + padding(40) */
    margin: 0 auto;
    padding: 0 20px;
  }

  .page-main-content {
    flex: 1;
    min-width: 0;
  }
}

/* ============================================================
   TABLE OF CONTENTS — DESKTOP SIDEBAR
   Flex sidebar: 180px wide, 20px gap to content, sticky at 20px top.
   Visible from 1120px+. Stops before footer (natural flex boundary).
   ============================================================ */
.toc-sidebar {
  display: none;
}

.toc-desktop {
  display: none;
}

@media (min-width: 1120px) {
  .toc-sidebar {
    display: block;
    flex-shrink: 0;
    width: 180px;
    margin-right: 20px;
  }

  .toc-desktop {
    display: block;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--color-toc-bg);
    backdrop-filter: blur(8px);
    border-right: 1px solid var(--color-border);
    padding: 16px 12px;
  }

  .toc-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin: 0 0 12px 0;
    font-weight: 600;
  }

  .toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .toc-list li {
    margin-bottom: 2px;
  }

  .toc-link {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .toc-link:hover {
    background: var(--color-toc-hover);
    color: var(--color-primary);
  }

  .toc-link.active {
    color: var(--color-toc-active);
    font-weight: 600;
    border-left: 3px solid var(--color-toc-active);
    padding-left: 7px;
  }
}

/* Wider screens: larger sidebar */
@media (min-width: 1440px) {
  .toc-sidebar {
    width: 200px;
  }

  .toc-link {
    padding: 8px 12px;
    font-size: 14px;
  }

  .toc-link.active {
    padding-left: 9px;
  }

  .toc-title {
    font-size: 12px;
    margin: 0 0 16px 0;
  }

  .toc-list li {
    margin-bottom: 4px;
  }
}

/* ============================================================
   TABLE OF CONTENTS — MOBILE COLLAPSIBLE
   ============================================================ */
.toc-mobile {
  display: block;
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1120px) {
  .toc-mobile {
    display: none;
  }
}

.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
}

.toc-chevron {
  transition: transform 0.3s ease;
}

.toc-toggle[aria-expanded="true"] .toc-chevron {
  transform: rotate(180deg);
}

.toc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.toc-panel:not([hidden]) {
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
}

@media (min-width: 480px) {
  .toc-panel .toc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
}

.toc-mobile .toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-mobile .toc-link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.toc-mobile .toc-link:hover {
  color: var(--color-primary);
}

.toc-mobile .toc-link.active {
  color: var(--color-toc-active);
  font-weight: 600;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  margin-bottom: var(--spacing-section-mobile);
}

@media (min-width: 768px) {
  .hero-section {
    margin-bottom: var(--spacing-section-desktop);
  }
}

.hero-image {
  width: 100%;
  margin-bottom: 32px;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-section h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 24px 0;
  font-weight: 700;
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 32px;
  }
}

@media (min-width: 1024px) {
  .hero-section h1 {
    font-size: 40px;
  }
}

.breadcrumb {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-separator {
  margin: 0 8px;
}

/* ============================================================
   PAGE SECTIONS — GENERAL LAYOUT
   ============================================================ */
.page-section {
  padding: 0;
}

@media (min-width: 768px) {
  .page-section {
    padding: 0;
  }
}

.page-section h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 24px 0;
  font-weight: 700;
  color: var(--color-text-primary);
  scroll-margin-top: 100px;
}

@media (min-width: 768px) {
  .page-section h2 {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .page-section h2 {
    font-size: 32px;
  }
}

.page-section h3 {
  font-size: 20px;
  line-height: 1.4;
  margin: var(--spacing-subsection-mobile) 0 16px 0;
  font-weight: 600;
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  .page-section h3 {
    font-size: 22px;
    margin-top: var(--spacing-subsection-desktop);
  }
}

@media (min-width: 1024px) {
  .page-section h3 {
    font-size: 24px;
  }
}

.page-section p {
  margin: 0 0 24px 0;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.col-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .col-inner {
    padding: 0 48px;
  }
}

@media (min-width: 1024px) {
  .col-inner {
    padding: 0;
  }
}

/* Desktop: fix Flatsome asymmetric auto-margins on col-inner.
   Forces equal spacing so alt-section backgrounds look symmetric. */
@media (min-width: 1120px) {
  .gefaelschte-rolex-page .page-main-content .row .col .col-inner {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (min-width: 1440px) {
  .gefaelschte-rolex-page .page-main-content .row .col .col-inner {
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* Hero: match page-body width so breadcrumb/h1 aligns with main content */
@media (min-width: 1120px) {
  .hero-section .row.row-main {
    max-width: 1080px;
    padding: 0 20px;
  }
  /* Offset by sidebar(180) + gap(20) + col-inner margin(20) = 220px */
  .gefaelschte-rolex-page .hero-section .row .col .col-inner {
    margin-left: 220px;
    margin-right: 0;
  }
}

@media (min-width: 1440px) {
  /* Offset by sidebar(200) + gap(20) + col-inner margin(10) = 230px */
  .gefaelschte-rolex-page .hero-section .row .col .col-inner {
    margin-left: 230px;
  }
}

/* ============================================================
   SECTION SPACING — padding-top: 0 is the default on .page-section.
   Only restore top padding where a visual break needs breathing room.
   ============================================================ */

/* ============================================================
   MODEL SECTIONS — ALTERNATING BACKGROUNDS
   ============================================================ */
.model-section {
  position: relative;
}

.model-section--alt {
  background: var(--color-bg-off-white);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 20px calc(50vw - 50%);
}

/* Desktop: full-bleed calc breaks inside flex sidebar layout —
   switch to contained card style instead */
@media (min-width: 1120px) {
  .model-section--alt {
    margin-left: 0;
    margin-right: 0;
    padding: 20px;
    border-radius: 12px;
  }
}

.model-separator {
  background: linear-gradient(90deg, transparent 0%, var(--color-border) 20%, var(--color-border) 80%, transparent 100%);
  height: 1px;
  border: none;
  margin: 8px auto;
  max-width: 600px;
}

@media (min-width: 768px) {
  .model-separator {
    margin: 12px auto;
  }
}

/* ============================================================
   QUICK CHECK BOXES
   ============================================================ */
.quick-check {
  background: var(--color-quick-check-bg);
  border-left: 4px solid var(--color-quick-check-border);
  border-radius: 0 8px 8px 0;
  padding: 24px;
  margin: 32px 0;
}

@media (max-width: 767px) {
  .quick-check {
    padding: 20px;
  }
}

.quick-check-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--color-quick-check-icon);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 179, 0, 0.3);
}

.quick-check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.quick-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-check-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.quick-check-list li:last-child {
  margin-bottom: 0;
}

.check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.quick-check-list li span {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-primary);
  font-weight: 500;
}

@media (max-width: 767px) {
  .quick-check-list li span {
    font-size: 15px;
  }
}

/* ============================================================
   COMPARISON IMAGES
   ============================================================ */
.comparison-image {
  margin: 32px 0;
  text-align: center;
}

.comparison-image img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   INTERNAL LINKS
   ============================================================ */
.internal-link {
  font-size: 16px;
  margin: 24px 0;
}

.internal-link a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.internal-link a:hover {
  border-bottom-color: var(--color-primary);
}

/* ============================================================
   V3 QUIZ SECTION — UNIFIED SEQUENTIAL BLOCK
   ============================================================ */
.quiz-section {
  margin-top: 20px;
  scroll-margin-top: 100px;
}

.quiz-intro {
  margin-bottom: 32px;
}

.quiz-container {
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: 40px 32px;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .quiz-container {
    padding: 32px 24px;
  }
}

@media (max-width: 767px) {
  .quiz-container {
    padding: 24px 20px;
  }
}

/* ============================================================
   V3 PROGRESS BAR
   ============================================================ */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.quiz-progress-bar {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.quiz-progress-segment {
  width: 32px;
  height: 6px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

@media (max-width: 1023px) {
  .quiz-progress-segment {
    width: 28px;
  }
}

@media (max-width: 767px) {
  .quiz-progress-segment {
    width: 24px;
    height: 5px;
  }
}

.quiz-progress-segment--done {
  background: var(--color-primary);
}

.quiz-progress-segment--current {
  background: var(--color-primary);
  opacity: 0.6;
}

.quiz-progress-segment--remaining {
  background: var(--color-border);
}

.quiz-progress-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
  line-height: 1.2;
}

.quiz-progress-text strong {
  font-weight: 700;
  color: var(--color-text-primary);
}

.quiz-progress-model {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

@media (max-width: 479px) {
  .quiz-progress {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================================
   V3 QUIZ QUESTION
   ============================================================ */
.quiz-question-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: center;
  margin: 0 0 24px 0;
}

@media (max-width: 767px) {
  .quiz-question-text {
    font-size: 18px;
  }
}

.quiz-images {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

@media (max-width: 1023px) {
  .quiz-images {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .quiz-images {
    flex-direction: column;
    gap: 16px;
  }
}

.quiz-image-btn {
  position: relative;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  padding: 0;
  transition: all 0.2s ease;
  width: 380px;
  max-width: 100%;
}

@media (max-width: 1023px) {
  .quiz-image-btn {
    width: 340px;
  }
}

@media (max-width: 767px) {
  .quiz-image-btn {
    width: 100%;
  }
}

.quiz-image-btn:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.2);
  transform: scale(1.02);
}

.quiz-image-btn:disabled {
  cursor: default;
}

.quiz-image-btn:disabled:hover {
  transform: none;
}

.quiz-image-btn img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.quiz-image-label {
  display: block;
  text-align: center;
  padding: 8px;
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.quiz-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  pointer-events: none;
}

.quiz-icon--correct {
  background: var(--color-correct);
  color: #fff;
}

.quiz-icon--incorrect {
  background: var(--color-incorrect);
  color: #fff;
}

.quiz-image-btn.correct {
  border: 3px solid var(--color-correct);
}

.quiz-image-btn.incorrect {
  border: 3px solid var(--color-incorrect);
}

.quiz-image-btn.dimmed {
  opacity: 0.5;
}

/* ============================================================
   V3 QUIZ FEEDBACK
   ============================================================ */
.quiz-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.quiz-feedback:not([hidden]) {
  max-height: 400px;
  opacity: 1;
}

.quiz-feedback--correct {
  background: var(--color-correct-bg);
  border-left: 4px solid var(--color-correct);
}

.quiz-feedback--incorrect {
  background: var(--color-incorrect-bg);
  border-left: 4px solid var(--color-incorrect);
}

.quiz-feedback-header {
  font-weight: 600;
  margin: 0 0 8px 0;
  font-size: 16px;
}

.quiz-feedback-header--correct {
  color: var(--color-correct);
}

.quiz-feedback-header--incorrect {
  color: var(--color-incorrect);
}

.quiz-feedback-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
}

@media (max-width: 767px) {
  .quiz-feedback-text {
    font-size: 15px;
  }
}

.quiz-next-btn {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.quiz-next-btn:hover {
  background: #0D3B0E;
}

@media (max-width: 767px) {
  .quiz-next-btn {
    width: 100%;
  }
}

/* ============================================================
   V3 QUESTION TRANSITIONS
   ============================================================ */
.quiz-question-enter {
  animation: slideInRight 200ms ease-out forwards;
}

.quiz-question-exit {
  animation: slideOutLeft 200ms ease-in forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-20px); }
}

/* ============================================================
   V3 SCORE — INTEGRATED IN QUIZ SECTION
   ============================================================ */
.quiz-score {
  max-width: 600px;
  margin: 32px auto 0;
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
}

@media (max-width: 767px) {
  .quiz-score {
    padding: 32px 24px;
  }
}

.quiz-score-enter {
  animation: scoreReveal 400ms ease-out forwards;
}

@keyframes scoreReveal {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.quiz-score-number {
  font-size: 64px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

@media (max-width: 1023px) {
  .quiz-score-number {
    font-size: 56px;
  }
}

@media (max-width: 767px) {
  .quiz-score-number {
    font-size: 48px;
  }
}

.quiz-score-separator {
  margin: 0 2px;
  color: var(--color-text-muted);
}

.quiz-score-stars {
  font-size: 32px;
  letter-spacing: 4px;
  margin: 8px 0 24px 0;
}

.quiz-star {
  display: inline-block;
  animation: starPop 200ms ease-out forwards;
  opacity: 0;
}

.quiz-star:nth-child(1) { animation-delay: 200ms; }
.quiz-star:nth-child(2) { animation-delay: 400ms; }
.quiz-star:nth-child(3) { animation-delay: 600ms; }
.quiz-star:nth-child(4) { animation-delay: 800ms; }
.quiz-star:nth-child(5) { animation-delay: 1000ms; }

@keyframes starPop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

.quiz-star--filled {
  color: #FFB300;
}

.quiz-star--empty {
  color: var(--color-border);
}

.quiz-score-message {
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto 24px;
}

@media (max-width: 767px) {
  .quiz-score-message {
    font-size: 18px;
  }
}

.quiz-score-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.quiz-score-cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.quiz-score-cta:hover {
  background: #0D3B0E;
}

.quiz-retry-btn {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-retry-btn:hover {
  background: var(--color-primary-light);
}

/* ============================================================
   V3 REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .quiz-question-enter,
  .quiz-question-exit {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .quiz-score-enter {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .quiz-star {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .quiz-progress-segment {
    transition: none;
  }

  .quiz-feedback {
    transition: none;
  }
}

/* ============================================================
   VIDEO SECTIONS
   ============================================================ */
.video-section {
  margin-bottom: 48px;
}

.video-section:last-child {
  margin-bottom: 0;
}

.video-section h3 {
  font-size: 20px;
  margin: 0 0 16px 0;
}

.video-facade {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.video-facade img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #000;
  margin-left: 4px;
}

.video-facade iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Direct iframe embed (no facade) */
.video-embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  height: 0;
}

.video-embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-context {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
  font-style: italic;
}

.additional-videos {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 32px;
  text-align: center;
}

.additional-videos a {
  color: var(--color-primary);
  text-decoration: none;
  margin: 0 8px;
}

.additional-videos a:hover {
  text-decoration: underline;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
#faq {
  margin-top: 40px;
}

.faq-section {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 24px;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--color-text-secondary);
  position: absolute;
  right: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ============================================================
   CTA GRID — 5 CARDS
   ============================================================ */
.cta-section {
  background: none;
  margin: 40px calc(-50vw + 50%) 0;
  padding: 20px calc(50vw - 50%);
}

@media (min-width: 1120px) {
  .cta-section {
    margin: 40px 0 0;
    padding: 20px;
  }
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .cta-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .cta-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

.cta-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 5th card centered on mobile */
@media (max-width: 767px) {
  .cta-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

.cta-card-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
}

.cta-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-card-label {
  display: block;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  .cta-card-label {
    font-size: 15px;
  }
}

.secondary-cta {
  text-align: center;
  font-size: 16px;
  margin: 24px 0;
}

.secondary-cta a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.secondary-cta a:hover {
  text-decoration: underline;
}

.closing-note {
  font-size: 14px;
  color: var(--color-text-tertiary);
  max-width: 600px;
  margin: 32px auto 0;
  text-align: center;
  font-style: italic;
  line-height: 1.6;
}

/* ============================================================
   CTA BUTTONS — GENERAL
   ============================================================ */
.cta-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  background: var(--color-primary);
  color: #fff;
}

.cta-button:hover {
  background: #145218;
}

.cta-button--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.cta-button--outline:hover {
  background: var(--color-primary-light);
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease;
  pointer-events: none;
}

.back-to-top:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.back-to-top::before {
  content: '↑';
  font-size: 20px;
  color: var(--color-text-secondary);
}

@media (max-width: 767px) {
  .back-to-top {
    bottom: 80px;
    right: 16px;
  }
}

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  z-index: 800;
  display: none;
  transition: transform 0.3s ease;
}

@media (max-width: 767px) {
  .sticky-mobile-cta {
    display: block;
  }

  .sticky-mobile-cta[aria-hidden="true"] {
    transform: translateY(100%);
  }
}

.sticky-mobile-cta-button {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
}

/* ============================================================
   DISCOUNT POPUP
   ============================================================ */
.discount-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.discount-popup:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.discount-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.discount-popup-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  max-width: 480px;
  margin: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-align: center;
}

@media (max-width: 767px) {
  .discount-popup-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 12px 12px 0 0;
    padding: 32px 24px;
  }
}

.discount-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.discount-popup-title {
  font-size: 24px;
  margin: 0 0 8px 0;
  font-weight: 700;
  color: var(--color-text-primary);
}

.discount-popup-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 0 0 24px 0;
}

.discount-popup-code {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-light);
  border: 2px dashed var(--color-primary);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  justify-content: center;
}

.discount-copy-btn {
  padding: 8px 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.discount-copy-btn:hover {
  background: #145218;
}

.discount-popup-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 24px 0;
}

.discount-popup-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.discount-popup-cta:hover {
  background: #145218;
}

/* ============================================================
   HERO INTRO BULLET POINTS (V3)
   ============================================================ */
.hero-intro-points {
  list-style: none;
  margin: 24px 0 32px 0;
  padding: 0;
}

.hero-intro-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.hero-intro-points li:last-child {
  margin-bottom: 0;
}

.hero-intro-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.hero-intro-points li strong {
  color: var(--color-text-primary);
}

/* ============================================================
   QUICK REFERENCE TABLE — REFERENCE CARD (V3)
   ============================================================ */
.quick-reference-card {
  background: var(--color-bg-off-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.quick-reference-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.quick-reference-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  min-width: 540px;
}

.quick-reference-table thead {
  border-bottom: 2px solid var(--color-border);
}

.quick-reference-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.quick-reference-table td {
  padding: 12px 16px;
  color: var(--color-text-secondary);
  vertical-align: top;
}

.quick-reference-table td strong {
  color: var(--color-text-primary);
}

.quick-reference-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.quick-reference-table tbody tr:last-child {
  border-bottom: none;
}

.quick-reference-table tbody tr:hover {
  background: rgba(27, 94, 32, 0.03);
}

/* First column — model name, keep compact */
.quick-reference-table td:first-child {
  white-space: nowrap;
  font-weight: 500;
}

@media (max-width: 767px) {
  .quick-reference-card {
    padding: 16px;
    border-radius: 8px;
  }

  .quick-reference-table {
    font-size: 14px;
  }

  .quick-reference-table th,
  .quick-reference-table td {
    padding: 10px 12px;
  }
}

/* ============================================================
   CTA CLOSING DISCLAIMER (V3)
   ============================================================ */
.closing-disclaimer {
  background: var(--color-bg-light);
  border-left: 3px solid var(--color-text-muted);
  border-radius: 0 8px 8px 0;
  padding: 24px;
  margin-top: 32px;
  max-width: 640px;
  margin-left: 0;
  margin-right: 0;
}

.closing-disclaimer p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 12px 0;
}

.closing-disclaimer p:last-child {
  margin-bottom: 0;
}

.closing-disclaimer p strong {
  color: var(--color-text-primary);
}

/* ============================================================
   SCROLL BEHAVIOR
   ============================================================ */
html {
  scroll-behavior: smooth;
}

/* Offset for sticky header when using anchor links */
h2[id], h3[id], section[id] {
  scroll-margin-top: 100px;
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 767px) {
  h1, h2, h3 {
    overflow-wrap: break-word;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .toc-mobile-nav,
  .toc-sidebar,
  .sticky-mobile-cta,
  .back-to-top,
  .discount-popup,
  .video-facade {
    display: none;
  }

  .page-section {
    page-break-inside: avoid;
  }
}
