/* ==========================================================================
   Experts Page Specific Styles & Google Bento Design System
   ========================================================================== */

/* Navigation Back Link */
.nav-back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: color var(--transition-speed) ease;
}

.nav-back-link:hover {
  color: var(--accent);
}

.nav-back-link .back-arrow {
  font-size: 1.1rem;
}

.nav-apply-btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Hero Chip & Micro-copy */
.hero-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  /* border: 1px solid var(--accent-border); */
  margin-bottom: 18px;
  /* font-family: monospace, monospace; */
}

.cta-micro-note {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Shared Bento Section Header Subtitle */
.section-kicker {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 4px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 6px;
  max-width: 680px;
  /* font-family: monospace, monospace; */
}

/* ==========================================================================
   Section 1: Why Experts Work with Proffeta
   ========================================================================== */
#why-proffeta {
  scroll-margin-top: 72px;
}

.benefits-title {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.benefit-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #f8fafc;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: #ccd7e5;
  /* box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07); */
}

.benefit-card-featured {
  border-color: var(--border);
  background: #101827;
  color: #ffffff;
}

.benefit-card-featured:hover {
  border-color: #101827;
  /* box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18); */
}

.benefit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.benefit-number {
  color: var(--text-muted);
  font: 0.85rem monospace;
}

.benefit-label {
  padding: 6px 10px;
  /* border: 1px solid #dde3eb; */
  border-radius: 999px;
  color: var(--text-main);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: capitalize;
}


.benefit-card-featured .benefit-label {
  color: #ffffff;
}
.benefit-card-featured .benefit-number{
  color: var(--text-muted);
}

.benefit-card-featured .benefit-label {
  border-color: rgba(255, 255, 255, 0.22);
}

.benefit-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: start;
  margin-bottom: auto;
  /* border: 1px solid #dbe4f0; */
  /* border-radius: 18px; */
  /* background: linear-gradient(145deg, #ffffff, #edf3fb); */
  color: var(--text-muted);
  /* box-shadow: 0 12px 28px rgba(69, 100, 143, 0.1); */
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
}

.benefit-card-featured .benefit-icon {
  /* border-color: rgba(255, 255, 255, 0.18); */
  /* background: rgba(255, 255, 255, 0.1); */
  color: var(--text-muted);
  /* box-shadow: none; */
}

.benefit-card h3 {
  margin: 36px 0 12px;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.benefit-card p {
  max-width: 470px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.benefit-card-featured p {
  color: #c8d4e4;
}

.benefits-action {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.page-bottom-action {
  margin: 0 0 100px;
}

.join-network-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 15px 28px;
  font-size: 0.95rem;
}

/* ==========================================================================
   Section 2: Domains Matrix
   ========================================================================== */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.disciplines-staggered-grid {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.grid-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

/* Push the left column down to create the staggered look from the image */
.col-offset {
  margin-top: 64px;
}

.discipline-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 40px 32px 140px 32px; /* Heavy bottom padding for the graphic */
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discipline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

/* Gradient Backgrounds from the image */
.grad-coral { background: linear-gradient(135deg, #2563eb80, #2563eb); }
.grad-purple { background: linear-gradient(135deg, #00000080, #000); }
.grad-blue { background: linear-gradient(135deg, #00000080, #000); }
.grad-teal { background: linear-gradient(135deg, #2563eb80, #2563eb); }

/* Typography inside the cards */
.discipline-card h3 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  font-family: monospace, monospace;
}

.discipline-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-family: monospace, monospace;
}

/* "INCLUDES" List Section */
.includes-section {
  position: relative;
  z-index: 2; /* Keep above graphics */
}

.includes-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: capitalize;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  font-family: monospace, monospace;
}

.includes-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.includes-section li {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  list-style: square inside;
}

.includes-section li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
}

/* Translucent Overlapping Documents Graphic (Bottom Right) */
.card-graphic {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 220px;
  height: 180px;
  pointer-events: none;
}

.sheet {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.05);
}

.sheet-back {
  width: 140px;
  height: 140px;
  top: 10px;
  right: 60px;
  transform: rotate(-8deg);
  background: rgba(255, 255, 255, 0.08);
}

.sheet-front {
  width: 150px;
  height: 150px;
  top: 40px;
  right: 20px;
  transform: rotate(6deg);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

/* Faux Grid Lines on the front sheet */
.grid-lines {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-image: 
    linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 20px 20px;
}
.domain-card {
  border: 1.5px solid var(--border-strong);
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.domain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.domain-header h4 {
  font-size: 1.2rem;
  font-weight: 800;
}

.domain-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.status-chip {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-chip.high {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.status-chip.active {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.status-chip.specialized {
  background: #f4f4f5;
  color: var(--text-main);
  border: 1px solid #d4d4d8;
}

/* ==========================================================================
   Section 2: Matching & Progression (Asymmetric Sandbox Bento)
   ========================================================================== */
.matching-bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Left Console --- */
.console-surface {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.03);
}

.console-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #fdfdfd;
}

.console-header .dots i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  margin-right: 6px;
}

.console-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #71717a;
}

/* Slider Viewport */
.console-viewport {
  position: relative;
  width: 100%;
  height: 410px; /* Set your fixed height here */
  background: #f8fafc;
  overflow: hidden; /* Absolutely prevents any image from spilling out */
}

/* The Image perfectly fills the fixed box */
.slider-image {
  width: 100%;
  height: 100%; /* Inherits the fixed 350px height from the viewport */
  object-fit: cover; /* Crops the edges gracefully without squishing the image */
  object-position: center;
}

.visual-panel {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.visual-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Status Bar (Your metrics) */
.console-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.status-metrics {
  display: flex;
  gap: 32px;
}

.metric span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}


.metric p {
  font-family: monospace; /* Keep numbers techy */
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Fix for the blue text */
.tier-pill {
  font-family: inherit !important;
  font-size: 0.85rem !important;
  /* background: #eff6ff; */
  color: var(--text-main);
  padding:0;
  border-radius: 6px;
}

/* --- Right Steps --- */
.interactive-steps-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6; /* Unfocused state */
}

/* The Active State Magic */
.step-card.active {
  opacity: 1;
  border-color: #e5e5e5;
  box-shadow: 0 12px 24px rgba(0,0,0,0.03);
  /* Structural blue indicator */
  border-left: 4px solid #2563eb; 
}

.step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #d4d4d8; /* Muted grey initially */
  transition: color 0.3s ease;
}

.step-card.active .step-num {
  color: #000000; /* Turns stark black when active */
}

.step-info h4 {
  font-size: 1.1rem;
  font-weight:600;
  margin-bottom: 8px;
}

.step-info p {
  font-size: 0.85rem;
  color: #71717a;
  line-height: 1.5;
}

/* ==========================================================================
   Section 4: Philosophy Spotlight Card
   ========================================================================== */
.philosophy-bento-card {
  border: 1.5px solid var(--border-strong);
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.philosophy-bento-card h2 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.philosophy-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
}

.compounding-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.compound-metric-card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compound-icon {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
}

.compound-metric-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
}

.compound-metric-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-card {
    min-height: 320px;
  }
}

@media (max-width: 980px) {
  .matching-bento {
    grid-template-columns: 1fr;
  }

  .compounding-metrics-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 250px;
    padding: 28px 24px;
  }

  .domain-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-bento-card {
    padding: 32px 20px;
  }

  .nav-links {
    display: none;
  }
}
