/* ============================================================
   Diligent - /industries/ hub + /industries/[slug] detail (redesign frame).
   Loads ON TOP of styles.css + service-v3.css via ServiceLayout's head slot.
   All selectors namespaced .ind-*; tokens only, no new colors. The hub card
   grid reuses the .blg-card pattern (blog.css) so the library/hub pages share
   one card family - only the industry-specific bits live here.
   ============================================================ */

/* ---- shared hero (hub + detail) ---- */
.ind-hero { padding: 64px 0; }
.ind-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.ind-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -.03em; max-width: 20ch; }
.ind-hero h1 .hl { color: var(--coral-deep); }
.ind-hero .lead { font-size: 1.15rem; color: var(--muted); margin-top: 18px; line-height: 1.62; max-width: 58ch; }

/* hero stat tile (mono, same treatment as case-stories / blog stats) */
.ind-stat { border: 1px solid var(--line); border-radius: 18px; background: var(--bone-card);
  box-shadow: var(--shadow-sm); padding: 26px 28px; }
.ind-stat .v { font-family: var(--mono); font-weight: 600; letter-spacing: -.04em; color: var(--coral-deep);
  font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; display: block; }
.ind-stat .l { color: var(--muted); font-size: .98rem; margin-top: 10px; display: block; }
.ind-stat .src { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 16px; display: block; }
.ind-stat .src a { color: var(--coral-deep); text-decoration: none; }
.ind-stat .src a:hover { text-decoration: underline; }

/* ---- hub hero: CTAs + proof stack (replaces the weak 4/9/1 tiles) ---- */
.ind-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ind-hero-proof { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; background: var(--bone-card); box-shadow: var(--shadow-md); }
.ind-hp-head { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.ind-hp-row { display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background .15s ease; }
.ind-hp-row:last-child { border-bottom: none; }
.ind-hp-row:hover { background: var(--bone-2); }
.ind-hp-row .v { font-family: var(--mono); font-weight: 600; letter-spacing: -.04em; color: var(--coral-deep);
  font-size: 1.65rem; line-height: 1; min-width: 4.6ch; }
.ind-hp-row .m { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ind-hp-row .m .ml { font-size: .92rem; color: var(--ink); font-weight: 600; line-height: 1.2; }
.ind-hp-row .m .mc { font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }

/* ---- methodology steps (replaces the empty "why it travels") ---- */
.ind-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.ind-step { padding: 28px 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--bone-card); box-shadow: var(--shadow-sm); }
.ind-step .sn { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--coral-deep); letter-spacing: -.02em; }
.ind-step h3 { font-size: 1.12rem; letter-spacing: -.015em; margin: 14px 0 10px; }
.ind-step p { font-size: .92rem; color: var(--muted); line-height: 1.58; }

/* ---- testimonial band (dark) + placeholder marker ---- */
.ind-quote { background: var(--ink); color: var(--on-dark); text-align: center; }
.ind-quote .q { font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.34; letter-spacing: -.02em; color: var(--on-dark); max-width: 26ch; margin: 0 auto; }
.ind-quote .cite { margin-top: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.ind-ph { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); background: var(--amber); border-radius: 100px; padding: 5px 13px; margin-bottom: 20px; }

/* ---- FAQ accordion ---- */
.ind-faq { max-width: 840px; margin: 38px auto 0; }
.ind-faq details { border-bottom: 1px solid var(--line); }
.ind-faq summary { cursor: pointer; list-style: none; padding: 22px 4px; font-family: var(--display); font-weight: 700;
  font-size: 1.12rem; letter-spacing: -.015em; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ind-faq summary::-webkit-details-marker { display: none; }
.ind-faq summary::after { content: "+"; font-family: var(--mono); color: var(--coral-deep); font-size: 1.5rem; line-height: 1; transition: transform .2s ease; flex-shrink: 0; }
.ind-faq details[open] summary::after { transform: rotate(45deg); }
.ind-faq .fa { padding: 0 4px 24px; color: var(--muted); line-height: 1.64; font-size: 1rem; max-width: 72ch; }

/* ---- hub: industry card grid (reuses .blg-card; .ind-card adds the stat row) ---- */
.ind-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ind-card { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--bone-card);
  border: 1px solid var(--line); border-radius: 16px; padding: 34px 30px 26px; box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
/* gradient accent bar - the colour the all-light cards were missing */
.ind-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent-grad); }
.ind-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(236,106,76,.5); }
.ind-card .ic-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-deep); }
.ind-card h3 { font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin: 12px 0 10px; }
.ind-card p { font-size: .96rem; color: var(--muted); line-height: 1.55; flex: 1; }
.ind-card .ic-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.ind-card .ic-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .03em; color: var(--muted);
  background: var(--bone-2); border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; }
