/* ===== INDUSTRY PAGE (shared by every /industries/<x>/ page) =====
   Only the content changes between industries — this stylesheet and the layout
   are shared. Reuses the shell design system from style.css: .container,
   .section-title, .section-sub, .btn-primary, .reveal, .cta-strip.
   Palette: --blue #4169E1, #eef2ff / #f5f6f8 tints, 8px radii. */

/* ── HERO ────────────────────────────────────────────────────────────────────── */
.industry-hero { padding: 44px 0 0; }

.industry-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
}
.industry-headline {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.06;
  text-transform: uppercase;
  margin-bottom: 18px;
  max-width: 820px;
}
.industry-sub {
  font-size: 17px;
  color: #666;
  line-height: 1.7;
  max-width: 640px;
}
.industry-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.industry-hero-media {
  position: relative;
  min-height: 340px;
  border-radius: 8px;
  overflow: hidden;
}
.industry-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── PAIN POINTS ─────────────────────────────────────────────────────────────── */
.pains { padding: 80px 0; }

/* This section's heading and sub are centred. */
.pains .section-title,
.pains .section-sub { text-align: center; }
.pains .section-sub { margin-left: auto; margin-right: auto; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.pain-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.pain-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.pain-icon {
  width: 40px;
  height: 40px;
  background: rgba(65, 105, 225, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 14px;
}
.pain-icon svg { width: 18px; height: 18px; }
.pain-card h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  margin-bottom: 6px;
}
.pain-card p { font-size: 13px; color: #666; line-height: 1.6; }

/* ── HUMAN IN THE LOOP ───────────────────────────────────────────────────────── */
.hitl-section { padding: 80px 0; }
.hitl-panel {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.hitl-lead { font-size: 15px; color: #555; line-height: 1.75; }
.hitl-list { display: grid; gap: 20px; }
.hitl-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.hitl-num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  padding-top: 2px;
}
.hitl-item h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--black);
  margin-bottom: 5px;
}
.hitl-item p { font-size: 13px; color: #666; line-height: 1.65; }

/* ── OUTCOMES ────────────────────────────────────────────────────────────────── */
.outcomes { padding: 80px 0; }
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.outcome-card { background: #eef2ff; border-radius: 8px; padding: 28px; }
.outcome-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.outcome-card p { font-size: 14px; color: #444; line-height: 1.6; }

/* ── TOP TASKS (industry tabs → a bento of that industry's five) ──────────────── */
.tasks-section { padding: 80px 0; }
/* heading and sub centred */
.tasks-section .section-title,
.tasks-section .section-sub { text-align: center; }
.tasks-section .section-sub { max-width: 760px; margin-left: auto; margin-right: auto; }

/* tab bar: centred, wraps on narrow screens instead of scrolling */
.task-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 26px;
  margin: 30px 0 28px;
}
.task-tab {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #767676;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 2px;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: color 0.2s, border-color 0.2s;
}
.task-tab:hover { color: var(--blue); }
.task-tab.is-active { color: var(--blue); border-bottom-color: var(--blue); }

.task-panel[hidden] { display: none; }

/* bento tray: 3 across on row 1, the remaining 2 wider on row 2 */
.task-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
}
.task-list .task { grid-column: span 2; }
.task-list .task:nth-child(n+4) { grid-column: span 3; }
.task {
  position: relative;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.task:hover,
.task:focus-visible { border-color: var(--blue); transform: translateY(-2px); }
.task:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.task-icon {
  width: 40px;
  height: 40px;
  background: rgba(65, 105, 225, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 12px;
}
.task-icon svg { width: 18px; height: 18px; }
.task h4 {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 6px;
  padding-right: 42px;   /* clear the eye button */
}
.task p { font-size: 12.5px; color: #666; line-height: 1.55; }
.task-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.task-tags span {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--blue);
  background: #eef2ff;
  padding: 3px 8px;
  border-radius: 100px;
}
/* eye affordance: the whole card is the button, so this is decorative only */
.task-eye {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.task-eye svg { width: 16px; height: 16px; }
.task:hover .task-eye,
.task:focus-visible .task-eye { background: #2d55cc; transform: scale(1.06); }

/* ── WORKFLOW MODAL ──────────────────────────────────────────────────────────── */
body.modal-open { overflow: hidden; }
.task-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  margin: auto;   /* centre the panel in the viewport */
}
.task-modal::backdrop {
  background: rgba(10, 10, 10, 0.55);
  animation: modal-backdrop-in 0.2s ease;
}
@keyframes modal-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-panel-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.task-modal-panel {
  width: min(960px, calc(100vw - 32px));
  max-height: 88vh;
  overflow: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 34px 32px 30px;
  position: relative;
  animation: modal-panel-in 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.task-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef1f6;
  color: #444;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.task-modal-close:hover { background: #e2e7f0; color: var(--black); }
.task-modal-kicker {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.task-modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 24px;
  padding-right: 44px;
}

/* snake flow: rows fill the width, alternate direction, nothing scrolls */
.task-modal-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flow-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.flow-row--rev { flex-direction: row-reverse; }
.flow-row > .flow-step,
.flow-row > .flow-end { flex: 1 1 0; min-width: 0; }
.flow-step {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 16px;
}
.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.flow-step p { font-size: 13px; color: #333; line-height: 1.5; }
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  color: var(--blue);
  font-size: 18px;
}
.flow-turn {
  display: flex;
  justify-content: flex-end;
  padding-right: 8px;
  color: var(--blue);
}
.flow-turn--left {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 8px;
}

/* closing node: every flow ends at the client's own APIs */
.flow-end {
  background: #fafafa;
  border: 2px dotted #c7cdd8;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.flow-end-q {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: #c2c9d6;
  margin-bottom: 8px;
}
.flow-end p { font-size: 12px; color: #767676; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .task-modal::backdrop,
  .task-modal-panel { animation: none; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .industry-hero { padding: 32px 0 0; }
  .industry-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .industry-hero-media { min-height: 260px; }
  .industry-headline { font-size: 34px; }
  .industry-sub { font-size: 16px; }
  .pains { padding: 44px 0 8px; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .hitl-panel { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .task-list { grid-template-columns: repeat(2, 1fr); }
  .task-list .task,
  .task-list .task:nth-child(n+4) { grid-column: auto; }
  .outcome-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .industry-headline { font-size: 27px; }
  .pain-grid { grid-template-columns: 1fr; }
  .hitl-panel { padding: 26px 20px; }
  .task-list { grid-template-columns: 1fr; }
  .task-modal-panel { width: calc(100vw - 20px); padding: 26px 18px 22px; }
  .task-modal-title { font-size: 18px; }
  .outcome-grid { grid-template-columns: 1fr; }
}
