/* ══════════════════════════════════════════════════════════════════════════
   TaskBit — multi-page site extensions (taskbithr.com)

   site.css holds the design system: tokens, type, buttons, header/footer,
   hero, bento, pricing. This file adds what a 37-page site needs that a
   one-page site never did — inner-page heroes, prose/legal layouts, tables,
   forms, and the product mockups.

   Nothing here redefines a token. Every colour comes from site.css, so both
   files recolour together in dark mode.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Dark-mode fix for the fixed-light mockups ───────────────────────────
   The hero browser frame, the pay widget and the document stack are painted on
   hard-coded white surfaces on purpose — they depict the product's own light UI.
   They inherited `color: var(--text)`, which is near-white in dark mode, so
   every figure inside them disappeared against the white. Pin the ink as well
   as the paper. (.phone-ui already does this with `color: var(--ink)`.) */
.browser,
.pay-widget,
.doc-stack {
  color: #14161f;
}

/* ── Navigation dropdowns ────────────────────────────────────────────────── */
.nav-links .has-menu { position: relative; }
.nav-links .has-menu > button {
  font: inherit; font-weight: 500; color: inherit; background: none; border: 0;
  padding: 8px 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links .has-menu > button::after {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
  opacity: .5; transition: transform .2s ease;
}
.nav-links .has-menu[data-open="true"] > button::after { transform: rotate(-135deg) translateY(1px); }
.dropdown {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 580px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow); padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-links .has-menu:hover .dropdown,
.nav-links .has-menu:focus-within .dropdown,
.nav-links .has-menu[data-open="true"] .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start;
  padding: 10px 12px; border-radius: 12px; text-decoration: none;
}
.dropdown a:hover { background: var(--primary-50); }
.dropdown a i {
  grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid;
  place-items: center; background: var(--grad-brand); color: #fff; font-style: normal; font-size: 15px;
}
.dropdown a b { font-size: 14px; font-weight: 600; color: var(--text); display: block; }
.dropdown a em { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: block; font-style: normal; }

/* ── Inner-page hero ─────────────────────────────────────────────────────── */
.page-hero { padding: 138px 0 60px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -50% 35% 45% -25%; background: var(--grad-aurora);
  filter: blur(120px); opacity: .16; pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
  font-size: clamp(34px, 5.2vw, 58px); margin: 16px 0 0; max-width: 18ch;
}
.page-hero.center h1, .page-hero.center .page-lede { margin-left: auto; margin-right: auto; text-align: center; }
.page-hero.center .eyebrow, .page-hero.center .breadcrumbs, .page-hero.center .hero-actions { justify-content: center; }
.page-lede { font-size: clamp(16px, 1.9vw, 20px); color: var(--muted); max-width: 62ch; margin: 20px 0 0; line-height: 1.6; }
/* The home hero is centred, so site.css centres .hero-actions. Inner-page
   heroes are left-aligned — the buttons have to follow the headline, not sit
   in the middle of the column. `.page-hero.center` puts them back. */
