/* ==========================================================================
   Global Layout, Section Spacing, & Base Styles
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-body);
  line-height: 1.6;
  padding-top: 72px; /* Header Offset */
  transition: var(--transition-smooth);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

section {
  padding: var(--space-3xl) 0;
}

/* Typography Helpers */
.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary); /* Primary Teal:headings */
  text-align: center;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl) auto;
}

/* Primary buttons overrides */
.btn-gold {
  background-color: var(--color-accent) !important; /* Economic Emerald Green */
  color: #ffffff !important; /* White text for contrast */
  box-shadow: 0 3px 8px rgba(0, 168, 107, 0.25);
  transition: var(--transition-smooth) !important;
}

.btn-gold:hover {
  background-color: var(--color-accent-dark) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 168, 107, 0.4);
}

/* ==========================================================================
   1. Hero Section Layout
   ========================================================================== */

.hero-section {
  text-align: center;
  padding: 130px 0 var(--space-xl) 0; /* Add top padding to account for floating header */
  position: relative;
  background-color: #ffffff; /* Clean white background */
  background-image: 
    linear-gradient(rgba(15, 81, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 81, 50, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  border-bottom: 1px solid rgba(15, 81, 50, 0.06);
  overflow: hidden;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  background-color: var(--color-secondary-light); /* Light Secondary Teal tint */
  border: 1px solid rgba(31, 175, 158, 0.15);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-text-title); /* Dark Neutral text color */
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.hero-title .highlight-text {
  color: var(--color-primary); /* Primary Teal highlight row */
}

.hero-subhead {
  font-size: 16px;
  color: var(--color-text-body); /* Dark Neutral body copy */
  max-width: 660px;
  margin: 0 auto var(--space-2xl) auto;
  line-height: 1.6;
}

/* Hero Stat Row */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-body);
  background: white;
  border: 1px solid rgba(18, 94, 115, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015);
}

.hero-stat-bullet {
  width: 6px;
  height: 6px;
  background-color: var(--color-secondary); /* Secondary Teal bullet indicators */
  border-radius: 50%;
}

/* Hero Search Component */
.hero-search-wrapper {
  max-width: 600px;
  margin: 0 auto var(--space-xl) auto;
}

.hero-search-bar {
  display: flex;
  background-color: white;
  border: 1.5px solid rgba(18, 94, 115, 0.12);
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: 0 10px 30px rgba(18, 20, 28, 0.05); /* Soft black/dark neutral shadow */
  transition: var(--transition-smooth);
}

.hero-search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.hero-search-bar input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0 var(--space-lg);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--color-text-title);
}

.hero-search-bar input::placeholder {
  color: var(--color-text-muted);
}

.hero-search-bar input:focus {
  outline: none;
}

.hero-search-bar button {
  height: 44px;
  padding: 0 var(--space-xl);
  background-color: var(--color-primary); /* Leaf green button */
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  box-shadow: 0 3px 8px rgba(15, 81, 50, 0.2);
}

.hero-search-bar button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(15, 81, 50, 0.35);
}

/* Quick link tag chips */
.hero-tag-chips {
  display: flex;
  justify-content: flex-start; /* Left-align instead of center */
  flex-wrap: wrap;
  gap: var(--space-sm);
  max-width: 760px;
  margin: 0 auto;
}

.tag-chip {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background-color: #FAFAF9; /* Light off-white background */
  border: 1px solid rgba(18, 94, 115, 0.12); /* Subtle teal border */
  border-radius: var(--radius-full);
  color: var(--color-text-body); /* Dark Neutral text color */
  transition: var(--transition-smooth);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.tag-chip:hover {
  border-color: var(--color-primary);
  color: white;
  background-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18, 94, 115, 0.15);
}

/* ==========================================================================
   2. Continuous Marquee Price Ticker
   ========================================================================== */

.ticker-section {
  padding: 12px 0;
  background-color: hsl(142, 35%, 4%); /* Sleek dark green-black theme backdrop */
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-viewport {
  width: 100%;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
  gap: var(--space-md);
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.95); /* Bright white text */
}

.ticker-metal-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95); /* Bright white metal labels */
}

.ticker-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-accent); /* Accent Orange: highlighted prices */
  font-variant-numeric: tabular-nums;
}

.ticker-trend {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ticker-trend.up {
  color: var(--color-trend-up); /* Semantic Green: positive highlights */
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.ticker-trend.down {
  color: #f87171; /* Light red */
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.25);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   3. Two-Column Dashboard (Rates & Features)
   ========================================================================== */

.rates-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-lg);
}

