/* ABOUTME: Styles for the Amazon FBA Business Valuation pillar page. */
/* ABOUTME: Concept 2 "Dashboard" layout — alternating sections, stat cards, driver grids, comparison cards, timeline. */

/* ── Typography & Prose ── */

.pillar-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  font-size: 17px;
}

.pillar-section-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px;
}

.pillar-section-inner h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #101828;
}

.pillar-section-inner h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  line-height: 1.3;
  color: #101828;
}

.pillar-section-inner p {
  color: #475467;
  margin-bottom: 18px;
  line-height: 1.75;
}

.pillar-section-inner ul,
.pillar-section-inner ol {
  color: #475467;
  margin-bottom: 18px;
  padding-left: 24px;
}

.pillar-section-inner li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.pillar-section-inner a {
  color: #EA580C;
  text-decoration: underline;
  text-decoration-color: #FED7AA;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.pillar-section-inner a:hover {
  text-decoration-color: #F97316;
}

.pillar-section-inner strong {
  color: #101828;
}

/* ── Hero ── */

.pillar-hero {
  padding: 80px 24px 64px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.pillar-hero-badge {
  display: inline-block;
  background: #FFF7ED;
  color: #EA580C;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pillar-hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  color: #101828;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.pillar-hero-subtitle {
  font-size: 19px;
  color: #475467;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 32px;
}

.pillar-hero-cta {
  display: inline-block;
  background: #F97316;
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
}

.pillar-hero-cta:hover {
  background: #EA580C;
  color: #fff;
  text-decoration: none;
}

/* ── Stat Row ── */

.pillar-stat-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 64px;
  flex-wrap: wrap;
}

.pillar-stat-card {
  background: #F6F9FC;
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 260px;
}

.pillar-stat-number {
  font-size: 36px;
  font-weight: 800;
  color: #F97316;
  letter-spacing: -0.02em;
}

.pillar-stat-label {
  font-size: 14px;
  color: #475467;
  margin-top: 4px;
  font-weight: 500;
}

/* ── Table of Contents ── */

.pillar-toc-wrapper {
  padding: 0 24px 64px;
}

.pillar-toc {
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 0 auto;
  max-width: 820px;
  background: #F6F9FC;
}

.pillar-toc h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #98A2B3;
  margin-bottom: 16px;
}

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

.pillar-toc li {
  margin-bottom: 10px;
}

.pillar-toc a {
  color: #475467;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

.pillar-toc a:hover {
  color: #F97316;
}

/* ── Section Backgrounds ── */

.pillar-section-white {
  background: #FFFFFF;
}

.pillar-section-gray {
  background: #F6F9FC;
}

/* ── Formula Card ── */

.pillar-formula-card {
  background: #101828;
  color: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  margin: 32px 0;
  text-align: center;
}

.pillar-formula-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #98A2B3;
  margin-bottom: 16px;
  font-weight: 600;
}

.pillar-formula-text {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pillar-formula-text .hl {
  color: #FB923C;
}

/* ── Key Takeaway Box ── */

.pillar-takeaway {
  background: #FFF7ED;
  border-left: 4px solid #F97316;
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 28px 0;
}

.pillar-takeaway-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #EA580C;
  margin-bottom: 8px;
}

.pillar-takeaway p {
  color: #101828 !important;
  font-weight: 500;
  margin-bottom: 0 !important;
}

/* ── Deep Dive Link ── */

.pillar-deep-dive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 8px 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: #C2410C;
  text-decoration: none;
  transition: background 0.15s;
}

.pillar-deep-dive:hover {
  background: #FFEDD5;
  color: #C2410C;
  text-decoration: none;
}

/* ── Comparison Cards ── */

.pillar-comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.pillar-comp-card {
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #E4E7EC;
}

.pillar-comp-card.positive {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.pillar-comp-card.negative {
  background: #FEF2F2;
  border-color: #FECACA;
}

.pillar-comp-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.pillar-comp-card.positive .pillar-comp-label {
  color: #16A34A;
}

.pillar-comp-card.negative .pillar-comp-label {
  color: #DC2626;
}

.pillar-comp-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.pillar-comp-card li {
  font-size: 15px;
  margin-bottom: 6px;
}

/* ── Driver Cards Grid ── */

.pillar-driver-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.pillar-driver-card {
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  padding: 24px;
}

.pillar-section-gray .pillar-driver-card {
  background: #FFFFFF;
}

.pillar-section-white .pillar-driver-card {
  background: #F6F9FC;
}

.pillar-driver-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #FFF7ED;
  color: #EA580C;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.pillar-driver-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #101828;
}

.pillar-driver-card p {
  font-size: 15px;
  color: #475467;
  margin-bottom: 0;
  line-height: 1.6;
}

.pillar-driver-card.negative .pillar-driver-number {
  background: #FEF2F2;
  color: #DC2626;
}

/* ── Process Timeline ── */

.pillar-steps-timeline {
  display: flex;
  gap: 0;
  margin: 36px 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pillar-step-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.pillar-step-item::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #E4E7EC;
  z-index: 0;
}

.pillar-step-item:last-child::after {
  display: none;
}

.pillar-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F97316;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.pillar-step-title {
  font-size: 14px;
  font-weight: 600;
  color: #101828;
  margin-bottom: 4px;
}

.pillar-step-desc {
  font-size: 13px;
  color: #98A2B3;
  line-height: 1.5;
}

/* ── Inline CTA Banner ── */

.pillar-inline-cta {
  background: linear-gradient(135deg, #F97316, #C2410C);
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 48px 0;
  flex-wrap: wrap;
}

.pillar-cta-text {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  min-width: 260px;
}

.pillar-cta-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 400;
  margin-top: 4px;
}

.pillar-cta-btn {
  background: #fff;
  color: #EA580C;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.2s;
}

.pillar-cta-btn:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  color: #EA580C;
  text-decoration: none;
}

.pillar-cta-btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pillar-cta-btn-ghost:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.25);
}

/* ── FAQ Cards ── */

.pillar-faq-item {
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 16px;
}

.pillar-section-white .pillar-faq-item {
  background: #F6F9FC;
}

.pillar-section-gray .pillar-faq-item {
  background: #FFFFFF;
}

.pillar-faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #101828;
}

.pillar-faq-item p {
  font-size: 15px;
  margin-bottom: 0;
}

/* ── Takeaway Section ── */

.pillar-takeaway-section {
  text-align: center;
}

.pillar-takeaway-lead {
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 19px;
  color: #101828 !important;
  font-weight: 500;
}

.pillar-takeaway-body {
  max-width: 640px;
  margin: 0 auto 32px;
}

/* ── CTA Wrapper (mid-page) ── */

.pillar-cta-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

/* ── Centered CTA Variant ── */

.pillar-inline-cta-centered {
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.pillar-cta-btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .pillar-hero h1 {
    font-size: 30px;
  }

  .pillar-section-inner h2 {
    font-size: 26px;
  }

  .pillar-formula-text {
    font-size: 18px;
  }

  .pillar-stat-number {
    font-size: 28px;
  }

  .pillar-inline-cta {
    flex-direction: column;
    text-align: center;
  }

  .pillar-steps-timeline {
    flex-direction: column;
    align-items: center;
  }

  .pillar-step-item::after {
    display: none;
  }

  .pillar-step-item {
    margin-bottom: 24px;
  }

  .pillar-driver-grid {
    grid-template-columns: 1fr;
  }

  .pillar-comparison-row {
    grid-template-columns: 1fr;
  }
}
