/* ============================================
   AFP TCO BLOG - STYLES
   Brand Colors: Red #bf3425, Blue #47577c, Gray #9d9d9c
   Typography: Archivo (headers), Assistant (body)
   ============================================ */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Assistant", sans-serif;
  font-weight: 400;
  color: #334155;
  line-height: 1.8;
  background-color: #fff;
}

.iframe-fullwidth {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #bf3425, #47577c);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* ============================================
   MOBILE NAV TOGGLE
   ============================================ */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #bf3425 0%, #9d2a1e 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(191, 52, 37, 0.4);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(191, 52, 37, 0.5);
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
}

/* ============================================
   LAYOUT
   ============================================ */
.blog-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  gap: 60px;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.blog-sidebar {
  position: sticky;
  top: 40px;
  width: 280px;
  min-width: 280px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding-right: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-self: flex-start;
}

.blog-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-left: 12px;
}

.blog-sidebar-title {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #9d9d9c;
  text-transform: uppercase;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.blog-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-sidebar-link {
  font-family: "Assistant", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  line-height: 1.4;
}

.blog-sidebar-link:hover {
  color: #47577c;
  background-color: #f8fafc;
}

.blog-sidebar-link.active {
  color: #bf3425;
  background-color: #fef7f6;
  font-weight: 700;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.blog-content {
  flex: 1;
  max-width: 900px;
  min-width: 0;
}

/* ============================================
   BLOG META
   ============================================ */
.blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 12px;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-meta-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex-shrink: 0;
}

.tag-item {
  background: #f1f5f9;
  color: #47577c;
  font-weight: 600;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: "Archivo", sans-serif;
  letter-spacing: 0.02em;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.blog-content h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.15;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #1e293b;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #bf3425;
}

.blog-content h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #47577c;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

.blog-content h4 {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.625rem;
  font-size: 1.0625rem;
}

.blog-content a {
  color: #47577c;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s;
}

.blog-content a:hover {
  color: #bf3425;
}

/* Subtitle */
.subtitle {
  font-size: 1.25rem;
  font-style: italic;
  color: #47577c;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Drop Cap */
.drop-cap::first-letter {
  float: left;
  font-family: "Archivo", sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.8;
  color: #bf3425;
  margin-right: 12px;
  margin-top: 8px;
}

/* ============================================
   IMAGES
   ============================================ */
.full-width-image {
  width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.full-width-image:hover {
  transform: scale(1.005);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.image-caption {
  font-size: 0.875rem;
  color: #9d9d9c;
  text-align: center;
  font-style: italic;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

/* ============================================
   INTRO CARD
   ============================================ */
.intro-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.intro-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(191, 52, 37, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================
   DIALOGUE BOX
   ============================================ */
.dialogue-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dialogue-line {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.6;
  align-items: flex-start;
}

.dialogue-line:last-child {
  margin-bottom: 0;
}

.dialogue-line.engineer {
  background: #f0f7ff;
}

.dialogue-line.finance {
  background: #fef7f6;
}

.dialogue-role {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
  min-width: 120px;
  padding-top: 2px;
}

.dialogue-line.engineer .dialogue-role {
  color: #47577c;
}

.dialogue-line.finance .dialogue-role {
  color: #bf3425;
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2.5rem 0;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.split-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.split-content {
  padding: 0;
}

.split-content h3,
.split-content h4 {
  margin-top: 0;
}

/* ============================================
   KEY QUESTION BOX
   ============================================ */
.key-question {
  background: linear-gradient(135deg, #47577c 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}

.key-question p {
  color: #ffffff;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  font-style: italic;
  margin: 0;
}

/* ============================================
   HIGHLIGHT BOX
   ============================================ */
.highlight-box {
  background: linear-gradient(135deg, #fef7f6 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(191, 52, 37, 0.2);
}

.highlight-box p {
  margin: 0;
  color: #1e293b;
}

/* ============================================
   FEATURE GRID
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 1.375rem;
  flex-shrink: 0;
  line-height: 1;
}

.feature-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: #475569;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-family: "Archivo", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #bf3425;
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.5rem;
  display: block;
  line-height: 1.4;
}

/* ============================================
   SCENARIO BOX
   ============================================ */
.scenario-box {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
}

.scenario-box h4 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #47577c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.25rem 0;
}

/* ============================================
   SPECS LIST
   ============================================ */
.specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  gap: 1rem;
}

.spec-label {
  font-weight: 600;
  color: #475569;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.spec-value {
  color: #1e293b;
  font-size: 0.9375rem;
  text-align: right;
}

/* ============================================
   NUMBERED CARDS (Lock-In Problem etc.)
   ============================================ */
.numbered-cards {
  margin: 2rem 0;
}

.numbered-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}

.numbered-card:hover {
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.numbered-card-header {
  margin-bottom: 1rem;
}

.numbered-card-num {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #bf3425;
}

.numbered-card p {
  margin: 0;
  color: #475569;
}

/* ============================================
   COST REVEAL CARDS
   ============================================ */
.cost-reveal-card {
  display: flex;
  gap: 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  align-items: flex-start;
}

.cost-reveal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.12);
}

.cost-number {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: #bf3425;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  text-align: center;
}

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

.cost-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.cost-content p {
  margin-bottom: 1rem;
}

.cost-content p:last-child {
  margin-bottom: 0;
}

/* ============================================
   THREE COLUMN CARDS
   ============================================ */
.three-col-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.col-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.col-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.12);
}

.col-card.payback {
  border-top: 3px solid #bf3425;
}

.col-card.balance {
  border-top: 3px solid #47577c;
}

.col-card.risk {
  border-top: 3px solid #9d9d9c;
}

.col-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.col-card h4 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
}

.col-card p {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.col-card-stat {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #bf3425;
  margin: 0.5rem 0;
}

.col-card-note {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 !important;
}

.col-card-list {
  margin: 0;
  padding-left: 1.25rem;
}

.col-card-list li {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.4rem;
}

/* ============================================
   CHECKLIST
   ============================================ */
.checklist-container {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-group {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.checklist-group-header {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.875rem 1.25rem;
  color: #ffffff;
}

.checklist-group-header.tco {
  background: #47577c;
}

.checklist-group-header.capability {
  background: #bf3425;
}

.checklist-group-header.vendor {
  background: #1e293b;
}

.checklist-items {
  padding: 0.5rem 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  color: #334155;
  transition: background 0.15s;
}

.checklist-item:hover {
  background: #f8fafc;
}

.check-box {
  font-size: 1.125rem;
  color: #64748b;
  flex-shrink: 0;
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.2s;
}

.checklist-item:hover .check-box {
  color: #bf3425;
}

/* ============================================
   DECISION / FILTER TABLE
   ============================================ */
.decision-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}

.filter-card h4 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #47577c;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
}

.filter-row:last-child {
  border-bottom: none;
}

.filter-label {
  color: #475569;
  font-weight: 600;
}

.filter-result {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.filter-result.good {
  background: #d1fae5;
  color: #065f46;
}

.filter-result.check {
  background: #fef3c7;
  color: #92400e;
}

/* ============================================
   DATA TABLE
   ============================================ */
.data-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table thead {
  background-color: #47577c;
  color: white;
}

.data-table th {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  padding: 1rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ============================================
   REFERENCES
   ============================================ */
.references-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reference-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  align-items: flex-start;
  transition: background 0.2s;
}

.reference-item:hover {
  background: #f1f5f9;
}

.reference-number {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #bf3425;
  background: #fef7f6;
  border: 1px solid rgba(191, 52, 37, 0.2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.reference-content strong {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1e293b;
  display: block;
  margin-bottom: 0.375rem;
}

.reference-content p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 0.375rem 0;
  line-height: 1.6;
}

.reference-content a {
  font-size: 0.8125rem;
  color: #47577c;
  word-break: break-all;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reference-content a:hover {
  color: #bf3425;
}

/* ============================================
   LEARN MORE SECTION
   ============================================ */
.learn-more-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.learn-more-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.learn-more-card:hover {
  border-color: #bf3425;
  box-shadow: 0 8px 25px -5px rgba(191, 52, 37, 0.15);
  transform: translateY(-2px);
}

.learn-more-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #47577c 0%, #1e293b 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}

.learn-more-card:hover .learn-more-icon {
  background: linear-gradient(135deg, #bf3425 0%, #9d2a1e 100%);
}

.learn-more-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.learn-more-text {
  display: flex;
  flex-direction: column;
}

.learn-more-title {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  transition: color 0.3s;
}

.learn-more-card:hover .learn-more-title {
  color: #bf3425;
}

.learn-more-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, #fef7f6 0%, #ffffff 100%);
  border: 2px solid #bf3425;
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #bf3425, #47577c);
}

.cta-section p {
  margin-bottom: 1.25rem;
  color: #1e293b;
  font-size: 1.125rem;
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #bf3425 0%, #9d2a1e 100%);
  color: #ffffff !important;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(191, 52, 37, 0.4);
  color: #ffffff !important;
}

/* ============================================
   AUTHOR SECTION
   ============================================ */
.author-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.author-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
}

.author-image-wrapper {
  flex-shrink: 0;
}

.author-image {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 4px;
  text-decoration: underline;
  text-decoration-color: #bf3425;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.author-title {
  font-size: 1rem;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 16px;
}

.author-social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border-radius: 10px;
  transition:
    transform 0.2s,
    background 0.2s;
  text-decoration: none;
}

.author-social a:hover {
  transform: scale(1.1);
  background: #e2e8f0;
}

.author-social svg {
  width: 24px;
  height: 24px;
}

.about-author-label {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #bf3425;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  margin-top: 0;
}

.author-bio {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  text-align: justify;
  margin: 0;
}

/* Section Scroll Margin */
section {
  scroll-margin-top: 40px;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #bf3425 0%, #9d2a1e 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(191, 52, 37, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(191, 52, 37, 0.4);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet Large (1024px) */
@media (max-width: 1024px) {
  .blog-layout {
    flex-direction: column;
    gap: 32px;
    padding: 32px 20px;
  }

  .blog-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    min-width: 100%;
    max-height: none;
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
  }

  .blog-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .blog-sidebar-link {
    font-size: 13px;
    padding: 8px 12px;
  }

  .blog-content {
    max-width: 100%;
  }

  .blog-content h1 {
    font-size: 2.25rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .split-layout.reverse {
    direction: ltr;
  }

  .feature-grid,
  .filter-grid,
  .three-col-cards,
  .learn-more-container {
    grid-template-columns: 1fr 1fr;
  }

  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-social {
    justify-content: center;
  }

  .author-bio {
    text-align: center;
  }

  .cost-reveal-card {
    gap: 1.25rem;
  }

  .cost-number {
    font-size: 2rem;
    width: 40px;
  }
}

/* Tablet (768px) */
@media (max-width: 768px) {
  .blog-layout {
    padding: 24px 16px;
  }

  /* Mobile Nav Toggle: show on mobile */
  .mobile-nav-toggle {
    display: flex;
  }

  /* Hide sidebar on mobile, show via toggle */
  .blog-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    z-index: 999;
    padding: 24px 20px;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: none;
    max-height: 100vh;
  }

  .blog-sidebar.active {
    transform: translateY(0);
  }

  .sidebar-overlay {
    display: block;
  }

  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-header {
    padding-left: 0;
    padding-top: 8px;
  }

  .blog-sidebar-title {
    font-size: 12px;
  }

  .blog-sidebar-nav {
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
  }

  .blog-sidebar-link {
    font-size: 15px;
    padding: 14px 16px;
    border-radius: 8px;
  }

  .feature-grid,
  .filter-grid,
  .three-col-cards {
    grid-template-columns: 1fr;
  }

  .cost-reveal-card {
    flex-direction: column;
    gap: 1rem;
  }

  .cost-number {
    font-size: 1.5rem;
    width: auto;
    text-align: left;
    opacity: 0.2;
  }

  .spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .spec-value {
    text-align: left;
  }

  .dialogue-role {
    min-width: 90px;
  }
}

/* Mobile Large (640px) */
@media (max-width: 640px) {
  .blog-layout {
    padding: 20px 12px;
  }

  .blog-content h1 {
    font-size: 1.875rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .learn-more-container {
    grid-template-columns: 1fr;
  }

  .intro-card {
    padding: 1.5rem;
  }

  .intro-card::after {
    display: none;
  }

  .key-question {
    padding: 1.25rem 1.5rem;
  }

  .key-question p {
    font-size: 1.1rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
    padding: 1rem;
    display: block;
  }

  .three-col-cards {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .learn-more-card {
    padding: 1rem;
  }

  .learn-more-icon {
    width: 40px;
    height: 40px;
  }

  .learn-more-icon svg {
    width: 20px;
    height: 20px;
  }

  .dialogue-line {
    flex-direction: column;
    gap: 6px;
  }

  .dialogue-role {
    min-width: auto;
  }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
  .blog-layout {
    padding: 16px 10px;
  }

  .blog-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .author-image {
    width: 120px;
    height: 120px;
  }

  .author-card {
    padding: 1.25rem;
  }

  .feature-item {
    padding: 1rem;
  }

  .cta-section {
    padding: 1.5rem 1.25rem;
  }

  .cost-reveal-card {
    padding: 1.25rem;
  }

  .reference-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .scenario-box {
    padding: 1.25rem;
  }

  .spec-item {
    padding: 0.625rem 0.75rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .blog-sidebar,
  .mobile-nav-toggle,
  .back-to-top,
  .reading-progress,
  .cta-section,
  .author-social,
  .sidebar-overlay {
    display: none !important;
  }

  .blog-layout {
    display: block;
    padding: 0;
  }

  .blog-content {
    max-width: 100%;
  }

  .blog-content h1 {
    font-size: 24pt;
  }

  .blog-content h2 {
    font-size: 18pt;
    page-break-after: avoid;
  }

  .blog-content h3 {
    font-size: 14pt;
    page-break-after: avoid;
  }

  .full-width-image {
    max-width: 100%;
    page-break-inside: avoid;
  }

  .data-table-container {
    overflow: visible;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  .intro-card,
  .highlight-box,
  .key-question,
  .cost-reveal-card {
    page-break-inside: avoid;
  }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
  .blog-sidebar-link.active {
    outline: 2px solid #bf3425;
  }

  .cta-button {
    border: 2px solid #ffffff;
  }

  .data-table th,
  .data-table td {
    border: 1px solid #334155;
  }
}

/* <!-- INFOGRAPHIC 1: Three-model comparison table --> */
.afp-cc-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
}

.afp-cc-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin-bottom: 6px;
}

.afp-cc-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

.afp-cc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

/* Header row */
.afp-cc-table thead tr {
  border-bottom: 2px solid #47577c;
}

.afp-cc-table thead th {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
}

.afp-cc-table thead th:first-child {
  color: #1e293b;
}

.afp-cc-th-legacy {
  color: #47577c !important;
}

.afp-cc-th-hand {
  color: #9d9d9c !important;
}

.afp-cc-th-xs {
  color: #bf3425 !important;
}

/* Body rows */
.afp-cc-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
  cursor: default;
}

.afp-cc-table tbody tr:hover {
  background-color: #f8fafc;
  transform: scale(1.005);
  box-shadow: 0 2px 8px rgba(71, 87, 124, 0.08);
  position: relative;
  z-index: 1;
}

.afp-cc-table tbody td {
  padding: 11px 14px;
  font-size: 13.5px;
  color: #334155;
  vertical-align: middle;
  transition: color 0.18s;
}

/* Row label */
.afp-cc-table tbody td:first-child {
  font-weight: 600;
  color: #1e293b;
  font-size: 13px;
  white-space: nowrap;
}

/* Highlight the AFP-XS column cells */
.afp-cc-table tbody td.afp-cc-xs-cell {
  font-weight: 600;
  color: #1e293b;
}

/* Pill / badge for advantage cells */
.afp-cc-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.afp-cc-badge-green {
  background-color: rgba(191, 52, 37, 0.08);
  color: #bf3425;
}

.afp-cc-badge-neutral {
  background-color: rgba(157, 157, 156, 0.12);
  color: #6b7280;
}

.afp-cc-badge-warn {
  background-color: rgba(71, 87, 124, 0.1);
  color: #47577c;
}

/* Column highlight stripe for AFP-XS */
.afp-cc-table thead th.afp-cc-th-xs,
.afp-cc-table tbody td.afp-cc-xs-cell {
  background-color: rgba(191, 52, 37, 0.03);
}

.afp-cc-table tbody tr:hover td.afp-cc-xs-cell {
  background-color: rgba(191, 52, 37, 0.07);
}

/* Category dividers */
.afp-cc-row-divider td {
  padding-top: 16px !important;
  padding-bottom: 4px !important;
  border-bottom: none !important;
}

.afp-cc-category-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* Footer note */
.afp-cc-footer {
  margin-top: 18px;
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* Tooltip */
.afp-cc-tooltip-wrap {
  position: relative;
  display: inline-block;
}

.afp-cc-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 5px;
  vertical-align: middle;
}

.afp-cc-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: #1e293b;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.afp-cc-tooltip-wrap:hover .afp-cc-tooltip {
  display: block;
}

/* Scroll reveal */
.afp-cc-container {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.afp-cc-container.afp-cc-visible {
  opacity: 1;
  transform: translateY(0);
}

.afp-cc-table tbody tr {
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.afp-cc-table tbody tr.afp-cc-row-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 640px) {
  .afp-cc-container {
    padding: 16px 12px;
  }
  .afp-cc-table tbody td,
  .afp-cc-table thead th {
    padding: 8px 10px;
    font-size: 12px;
  }
}
/* <!-- INFOGRAPHIC 2: Year 1 Legacy AFP Cost Waterfall --> */
.afp-wf-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.afp-wf-container.afp-wf-visible {
  opacity: 1;
  transform: translateY(0);
}

.afp-wf-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin-bottom: 4px;
}

.afp-wf-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 28px;
}

/* Chart area */
.afp-wf-chart {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.afp-wf-bar-row {
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.afp-wf-bar-row.afp-wf-row-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Y-axis label */
.afp-wf-y-label {
  width: 90px;
  min-width: 90px;
  text-align: right;
  padding-right: 12px;
  font-size: 11.5px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Track */
.afp-wf-track {
  flex: 1;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

/* Connector line (vertical tick on y-axis side) */
.afp-wf-connector {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e2e8f0;
}

/* The bar itself */
.afp-wf-bar {
  height: 26px;
  border-radius: 4px;
  position: relative;
  width: 0; /* animated from 0 */
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  overflow: visible;
}

.afp-wf-bar-inner {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  transition:
    filter 0.18s ease,
    transform 0.18s ease;
}

.afp-wf-bar:hover .afp-wf-bar-inner {
  filter: brightness(1.12);
  transform: scaleY(1.08);
}

/* Bar label */
.afp-wf-bar-label {
  position: absolute;
  left: calc(100% + 10px);
  white-space: nowrap;
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease 0.6s;
}

.afp-wf-bar-label.afp-wf-label-visible {
  opacity: 1;
}

.afp-wf-bar-label strong {
  color: #bf3425;
  font-weight: 700;
}

/* Spacer rows (gap between top block and lower items) */
.afp-wf-spacer {
  height: 12px;
}

/* Divider line at bottom */
.afp-wf-divider-row {
  display: flex;
  align-items: center;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.afp-wf-divider-row.afp-wf-row-visible {
  opacity: 1;
}

.afp-wf-divider-spacer {
  width: 90px;
  min-width: 90px;
}

.afp-wf-divider-line {
  flex: 1;
  height: 2px;
  background: #47577c;
  border-radius: 1px;
}

/* Total row */
.afp-wf-total-row {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(
    135deg,
    rgba(71, 87, 124, 0.06) 0%,
    rgba(191, 52, 37, 0.04) 100%
  );
  border-radius: 10px;
  border: 1px solid rgba(71, 87, 124, 0.15);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.afp-wf-total-row.afp-wf-row-visible {
  opacity: 1;
  transform: translateY(0);
}

.afp-wf-total-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  flex: 1;
}

.afp-wf-total-value {
  font-size: 20px;
  font-weight: 800;
  color: #47577c;
  letter-spacing: -0.02em;
}

.afp-wf-total-note {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  text-align: right;
}

/* Tooltip */
.afp-wf-tooltip {
  position: fixed;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #1e293b;
  pointer-events: none;
  z-index: 100;
  display: none;
  min-width: 160px;
}

.afp-wf-tooltip-title {
  font-weight: 700;
  color: #bf3425;
  margin-bottom: 3px;
  font-size: 12.5px;
}

.afp-wf-tooltip-value {
  font-size: 15px;
  font-weight: 800;
  color: #47577c;
}

.afp-wf-tooltip-pct {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .afp-wf-bar-label {
    font-size: 11px;
  }
  .afp-wf-y-label {
    width: 70px;
    min-width: 70px;
    font-size: 10px;
  }
}
/* <!-- INFOGRAPHIC 3: Annual Hand Layup Cost by Category --> */
.afp-hl-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.afp-hl-container.afp-hl-visible {
  opacity: 1;
  transform: translateY(0);
}

.afp-hl-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin-bottom: 4px;
}

.afp-hl-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 26px;
}

/* Row layout */
.afp-hl-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.afp-hl-row.afp-hl-row-visible {
  opacity: 1;
  transform: translateX(0);
}

.afp-hl-label {
  width: 240px;
  min-width: 240px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  padding-right: 14px;
  line-height: 1.3;
}

.afp-hl-label span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 1px;
}

.afp-hl-track {
  flex: 1;
  height: 28px;
  background: #f8fafc;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.afp-hl-bar {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.afp-hl-bar:hover {
  filter: brightness(1.1);
  cursor: pointer;
}

.afp-hl-value {
  width: 76px;
  min-width: 76px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  padding-left: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 0.3s ease 0.7s;
}

.afp-hl-value.afp-hl-val-visible {
  opacity: 1;
}

/* Percentage label inside bar */
.afp-hl-bar-pct {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease 0.9s;
  white-space: nowrap;
}

.afp-hl-bar-pct.afp-hl-pct-visible {
  opacity: 1;
}

/* Divider */
.afp-hl-divider {
  border: none;
  border-top: 2px solid #47577c;
  margin: 18px 0 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.afp-hl-divider.afp-hl-row-visible {
  opacity: 1;
}

/* Total block */
.afp-hl-total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(
    135deg,
    rgba(71, 87, 124, 0.06) 0%,
    rgba(191, 52, 37, 0.03) 100%
  );
  border-radius: 10px;
  border: 1px solid rgba(71, 87, 124, 0.14);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.afp-hl-total.afp-hl-row-visible {
  opacity: 1;
  transform: translateY(0);
}

.afp-hl-total-left {
  flex: 1;
}

.afp-hl-total-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.afp-hl-total-range {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.4;
}

.afp-hl-total-value {
  font-size: 22px;
  font-weight: 800;
  color: #47577c;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.afp-hl-total-per {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

/* Tooltip */
.afp-hl-tooltip {
  position: fixed;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #1e293b;
  pointer-events: none;
  z-index: 100;
  display: none;
  min-width: 170px;
}

.afp-hl-tooltip-title {
  font-weight: 700;
  color: #bf3425;
  margin-bottom: 4px;
  font-size: 12.5px;
}

.afp-hl-tooltip-value {
  font-size: 16px;
  font-weight: 800;
  color: #47577c;
}

.afp-hl-tooltip-pct {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

@media (max-width: 580px) {
  .afp-hl-label {
    width: 160px;
    min-width: 160px;
    font-size: 12px;
  }
  .afp-hl-value {
    width: 62px;
    min-width: 62px;
    font-size: 12px;
  }
}
/* <!-- INFOGRAPHIC 4: Material Waste Impact --> */
.afp-mw-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.afp-mw-container.afp-mw-visible {
  opacity: 1;
  transform: translateY(0);
}

.afp-mw-header {
  margin-bottom: 24px;
}
.afp-mw-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin-bottom: 4px;
}
.afp-mw-subtitle {
  font-size: 13px;
  color: #64748b;
}

/* Two-column cards */
.afp-mw-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 520px) {
  .afp-mw-cards {
    grid-template-columns: 1fr;
  }
}

.afp-mw-card {
  border-radius: 12px;
  padding: 18px 18px 16px;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.2s ease;
}
.afp-mw-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px) !important;
}
.afp-mw-card.afp-mw-card-visible {
  opacity: 1;
  transform: translateY(0);
}

.afp-mw-card-hl {
  border-color: rgba(157, 157, 156, 0.4);
  background: rgba(157, 157, 156, 0.04);
}
.afp-mw-card-xs {
  border-color: rgba(71, 87, 124, 0.25);
  background: rgba(71, 87, 124, 0.03);
}

/* Corner accent stripe */
.afp-mw-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 12px 12px 0 0;
}
.afp-mw-card-hl::before {
  background: #9d9d9c;
}
.afp-mw-card-xs::before {
  background: #47577c;
}

.afp-mw-card-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.afp-mw-card-hl .afp-mw-card-badge {
  background: rgba(157, 157, 156, 0.15);
  color: #6b7280;
}
.afp-mw-card-xs .afp-mw-card-badge {
  background: rgba(71, 87, 124, 0.1);
  color: #47577c;
}

.afp-mw-card-waste-pct {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.afp-mw-card-hl .afp-mw-card-waste-pct {
  color: #9d9d9c;
}
.afp-mw-card-xs .afp-mw-card-waste-pct {
  color: #47577c;
}

.afp-mw-card-waste-label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 18px;
}

.afp-mw-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
}
.afp-mw-stat-row:last-child {
  border-bottom: none;
}

.afp-mw-stat-label {
  color: #64748b;
}
.afp-mw-stat-value {
  font-weight: 700;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.afp-mw-stat-annual {
  font-size: 13.5px;
}
.afp-mw-card-hl .afp-mw-stat-annual .afp-mw-stat-value {
  color: #bf3425;
}
.afp-mw-card-xs .afp-mw-stat-annual .afp-mw-stat-value {
  color: #47577c;
}

/* Visual waste bar */
.afp-mw-waste-bar-wrap {
  margin: 14px 0 4px;
}
.afp-mw-waste-bar-track {
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 5px;
}
.afp-mw-waste-bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.afp-mw-card-hl .afp-mw-waste-bar-fill {
  background: #9d9d9c;
}
.afp-mw-card-xs .afp-mw-waste-bar-fill {
  background: #47577c;
}

.afp-mw-waste-bar-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #94a3b8;
}

/* Saving callout */
.afp-mw-saving {
  border-radius: 12px;
  padding: 18px 20px;
  background: linear-gradient(
    135deg,
    rgba(71, 87, 124, 0.07) 0%,
    rgba(191, 52, 37, 0.05) 100%
  );
  border: 1px solid rgba(71, 87, 124, 0.18);
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  margin-bottom: 14px;
}
.afp-mw-saving.afp-mw-card-visible {
  opacity: 1;
  transform: translateY(0);
}

.afp-mw-saving-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.afp-mw-saving-body {
  flex: 1;
}

.afp-mw-saving-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.afp-mw-saving-value {
  font-size: 28px;
  font-weight: 800;
  color: #47577c;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.afp-mw-saving-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* Subscription context pill */
.afp-mw-sub-note {
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(191, 52, 37, 0.05);
  border: 1px solid rgba(191, 52, 37, 0.14);
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.afp-mw-sub-note.afp-mw-card-visible {
  opacity: 1;
  transform: translateY(0);
}
.afp-mw-sub-note strong {
  color: #bf3425;
  font-weight: 700;
}
/* <!-- INFOGRAPHIC 5: Year 1 AFP-XS Cost Waterfall --> */
.afp-xswf-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.afp-xswf-container.afp-xswf-visible {
  opacity: 1;
  transform: translateY(0);
}

.afp-xswf-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin-bottom: 4px;
}
.afp-xswf-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 26px;
}

/* Chart rows */
.afp-xswf-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.38s ease,
    transform 0.38s ease;
}
.afp-xswf-row.afp-xswf-row-visible {
  opacity: 1;
  transform: translateX(0);
}

.afp-xswf-y-label {
  width: 78px;
  min-width: 78px;
  text-align: right;
  padding-right: 12px;
  font-size: 11.5px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.afp-xswf-track {
  flex: 1;
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
}

.afp-xswf-connector {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e2e8f0;
}

.afp-xswf-bar {
  height: 24px;
  border-radius: 4px;
  width: 0;
  transition: width 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  overflow: visible;
  flex-shrink: 0;
}
.afp-xswf-bar-inner {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  transition:
    filter 0.18s ease,
    transform 0.18s ease;
}
.afp-xswf-bar:hover .afp-xswf-bar-inner {
  filter: brightness(1.12);
  transform: scaleY(1.1);
}

.afp-xswf-bar-label {
  position: absolute;
  left: calc(100% + 10px);
  white-space: nowrap;
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease 0.65s;
  top: 50%;
  transform: translateY(-50%);
}
.afp-xswf-bar-label.afp-xswf-lbl-visible {
  opacity: 1;
}
.afp-xswf-bar-label strong {
  color: #bf3425;
  font-weight: 700;
}

/* Divider */
.afp-xswf-divider {
  height: 2px;
  background: #47577c;
  border-radius: 1px;
  margin: 6px 0 16px 78px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.afp-xswf-divider.afp-xswf-row-visible {
  opacity: 1;
}

/* Gross total */
.afp-xswf-gross {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(71, 87, 124, 0.05);
  border: 1px solid rgba(71, 87, 124, 0.14);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.afp-xswf-gross.afp-xswf-row-visible {
  opacity: 1;
  transform: translateY(0);
}
.afp-xswf-gross-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.afp-xswf-gross-value {
  font-size: 20px;
  font-weight: 800;
  color: #47577c;
}

/* Offset row */
.afp-xswf-offset {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(157, 157, 156, 0.06);
  border: 1px solid rgba(157, 157, 156, 0.2);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.afp-xswf-offset.afp-xswf-row-visible {
  opacity: 1;
  transform: translateY(0);
}
.afp-xswf-offset-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.2;
}
.afp-xswf-offset-body {
  flex: 1;
}
.afp-xswf-offset-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.afp-xswf-offset-value {
  font-size: 15px;
  font-weight: 700;
  color: #9d9d9c;
}

/* Net total */
.afp-xswf-net {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(71, 87, 124, 0.07) 0%,
    rgba(191, 52, 37, 0.05) 100%
  );
  border: 1px solid rgba(71, 87, 124, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.afp-xswf-net.afp-xswf-row-visible {
  opacity: 1;
  transform: translateY(0);
}
.afp-xswf-net-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.afp-xswf-net-body {
  flex: 1;
}
.afp-xswf-net-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 2px;
}
.afp-xswf-net-value {
  font-size: 22px;
  font-weight: 800;
  color: #47577c;
  letter-spacing: -0.02em;
}
.afp-xswf-net-note {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

/* Tooltip */
.afp-xswf-tooltip {
  position: fixed;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #1e293b;
  pointer-events: none;
  z-index: 100;
  display: none;
  min-width: 160px;
}
.afp-xswf-tip-title {
  font-weight: 700;
  color: #bf3425;
  margin-bottom: 4px;
  font-size: 12.5px;
}
.afp-xswf-tip-value {
  font-size: 16px;
  font-weight: 800;
  color: #47577c;
}
.afp-xswf-tip-pct {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

@media (max-width: 560px) {
  .afp-xswf-bar-label {
    font-size: 11px;
  }
  .afp-xswf-y-label {
    width: 58px;
    min-width: 58px;
    font-size: 10px;
  }
}