.overview-card {
  background-color: #ffffff; /* Contrast fix: white card background */
  border: 1px solid rgba(18, 94, 115, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
  padding: var(--space-2xl);
  transition: var(--transition-smooth);
}

.overview-card:hover {
  transform: translateY(-4px); /* Standard hover lift */
  box-shadow: 0 10px 25px rgba(18, 94, 115, 0.06);
  border-color: var(--color-primary);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary); /* Primary Teal: headings */
  margin-bottom: var(--space-xl);
  border-bottom: 1.5px solid var(--color-border);
  padding-bottom: var(--space-sm);
}

/* Left list rules */
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-bullet {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.5;
}

.feature-bullet svg {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  color: var(--color-verified-light);
}

/* Right rates table */
.rates-table {
  width: 100%;
  border-collapse: collapse;
}

.rates-table td {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}

.rates-table tr:last-child td {
  border-bottom: none;
}

.metal-cell {
  font-weight: 600;
  color: var(--color-text-title);
}

.price-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
  color: var(--color-accent); /* Accent Orange: highlighted prices */
}

/* ==========================================================================
   4. Why Thousands Trust Us Section
   ========================================================================== */

.trust-section {
  background-color: var(--color-bg-card);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.trust-card {
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-verified-light);
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--color-secondary-light); /* Secondary Teal: highlights */
  border: 1px solid rgba(31, 175, 158, 0.15);
  color: var(--color-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg) auto;
  transition: var(--transition-smooth);
}

.trust-card:hover .trust-icon-box {
  background-color: var(--color-verified-light);
  color: white;
}

.trust-icon-box svg {
  width: 24px;
  height: 24px;
}

.trust-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-text-title);
  margin-bottom: var(--space-sm);
}

.trust-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   5. How to Sell Scrap (Timeline)
   ========================================================================== */

.steps-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  position: relative;
}

/* horizontal line connecting steps */
.steps-timeline::after {
  content: '';
  position: absolute;
  top: 24px;
  left: var(--space-3xl);
  right: var(--space-3xl);
  height: 2px;
  background-color: var(--color-border);
  z-index: 1;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 48px;
  height: 48px;
  background-color: var(--color-secondary-light); /* Secondary Teal: status numbers */
  color: var(--color-secondary-dark);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg) auto;
  border: 4px solid var(--color-bg-main);
  transition: var(--transition-smooth);
}

.step-item:hover .step-number {
  background-color: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.step-item h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-text-title);
  margin-bottom: var(--space-sm);
}

.step-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  padding: 0 var(--space-md);
}

/* ==========================================================================
   6. Scrap Materials We Track Grid
   ========================================================================== */

.materials-section {
  background-color: var(--color-bg-card);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.material-card {
  background-color: #ffffff; /* Contrast fix: white card background */
  border: 1px solid rgba(18, 94, 115, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
}

.material-card:hover {
  transform: translateY(-4px); /* Standard hover lift */
  box-shadow: 0 10px 25px rgba(18, 94, 115, 0.06);
  border-color: var(--color-primary);
}

.material-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-text-title);
  margin-bottom: var(--space-sm);
}

