/* ═══════════════════════════════════════════════════════════════
   INDUSTRIES.CSS — Industry subpage styles
   Uses home.css design tokens. Do NOT redefine :root tokens here.
   Poppins-first, black + off-white + acid yellow, no gradients.
═══════════════════════════════════════════════════════════════ */

/* ── Intro Grid (2-col: text left, stat cards right) ──────────── */
.ind-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.ind-intro-text h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.ind-intro-text p {
  font-size: var(--body-size);
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 14px;
}

.ind-stat-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ind-stat-card {
  background-color: var(--card-dark);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ind-stat-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.03em;
}

.ind-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.4;
}

.ind-stat-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-text-dark);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

@media (max-width: 1023px) {
  .ind-intro-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Problems Split Layout ────────────────────────────────────── */
.ind-problems-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.ind-problems-intro {
  position: sticky;
  top: 100px;
}

.ind-problems-intro h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.ind-problems-intro p {
  font-size: 15px;
  color: var(--gray-text-dark);
  line-height: 1.7;
  max-width: 42ch;
}

.ind-problems-list {
  display: flex;
  flex-direction: column;
}

.ind-problem-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-line);
  transition: border-color var(--t-fast);
}

.ind-problem-row:first-child {
  border-top: 1px solid var(--gray-line);
}

.ind-problem-row:hover {
  border-color: rgba(255,255,255,0.10);
}

.ind-problem-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--yellow);
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.ind-problem-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ind-problem-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
}

.ind-problem-desc {
  font-size: 14px;
  color: var(--gray-text-dark);
  line-height: 1.6;
  max-width: unset;
}

@media (max-width: 1023px) {
  .ind-problems-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ind-problems-intro {
    position: static;
  }
}

@media (max-width: 639px) {
  .ind-problem-row {
    grid-template-columns: 28px 1fr;
    gap: 14px;
  }
}

/* ── Solutions Grid ───────────────────────────────────────────── */
.ind-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ind-solution-card {
  background-color: var(--white);
  border: 1px solid var(--gray-line-light);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.ind-solution-card:hover {
  border-color: rgba(233, 255, 92, 0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.ind-solution-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ind-solution-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.ind-solution-desc {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
  max-width: unset;
  flex: 1;
}

@media (max-width: 1023px) {
  .ind-solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .ind-solutions-grid { grid-template-columns: 1fr; }
}

/* ── Features Grid (4-col tiles) ──────────────────────────────── */
.ind-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ind-feature-tile {
  background-color: var(--card-dark);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-tile);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t-fast);
}

.ind-feature-tile:hover {
  border-color: var(--yellow-border);
}

.ind-feature-icon {
  font-size: 22px;
  line-height: 1;
}

.ind-feature-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.35;
}

.ind-feature-desc {
  font-size: 13px;
  color: var(--gray-text-dark);
  line-height: 1.55;
  max-width: unset;
}

@media (max-width: 1023px) {
  .ind-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .ind-features-grid { grid-template-columns: 1fr; }
}

/* ── Proof / Mini Case Study ──────────────────────────────────── */
.ind-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.ind-proof-card {
  background-color: var(--white);
  border: 1px solid var(--gray-line-light);
  border-radius: var(--radius-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ind-proof-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gray-text);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: block;
}

.ind-proof-outcome {
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.ind-proof-headline {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 20px;
}

.ind-proof-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

.ind-proof-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.55;
  max-width: unset;
}

.ind-proof-step-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 2px;
}

.ind-proof-step-label.challenge { color: var(--red-dot); }
.ind-proof-step-label.system    { color: var(--primary); }
.ind-proof-step-label.outcome   { color: #22c55e; }

.ind-proof-footer {
  text-align: center;
}

@media (max-width: 1023px) {
  .ind-proof-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ── Why It Matters Grid ──────────────────────────────────────── */
.ind-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ind-why-card {
  background-color: var(--card-dark);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t-fast);
}

.ind-why-card:hover {
  border-color: var(--yellow-border);
}

.ind-why-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ind-why-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
}

.ind-why-desc {
  font-size: 14px;
  color: var(--gray-text-dark);
  line-height: 1.65;
  max-width: unset;
}

@media (max-width: 639px) {
  .ind-why-grid { grid-template-columns: 1fr; }
}

/* ── FAQ Section (light bg variant) ──────────────────────────── */
.ind-faq-list {
  max-width: 800px;
}

/* Desktop: center-align the FAQ block */
.ind-faq-centered {
  margin-left: auto;
  margin-right: auto;
}

.ind-faq-item {
  border-bottom: 1px solid var(--gray-line-light);
}

.ind-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  gap: 24px;
}

.ind-faq-item summary::-webkit-details-marker { display: none; }
.ind-faq-item summary::marker { display: none; }

.ind-faq-indicator {
  font-size: 22px;
  font-weight: 300;
  color: var(--black);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--t-fast);
}

.ind-faq-item[open] .ind-faq-indicator { transform: rotate(45deg); }

.ind-faq-body {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.7;
  padding-bottom: 26px;
  max-width: 70ch;
}

/* ── Industry Close Section ───────────────────────────────────── */
.ind-close {
  background-color: var(--off-white);
  border-top: 1px solid var(--gray-line-light);
}

.ind-close-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ind-close-inner .section-label {
  margin-bottom: 20px;
}

.ind-close-headline {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.ind-close-sub {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 36px;
}

.ind-close-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 639px) {
  .ind-close-actions {
    flex-direction: column;
    width: 100%;
  }
  .ind-close-actions .btn-primary,
  .ind-close-actions .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── Section heading pattern for industry pages ───────────────── */
.ind-section-head {
  max-width: 700px;
  margin-bottom: 56px;
}

.ind-section-head h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 14px;
}

.ind-section-head p {
  font-size: var(--body-size);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 62ch;
}

.ind-section-head-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
}

/* ── Contrast fix: section-label on light backgrounds ─────────── */
/* Yellow (#E9FF5C) on off-white (#FAF9F5) fails contrast.
   On light sections and ind-close, use a readable muted tone.    */
.section-light .section-label,
.ind-close .section-label {
  color: var(--gray-text);
}