/* result chip: tinted inset panel so the headline number pops off the card */
.ind-card .ic-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; padding: 15px 17px;
  background: var(--bone-2); border: 1px solid var(--line); border-radius: 12px; }
.ind-card .ic-stat .v { font-family: var(--mono); font-size: 1.75rem; font-weight: 600; letter-spacing: -.04em; color: var(--coral-deep); line-height: 1; }
.ind-card .ic-stat .l { font-size: .85rem; color: var(--muted); }
/* solid dark button so it reads as clickable on a light card (was light-on-light) */
.ind-card .ic-btn { margin-top: 20px; align-self: stretch; justify-content: center; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--on-dark); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 100px; padding: 13px 19px; box-shadow: var(--shadow-sm);
  transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.ind-card:hover .ic-btn { background: var(--coral-deep); border-color: var(--coral-deep); }
.ind-card .ic-btn .arrow { transition: transform .25s ease; }
.ind-card:hover .ic-btn .arrow { transform: translateX(4px); }

/* ---- detail: what we run (service chips) ---- */
.ind-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.ind-svc { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: 13px; background: var(--bone-card); text-decoration: none; color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease; }
.ind-svc:hover { border-color: var(--coral); transform: translateY(-2px); }
.ind-svc .sx { font-family: var(--mono); color: var(--coral-deep); font-size: 13px; }

/* ---- detail: challenge / approach cards ---- */
.ind-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.ind-point { background: var(--bone-card); border: 1px solid var(--line); border-radius: 15px; padding: 26px; box-shadow: var(--shadow-sm); }
.ind-point .pn { font-family: var(--mono); font-size: 12px; color: var(--coral-deep); letter-spacing: .08em; }
.ind-point h3 { font-size: 1.12rem; letter-spacing: -.015em; margin: 12px 0 10px; }
.ind-point p { font-size: .94rem; color: var(--muted); line-height: 1.6; }

/* ---- detail: proof band (dark, the case-story link) ---- */
.ind-proof { background: var(--ink); color: var(--on-dark-mut); }
.ind-proof-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.ind-proof .pv { font-family: var(--mono); font-weight: 600; letter-spacing: -.04em; color: var(--on-dark);
  font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.ind-proof .pl { color: var(--amber); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 12px; }
.ind-proof h2 { color: var(--on-dark); font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; line-height: 1.2; }
.ind-proof p { font-size: 1.02rem; line-height: 1.6; margin: 14px 0 22px; }

/* ---- detail: related industries rail ---- */
.ind-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.ind-rel { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bone-card);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease; }
.ind-rel:hover { border-color: var(--coral); transform: translateY(-3px); }
.ind-rel .rl { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.ind-rel h3 { font-size: 1.1rem; letter-spacing: -.015em; margin-top: 8px; }
.ind-rel .rstat { font-family: var(--mono); font-size: 12px; color: var(--coral-deep); margin-top: 10px; }

/* ---- detail hero: gradient accent on the proof stat card ---- */
.ind-stat { position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.ind-stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent-grad); }

