/* ================================================================
   LEARNING COUPONS — Guide / Tutorial Page Stylesheet
   Extends css/style.css — do not use standalone.
   Color Palette mirrors style.css variables:
   --dark-navy:#2D3748  --teal:#38B2AC  --green:#48BB78
   --gold:#ECC94B  --orange:#ED8936  --purple:#805AD5
================================================================ */

/* ============================================================
   ARTICLE HERO
============================================================ */
.article-hero {
  background: var(--dark-navy);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.article-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% -10%, rgba(56,178,172,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at -10% 80%, rgba(72,187,120,.12) 0%, transparent 70%);
  pointer-events: none;
}
.article-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.article-category-badge.teal-pill {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.article-category-badge.orange-pill {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.article-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
}
.article-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  max-width: 780px;
  margin-bottom: 28px;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
}
.byline-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
}
.byline-author strong { color: var(--white); display: block; font-size: 14px; }
.byline-author span { color: rgba(255,255,255,.6); font-size: 12px; }
.byline-stats {
  display: flex;
  gap: 16px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  margin-left: auto;
}
.byline-stats span { display: flex; align-items: center; gap: 5px; }
.byline-share {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}
.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition);
}
.share-btn:hover { background: rgba(255,255,255,.25); color: var(--white); }

/* ============================================================
   MAIN CONTENT LAYOUT
============================================================ */
.guide-main { padding: 48px 0 64px; }
.content-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.main-col {
  width: 100%;
  min-width: 0;
}
.sidebar-col {
  width: 100%;
  margin: 36px 0 0;
  position: static !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ============================================================
   CONTENT SECTIONS
============================================================ */
.content-section {
  margin-bottom: 52px;
}
.guide-step-section {
  border-left: 3px solid var(--border-gray);
  padding-left: 28px;
  margin-left: 0;
}
/* ============================================================
   STEP SECTION HEADER — icon badge centred with heading
   Works on desktop, tablet and mobile at all screen sizes
============================================================ */
.step-section-header {
  display: flex;
  flex-direction: row;
  align-items: center;   /* vertically centres icon with full text block */
  gap: 16px;
  margin-bottom: 24px;
}
/* The text wrapper beside the badge */
.step-section-header > div:last-child {
  flex: 1;
  min-width: 0;
}
/* Heading inside the header — no extra top margin */
.step-section-header .section-heading {
  margin-bottom: 0;
}
.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(72,187,120,.35);
}
.step-badge.teal-step { background: linear-gradient(135deg, var(--teal), #2C9C96); box-shadow: 0 4px 14px rgba(56,178,172,.35); }
.step-badge.orange-step { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); box-shadow: 0 4px 14px rgba(237,137,54,.35); }
.step-badge.green-step { background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 4px 14px rgba(72,187,120,.35); }
.step-badge.purple-step { background: linear-gradient(135deg, var(--purple), #6B46C1); box-shadow: 0 4px 14px rgba(128,90,213,.35); }
.step-badge span { font-size: 18px; font-weight: 800; }

.section-heading {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.3;
  margin-bottom: 14px;
}
.subsection-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light-gray);
}
.lead-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--body-text);
  margin-bottom: 18px;
}

/* ============================================================
   STAT HOOK GRID
============================================================ */
.stat-hook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-hook-item {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-hook-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sh-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  margin: 0 auto 10px;
}
.sh-icon.teal-sh { background: linear-gradient(135deg, var(--teal), #2C9C96); }
.sh-icon.orange-sh { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.sh-icon.green-sh { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.sh-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-navy);
  line-height: 1.1;
}
.sh-label {
  font-size: 11px;
  color: var(--muted-gray);
  margin-top: 4px;
  line-height: 1.4;
}

/* ============================================================
   QUICK START CTA INLINE BOX
============================================================ */
.quick-start-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
  border: 1px solid #c6f6d5;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.qsc-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qsc-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  flex-shrink: 0;
}
.qsc-left strong { color: var(--dark-navy); display: block; font-size: 15px; }
.qsc-left p { color: var(--body-text); font-size: 13px; margin: 0; }
.qsc-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   TABLE OF CONTENTS
============================================================ */
.toc-section {
  background: var(--light-gray);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.toc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-navy);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border-gray);
  padding-bottom: 12px;
}
.toc-list {
  list-style: decimal;
  padding-left: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px 24px;
}
.toc-list li { }
.toc-list a {
  color: var(--blue-link);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 3px 0;
}
.toc-list a:hover { color: var(--teal); text-decoration: underline; }

