/* ============================================
   Solution / stack landing pages
   Shared template for src/solutions/*.html
   Uses existing tokens only. Do not invent a second system.
   ============================================ */

/* 2026-09-14: vertical only, so .page-section keeps the horizontal padding. */
.solution-hero {
  overflow: hidden;
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
  position: relative;
}

.solution-hero-glow {
  position: absolute;
  top: -220px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--color-blue-glow) 0%, transparent 65%);
  pointer-events: none;
}

.solution-hero-inner {
  position: relative;
  z-index: 1;
}

.solution-hero .tag {
  margin-bottom: var(--space-6);
}

/* .solution-hero h1 retired 2026-09-19: the shared .page-hero h1 rule (components.css) is the one hero heading rule */

.solution-hero .hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: var(--max-width-hero-sub);
  margin-bottom: var(--space-8);
}

.solution-hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero tag row only. Proof-section .stack-tools stay left with their labels. */
.solution-hero .stack-tools {
  justify-content: center;
}

/* 2026-09-19 layout system: the hero carries .page-hero.page-hero (components.css); section
   headings are the numbered .section-header pattern; leads and the FAQ sit on the reading measure,
   centred; the proof panel spans the band. The 760, 620, 720 and 700px literals are gone. */
/* 2026-09-14: vertical only, so .page-section keeps the horizontal padding. */
.solution-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  border-top: 1px solid var(--color-border-light);
}

.solution-kicker {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}


.solution-lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
}

.solution-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .solution-split {
    grid-template-columns: 1fr;
  }
}

.solution-box {
  padding: var(--space-6);
  border-radius: var(--radius);
}

.solution-box-muted {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
}

.solution-box-accent {
  background: var(--color-mist);
  border: 1px solid var(--color-border-blue);
}

.solution-box h3 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.solution-box-muted h3 {
  color: var(--color-text-muted);
}

.solution-box-accent h3 {
  color: var(--color-blue);
}

.solution-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.solution-box-accent .solution-list li {
  color: var(--color-navy);
}

.solution-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.solution-box-muted .solution-list li svg {
  color: var(--color-text-muted);
}

.solution-box-accent .solution-list li svg {
  color: var(--color-teal);
}

.build-panel {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.build-panel h3 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (max-width: 600px) {
  .build-grid {
    grid-template-columns: 1fr;
  }
}

.build-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
}

.build-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.build-item span {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-navy);
  line-height: 1.45;
}

.proof-panel {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-8);
}

.proof-panel p {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
}

.proof-panel p + p {
  margin-top: var(--space-4);
}

.proof-label {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.related-stacks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (max-width: 600px) {
  .related-stacks {
    grid-template-columns: 1fr;
  }
}

.related-card {
  display: block;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  transition: all 0.35s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-border-blue);
}

.related-card .kicker {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-blue);
  margin-bottom: var(--space-2);
}

.related-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-navy);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}

.related-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.solution-faq {
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
}

.solution-cta-wrap {
  margin-bottom: var(--section-gap);
}

.stack-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.stack-tool {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-mist);
  color: var(--color-blue);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-sm);
  letter-spacing: var(--tracking-wide);
}

.scoped-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