/* ---- detail hero: distinct full-width composition (copy + horizontal stat bar) ---- */
.ind-dhero { padding: 60px 0 66px; }
.ind-dhero h1 { font-size: clamp(2.2rem, 4.2vw, 3.1rem); letter-spacing: -.03em; max-width: 20ch; }
.ind-dhero .lead { font-size: 1.16rem; color: var(--muted); margin-top: 18px; line-height: 1.62; max-width: 60ch; }
.ind-statbar { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0; align-items: stretch;
  margin-top: 48px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bone-card);
  box-shadow: var(--shadow-md); }
.ind-sb-tile { padding: 24px 26px; border-right: 1px solid var(--line); box-shadow: inset 0 3px 0 0 var(--coral); }
.ind-sb-tile .v { font-family: var(--mono); font-weight: 600; letter-spacing: -.04em; color: var(--coral-deep);
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; display: block; }
.ind-sb-tile .l { color: var(--muted); font-size: .9rem; margin-top: 10px; display: block; line-height: 1.4; }
.ind-sb-link { display: flex; align-items: center; gap: 8px; padding: 24px 26px; background: var(--ink); color: var(--on-dark);
  text-decoration: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.ind-sb-link:hover { background: var(--coral-deep); }
.ind-sb-link .arrow { transition: transform .25s ease; }
.ind-sb-link:hover .arrow { transform: translateX(4px); }

/* ---- detail: challenge intro lead ---- */
.ind-intro { max-width: 64ch; font-size: 1.12rem; color: var(--muted); line-height: 1.66; margin-top: 18px; }

/* ---- detail: "what you get" deliverables checklist ---- */
.ind-deliver { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 38px; }
.ind-deliver-item { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px; border: 1px solid var(--line);
  border-radius: 13px; background: var(--bone-card); box-shadow: var(--shadow-sm); }
.ind-deliver-item .dk { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--accent-grad);
  color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ind-deliver-item .dt { font-size: .98rem; color: var(--ink); line-height: 1.5; font-weight: 500; }

/* ---- detail: service cards (richer than the chips) ---- */
.ind-svc-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--bone-card); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.ind-svc-card:hover { border-color: var(--coral); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ind-svc-card .sl { font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ind-svc-card .sl .sx { font-family: var(--mono); color: var(--coral-deep); transition: transform .2s ease; }
.ind-svc-card:hover .sl .sx { transform: translateX(3px); }
.ind-svc-card .sd { font-size: .92rem; color: var(--muted); line-height: 1.55; }

/* ============================================================
   Detail-page v2 archetypes - varied section shapes so the page
   is not a stack of identical card grids. Two dark anchor bands
   (methodology timeline + proof). Used by /industries/[slug].
   ============================================================ */

/* dark-band helper: light section-head text on ink */
.ind-ondark { background: var(--ink); color: var(--on-dark-mut); }
.ind-ondark .section-head h2 { color: var(--on-dark); }
.ind-ondark .section-head .lead { color: var(--on-dark-mut); }

/* --- challenge: editorial split (prose + numbered list, no boxes) --- */
.ind-split { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: start; }
.ind-split-lead .eyebrow { margin-bottom: 16px; display: inline-block; }
.ind-split-lead h2 { margin-bottom: 18px; }
.ind-split-lead p { font-size: 1.12rem; color: var(--muted); line-height: 1.72; }
/* challenge points: coral-accent callouts, NOT a numbered list (the service
   rows already carry the numbers, so this reads differently) */
.ind-chal-list { display: flex; flex-direction: column; gap: 28px; }
.ind-chal-item { border-left: 2px solid var(--coral); padding-left: 22px; }
.ind-chal-item h3 { font-size: 1.18rem; letter-spacing: -.015em; margin-bottom: 9px; }
.ind-chal-item p { font-size: .98rem; color: var(--muted); line-height: 1.62; }

/* --- methodology: horizontal process timeline (dark) --- */
.ind-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.ind-timeline::before { content: ""; position: absolute; top: 27px; left: 7%; right: 7%; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(236,106,76,.65), rgba(245,166,35,.5)); }
.ind-tl-node { position: relative; }
.ind-tl-node .tn { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; background: var(--accent-grad);
  color: var(--ink); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 1.1rem; box-shadow: 0 6px 18px rgba(0,0,0,.32); }
.ind-tl-node h3 { color: var(--on-dark); font-size: 1.08rem; letter-spacing: -.015em; margin: 20px 0 9px; }
.ind-tl-node p { color: var(--on-dark-mut); font-size: .9rem; line-height: 1.55; }

/* --- services: row list (not a grid) --- */
.ind-svc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 26px; border-top: 1px solid var(--line); }
.ind-svc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 14px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .15s ease, padding-left .2s ease; }
.ind-svc-row:hover { background: var(--bone-card); padding-left: 12px; }
.ind-svc-row .si { font-family: var(--mono); color: var(--coral-deep); font-size: 12px; }
.ind-svc-row .sm { display: flex; flex-direction: column; gap: 3px; }
.ind-svc-row .sm .sn { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.ind-svc-row .sm .sd { font-size: .92rem; color: var(--muted); }
.ind-svc-row .sx { font-family: var(--mono); color: var(--coral-deep); transition: transform .2s ease; }
.ind-svc-row:hover .sx { transform: translateX(4px); }

/* --- platforms strip: even grid, no orphan wrap --- */
.ind-platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.ind-plat { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border: 1px solid var(--line);
  border-radius: 100px; background: var(--bone-card); box-shadow: var(--shadow-sm); font-weight: 600; font-size: .92rem; color: var(--ink); }
.ind-plat .pd { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-grad); flex-shrink: 0; }