.page-hero .hero-actions { margin-top: 32px; justify-content: flex-start; }
.page-hero.center .hero-actions { justify-content: center; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs i { opacity: .4; font-style: normal; }

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.section.tight { padding: 58px 0; }
.section.soft { background: var(--panel-2); }
.section.ink { background: var(--ink); color: #fff; }
.section.ink h2, .section.ink h3, .section.ink b, .section.ink strong { color: #fff; }
.section.ink p, .section.ink li, .section.ink .section-head p { color: rgba(255, 255, 255, .74); }
.section.ink .card { background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.section.ink .card p { color: rgba(255, 255, 255, .68); }
.stack-sm > * + * { margin-top: 10px; }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; box-shadow: var(--shadow-soft);
}
.card h3 { font-family: var(--display); font-size: 19px; letter-spacing: -.02em; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; }
.card .card-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary); font-size: 19px; margin-bottom: 16px;
}
.section.ink .card .card-icon { background: rgba(155, 107, 255, .2); color: #c9b0ff; }

/* ── Split: copy beside a mockup ─────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center; }
.split.flip .split-copy { order: 2; }
.split h2 { font-family: var(--display); font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.03em; line-height: 1.14; margin: 12px 0 14px; }
.split p { color: var(--muted); line-height: 1.7; }
.split + .split { margin-top: 96px; }

/* ── Checklist ───────────────────────────────────────────────────────────── */
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.6; }
.checklist li::before {
  content: "✓"; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok-text); font-size: 12px; font-weight: 700; margin-top: 2px;
}
.section.ink .checklist li::before { background: rgba(45, 224, 166, .18); color: #2de0a6; }

/* ── Metrics band ────────────────────────────────────────────────────────── */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.metrics div strong {
  display: block; font-family: var(--display); font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.03em; background: var(--grad-brand); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.section.ink .metrics div strong { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metrics div span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 24px; color: var(--primary); font-weight: 400; line-height: 1; flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); line-height: 1.72; margin: 14px 0 0; max-width: 70ch; font-size: 15px; }

/* ── Comparison table ────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th { font-family: var(--display); font-size: 15px; background: var(--panel-2); }
table.compare thead th:not(:first-child) { text-align: center; }
table.compare tbody th { font-weight: 500; color: var(--text); }
table.compare td { text-align: center; color: var(--muted); }
table.compare td.yes { color: var(--ok-text); font-weight: 700; }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }
table.compare .group th {
  background: var(--panel-2); font-family: var(--display); font-size: 12px;
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
}

/* ── Pills, callouts, notes ──────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px;
  font-size: 12px; font-weight: 600; background: var(--primary-50); color: var(--primary-600);
}
.pill.ok { background: var(--ok-soft); color: var(--ok-text); }
.pill.warn { background: rgba(255, 176, 32, .18); color: #8a5a00; }
.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 14px;
  padding: 20px 24px; background: var(--panel); margin: 28px 0;
}
.callout b { display: block; margin-bottom: 7px; font-family: var(--display); font-size: 15.5px; }
.callout p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.callout.warn { border-left-color: var(--warn); }
.footnote { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── Prose (legal + long-form) ───────────────────────────────────────────── */
.prose { max-width: 76ch; }
.prose h2 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; margin: 46px 0 14px; scroll-margin-top: 110px; }
.prose h3 { font-family: var(--display); font-size: 18px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--muted); line-height: 1.78; font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 22px; margin: 14px 0; display: grid; gap: 9px; }
.prose a { color: var(--primary); }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 11px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel-2); font-family: var(--display); font-size: 13.5px; color: var(--text); }
.prose td { color: var(--muted); }
.prose .updated { font-size: 13.5px; color: var(--muted); }
.toc { border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px; background: var(--panel); margin-bottom: 36px; }
.toc b { font-family: var(--display); display: block; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.toc a { color: var(--primary); text-decoration: none; font-size: 14.5px; }
.toc a:hover { text-decoration: underline; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-card { background: var(--panel); border: 1px solid var(--border); border-radius: 22px; padding: 34px; box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50);
}
.field textarea { min-height: 112px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.form-status { font-size: 14px; margin-top: 16px; color: var(--muted); }
.form-status.ok { color: var(--ok-text); font-weight: 600; }

/* ══ PRODUCT MOCKUPS ══════════════════════════════════════════════════════
   Hand-built HTML/CSS replicas of real TaskBit screens rather than
   screenshots: they stay sharp at any size, recolour with the theme, and
   weigh nothing.
   ═══════════════════════════════════════════════════════════════════════════ */
.mock {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden; font-size: 12px;
}
.mock-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-bottom: 1px solid var(--border); background: var(--panel-2);
}
.mock-bar b { font-family: var(--display); font-size: 13px; letter-spacing: -.01em; }
.mock-bar .spacer { flex: 1; }
.mock-bar .chip {
  font-size: 10.5px; padding: 4px 9px; border-radius: 99px; background: var(--panel);
  border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
}
.mock-bar .chip.brand { background: var(--primary); border-color: var(--primary); color: #fff; }
.mock-body { padding: 14px; }
.mock-cap { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.6; }

/* Rota grid */
.rota-grid { display: grid; grid-template-columns: 88px repeat(5, 1fr); gap: 5px; }
.rota-grid .rh { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; padding: 4px 2px; }
.rota-grid .rn { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 11.5px; padding: 6px 0; }
.rota-grid .rn i {
  width: 22px; height: 22px; border-radius: 7px; background: var(--grad-brand); color: #fff;
  font-style: normal; font-size: 9px; display: grid; place-items: center; font-weight: 700; flex: none;
}
.rota-cell { min-height: 42px; border-radius: 9px; background: var(--bg); border: 1px dashed var(--border); }
.rota-shift {
  min-height: 42px; border-radius: 9px; padding: 6px 8px; color: #fff; display: grid; align-content: center;
  background: var(--grad-brand); line-height: 1.3;
}
.rota-shift b { font-size: 10.5px; display: block; font-weight: 600; }
.rota-shift span { font-size: 9px; opacity: .84; }
.rota-shift.alt { background: linear-gradient(135deg, #2e6bff, #10cfe0); }
.rota-shift.open {
  background: transparent; border: 1.5px dashed var(--cta); color: var(--cta);
  place-items: center; text-align: center; align-content: center;
}
.rota-shift.conflict { background: linear-gradient(135deg, #ff4d5e, #ff6a3d); }

/* Phone frame */
.phone-frame {
  width: 246px; border-radius: 34px; padding: 10px; background: var(--ink);
  box-shadow: var(--shadow); margin: 0 auto; position: relative;
}
.phone-frame::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .22); z-index: 2;
}
.phone-screen { background: var(--panel); border-radius: 26px; overflow: hidden; padding: 32px 14px 14px; display: grid; gap: 10px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; }
.ph-top b { font-family: var(--display); font-size: 14px; }
.ph-top i {
  font-style: normal; width: 26px; height: 26px; border-radius: 8px; background: var(--primary-50);
  color: var(--primary); display: grid; place-items: center; font-size: 12px;
}
.geo-badge {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px;
  background: var(--ok-soft); color: var(--ok-text); font-size: 11px; font-weight: 600;
}
.geo-badge i { width: 7px; height: 7px; border-radius: 99px; background: var(--ok); flex: none; font-style: normal; }
.clock-btn {
  border-radius: 16px; background: var(--grad-cta); color: #fff; text-align: center;
  padding: 18px 10px; font-family: var(--display); font-size: 17px; letter-spacing: -.01em;
  box-shadow: 0 12px 30px rgba(255, 106, 61, .3);
}
.clock-btn small { display: block; font-family: var(--body); font-size: 10.5px; opacity: .88; font-weight: 500; margin-top: 3px; }
.ph-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 11px;
  border-radius: 12px; background: var(--bg); border: 1px solid var(--border);
}
.ph-row b { font-size: 11.5px; display: block; }
.ph-row span, .ph-row small { color: var(--muted); font-size: 10.5px; }
.ph-tabs { display: flex; justify-content: space-between; padding: 9px 4px 0; border-top: 1px solid var(--border); margin-top: 2px; }
.ph-tabs span { font-size: 8.5px; color: var(--muted); text-align: center; display: grid; gap: 3px; justify-items: center; }
.ph-tabs span i { font-style: normal; font-size: 13px; }
.ph-tabs span.on { color: var(--primary); font-weight: 600; }

/* Data rows — timesheets, compliance, placements, invoices */
.mock-row {
  display: grid; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--bg); margin-bottom: 7px;
}
.mock-row:last-child { margin-bottom: 0; }
.mock-row b { font-size: 12px; font-weight: 600; }
.mock-row small { color: var(--muted); font-size: 10.5px; display: block; margin-top: 2px; }
.mock-row .num { font-family: var(--mono); font-size: 12px; text-align: right; }
.mock-head { display: grid; gap: 10px; padding: 0 12px 7px; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tag { font-size: 10px; padding: 3px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; text-align: center; }
.tag.ok { background: var(--ok-soft); color: var(--ok-text); }
.tag.warn { background: rgba(255, 176, 32, .2); color: #8a5a00; }
.tag.bad { background: rgba(255, 77, 94, .14); color: #c4162a; }
.tag.info { background: var(--primary-50); color: var(--primary-600); }
.dot { width: 9px; height: 9px; border-radius: 99px; flex: none; display: inline-block; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--danger); }

/* Payslip */
.payslip-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.payslip-line span { color: var(--muted); }
.payslip-line b { font-family: var(--mono); font-weight: 500; }
.payslip-line.total { border-bottom: 0; border-top: 2px solid var(--text); margin-top: 8px; padding-top: 12px; }
.payslip-line.total span { color: var(--text); font-weight: 600; }
.payslip-line.total b { font-family: var(--display); font-size: 19px; }
.payslip-line.minus b { color: var(--danger); }

/* Bar chart */
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 118px; padding-top: 8px; }
.mock-chart div { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad-brand); position: relative; min-height: 4px; }
.mock-chart div.over { background: linear-gradient(180deg, #ff6a3d, #ff3d7f); }
.mock-chart div::after {
  content: attr(data-l); position: absolute; bottom: -19px; left: 0; right: 0; text-align: center;
  font-size: 9.5px; color: var(--muted);
}
.mock-legend { display: flex; gap: 18px; margin-top: 28px; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
.mock-legend b { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.mock-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* Pipeline / kanban */
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pipe-col { background: var(--bg); border-radius: 11px; padding: 8px; border: 1px solid var(--border); }
.pipe-col > b { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); display: block; margin-bottom: 7px; }
.pipe-card { background: var(--panel); border: 1px solid var(--border); border-radius: 9px; padding: 8px; margin-bottom: 6px; }
.pipe-card:last-child { margin-bottom: 0; }
.pipe-card b { font-size: 11px; display: block; }
.pipe-card small { font-size: 9.5px; color: var(--muted); }

/* Chat / announcements */
.chat-msg { display: grid; grid-template-columns: 28px 1fr; gap: 9px; margin-bottom: 10px; }
.chat-msg i {
  width: 28px; height: 28px; border-radius: 9px; background: var(--grad-brand); color: #fff;
  font-style: normal; font-size: 9.5px; font-weight: 700; display: grid; place-items: center;
}
.chat-bubble { background: var(--bg); border: 1px solid var(--border); border-radius: 4px 12px 12px 12px; padding: 9px 11px; }
.chat-bubble b { font-size: 11px; display: block; margin-bottom: 3px; }
.chat-bubble p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.chat-msg.me { grid-template-columns: 1fr 28px; }
.chat-msg.me i { order: 2; background: var(--panel-2); color: var(--muted); }
.chat-msg.me .chat-bubble { background: var(--primary-50); border-color: transparent; border-radius: 12px 4px 12px 12px; }

/* Document / e-sign */
.doc-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg); }
.doc-lines { display: grid; gap: 6px; margin: 10px 0 12px; }
.doc-lines i { height: 6px; border-radius: 99px; background: var(--border); display: block; }
.doc-lines i:nth-child(2) { width: 88%; }
.doc-lines i:nth-child(3) { width: 72%; }
.sign-box { border: 1.5px dashed var(--primary); border-radius: 10px; padding: 10px; text-align: center; color: var(--primary); font-size: 10.5px; font-weight: 600; }
.sign-box em { display: block; font-family: var(--display); font-size: 18px; font-style: italic; color: var(--text); margin-bottom: 3px; }

/* Receipt / OCR */
.receipt {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted); line-height: 1.95; transform: rotate(-1.6deg);
}
.receipt b { color: var(--text); }
.ocr-arrow { text-align: center; color: var(--primary); font-size: 20px; line-height: 1; margin: 4px 0; }

/* Leave calendar strip */
.leave-cal { display: grid; grid-template-columns: 94px repeat(10, 1fr); gap: 3px; align-items: center; }
.leave-cal .lh { font-size: 9px; color: var(--muted); text-align: center; }
.leave-cal .ln { font-size: 11px; font-weight: 600; }
.leave-cal .lc { height: 25px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); }
.leave-cal .lc.a { background: var(--grad-brand); border-color: transparent; }
.leave-cal .lc.s { background: rgba(255, 176, 32, .38); border-color: transparent; }
.leave-cal .lc.w { background: var(--panel-2); border-style: dashed; }

/* ── Case-study cards ────────────────────────────────────────────────────── */
.case-card {
  display: block; text-decoration: none; color: inherit; overflow: hidden; padding: 0;
  transition: transform .22s ease, box-shadow .22s ease;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.case-art { height: 136px; background: var(--grad-aurora); display: grid; place-items: center; }
.case-art b { font-family: var(--display); font-size: 25px; color: #fff; letter-spacing: -.02em; }
.case-inner { padding: 22px 24px 26px; }
.case-inner h3 { margin-bottom: 8px; }
.case-stat { display: flex; gap: 24px; margin-top: 18px; }
.case-stat div strong { font-family: var(--display); font-size: 21px; color: var(--primary); display: block; }
.case-stat div span { font-size: 11.5px; color: var(--muted); }

/* ── Integrations ────────────────────────────────────────────────────────── */
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.int-card { display: block; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.int-card i {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 10px;
  background: var(--panel-2); font-style: normal; font-weight: 700; font-size: 13px; color: var(--text);
}
.int-card b { font-size: 14.5px; display: block; margin-bottom: 3px; }
.int-card span { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: block; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band { padding: 86px 0; }
.cta-band .cta-box { max-width: 880px; margin: 0 auto; }

/* ── Footer sitemap ──────────────────────────────────────────────────────── */
.footer-main.wide { grid-template-columns: 1.5fr repeat(4, 1fr); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .split, .grid-3, .grid-4, .int-grid, .metrics { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 40px; }
  .split.flip .split-copy { order: 0; }
  .footer-main.wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page-hero { padding: 110px 0 42px; }
  .grid-2, .grid-3, .grid-4, .int-grid, .split, .form-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 24px; }
  .split + .split { margin-top: 62px; }
  .pipe { grid-template-columns: 1fr 1fr; }
  .rota-grid { grid-template-columns: 64px repeat(5, 1fr); }
  .rota-grid .rn i { display: none; }
  .rota-shift span { display: none; }
  .leave-cal { grid-template-columns: 72px repeat(10, 1fr); }
  .form-card { padding: 24px; }
  .footer-main.wide { grid-template-columns: 1fr; }
  /* Dropdowns flatten into the mobile drawer. */
  .dropdown {
    position: static; transform: none; min-width: 0; grid-template-columns: 1fr;
    box-shadow: none; border: 0; padding: 0 0 6px 12px; opacity: 1; visibility: visible; background: transparent;
  }
  .nav-links .has-menu > button { display: none; }
  .dropdown a { grid-template-columns: 1fr; padding: 8px 0; }
  .dropdown a i, .dropdown a em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .case-card, .dropdown { transition: none; }
}

/* The band under the hero links to each sector page. It reads as a quiet strip
   rather than a nav bar, so the affordance is a hover state, not an underline. */
a.client-logo { text-decoration: none; transition: opacity .18s ease, color .18s ease; }
a.client-logo:hover { opacity: 1; color: var(--primary); }
@media (prefers-reduced-motion: reduce) { a.client-logo { transition: none; } }
