/* Kinvra AI — Industries pages (site/pages/industries, site/lib-industries.mjs).
   Loaded after site.css and pages.css; uses their tokens. */

/* ---------- typography: no one-word last lines ---------- */
.pg-title, .pg-h2, .pg-h3, .pg-card h3, .ind-card p { text-wrap: balance; }
.pg-lede, .pg-sub, .pg-card p, .pg-split-copy > p, .ind-day-card p, .ind-needs-list p, .pg-steps p, .pg-faq-a p, .ind-compare td, .ind-bubble, .pg-checks span, .ind-panel-list span, .ind-stages p, .ind-signal p, .ind-note, .pg-related-item span { text-wrap: pretty; }

/* The overview grid follows a text-only hero, so it needs less air above it. */
#all { padding-top: 16px; }

/* ---------- overview photo cards ---------- */
.ind-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.ind-card { position: relative; grid-column: span 3; min-height: 380px; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; color: #fff; background: #1d1d1f; }
.ind-card.big { grid-column: span 6; min-height: 440px; }
.ind-card-media { position: absolute; inset: 0; z-index: -2; }
.ind-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 1.2s var(--ease); }
.ind-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.55) 58%, rgba(0, 0, 0, 0.86) 100%); pointer-events: none; }
.ind-card:hover .ind-card-media img { transform: scale(1.05); }
.ind-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.ind-card.big .ind-card-body { padding: 30px; }
.ind-card h3 { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.ind-card h3 a { color: rgba(255, 255, 255, 0.9); }
.ind-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ind-card h3 a:hover { text-decoration: none; }
.ind-card h3 a:focus-visible { outline: none; }
.ind-card:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.ind-card p { margin-top: 6px; font-size: 1.3rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.028em; }
.ind-card.big p { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 20ch; }
.ind-card .chev { margin-top: 12px; color: #fff; font-size: 15px; font-weight: 500; }

/* ---------- chips ---------- */
.ind-chips { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ind-chips.center { justify-content: center; margin-inline: auto; max-width: 900px; }
.ind-chips li { padding: 9px 16px; border-radius: 980px; background: var(--bg); font-size: 15px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- signals row (overview "don't see yours") ---------- */
.ind-signals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ind-signal { padding: 26px; border-radius: var(--radius-lg); background: var(--bg); }
.ind-signal h3 { margin-top: 14px; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.ind-signal p { margin-top: 8px; color: var(--ink-3); line-height: 1.5; font-size: 16px; }
.ind-center-actions { margin-top: 40px; }
.ind-center-actions .pg-actions { justify-content: center; margin-top: 0; }
.ind-gap { margin-top: 88px; }
@media (max-width: 640px) { .ind-gap { margin-top: 60px; } }

/* ---------- a day on a rail ---------- */
.ind-day { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; }
.ind-day::before { content: ""; position: absolute; left: 118px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #2997ff, #7a5cff 50%, #ff4fd8); opacity: 0.45; }
.ind-day li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 46px; align-items: start; }
.ind-day li + li { margin-top: 18px; }
.ind-day li::before { content: ""; position: absolute; left: 112px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px #7a5cff; }
.ind-day-time { padding-top: 21px; text-align: right; font-size: 15px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ind-day-card { padding: 22px 26px; border-radius: var(--radius-lg); background: var(--bg-2); }
.pg-section.alt .ind-day-card { background: var(--bg); }
.ind-day-card h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.ind-day-card > p { margin-top: 6px; color: var(--ink-3); line-height: 1.5; }
.ind-day-card .ind-day-fix { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); }
.ind-day-fix span { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: #5b3fd6; }

/* ---------- compare table ---------- */
.ind-compare-wrap { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -28px rgba(0, 0, 0, 0.22); }
.pg-section:not(.alt):not(.dark) .ind-compare-wrap { background: var(--bg-2); box-shadow: none; }
.ind-compare { width: 100%; border-collapse: collapse; text-align: left; }
.ind-compare thead th { padding: 18px 24px; font-size: 13px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.ind-compare thead th:last-child { color: #5b3fd6; }
.ind-compare tbody th, .ind-compare td { padding: 22px 24px; vertical-align: middle; line-height: 1.5; }
.ind-compare-moment { display: flex; align-items: center; gap: 14px; }
.ind-compare-moment .ind-compare-icon { margin-bottom: 0; flex: none; }
.ind-compare tbody tr + tr > * { border-top: 1px solid var(--line); }
.ind-compare tbody th { width: 28%; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.ind-compare td { width: 36%; color: var(--ink-3); font-size: 16px; }
.ind-compare td:last-child { color: var(--ink); }
.ind-compare-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 10px; background: linear-gradient(135deg, rgba(41, 151, 255, 0.14), rgba(255, 79, 216, 0.14)); }
.ind-compare-icon svg { width: 20px; height: 20px; fill: none; stroke: #5b3fd6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- conversation mock ---------- */
.ind-demo { align-items: center; }
.ind-demo-media { display: flex; justify-content: center; }
.ind-convo { width: 100%; max-width: 400px; margin: 0; padding: 18px 18px 16px; border-radius: 32px; background: var(--bg); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.35); }
.pg-section:not(.alt):not(.dark) .ind-convo { background: #fbfbfd; }
.ind-convo-top { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.ind-convo-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--grad); color: #fff; font-size: 15px; font-weight: 700; }
.ind-convo-top strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.ind-convo-top small { display: block; font-size: 12px; color: var(--ink-3); }
.ind-convo-list { list-style: none; margin: 0; padding: 14px 2px 4px; display: grid; gap: 8px; }
.ind-msg { display: grid; justify-items: start; gap: 3px; }
.ind-msg.us { justify-items: end; }
.ind-msg-time { font-size: 11px; color: var(--ink-3); padding-inline: 6px; }
.ind-bubble { max-width: 86%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.38; letter-spacing: -0.01em; }
.ind-msg.them .ind-bubble { background: #e9e9eb; color: var(--ink); border-bottom-left-radius: 6px; }
.ind-msg.us .ind-bubble { background: #0071e3; color: #fff; border-bottom-right-radius: 6px; }
.ind-convo-event { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0; font-size: 12px; font-weight: 600; color: #5b3fd6; text-align: center; }
.ind-convo-event-icon svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ind-convo figcaption, .ind-sched figcaption { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); text-align: center; }

/* ---------- "what a great website needs" ---------- */
.ind-needs { padding: clamp(26px, 5vw, 48px); border-radius: var(--radius-xl); background: var(--bg); }
.pg-section:not(.alt):not(.dark) .ind-needs { background: var(--bg-2); }
.ind-needs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.ind-needs-list li { display: flex; gap: 14px; align-items: flex-start; }
.ind-needs-list svg, .ind-panel-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.ind-needs-list circle, .ind-panel-list circle { fill: var(--blue); }
.ind-needs-list path, .ind-panel-list path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ind-needs-list h3 { font-size: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.ind-needs-list p { margin-top: 4px; color: var(--ink-3); line-height: 1.5; font-size: 16px; }
.ind-needs-note { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); line-height: 1.5; }

/* ---------- stages ---------- */
.ind-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 14px; position: relative; }
.ind-stages li { position: relative; padding: 24px 20px; border-radius: var(--radius-lg); background: var(--bg); }
.pg-section:not(.alt):not(.dark) .ind-stages li { background: var(--bg-2); }
.ind-stages li:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -12px; width: 10px; height: 10px; border-top: 2px solid #a1a1a6; border-right: 2px solid #a1a1a6; transform: rotate(45deg); z-index: 1; }
.ind-stage-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); }
.ind-stage-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ind-stages h3 { margin-top: 16px; font-size: 18px; letter-spacing: -0.02em; line-height: 1.2; }
.ind-stages p { margin-top: 6px; color: var(--ink-3); line-height: 1.45; font-size: 15px; }
.ind-loop-label { margin-top: 22px; text-align: center; font-size: 15px; font-weight: 600; color: #5b3fd6; }
.ind-loop-label span { display: inline-block; margin-right: 4px; font-size: 18px; }

/* ---------- panels ---------- */
.ind-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ind-panel { display: flex; flex-direction: column; gap: 10px; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-xl); background: var(--bg); }
.pg-section:not(.alt):not(.dark) .ind-panel { background: var(--bg-2); }
.ind-panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.15; letter-spacing: -0.03em; }
.ind-panel-text { color: var(--ink-3); line-height: 1.5; }
.ind-panel-label { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ind-panel-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.ind-panel-list li { display: flex; gap: 11px; align-items: flex-start; line-height: 1.45; }
.ind-panel.no .ind-panel-list circle { fill: none; stroke: #a1a1a6; stroke-width: 1.5; }
.ind-panel.no .ind-panel-list path { stroke: #6e6e73; }
.ind-panel .chev { margin-top: auto; padding-top: 12px; font-size: 16px; }

/* ---------- link tiles ---------- */
.ind-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ind-tile { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius-lg); background: #161617; color: var(--on-dark); transition: transform 0.35s var(--ease), background-color 0.35s var(--ease); }
.ind-tile:hover { transform: translateY(-4px); background: #1d1d1f; text-decoration: none; }
.ind-tile strong { margin-top: 6px; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.ind-tile > span:not(.pg-icon):not(.chev) { color: var(--on-dark-2); line-height: 1.5; font-size: 16px; }
.ind-tile .chev { margin-top: auto; padding-top: 6px; color: #2997ff; font-size: 15px; }
.pg-section.dark .ind-tile .pg-icon svg { stroke: #b9a8ff; }

/* ---------- schedule mock ---------- */
.ind-sched { width: 100%; max-width: 440px; margin: 0; padding: 20px; border-radius: 28px; background: var(--bg); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.35); }
.ind-sched-top { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 14px; border-bottom: 1px solid var(--line); }
.ind-sched-top strong { font-size: 17px; letter-spacing: -0.02em; }
.ind-sched-top span { font-size: 13px; color: var(--ink-3); }
.ind-sched-list { list-style: none; margin: 0; padding: 6px 0 0; }
.ind-sched-list li { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; }
.ind-sched-list li + li { border-top: 1px solid rgba(0, 0, 0, 0.06); }
.ind-sched-time { font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ind-sched-name strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.ind-sched-name small { display: block; font-size: 13px; color: var(--ink-3); }
.ind-sched-status { padding: 5px 11px; border-radius: 980px; font-size: 12px; font-weight: 600; background: rgba(0, 113, 227, 0.1); color: #0058b0; white-space: nowrap; }
.ind-sched-status.full { background: var(--bg-2); color: var(--ink-2); }

/* ---------- caveat ---------- */
.ind-note { max-width: 760px; margin: 36px auto 0; text-align: center; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.pg-section.dark .ind-note { color: var(--on-dark-2); }
.ind-note a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.pg-section.dark .ind-note a { color: #2997ff; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .ind-card, .ind-card.big { grid-column: span 6; min-height: 400px; }
  .ind-signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-stages li:not(:last-child)::after { display: none; }
}
@media (max-width: 900px) {
  .ind-demo .ind-demo-media { order: 0; }
  .ind-needs-list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ind-panels { grid-template-columns: minmax(0, 1fr); }
  .ind-compare thead { display: none; }
  .ind-compare, .ind-compare tbody, .ind-compare tr, .ind-compare tbody th, .ind-compare td { display: block; width: auto; }
  .ind-compare tbody tr { padding: 22px 22px 8px; }
  .ind-compare tbody tr + tr { border-top: 1px solid var(--line); }
  .ind-compare tbody tr + tr > * { border-top: 0; }
  .ind-compare tbody th, .ind-compare td { padding: 0 0 14px; }
  .ind-compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .ind-compare td:last-child::before { color: #5b3fd6; }
}
@media (max-width: 640px) {
  .ind-grid { gap: 12px; }
  .ind-card, .ind-card.big { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px; border-radius: 22px; background: var(--bg-2); color: var(--ink); }
  .ind-card::after { display: none; }
  .ind-card-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
  .ind-card-body, .ind-card.big .ind-card-body { position: static; padding: 4px 8px 4px 0; }
  .ind-card h3 a { color: var(--ink-3); }
  .ind-card p, .ind-card.big p { margin-top: 3px; font-size: 18px; line-height: 1.2; max-width: none; }
  .ind-card .chev { display: none; }
  .ind-card:hover .ind-card-media img { transform: none; }
  .ind-signals, .ind-tiles, .ind-stages { grid-template-columns: minmax(0, 1fr); }
  .ind-signals { gap: 12px; }
  .ind-signal { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .ind-signal .pg-icon { grid-row: span 2; }
  .ind-signal h3 { margin-top: 0; align-self: end; }
  .ind-signal p { margin-top: 4px; }
  .ind-stages li { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .ind-stage-icon { grid-row: span 2; }
  .ind-stages h3 { margin-top: 0; align-self: center; }
  .ind-stages p { margin-top: 2px; }
  .ind-day::before { left: 7px; }
  .ind-day li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 30px; }
  .ind-day li::before { left: 0; top: 4px; }
  .ind-day-time { padding-top: 0; text-align: left; }
  .ind-day-card { padding: 20px; }
  .ind-convo { border-radius: 26px; padding: 14px 12px 14px; }
  .ind-bubble { max-width: 90%; }
}
@media (prefers-reduced-motion: reduce) {
  .ind-card-media img, .ind-tile { transition: none; }
}