/* ============================================================
   FEATURE CARDS GRID
============================================================ */
.features-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
  background: var(--light-gray);
}
.feature-card-icon.purple-icon { background: rgba(128,90,213,.12); color: var(--purple); }
.feature-card-icon.orange-icon { background: rgba(237,137,54,.12); color: var(--orange); }
.feature-card-icon.teal-icon { background: rgba(56,178,172,.12); color: var(--teal); }
.feature-card-icon.green-icon { background: rgba(72,187,120,.12); color: var(--green); }
.feature-card h3 { font-size: 15px; font-weight: 700; color: var(--dark-navy); margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: #4A5568; line-height: 1.55; margin: 0; }

/* ============================================================
   DATA TABLE
============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead tr { background: var(--dark-navy); color: var(--white); }
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.data-table th.popular-col { background: rgba(56,178,172,.3); }
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-gray);
  color: var(--body-text);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) td { background: var(--table-stripe); }
.data-table tbody tr.popular-row td { background: rgba(56,178,172,.06); font-weight: 600; }
.data-table td.popular-col { background: rgba(56,178,172,.06); font-weight: 600; }
.data-table td.highlight-cell { color: var(--teal); font-weight: 700; }
.data-table td.check-yes { color: var(--green-dark); }
.data-table td.check-no { color: #E53E3E; }
.data-table td.check-partial { color: var(--orange); }

/* ============================================================
   CALLOUT BOXES
============================================================ */
.callout-box {
  display: flex;
  gap: 14px;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
  border-left: 4px solid;
}
.callout-box.green-callout { background: #f0fff4; border-color: var(--green); }
.callout-box.teal-callout { background: #e6fffa; border-color: var(--teal); }
.callout-box.orange-callout { background: #fffaf0; border-color: var(--orange); }
.callout-box.purple-callout { background: #faf5ff; border-color: var(--purple); }
.callout-icon {
  font-size: 20px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}
.green-callout .callout-icon { color: var(--green-dark); }
.orange-callout .callout-icon { color: var(--orange); }
.purple-callout .callout-icon { color: var(--purple); }
.callout-body { font-size: 14px; line-height: 1.65; color: var(--body-text); }
.callout-body strong { color: var(--dark-navy); }

/* ============================================================
   CTA BANNERS (INLINE)
============================================================ */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: var(--radius-md);
  padding: 22px 28px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.cta-banner.green-cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--teal) 100%);
  box-shadow: 0 6px 24px rgba(56,161,105,.3);
}
.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.cta-logo-badge {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.cta-banner-left strong { color: var(--white); font-size: 15px; display: block; }
.cta-banner-left p { color: rgba(255,255,255,.8); font-size: 13px; margin: 2px 0 0; }
.cta-banner-btn {
  background: var(--white) !important;
  color: var(--green-dark) !important;
  font-weight: 700 !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.cta-banner-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.2) !important; }
.btn-pulse {
  animation: pulseCTA 2.5s ease-in-out infinite;
}
@keyframes pulseCTA {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0.15); }
}

/* ============================================================
   TUTORIAL STEPS — icon + text, no numbers, no timeline
============================================================ */
.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 20px 0;
}
/* No timeline line */
.tutorial-steps::before { display: none; }

.tutorial-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;   /* icon top-aligns with heading line */
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-gray);
  min-width: 0;
}
.tutorial-step:last-child { border-bottom: none; padding-bottom: 0; }

