/* PersonixHealth Solutions pages - shared layout and section styles */
/* .btn-ghost and .kicker are now in main.css */

/* Hero */
.sol-hero {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  padding: 72px 0 54px;
}
.sol-hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 14px;
}
.sol-hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #444;
  max-width: 58ch;
  margin-bottom: 24px;
}
.sol-hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.sol-hero-cta .btn { min-height: 44px; }

/* Section base */
.sol-section {
  padding: clamp(48px, 8vw, 74px) 0;
}
.sol-section.alt { background: var(--background-color); }
.sol-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}
.sol-section .lead {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: #444;
  max-width: 78ch;
  margin-bottom: 26px;
}

/* The Problem */
.sol-problem ul {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
.sol-problem li {
  position: relative;
  padding-left: 24px;
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
  line-height: 1.5;
  color: #444;
}
.sol-problem li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* What It Does - cards */
.sol-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
.sol-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.sol-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--secondary-color);
}
.sol-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

/* Visual Proof */
.sol-visual {
  text-align: center;
}
.sol-visual-frame {
  position: relative;
  max-width: 900px;
  min-height: 280px;
  margin: 0 auto var(--space-md);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8f9fa;
  aspect-ratio: 16/10;
}
.sol-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sol-visual-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  color: #767676;
  font-size: 1rem;
  font-weight: 600;
  background: #f0f0f0;
}
.sol-visual-frame.img-failed img { display: none; }
.sol-visual-frame.img-failed .sol-visual-placeholder { display: flex; }
.sol-visual-caption {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
  max-width: 48ch;
  margin: 0 auto;
}

/* Visual Proof - split layout (phone image + hero tag) */
.sol-visual-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  max-width: 820px;
  margin: 0 auto;
}
.sol-visual-frame--fit {
  aspect-ratio: unset;
  min-height: unset;
  max-width: clamp(180px, 22vw, 280px);
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.sol-visual-frame--fit img,
.sol-visual-frame--fit video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.sol-visual-hero-tag {
  text-align: left;
  max-width: 38ch;
}
.sol-visual-hero-tag p {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--secondary-color);
  margin: 0;
}

/* Outcomes - tiles */
.sol-outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}
.sol-outcome-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.sol-outcome-tile h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--secondary-color);
}
.sol-outcome-tile p {
  font-size: 0.98rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Trust & Governance */
.sol-trust { text-align: center; }
.sol-trust .lead { margin-left: auto; margin-right: auto; }

/* Integrations - pills */
.sol-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-sm);
}
.sol-pill {
  display: inline-block;
  padding: 10px 18px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* Final CTA Band - uses shared .cta-band from main.css, sol- alias kept for backward compat */
.sol-cta-band {
  background: var(--primary-color);
  color: white;
  padding: clamp(40px, 8vw, 64px) 24px;
  text-align: center;
}
.sol-cta-band h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-lg);
  color: white;
}
.sol-cta-band .btn-primary {
  background: white;
  color: var(--primary-color);
  min-height: 48px;
  padding: 14px 28px;
}
.sol-cta-band .btn-primary:hover {
  background: #f0f0f0;
}

/* Quote Band (black bg / white text hero quote) */
.sol-quote-band {
  background: #0b0b0b;
  color: white;
  padding: clamp(40px, 6vw, 64px) 0;
  text-align: center;
}
.sol-quote-band blockquote {
  max-width: 42ch;
  margin: 0 auto;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.35;
  font-style: normal;
}
.sol-quote-band blockquote p { margin: 0; }

/* Demo Grid (side-by-side See It / Hear It panels) */
.sol-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.sol-demo-panel {
  text-align: center;
}
.sol-demo-panel h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 8px;
}
.sol-demo-panel .sol-demo-lead {
  font-size: clamp(0.92rem, 2vw, 1rem);
  color: #444;
  max-width: 38ch;
  margin: 0 auto 20px;
  line-height: 1.5;
}
.sol-demo-panel .sol-visual-frame--fit {
  margin: 0 auto 16px;
}
.sol-demo-panel .sol-demo-logo {
  max-width: 160px;
  margin: 0 auto 20px;
  display: block;
}
.sol-demo-panel audio {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}
.sol-demo-panel .sol-visual-caption {
  margin-top: 12px;
}

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

/* Mobile / Tablet — must come before 640px so smaller screens can override */
@media (max-width: 768px) {
  .sol-hero-cta { flex-direction: column; }
  .sol-hero-cta .btn { width: 100%; justify-content: center; }
  .sol-cards { grid-template-columns: 1fr; }
  .sol-outcomes { grid-template-columns: 1fr; }
  .sol-visual-frame { min-height: 220px; }
  .sol-visual-split {
    flex-direction: column;
    text-align: center;
  }
  .sol-visual-frame--fit {
    max-width: clamp(200px, 50vw, 280px);
  }
  .sol-visual-hero-tag {
    text-align: center;
    max-width: 32ch;
  }
  .sol-demo-grid {
    grid-template-columns: 1fr;
  }
}

/* Small phones — after 768px so min-height override takes effect */
@media (max-width: 640px) {
  .sol-visual-frame { min-height: 180px; }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .sol-cards { grid-template-columns: repeat(2, 1fr); }
  .sol-outcomes { grid-template-columns: repeat(2, 1fr); }
}