/* --- proof band enrichments: stat tiles + screenshot slot --- */
.ind-proof-stats { display: flex; gap: 30px; flex-wrap: wrap; margin: 22px 0 26px; }
.ind-pstat .pv2 { font-family: var(--mono); font-weight: 600; font-size: 1.55rem; color: var(--on-dark); letter-spacing: -.03em; line-height: 1; }
.ind-pstat .pl2 { color: var(--amber); font-size: .82rem; margin-top: 7px; max-width: 18ch; }
.ind-shot { border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.03);
  aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.ind-shot .ph { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-mut); text-align: center; padding: 0 24px; line-height: 1.6; }
.ind-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 14px; }

/* --- deliverables: clean 2-col check list (no boxes) --- */
.ind-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; margin-top: 34px; }
.ind-check { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ind-check .ck { width: 26px; height: 26px; flex-shrink: 0; border-radius: 7px; background: var(--accent-grad); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.ind-check .ct { font-size: 1rem; color: var(--ink); line-height: 1.5; font-weight: 500; }

/* --- combined "what we run + what you get": two dense lists side by side --- */
.ind-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 12px; }
.ind-duo-h { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: 8px; }
.ind-duo-list { border-top: 1px solid var(--line); }
.ind-duo .ind-svc-row, .ind-duo .ind-check { padding-top: 14px; padding-bottom: 14px; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .ind-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .ind-grid { grid-template-columns: 1fr; }
  .ind-points, .ind-svc-grid, .ind-related { grid-template-columns: 1fr; }
  .ind-proof-grid { grid-template-columns: 1fr; gap: 28px; }
  .ind-steps { grid-template-columns: 1fr 1fr; }
  .ind-deliver { grid-template-columns: 1fr; }
  .ind-split { grid-template-columns: 1fr; gap: 32px; }
  .ind-timeline { grid-template-columns: 1fr 1fr; gap: 34px 30px; }
  .ind-timeline::before { display: none; }
  .ind-checks { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ind-statbar { grid-template-columns: 1fr; }
  .ind-sb-tile { border-right: none; border-bottom: 1px solid var(--line); box-shadow: none; border-left: 3px solid var(--coral); }
  .ind-sb-link { justify-content: center; }
  .ind-platforms { grid-template-columns: 1fr 1fr; }
  .ind-svc-rows { grid-template-columns: 1fr; gap: 0; }
  .ind-duo { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .ind-steps, .ind-timeline { grid-template-columns: 1fr; }
}