.material-card p {
  font-size: 14px;
  color: var(--color-text-body);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.material-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.material-link:hover {
  color: var(--color-primary-dark);
}

.material-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.material-link:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   7. Understanding Scrap Prices (Tabs)
   ========================================================================== */

.explanation-card {
  background-color: #ffffff; /* Contrast fix: white card background */
  border: 1px solid rgba(18, 94, 115, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  transition: var(--transition-smooth);
}

.explanation-card:hover {
  box-shadow: 0 10px 25px rgba(18, 94, 115, 0.04);
}

.explanation-text {
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* Tabs */
.explanation-tabs {
  display: flex;
  gap: var(--space-sm);
  border-bottom: 1.5px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-md) var(--space-xl);
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.tab-btn.active {
  color: var(--color-primary);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Callout Box inside explanation */
.notice-callout {
  background-color: var(--color-accent-light); /* Accent Orange: alert box background */
  border: 1px solid rgba(232, 114, 12, 0.15);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  font-size: 14px;
  color: var(--color-accent-dark);
  line-height: 1.5;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.notice-callout svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   8. FAQ Accordion Section
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background-color: #ffffff; /* Contrast fix: white card background */
  border: 1px solid rgba(18, 94, 115, 0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(18, 94, 115, 0.04);
}

.faq-question-btn {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: var(--color-text-title);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.faq-question-btn:hover {
  color: var(--color-primary);
}

.faq-question-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
  color: var(--color-text-muted);
}

.faq-item.active .faq-question-btn svg {
  transform: rotate(180deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}

.faq-answer-content {
  padding: 0 var(--space-xl) var(--space-lg) var(--space-xl);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-body);
}

/* ==========================================================================
   9. Dealer Callout Banner
   ========================================================================== */

.dealer-cta-section {
  padding: var(--space-2xl) 0;
}

.dealer-banner-card {
  background-color: #12141C; /* Dark Neutral: dark sections background */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-3xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.dealer-banner-content h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: white;
  margin-bottom: var(--space-sm);
}

.dealer-banner-content h2 span {
  color: var(--color-secondary); /* Secondary Teal: positive highlights */
}

.dealer-banner-content p {
  color: hsl(227, 10%, 75%); /* Mapped to Dark Neutral slate */
  font-size: 15px;
}

.dealer-banner-actions {
  display: flex;
  gap: var(--space-lg);
  flex-shrink: 0;
}

.btn-dealer-outline {
  background-color: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-dealer-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: white;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 38px;
  }
  .rates-overview-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .steps-timeline {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .steps-timeline::after {
    left: 24px;
    top: var(--space-xl);
    bottom: var(--space-xl);
    width: 2px;
    height: auto;
  }
  .step-item {
    display: flex;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-md);
  }
  .step-number {
    margin: 0;
    flex-shrink: 0;
  }
  .step-item p {
    padding: 0;
  }
  .materials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .dealer-banner-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl);
  }
  .dealer-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-lg);
  }
  section {
    padding: var(--space-2xl) 0;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-stats {
    flex-direction: column;
    gap: var(--space-xs);
  }
  .dealer-banner-actions {
    flex-direction: column;
  }
  .dealer-banner-actions a {
    width: 100%;
  }
}

/* ==========================================================================
   10. Scroll Reveal Animations (Intersection Observer Based)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active State when entering viewport */
.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ==========================================================================
   11. Redesign Layouts & Bespoke Design Overrides (Brief v2)
   ========================================================================== */

/* Asymmetric Hero grid styling */
@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.22fr 0.78fr;
    gap: var(--space-2xl);
    align-items: center;
    text-align: left;
  }
  .hero-content-block {
    text-align: left;
  }
  .hero-title {
    text-align: left;
    margin-left: 0;
  }
  .hero-subhead {
    text-align: left;
    margin-left: 0;
  }
  .hero-search-wrapper {
    justify-content: flex-start;
    margin-left: 0;
  }
  .hero-stats {
    justify-content: flex-start;
    margin-left: 0;
  }
}

/* Interactive Price Dial widget */
.live-dial-widget {
  background-color: #ffffff;
  border: 1px solid rgba(18, 94, 115, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(18, 94, 115, 0.06);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  max-width: 380px;
  margin: 0 auto;
  transition: var(--transition-smooth);
}
.live-dial-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(18, 94, 115, 0.1);
}
.dial-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.dial-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.dial-metal-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dial-metal-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
}
.dial-gauge-container {
  width: 100%;
  max-width: 220px;
  position: relative;
  margin: 10px 0;
}
.dial-gauge-svg {
  display: block;
  width: 100%;
}
.dial-trend-badge {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.dial-trend-badge.up {
  background-color: var(--color-trend-up-light);
  color: var(--color-trend-up);
}
.dial-trend-badge.down {
  background-color: #fee2e2;
  color: #ef4444;
}
.dial-controls {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.dial-btn {
  border: 1px solid rgba(18, 94, 115, 0.1);
  background-color: #fafaf9;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-md);
  color: var(--color-text-body);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.dial-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.dial-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}
.dial-scale-decoration {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  opacity: 0.8;
}

/* Sticky marquee ticker styling */
.ticker-section.sticky {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: rgba(6, 26, 12, 0.9); /* Translucent theme green */
  backdrop-filter: blur(8px);
  border-top: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Split trust details layout */
.why-sell-split-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}
.why-sell-featured-point {
  background-color: #fafaf9;
  border: 1px solid rgba(18, 94, 115, 0.04);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.featured-illustration-wrapper {
  background-color: #ffffff;
  border: 1px solid rgba(18, 94, 115, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}
.featured-truck-svg {
  height: 100%;
  width: auto;
}
.why-sell-sub-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.trust-feature-item-small {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.trust-feature-icon-small {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 8px;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-feature-icon-small svg {
  width: 20px;
  height: 20px;
}
.trust-feature-item-small h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-title);
  margin-bottom: 2px;
}
.trust-feature-item-small p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}
@media (min-width: 768px) {
  .why-sell-split-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

/* Sparkline table graphics */
.sparkline-cell {
  width: 80px;
  text-align: center;
  vertical-align: middle;
  padding: 0 !important;
}
.sparkline-canvas {
  display: block;
  margin: 0 auto;
}

/* Horizontal conveyor Sell steps */
.conveyor-section {
  position: relative;
  overflow: hidden;
}
.horizontal-steps-path {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  position: relative;
}
.path-step-card {
  background-color: #ffffff;
  border: 1px solid rgba(18, 94, 115, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  flex: 1;
  z-index: 2;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}
.path-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(18, 94, 115, 0.05);
  border-color: var(--color-primary);
}
.step-icon-wrapper {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md) auto;
}
.step-icon-wrapper svg {
  width: 24px;
  height: 24px;
}
.step-number-pill {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}
.path-step-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}
.path-step-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
}
.path-divider-line {
  display: none;
}
@media (min-width: 1024px) {
  .horizontal-steps-path {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .path-divider-line {
    display: block;
    flex-grow: 1;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--color-primary-light), var(--color-primary-light) 6px, transparent 6px, transparent 12px);
    position: relative;
    margin: 0 -10px;
    z-index: 1;
    overflow: visible;
  }
  .divider-cargo {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--color-accent);
    border-radius: var(--radius-xs);
    top: -4px;
    left: 0;
    animation: conveyor-move 3s linear infinite;
  }
}
@keyframes conveyor-move {
  0% { left: 0%; }
  100% { left: 100%; }
}