/* Icon badge — vertically centred with the h4 text */
.ts-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: var(--white);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Offset top so icon centre lines up with the h4 text baseline:
     h4 line-height≈1.35×15px≈20px → centre at 10px → icon 42px → centre at 21px
     difference ≈ 11px, add as margin-top */
  margin-top: 2px;
  box-shadow: 0 3px 10px rgba(56,178,172,.25);
}

/* Content — all remaining width */
.ts-content {
  flex: 1 1 0;
  min-width: 0;
}
.ts-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-navy);
  margin: 0 0 5px;
  line-height: 1.35;
  word-break: break-word;
}
.ts-content p {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.65;
  margin-bottom: 6px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* Keep .ts-number hidden if somehow still present */
.ts-number { display: none; }
.ts-action-link {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.ts-action-link:hover { color: var(--green-dark); gap: 8px; }

/* ============================================================
   WORKFLOW STEPS (horizontal)
============================================================ */
.workflow-steps {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.workflow-step {
  flex: 1;
  min-width: 150px;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.workflow-step:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.ws-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  margin: 0 auto 8px;
}
.ws-icon.teal-ws { background: linear-gradient(135deg, var(--teal), #2C9C96); }
.ws-icon.orange-ws { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.ws-icon.green-ws { background: linear-gradient(135deg, var(--green-dark), var(--teal)); }
.ws-num {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.workflow-step h4 { font-size: 13px; font-weight: 700; color: var(--dark-navy); margin-bottom: 6px; }
.workflow-step p { font-size: 12px; color: var(--body-text); line-height: 1.5; margin: 0; }
.ws-arrow {
  display: flex;
  align-items: center;
  color: var(--muted-gray);
  font-size: 16px;
  align-self: center;
  flex-shrink: 0;
}

/* ============================================================
   GUIDE IMAGE BLOCKS
============================================================ */
.guide-img-block {
  margin: 24px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-sm);
}
.guide-img-block img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.guide-img-block:hover img { transform: scale(1.01); }
.img-caption {
  padding: 10px 16px;
  background: var(--light-gray);
  font-size: 12px;
  color: var(--muted-gray);
  text-align: center;
  font-style: italic;
  border-top: 1px solid var(--border-gray);
}

/* ============================================================
   PRO TIP BOX
============================================================ */
.pro-tip-box {
  display: flex;
  gap: 14px;
  background: linear-gradient(135deg, #fefce8 0%, #fffbf0 100%);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
}
.pro-tip-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-navy);
  font-size: 18px;
  flex-shrink: 0;
}
.pro-tip-content { font-size: 14px; line-height: 1.65; color: var(--body-text); }
.pro-tip-content strong { color: var(--dark-navy); }

/* ============================================================
   FEATURE CHECK GRID (2-col)
============================================================ */
.feature-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.feature-check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.feature-check-item > .fas { color: var(--green); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.feature-check-item div strong { display: block; font-size: 14px; color: var(--dark-navy); margin-bottom: 2px; }
.feature-check-item div p { font-size: 12px; color: var(--muted-gray); margin: 0; line-height: 1.4; }

/* ============================================================
   PRICING MODELS GRID
============================================================ */
.pricing-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.pricing-model-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  transition: var(--transition);
  position: relative;
}
.pricing-model-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-model-card.featured-pm { border-color: var(--orange); box-shadow: 0 4px 20px rgba(237,137,54,.18); }
.pricing-model-card.featured-pm::before {
  content: 'Most Popular';
  position: absolute;
  top: -11px;
  right: 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 30px;
}
.pm-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(72,187,120,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 18px;
  margin-bottom: 12px;
}
.pm-card-icon.orange-pm-icon { background: rgba(237,137,54,.12); color: var(--orange); }
.pm-card-icon.teal-pm-icon { background: rgba(56,178,172,.12); color: var(--teal); }
.pm-card-icon.green-pm-icon { background: rgba(72,187,120,.12); color: var(--green-dark); }
.pricing-model-card h4 { font-size: 15px; font-weight: 700; color: var(--dark-navy); margin-bottom: 6px; }
.pm-range { font-size: 18px; font-weight: 800; color: var(--teal); margin-bottom: 10px; font-family: var(--font-mono); }
.pricing-model-card p { font-size: 13px; color: var(--body-text); line-height: 1.55; margin-bottom: 12px; }
.pm-best-for { font-size: 12px; color: var(--muted-gray); border-top: 1px solid var(--border-gray); padding-top: 10px; display: flex; align-items: center; gap: 6px; }
.pm-best-for .fas { color: var(--green); }

/* ============================================================
   EXCLUSIVE COUPON HIGHLIGHT
============================================================ */
.exclusive-coupon-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #fff8f0 0%, #fffaf5 100%);
  border: 1px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.ech-left { display: flex; align-items: flex-start; gap: 12px; flex: 1; }
.ech-badge {
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ech-left strong { display: block; font-size: 15px; color: var(--dark-navy); margin-bottom: 4px; }
.ech-left p { font-size: 13px; color: var(--body-text); margin: 0; }
.ech-left code { color: var(--orange); font-weight: 700; }
.ech-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.ech-code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px dashed var(--orange);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
}
.ech-code-box code { font-size: 16px; font-weight: 700; color: var(--orange); font-family: var(--font-mono); }
.ech-cta-btn { flex-shrink: 0; }

/* ============================================================
   SALES PAGE ELEMENTS LIST
============================================================ */
.sales-elements-list { display: flex; flex-direction: column; gap: 0; margin: 16px 0; }
.se-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-gray);
}
.se-item:last-child { border-bottom: none; }
.se-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark-navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
}
.se-content h4 { font-size: 14px; font-weight: 700; color: var(--dark-navy); margin-bottom: 4px; }
.se-content p { font-size: 13px; color: var(--body-text); line-height: 1.6; margin: 0; }

/* ============================================================
   MARKETING CHANNEL GRID
============================================================ */
.marketing-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.mc-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  transition: var(--transition);
}
.mc-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 auto 10px;
  color: var(--white);
}
.mc-icon.email-icon { background: linear-gradient(135deg, var(--teal), #2C9C96); }
.mc-icon.social-icon { background: linear-gradient(135deg, #4267B2, #1DA1F2); }
.mc-icon.seo-icon { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.mc-icon.affiliate-icon { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.mc-icon.paid-icon { background: linear-gradient(135deg, var(--purple), #6B46C1); }
.mc-icon.webinar-icon { background: linear-gradient(135deg, #E53E3E, #C53030); }
.mc-card h4 { font-size: 13px; font-weight: 700; color: var(--dark-navy); margin-bottom: 5px; }
.mc-card p { font-size: 12px; color: var(--body-text); line-height: 1.5; margin: 0; }

/* ============================================================
   MARKETING FUNNEL VISUAL
============================================================ */
.funnel-visual {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 20px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.funnel-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: default;
}
.funnel-stage:hover { transform: scaleX(1.01); }
.funnel-stage-1 { background: var(--teal); color: var(--white); clip-path: polygon(0 0,100% 0,95% 100%,5% 100%); }
.funnel-stage-2 { background: var(--green); color: var(--white); clip-path: polygon(2% 0,98% 0,96% 100%,4% 100%); margin: 0 8px; }
.funnel-stage-3 { background: var(--orange); color: var(--white); clip-path: polygon(4% 0,96% 0,93% 100%,7% 100%); margin: 0 16px; }
.funnel-stage-4 { background: var(--purple); color: var(--white); clip-path: polygon(6% 0,94% 0,91% 100%,9% 100%); margin: 0 24px; }
.funnel-stage-5 { background: var(--dark-navy); color: var(--white); clip-path: polygon(8% 0,92% 0,89% 100%,11% 100%); margin: 0 32px; }
.fs-icon { font-size: 16px; flex-shrink: 0; }
.fs-label { font-weight: 700; font-size: 14px; }
.fs-count { margin-left: auto; font-size: 12px; opacity: .8; }

/* ============================================================
   ADVANCED FEATURES GRID
============================================================ */
.advanced-features-grid { display: flex; flex-direction: column; gap: 32px; margin: 20px 0; }
.adv-feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.adv-feature-card:hover { box-shadow: var(--shadow-md); }
.adv-feature-card.reverse { }
.adv-feature-visual { overflow: hidden; height: 240px; }
.adv-feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.adv-feature-card.reverse .adv-feature-visual { order: 2; }
.adv-feature-card.reverse .adv-feature-text { order: 1; }
.adv-feature-text { padding: 24px; }
.adv-feature-text h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark-navy); margin-bottom: 10px; }
.adv-feature-text p { font-size: 14px; color: var(--body-text); line-height: 1.65; margin-bottom: 14px; }
.adv-feature-list { list-style: none; padding: 0; }
.adv-feature-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body-text); margin-bottom: 6px; }
.adv-feature-list li .fas { color: var(--green); flex-shrink: 0; }

/* Analytics Mock */
.analytics-visual {
  background: var(--dark-navy);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.analytics-mock { width: 100%; color: var(--white); }
.am-title { font-size: 14px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.am-bars { display: flex; flex-direction: column; gap: 10px; }
.am-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.am-bar-row > span:first-child { width: 110px; color: rgba(255,255,255,.7); flex-shrink: 0; }
.am-bar-row > span:last-child { width: 32px; color: rgba(255,255,255,.8); text-align: right; flex-shrink: 0; }
.am-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
.am-bar-fill { height: 100%; border-radius: 4px; background: var(--green); transition: width 1s ease; }
.am-bar-fill.teal-bar { background: var(--teal); }
.am-bar-fill.orange-bar { background: var(--orange); }

/* ============================================================
   SCALING STRATEGIES
============================================================ */
.scaling-strategies { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.scaling-strategy {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: var(--transition);
}
.scaling-strategy:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.ss-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
}
.ss-icon.teal-ss { background: linear-gradient(135deg, var(--teal), #2C9C96); }
.ss-icon.orange-ss { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.ss-icon.green-ss { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.ss-icon.purple-ss { background: linear-gradient(135deg, var(--purple), #6B46C1); }
.ss-content h4 { font-size: 15px; font-weight: 700; color: var(--dark-navy); margin-bottom: 6px; }
.ss-content p { font-size: 14px; color: var(--body-text); line-height: 1.65; margin: 0; }

/* ============================================================
   VIDEO WRAPPER (YouTube Embed)
============================================================ */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 20px 0;
  background: var(--dark-navy);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ============================================================
   FAQ SECTION
============================================================ */
.faq-section {}
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border-gray); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-navy);
  text-align: left;
  transition: var(--transition);
}
.faq-question:hover { color: var(--teal); }
.faq-icon { font-size: 13px; color: var(--muted-gray); transition: transform .3s ease; flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--teal); }
.faq-answer { padding: 0 4px 18px; }
.faq-answer p { font-size: 14px; color: var(--body-text); line-height: 1.7; margin: 0; }
.faq-answer code { color: var(--orange); background: #fff5eb; padding: 1px 5px; border-radius: 3px; font-size: 13px; }
.faq-answer strong { color: var(--dark-navy); }

/* ============================================================
   BOTTOM CTA SECTION
============================================================ */
.bottom-cta-section {}
.final-cta-box {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #1A202C 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.final-cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(56,178,172,.15) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta-box h3 { font-size: 1.6rem; font-weight: 800; color: var(--white); margin-bottom: 16px; position: relative; z-index: 1; }
.final-cta-box p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.7; max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.final-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.final-cta-perks {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.final-cta-perks span { color: rgba(255,255,255,.7); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.final-cta-perks .fas { color: var(--green); }

/* ============================================================
   SIDEBAR WIDGETS
============================================================ */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.sticky-sidebar-widget {
  border: 2px solid var(--green);
  box-shadow: 0 4px 20px rgba(72,187,120,.15);
  grid-column: 1 / -1; /* full-width CTA bar at top of widget row */
}
.sidebar-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-gray);
}
.sidebar-widget-header h3 { font-size: 15px; font-weight: 700; color: var(--dark-navy); margin: 0; }
.sidebar-widget h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-deal-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 30px;
  margin-bottom: 8px;
}
.sidebar-deal-badge.orange-badge { background: var(--orange); }
.sidebar-widget > p { font-size: 13px; color: var(--body-text); margin-bottom: 12px; line-height: 1.5; }
.sidebar-coupon-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-gray);
  border: 1px dashed var(--green);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
}
.sidebar-coupon-box code { font-size: 16px; font-weight: 700; color: var(--green-dark); flex: 1; }
.sidebar-cta-btn { display: block; text-align: center; font-size: 14px; font-weight: 700; padding: 11px; }
.sidebar-deal-expires { font-size: 11px; color: var(--muted-gray); margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.sidebar-deal-expires strong { color: var(--orange); }

/* Guide Nav Sidebar */
.guide-nav-widget {}
.sidebar-links-list { list-style: none; padding: 0; }
.sidebar-links-list li { margin-bottom: 4px; }
.sidebar-links-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--body-text);
  font-size: 13px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-links-list a:hover, .guide-nav-links a.active { background: var(--light-gray); color: var(--teal); }
.sidebar-links-list a .fas { color: var(--teal); font-size: 11px; }

/* Stats List */
.sidebar-stats-list { list-style: none; padding: 0; }
.sidebar-stats-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-gray);
  font-size: 13px;
  color: var(--body-text);
}
.sidebar-stats-list li:last-child { border-bottom: none; }
.sidebar-stats-list li .fas { color: var(--teal); font-size: 14px; width: 18px; }

/* Mini Coupons */
.sidebar-coupon-list { display: flex; flex-direction: column; gap: 10px; }
.mini-coupon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gray);
}
.mini-coupon-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--white);
  flex-shrink: 0;
  white-space: nowrap;
}
.mini-coupon-badge.green { background: var(--green-dark); }
.mini-coupon-badge.orange { background: var(--orange); }
.mini-coupon-info { flex: 1; }
.mini-coupon-info strong { display: block; font-size: 12px; color: var(--dark-navy); }
.mini-coupon-info code { font-size: 11px; color: var(--orange); font-family: var(--font-mono); }
.mini-claim-btn {
  background: var(--dark-navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}
.mini-claim-btn:hover { background: var(--teal); color: var(--white); }
.view-all-link { color: var(--teal); font-size: 13px; font-weight: 600; text-decoration: none; transition: var(--transition); }
.view-all-link:hover { color: var(--green-dark); text-decoration: underline; }

/* ============================================================
   COPY BUTTON (small variant)
============================================================ */
.copy-btn.small-copy {
  background: none;
  border: none;
  color: var(--muted-gray);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  transition: var(--transition);
}
.copy-btn.small-copy:hover { color: var(--teal); }

/* ============================================================
   SCROLL PROGRESS BAR
============================================================ */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  z-index: 10000;
  width: 0%;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================================
   RESPONSIVE — GUIDE PAGE
============================================================ */
@media (max-width: 1024px) {
  /* layout already single-column — only fix sub-components */
  .adv-feature-card { grid-template-columns: 1fr; }
  .adv-feature-card .adv-feature-visual { height: 200px; order: 0 !important; }
  .adv-feature-card .adv-feature-text { order: 1 !important; }
}
@media (max-width: 768px) {
  .article-hero { padding: 36px 0 30px; }
  .article-hero-title { font-size: clamp(1.4rem, 5vw, 1.9rem) !important; line-height: 1.25; }
  .article-hero-subtitle { font-size: 14px; line-height: 1.65; }
  .article-meta-row { gap: 6px; }
  .article-category-badge { font-size: 11px; padding: 4px 10px; }
  .article-byline { flex-direction: column; align-items: flex-start; gap: 14px; }
  .byline-stats { margin-left: 0; flex-wrap: wrap; gap: 10px; }
  .stat-hook-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { flex-direction: column; gap: 10px; }
  .ws-arrow { transform: rotate(90deg); align-self: center; margin: -2px auto; }
  .toc-list { grid-template-columns: 1fr; }
  .exclusive-coupon-highlight { flex-direction: column; gap: 14px; }
  .ech-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .quick-start-cta { flex-direction: column; text-align: center; gap: 12px; }
  .qsc-left { flex-direction: column; align-items: center; text-align: center; }
  .cta-banner { flex-direction: column; text-align: center; gap: 14px; padding: 22px 18px; }
  .cta-banner-left { justify-content: center; }
  .final-cta-box { padding: 32px 20px; }
  .pricing-models-grid { grid-template-columns: 1fr; }
  .features-card-grid { grid-template-columns: repeat(2, 1fr); }
  .scaling-strategies-grid { grid-template-columns: 1fr; }
  .marketing-channels-grid { grid-template-columns: repeat(2, 1fr); }
  /* Comparison table: horizontal scroll */
  .comparison-table-outer { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); }
  .platform-compare-table { min-width: 480px; font-size: 12px; }
  .platform-compare-table th,
  .platform-compare-table td { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
  /* Revenue roadmap table */
  .revenue-roadmap-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .revenue-roadmap-table { min-width: 500px; font-size: 12px; }
  .revenue-roadmap-table th,
  .revenue-roadmap-table td { padding: 8px 10px; }
  /* Video embed responsive */
  .yt-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
  .yt-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; }
  /* Analytics mock */
  .analytics-mock { padding: 16px; }
  /* Funnel stages */
  .funnel-stages { flex-direction: column; gap: 0; }
  .funnel-arrow { transform: rotate(90deg); margin: -6px auto; align-self: center; }
}
@media (max-width: 480px) {
  .stat-hook-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sh-num { font-size: 1.2rem; }
  .features-card-grid { grid-template-columns: 1fr; }
  .pricing-models-grid { grid-template-columns: 1fr; }
  .marketing-channels-grid { grid-template-columns: 1fr; }
  .sidebar-col { grid-template-columns: 1fr; }
  .ech-code { font-size: 22px; }
  /* Tutorial step text */
  .tutorial-step-body h4 { font-size: 14px; }
  .tutorial-step-body p { font-size: 13px; }
  .toc-item { font-size: 13px; }
}

/* ============================================================
   TUTORIAL STEPS — mobile & small screen
   Icon on left, content on right, clean and unclipped
============================================================ */
@media (max-width: 768px) {
  .tutorial-steps {
    margin: 14px 0;
    gap: 0;
  }
  .tutorial-step {
    gap: 12px;
    padding: 12px 0;
    align-items: flex-start;
  }
  /* Icon: slightly smaller, stays at left */
  .ts-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 15px;
    border-radius: 8px;
    margin-top: 1px;
  }
  .ts-content h4 {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 4px;
  }
  .ts-content p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 0;
  }
  /* step-section-header: icon always centred with heading on mobile */
  .step-section-header {
    gap: 12px;
    margin-bottom: 18px;
    align-items: center;
  }
  .step-badge {
    width: 40px;
    height: 40px;
    font-size: 16px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .tutorial-step {
    gap: 10px;
    padding: 10px 0;
  }
  .ts-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 13px;
    border-radius: 7px;
  }
  .ts-content h4 { font-size: 13px; }
  .ts-content p  { font-size: 12px; line-height: 1.55; }
  /* step-section-header on very small screens */
  .step-section-header {
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
  }
  .step-badge {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}