/* Bento Grid for tracked materials */
.materials-grid-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.material-card-bento {
  background-color: #ffffff;
  border: 1px solid rgba(18, 94, 115, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
}
.material-card-bento:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(18, 94, 115, 0.08);
  border-color: var(--color-primary);
}
.material-card-bento:hover .bento-bg-texture {
  opacity: 0.15;
  transform: scale(1.05);
}
.bento-bg-texture {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  pointer-events: none;
  opacity: 0.08;
  transition: var(--transition-smooth);
  transform-origin: right top;
}
.bento-bg-texture svg {
  width: 100%;
  height: 100%;
  display: block;
}
.bento-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--space-sm);
}
.bento-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-copper {
  background-color: var(--color-accent-light);
  color: var(--color-accent-dark);
}
.badge-iron {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}
.material-card-bento h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-title);
}
.material-card-bento p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: var(--space-md);
}
@media (min-width: 768px) {
  .materials-grid-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .materials-grid-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
  .bento-large-copper {
    grid-column: span 2;
    grid-row: span 1;
  }
  .bento-large-iron {
    grid-column: span 1;
    grid-row: span 2;
  }
  .bento-browse-link {
    background-color: var(--color-primary-light);
    border-color: rgba(18, 94, 115, 0.15);
  }
}

/* Vertical side-rail explanation tabs */
.explanation-split-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.explanation-side-rail {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 2px solid rgba(18, 94, 115, 0.05);
  padding-bottom: var(--space-sm);
}
.explanation-side-rail .tab-btn {
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 8px 16px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}
.explanation-side-rail .tab-btn .tab-bullet {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-text-muted);
  opacity: 0.5;
  transition: var(--transition-smooth);
}
.explanation-side-rail .tab-btn.active {
  color: var(--color-primary);
}
.explanation-side-rail .tab-btn.active .tab-bullet {
  background-color: var(--color-primary);
  transform: scale(1.4);
  opacity: 1;
}
.explanation-content-panel {
  background-color: #ffffff;
  border: 1px solid rgba(18, 94, 115, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  flex-grow: 1;
}
@media (min-width: 1024px) {
  .explanation-split-layout {
    flex-direction: row;
    gap: var(--space-2xl);
  }
  .explanation-side-rail {
    flex-direction: column;
    border-bottom: none;
    border-right: 2px solid rgba(18, 94, 115, 0.05);
    padding-bottom: 0;
    padding-right: var(--space-xl);
    flex-shrink: 0;
    width: 180px;
  }
  .explanation-side-rail .tab-btn {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    padding: 10px 16px;
  }
}

/* Masonry/Grid FAQ section */
.faq-list-masonry {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.faq-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .faq-list-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

/* Slanted edge section divider going to dark CTA */
.cta-slanted-edge-divider {
  height: 48px;
  background-color: var(--color-bg-main);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}
.dealer-cta-section {
  padding: 64px 0 80px 0 !important;
  background-color: var(--color-dark-neutral) !important;
  margin-top: -1px;
}
