/* Services, hire, skills, work gallery, case studies and demos. Shares the tokens in site.css. */

.page-intro { padding-bottom: 48px; }
.page-intro h1 { font-size: clamp(36px, 3.8vw, 56px); font-weight: 650; line-height: 1.07; letter-spacing: -.055em; margin: 0 0 18px; max-width: 900px; text-wrap: balance; }
.page-intro .lead { max-width: 760px; }
.page-intro .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.footer-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font: 550 13px/1.5 var(--sans); color: var(--teal); }
.footer-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-control); border-radius: 9px; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--sans); }
.field select:focus { outline: 3px solid rgba(23,75,255,.25); border-color: var(--action); }
.hire-points { margin-top: 26px; }
.hire-hero h1 span { font-size: .82em; }

/* Home service index */
.service-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service-index a { display: grid; align-content: start; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .16s, box-shadow .16s; }
.service-index a:hover { border-color: var(--action); box-shadow: 0 6px 20px rgba(16,24,40,.06); }
.service-index strong { font: 620 16.5px/1.3 var(--sans); letter-spacing: -.02em; }
.service-index span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.service-index em { font: 600 12px/1.4 var(--sans); font-style: normal; color: var(--action); }

/* Services */
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.offer-card { display: grid; align-content: start; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; scroll-margin-top: 90px; }
.offer-card:target { border-color: var(--action); box-shadow: 0 0 0 3px rgba(23,75,255,.12); }
.offer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.offer-top h3 { font-size: 21px; font-weight: 640; letter-spacing: -.03em; margin: 0; }
.offer-length { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--surface-muted); font: 600 12px/1.4 var(--sans); color: var(--muted); }
.offer-for { font: 550 14.5px/1.55 var(--sans); color: var(--ink-2); }
.offer-card > p:not(.offer-for):not(.offer-proof) { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.offer-card .checklist { gap: 8px; }
.offer-card .checklist li { font-size: 14.5px; }
.offer-proof { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.offer-proof span { font: 600 12px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin-right: 6px; }
.offer-proof a { color: var(--action); text-decoration: none; font-weight: 550; }
.offer-proof a:hover { text-decoration: underline; }

/* Engagements */
.engagements { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.engagement { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface-subtle); display: grid; align-content: start; gap: 10px; }
.engagement h3 { font-size: 18px; font-weight: 640; letter-spacing: -.025em; margin: 0; }
.engagement p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.engagement .engagement-line { color: var(--ink-2); font-weight: 550; }
.engagement-best { padding-top: 10px; border-top: 1px solid var(--line); }
.engagement-best strong { display: block; font: 600 11.5px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }

/* Process */
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; background: #fff; }
.process-steps li { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-steps li:nth-child(3n) { border-right: 0; }
.process-steps li:nth-last-child(-n+3) { border-bottom: 0; }
.step-no { font: 650 13px/1 var(--mono); color: var(--action); }
.process-steps h3 { margin: 10px 0 8px; font-size: 18px; font-weight: 640; letter-spacing: -.025em; }
.process-steps p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* Skills */
.skill-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.skill-area { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; }
.skill-area h3 { margin: 0 0 14px; font-size: 18px; font-weight: 640; letter-spacing: -.025em; }
.skill-area .chips { padding: 0; margin-bottom: 14px; }
.stack-matrix { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-2); }
.stack-matrix table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stack-matrix th, .stack-matrix td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.stack-matrix th { background: var(--surface-subtle); font: 600 12.5px/1.5 var(--sans); color: var(--muted); }
.stack-matrix td a { color: var(--ink); font-weight: 600; text-decoration: none; }
.stack-matrix td a:hover { color: var(--action); }

/* Work gallery */
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.work-filters button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-control); border-radius: 999px; background: #fff; color: var(--ink-2); font: 550 14px/1.3 var(--sans); cursor: pointer; }
.work-filters button span { color: var(--faint); margin-left: 4px; font-weight: 500; }
.work-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.work-filters button[aria-pressed="true"] span { color: #d0d5dd; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; overflow: hidden; min-width: 0; }
.work-card[hidden] { display: none; }
.work-card .work-media { aspect-ratio: 16 / 10; background: var(--surface-subtle); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.work-card .work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-card .work-media .monogram { font: 700 34px/1 var(--sans); letter-spacing: -.05em; color: var(--action); opacity: .85; }
.work-body { padding: 20px; display: grid; align-content: start; gap: 10px; }
.work-body h3 { margin: 0; font-size: 18px; font-weight: 640; letter-spacing: -.025em; }
.work-body h3 a { color: inherit; text-decoration: none; }
.work-body h3 a:hover { color: var(--action); }
.work-body p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.work-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.work-meta .tag { padding: 3px 8px; border-radius: 6px; background: var(--surface-muted); font: 550 12px/1.4 var(--sans); color: var(--muted); }
.work-meta .tag.ai { background: #eef2ff; color: var(--action); }
.work-meta .tag.status { background: #ecfdf3; color: #067647; }
.work-meta .tag.status.dev { background: #fff6ed; color: var(--amber); }
.work-body ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.work-body .text-link { min-height: 0; }

.featured-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Case studies */
.case-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.case-hero h1 { font-size: clamp(36px, 3.8vw, 54px); font-weight: 650; line-height: 1.07; letter-spacing: -.055em; margin: 0 0 18px; }
.case-hero figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; background: var(--surface-subtle); }
.case-hero figure img { width: 100%; height: auto; display: block; }
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-2); margin: 28px 0 0; }
.case-facts > div { padding: 14px 16px; min-width: 0; }
.case-facts > div + div { border-left: 1px solid var(--line); }
.case-facts dt { font: 500 12px/1.4 var(--sans); color: var(--faint); }
.case-facts dd { margin: 4px 0 0; font: 620 15px/1.35 var(--sans); color: var(--ink); }
.case-section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
.case-section > h2 { font-size: 26px; font-weight: 630; letter-spacing: -.04em; margin: 0; position: sticky; top: 96px; align-self: start; }
.case-section .prose p + p { margin-top: 14px; }
.case-section .prose p, .case-section li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.case-list li { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; }
.case-list li strong { display: block; color: var(--ink); margin-bottom: 4px; font-weight: 620; }
.case-list li { font-size: 15px !important; color: var(--muted) !important; }
.arch { display: grid; gap: 12px; }
.arch-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.arch-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; color: var(--muted); }
.arch-box strong { display: block; color: var(--ink); font-weight: 620; font-size: 14.5px; margin-bottom: 2px; }
.arch-box strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--dot, #98a2b3); }
.arch-row.layer-ui { --dot: var(--action); }
.arch-row.layer-core { --dot: var(--violet); }
.arch-row.layer-models { --dot: var(--teal); }
.arch-row.layer-data { --dot: #98a2b3; }
.arch-label { font: 600 11.5px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-top: 6px; }
.case-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-shots figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; background: var(--surface-subtle); }
.case-shots img { width: 100%; height: auto; display: block; }
.case-shots figcaption { padding: 12px 14px; font-size: 13.5px; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.case-cta { padding: 28px; border-radius: var(--radius-2); background: var(--surface-subtle); border: 1px solid var(--line); }
.case-cta h3 { margin: 0 0 12px; font-size: 20px; font-weight: 640; letter-spacing: -.03em; }
.case-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Demos */
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.demo-card { display: grid; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; }
.demo-card h3 { margin: 0; font-size: 21px; font-weight: 640; letter-spacing: -.03em; }
.demo-card p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.demo-card .button { justify-self: start; }

@media (max-width: 1100px) {
  .engagements { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .work-grid, .featured-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-hero { grid-template-columns: 1fr; }
  .case-section { grid-template-columns: 1fr; gap: 18px; }
  .case-section > h2 { position: static; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps li { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .process-steps li:nth-child(2n) { border-right: 0 !important; }
  .process-steps li:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
@media (max-width: 760px) {
  .offer-grid, .skill-areas, .demo-grid, .case-list, .case-shots { grid-template-columns: 1fr; }
  .engagements { grid-template-columns: 1fr; }
  .work-grid, .featured-work, .service-index { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps li { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .process-steps li:last-child { border-bottom: 0 !important; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-facts > div:nth-child(3) { border-left: 0; }
  .case-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .arch-row { grid-auto-flow: row; }
  .offer-top { flex-direction: column; gap: 8px; }
}

/* Demo apps */
.demo-note { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); font-size: 14px; color: var(--muted); max-width: 760px; }
.demo-app { border: 1px solid var(--line); border-radius: var(--radius-3); background: #fff; padding: 22px; box-shadow: 0 10px 30px rgba(16,24,40,.05); }
.demo-app h4 { margin: 0 0 10px; font: 650 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.demo-app h5 { margin: 12px 0 6px; font: 650 13px/1.4 var(--sans); color: var(--ink); }
.demo-app textarea, .demo-app input[type=text], .demo-app select { width: 100%; padding: 10px 12px; border: 1px solid var(--line-control); border-radius: 9px; font: 400 15px/1.5 var(--sans); color: var(--ink); background: #fff; }
.demo-app select { width: auto; padding: 6px 10px; }
.demo-app textarea:focus, .demo-app input:focus, .demo-app select:focus { outline: 3px solid rgba(23,75,255,.25); border-color: var(--action); }
.demo-label { display: block; margin-bottom: 8px; font: 600 14px/1.4 var(--sans); color: var(--ink); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip-btn { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-control); border-radius: 999px; background: var(--surface-subtle); color: var(--ink-2); font: 500 13.5px/1.3 var(--sans); cursor: pointer; text-align: left; }
.chip-btn:hover { border-color: var(--action); color: var(--action); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.demo-output { margin-top: 16px; min-height: 40px; }
.demo-output:empty { display: none; }
.demo-badge { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px 10px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.demo-badge.live { background: #ecfdf3; color: #067647; }
.demo-badge.sample { background: #fff6ed; color: var(--amber); }
.demo-receipt { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); font: 500 12.5px/1.6 var(--mono); color: var(--faint); }
.demo-busy { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.demo-busy i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-control); border-top-color: var(--action); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .demo-busy i { animation: none; } }
.demo-empty { padding: 14px; border: 1px dashed var(--line-control); border-radius: 10px; color: var(--muted); font-size: 14px; }
.approve-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.approve-row p { margin: 0; }

.crm-totals { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.crm-totals > div { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 150px; }
.crm-totals span { display: block; font-size: 12px; color: var(--faint); }
.crm-totals strong { font: 650 19px/1.2 var(--sans); letter-spacing: -.03em; }
.crm-board { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.crm-col { background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; align-content: start; gap: 8px; min-height: 140px; }
.crm-col.over { border-color: var(--action); background: #eef2ff; }
.crm-col header { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.crm-col header span { color: var(--faint); font-size: 12px; }
.crm-card { display: grid; gap: 3px; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.crm-card strong { font-size: 13.5px; }
.crm-card span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.crm-card em { font-style: normal; font-size: 12px; color: var(--action); font-weight: 600; }
.crm-card.selected { border-color: var(--action); box-shadow: 0 0 0 2px rgba(23,75,255,.15); }
.crm-detail { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.crm-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.crm-head h3 { margin: 4px 0; font-size: 20px; font-weight: 640; letter-spacing: -.03em; }
.crm-meta { display: grid; gap: 6px; justify-items: end; font-size: 13.5px; color: var(--muted); }
.crm-meta strong { font: 650 22px/1.2 var(--sans); color: var(--ink); }
.crm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.crm-notes { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 16px; }
.crm-activity { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.crm-activity time { font-weight: 600; color: var(--ink); }
.score-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
.score { display: grid; place-items: center; align-content: center; height: 110px; border-radius: 12px; background: var(--surface-subtle); border: 1px solid var(--line); }
.score strong { font: 700 38px/1 var(--sans); letter-spacing: -.05em; }
.score.hot strong { color: #c4320a; } .score.warm strong { color: var(--amber); } .score.cool strong, .score.cold strong { color: var(--action); }
.demo-output ul, .demo-output ol { padding-left: 18px; font-size: 14.5px; color: var(--ink-2); display: grid; gap: 4px; margin: 0; }
.demo-output p { font-size: 14.5px; color: var(--ink-2); margin: 8px 0; }
.out-headline { font-weight: 650; color: var(--ink) !important; font-size: 16px !important; }
.out-actions li { display: grid; gap: 2px; }
.out-actions span { font-size: 13px; color: var(--faint); }

.harness { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
.harness-side { border-right: 1px solid var(--line); padding-right: 20px; }
.harness-side h4 + ul { margin-bottom: 18px; }
.mini-table { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mini-table li { display: grid; font-size: 13px; }
.mini-table span { color: var(--faint); font-size: 12px; }
.mini-list { padding-left: 18px; font-size: 13px; color: var(--ink-2); margin: 0; }
.harness-main > .button { margin-top: 4px; }
.trace { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 8px !important; }
.trace-say p { white-space: pre-line; margin: 0; padding: 8px 12px; background: #f5f3ff; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.trace-tool details { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.trace-tool.failed details { border-color: #fdb022; background: #fffaeb; }
.trace-tool summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 9px 12px; font-size: 13.5px; }
.trace-tool code { font: 600 13px/1.4 var(--mono); color: var(--teal); }
.trace-hint { color: var(--muted); }
.trace-io { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 12px; }
.trace-io pre { margin: 0; padding: 10px; background: var(--surface-subtle); border-radius: 6px; font: 12px/1.5 var(--mono); overflow-x: auto; max-height: 260px; }
.quote-doc { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.quote-doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.quote-doc th, .quote-doc td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.quote-doc th:not(:first-child), .quote-doc td:not(:first-child) { text-align: right; }
.quote-doc tr.sum td { font-weight: 600; }
.quote-doc tr.sum:last-child td { font-size: 15.5px; border-bottom: 0; }

.qa { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
.qa-docs details { border-bottom: 1px solid var(--line-soft); padding: 8px 0; }
.qa-docs summary { cursor: pointer; font: 600 14px/1.5 var(--sans); }
.qa-docs details p { font-size: 13px; color: var(--muted); white-space: pre-line; margin: 8px 0 0; }
.qa-form { display: flex; gap: 8px; }
.qa-answer { font-size: 16px !important; line-height: 1.7; color: var(--ink) !important; }
.qa-answer sup a { color: var(--action); text-decoration: none; font-weight: 600; margin-left: 1px; }
.qa-sources li { font-size: 13.5px; }
.qa-sources blockquote { margin: 4px 0 8px; padding: 8px 10px; background: var(--surface-subtle); border-radius: 6px; color: var(--muted); }

.workflow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; }
.workflow-in .button { margin-top: 12px; }
.wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wf-grid section { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.wf-reply { grid-column: 1 / -1; }
.wf-dl { margin: 0; display: grid; gap: 6px; }
.wf-dl dt { font-size: 12px; color: var(--faint); }
.wf-dl dd { margin: 0; font-size: 14px; color: var(--ink); }
.wf-review { margin-top: 10px; padding: 10px 12px; background: #fffaeb; border-radius: 8px; font-size: 13.5px; }

@media (max-width: 980px) {
  .harness, .qa, .workflow, .crm-cols { grid-template-columns: 1fr; }
  .harness-side { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
}
@media (max-width: 760px) {
  .demo-app { padding: 14px; }
  .wf-grid, .trace-io { grid-template-columns: 1fr; }
  .score-card { grid-template-columns: 1fr; }
  .crm-meta { justify-items: start; }
  .crm-board { grid-template-columns: repeat(5, minmax(200px, 1fr)); }
}

.case-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.case-figures > div { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.case-figures dt { font: 680 30px/1.1 var(--sans); letter-spacing: -.045em; color: var(--ink); }
.case-figures dd { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.case-hero figure img { max-height: 560px; object-fit: contain; }
@media (max-width: 760px) { .case-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-figures dt { font-size: 24px; } }
.result-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; box-shadow: 0 10px 30px rgba(16,24,40,.06); overflow-x: auto; }
.result-panel table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.result-panel th, .result-panel td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: bottom; }
.result-panel th { font: 620 13px/1.3 var(--sans); color: var(--ink); }
.result-panel th span { font-weight: 450; color: var(--faint); font-size: 12px; }
.result-panel td:not(:first-child) { font: 600 14px/1.3 var(--mono); color: #067647; white-space: nowrap; }
.result-panel tr.sum td { border-bottom: 0; font-weight: 700; color: var(--ink); }
.result-panel tr.sum td:not(:first-child) { color: #067647; }
.result-panel tr.cost td { border-bottom: 0; color: var(--muted) !important; font-family: var(--sans) !important; font-weight: 550; white-space: normal; }
.result-panel tr.sum td { border-bottom: 1px solid var(--line-soft); }
.work-stack { font: 500 12.5px/1.5 var(--sans) !important; color: var(--faint) !important; }
@media (max-width: 980px) { .case-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .case-index { grid-template-columns: 1fr; } }

/* Pitch page */
.pitch-intro h1 { max-width: 980px; }
.harness-diagram { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-3); background: var(--surface-subtle); }
.hd-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hd-row span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 550 13.5px/1.3 var(--sans); color: var(--ink-2); }
.hd-row.models span { color: var(--teal); }
.hd-core { padding: 18px; border-radius: 12px; background: var(--ink); color: #fff; text-align: center; }
.hd-core strong { font: 650 18px/1.3 var(--sans); }
.hd-core ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13.5px; color: #d0d5dd; text-align: left; }
.hd-core li::before { content: "•"; color: #7a9cff; margin-right: 6px; }
.adv-group + .adv-group { margin-top: 34px; }
.adv-group h3 { margin: 0 0 14px; font: 650 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--action); }
.adv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.adv { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; display: grid; align-content: start; gap: 8px; }
.adv h4 { margin: 0; font: 640 16.5px/1.35 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.adv p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.adv-proof { padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13.5px !important; color: var(--teal) !important; }
.adv-proof a { color: var(--action); font-weight: 600; text-decoration: none; }
.cost-headline { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 18px; padding: 24px; margin-bottom: 22px; border-radius: var(--radius-3); background: var(--ink); color: #fff; }
.cost-headline span { display: block; font-size: 13.5px; color: #d0d5dd; }
.cost-headline strong { display: block; font: 700 clamp(28px, 3.2vw, 44px)/1.1 var(--sans); letter-spacing: -.05em; margin: 6px 0 2px; }
.cost-headline em { font-style: normal; font-size: 13px; color: #98a2b3; }
.cost-headline .std { color: #fda29b; }
.cost-headline .cus { color: #75e0a7; }
.cost-headline .arrow { font-size: 28px; color: #667085; }
.cost-headline .big-save { padding: 14px 18px; border-radius: 12px; background: rgba(117,224,167,.12); text-align: center; }
.cost-headline .big-save strong { color: #75e0a7; }
.price-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; }
.price-table, .compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.price-table th, .price-table td, .compare-table th, .compare-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); text-align: right; vertical-align: middle; }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table thead th, .compare-table thead th { background: var(--surface-subtle); font: 620 12.5px/1.35 var(--sans); color: var(--ink); }
.price-table thead th span { font-weight: 450; color: var(--faint); }
.price-table td strong { display: block; color: var(--ink); font-weight: 620; }
.price-table td:first-child span { font-size: 12.5px; color: var(--faint); }
.price-table td { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.price-table td:first-child { font-family: var(--sans); }
.price-table td.std { color: #b42318; }
.price-table td.cus { color: #067647; font-weight: 650; }
.price-table td.save { color: #067647; font-weight: 700; }
.assumptions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 12px; }
.assumptions > div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface-subtle); }
.assumptions h4 { margin: 0 0 8px; font: 640 15px/1.35 var(--sans); }
.assumptions p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.calc { margin-top: 26px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-3); background: #fff; box-shadow: 0 10px 30px rgba(16,24,40,.05); }
.calc h3 { margin: 0 0 16px; font: 650 20px/1.3 var(--sans); letter-spacing: -.03em; }
.calc-grid { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 14px; }
.calc label { display: grid; gap: 6px; font: 600 13.5px/1.4 var(--sans); color: var(--ink); }
.calc input, .calc select { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-control); border-radius: 9px; font: 400 15px/1.4 var(--sans); color: var(--ink); background: #fff; }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.calc-out > div { padding: 16px; border-radius: 10px; background: var(--surface-subtle); }
.calc-out span { display: block; font-size: 13px; color: var(--muted); }
.calc-out strong { font: 700 26px/1.2 var(--sans); letter-spacing: -.04em; }
#calc-std-out { color: #b42318; } #calc-cus-out { color: #067647; } #calc-save-out { color: var(--action); }
.compare-table th, .compare-table td { text-align: left; }
.compare-table tbody th { font-weight: 620; color: var(--ink); background: #fff; width: 22%; }
.compare-table td { color: var(--muted); }
.compare-table td.win { color: var(--ink); font-weight: 600; background: #f6fef9; }
@media (max-width: 980px) {
  .adv-grid, .assumptions { grid-template-columns: 1fr 1fr; }
  .cost-headline { grid-template-columns: 1fr; text-align: center; }
  .cost-headline .arrow { transform: rotate(90deg); }
  .calc-grid, .calc-out { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .adv-grid, .assumptions { grid-template-columns: 1fr; } .hd-core ul { grid-template-columns: 1fr; } }

/* Demo upgrades: flows, meters, deal room, documents */
.flow { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: none; }
.flow-node { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 550 13px/1.3 var(--sans); color: var(--faint); transition: background .25s, border-color .25s, color .25s; }
.flow-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-muted); font: 650 11.5px/1 var(--mono); color: var(--faint); transition: background .25s, color .25s; }
.flow-node.active { border-color: var(--action); color: var(--action); background: #eef2ff; }
.flow-node.active .flow-dot { background: var(--action); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
.flow-node.done { color: #067647; border-color: #abefc6; background: #f6fef9; }
.flow-node.done .flow-dot { background: #12b76a; color: #fff; }
.flow-node.fail { color: #b42318; border-color: #fecdca; background: #fef3f2; }
.flow-node.fail .flow-dot { background: #f04438; color: #fff; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(23,75,255,.15); } }
.meter { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 6px 0 14px; }
.meter > div { background: #fff; padding: 8px 10px; }
.meter span { display: block; font-size: 11.5px; color: var(--faint); }
.meter strong { font: 650 15px/1.3 var(--mono); color: var(--ink); }
.enter { animation: enter .35s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .enter, .flow-node.active .flow-dot { animation: none; } }

.crm-card em b.mini-score { margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-style: normal; color: #fff; background: var(--action); }
.mini-score.hot { background: #d92d20 !important; } .mini-score.warm { background: #dc6803 !important; }
.deal-room { margin-top: 18px; }
.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.room-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; animation: enter .4s ease-out both; }
.room-card h5 { margin: 0 0 8px; font: 650 12.5px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.room-card h6 { margin: 10px 0 4px; font: 650 13px/1.4 var(--sans); color: var(--ink); }
.room-card.score-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: start; }
.gauge-wrap { position: relative; width: 120px; height: 120px; }
.gauge { width: 120px; height: 120px; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--surface-muted); stroke-width: 10; }
.gauge-arc { fill: none; stroke: var(--action); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.gauge.hot .gauge-arc { stroke: #d92d20; } .gauge.warm .gauge-arc { stroke: #dc6803; }
.gauge-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-label strong { font: 700 34px/1 var(--sans); letter-spacing: -.05em; }
.gauge-label span { font-size: 12px; color: var(--muted); }
.room-card ul.pros li::marker { content: "+  "; color: #12b76a; font-weight: 700; }
.room-card ul.cons li::marker { content: "−  "; color: #d92d20; font-weight: 700; }
.risk { padding: 8px 10px; border-radius: 8px; background: #fffaeb; font-size: 13.5px !important; }
.brief-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.open-q { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--surface-subtle); }
.room-card.mail { padding: 0; overflow: hidden; }
.mail-head { padding: 12px 16px; background: var(--surface-subtle); border-bottom: 1px solid var(--line); display: grid; gap: 4px; font-size: 13.5px; }
.mail-head span { display: inline-block; width: 62px; color: var(--faint); }
.out-email-body { padding: 14px 16px; white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); min-height: 120px; }
.room-card.mail > p, .room-card.mail > .approve-row { padding: 0 16px; }
.room-card.mail > .approve-row { padding-bottom: 16px; }
.out-actions { list-style: none; padding: 0 !important; display: grid; gap: 10px !important; }
.out-actions label { display: flex; gap: 8px; align-items: baseline; }
.out-actions li > span { padding-left: 24px; font-size: 13px; color: var(--faint); }
.due { padding: 1px 7px; border-radius: 6px; background: #eef2ff; color: var(--action); font-weight: 600; }
.stage-tip { margin-top: 12px !important; padding: 8px 10px; border-radius: 8px; background: #f6fef9; color: #067647 !important; font-size: 13.5px !important; }
.action-log { list-style: none; margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--ink); color: #d0d5dd; font: 12.5px/1.7 var(--mono); width: 100%; }
.action-log time { color: #75e0a7; margin-right: 6px; }
.action-log .note { color: #98a2b3; }
.action-log li { animation: enter .3s ease-out both; }

.why-cheap { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--surface-subtle); border: 1px solid var(--line); }
.why-cheap h5 { margin: 0 0 10px; }
.quote-doc { margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(16,24,40,.06); }
.quote-doc header { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--ink); }
.quote-doc header strong { display: block; font: 700 16px/1.3 var(--sans); }
.quote-doc header span { font-size: 12px; color: var(--faint); }
.qd-id { text-align: right; }
.qd-to { font-size: 14px !important; }
.qd-note { margin-top: 12px !important; padding: 10px 12px; border-radius: 8px; background: var(--surface-subtle); font-size: 14px !important; }

.cite { margin: 0 2px 0 1px; padding: 0 6px; border: 0; border-radius: 6px; background: #eef2ff; color: var(--action); font: 650 11.5px/1.6 var(--mono); cursor: pointer; vertical-align: 2px; }
.cite:hover { background: var(--action); color: #fff; }
.link-btn { border: 0; background: none; padding: 0; color: var(--action); font: 600 13.5px/1.4 var(--sans); cursor: pointer; text-decoration: underline; }
.verify-line { padding: 8px 10px; border-radius: 8px; background: #f6fef9; color: #067647 !important; font-size: 13.5px !important; }
.qa-docs details.cited { background: #fffdf0; border-radius: 8px; padding-left: 8px; }
.qa-docs mark { background: #fde68a; color: var(--ink); padding: 1px 2px; border-radius: 3px; }
.qa-docs { max-height: 640px; overflow: auto; }

.wf-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wf-card h4 { display: flex; align-items: center; gap: 8px; }
.urgency { padding: 1px 8px; border-radius: 999px; font: 650 11.5px/1.6 var(--sans); text-transform: none; letter-spacing: 0; }
.urgency.high { background: #fef3f2; color: #b42318; } .urgency.medium { background: #fffaeb; color: #b54708; } .urgency.low { background: #f6fef9; color: #067647; }
@media (max-width: 980px) { .room-grid { grid-template-columns: 1fr; } .meter { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .room-card.score-card, .brief-cols { grid-template-columns: 1fr; } .meter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-table tr.group th { text-align: left; background: var(--ink); color: #fff; font: 650 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 8px 14px; }
.price-table td { padding-top: 9px; padding-bottom: 9px; }

/* Replays */
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.rp-head strong { display: block; font: 650 16px/1.4 var(--sans); }
.rp-head span { font-size: 13.5px; color: var(--muted); }
.rp-label { margin: 22px 0 10px; }
.rp-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; min-height: 340px; }
.rp-chat { display: grid; align-content: start; gap: 10px; }
.rp-msg { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.rp-msg > span { display: block; font: 650 11.5px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 6px; }
.rp-msg.user { background: #eef2ff; border-color: #c7d4ff; }
.rp-msg.user p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.6; }
.rp-calls { display: flex; flex-wrap: wrap; gap: 5px; min-height: 26px; }
.rp-call { padding: 2px 7px; border-radius: 6px; background: #ecfdf3; color: #067647; font: 600 12px/1.6 var(--mono); animation: enter .25s ease-out both; }
.rp-dot { width: 10px; height: 10px; margin: 6px 1px; border-radius: 3px; background: #12b76a; opacity: .75; animation: enter .2s ease-out both; }
.rp-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.rp-strip span { display: block; font-size: 11px; color: var(--faint); }
.rp-strip strong { font: 650 14px/1.3 var(--mono); }
.rp-result { margin: 10px 0 0 !important; font-size: 13px !important; color: var(--muted) !important; }
.rp-preview { display: grid; place-items: center; border: 1px dashed var(--line-control); border-radius: 12px; background: var(--surface-subtle); padding: 12px; }
.rp-file { margin: 0; width: 100%; }
.rp-file img { width: 100%; height: auto; max-height: 360px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.rp-file figcaption { display: grid; gap: 4px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.rp-file figcaption strong { font: 650 15px/1.3 var(--mono); color: var(--ink); }
.rp-file figcaption em { font-style: normal; color: #067647; font-weight: 600; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.rp-tile { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.rp-tile img { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; background: var(--surface-subtle); }
.rp-tile strong { font-size: 12.5px; line-height: 1.3; }
.rp-tile span { font: 500 11.5px/1.3 var(--mono); color: var(--faint); }
.rp-tile.on { border-color: var(--action); box-shadow: 0 0 0 2px rgba(23,75,255,.15); }
.rp-tile.done span::after { content: " ✓"; color: #12b76a; font-weight: 700; }

.rp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rp-tabs button, .rp-sides button { display: grid; gap: 2px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.rp-tabs button[aria-selected="true"], .rp-sides button[aria-pressed="true"] { border-color: var(--action); background: #eef2ff; }
.rp-tabs strong { font-size: 14px; } .rp-tabs span { font-size: 13px; color: var(--muted); line-height: 1.4; } .rp-tabs em { font-style: normal; font-size: 12px; color: var(--action); font-weight: 600; }
.rp-sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.rp-sides strong { font-size: 13.5px; } .rp-sides span { font-size: 12.5px; color: var(--muted); }
.rp-spec summary { cursor: pointer; font: 600 14px/1.5 var(--sans); color: var(--action); padding: 6px 0; }
.rp-spec pre { white-space: pre-wrap; margin: 6px 0 0; padding: 14px; border-radius: 10px; background: var(--surface-subtle); border: 1px solid var(--line); font: 12.5px/1.6 var(--mono); color: var(--ink-2); max-height: 320px; overflow: auto; }
.rp-runbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0; }
.rp-board { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.rp-empty { grid-column: 1 / -1; padding: 16px; border: 1px dashed var(--line-control); border-radius: 10px; color: var(--muted); font-size: 14.5px; }
.rp-console { padding: 14px; border-radius: 12px; background: var(--ink); color: #d0d5dd; font: 12.5px/1.7 var(--mono); }
.rp-boot p { margin: 0; color: #98a2b3; }
.rp-checks { list-style: none; margin: 8px 0 0; padding: 0; max-height: 380px; overflow: auto; }
.rp-checks li { display: flex; gap: 8px; }
.rp-checks li.pass b { color: #75e0a7; } .rp-checks li.fail { color: #fda29b; } .rp-checks li.fail b { color: #f97066; }
.rp-summary { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rp-summary > div:first-child span { display: block; font-size: 13px; color: var(--muted); }
.rp-score { font: 700 40px/1.1 var(--sans); letter-spacing: -.05em; }
.rp-score.all { color: #067647; } .rp-score.some { color: #b54708; }
.rp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rp-stats > div { padding: 8px 10px; border-radius: 8px; background: var(--surface-subtle); }
.rp-stats strong { display: block; font: 650 15px/1.3 var(--mono); } .rp-stats span { font-size: 12px; color: var(--faint); }
.rp-note { grid-column: 1 / -1; padding: 10px 12px; border-radius: 8px; background: #fffaeb; font-size: 14px !important; color: var(--ink-2) !important; }
.rp-table td { white-space: nowrap; }
@media (max-width: 980px) { .rp-stage, .rp-board { grid-template-columns: 1fr; } .rp-tabs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .rp-sides, .rp-tabs { grid-template-columns: 1fr; } .rp-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.work-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* The action log stays hidden until approval (the demo-output list rule would otherwise show it). */
.action-log[hidden] { display: none !important; }
.demo-badge { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .room-card, .rp-call, .rp-dot, .action-log li, .gauge-arc { animation: none; transition: none; } }

/* Key pages polish: proof strips, case cards, compact catalogue, service rows, demo previews */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wide-stats { max-width: none; margin-top: 34px; }
.section.tight-top { padding-top: 0; border-top: 0; }

.case-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; overflow: hidden; transition: border-color .16s, box-shadow .16s; }
.case-card:hover { border-color: var(--action); box-shadow: 0 10px 28px rgba(16,24,40,.08); }
.case-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-subtle); border-bottom: 1px solid var(--line); overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.case-body { display: grid; align-content: start; gap: 8px; padding: 20px; }
.case-body h3 { margin: 0; font: 650 20px/1.25 var(--sans); letter-spacing: -.03em; }
.case-body h3 a { color: inherit; text-decoration: none; }
.case-body h3 a:hover { color: var(--action); }
.case-result { display: inline-block; justify-self: start; padding: 4px 10px; border-radius: 8px; background: #ecfdf3; color: #067647; font: 650 13.5px/1.5 var(--sans); }
.case-body > p:not(.case-result) { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.work-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.work-search { flex: 1 1 320px; }
.work-search input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-control); border-radius: 10px; font: 400 15.5px/1.4 var(--sans); color: var(--ink); background: #fff; }
.work-search input:focus { outline: 3px solid rgba(23,75,255,.25); border-color: var(--action); }
.work-count { font: 600 14px/1.4 var(--sans); color: var(--muted); }
.work-empty { padding: 18px; border: 1px dashed var(--line-control); border-radius: 10px; color: var(--muted); }
.mini-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.work-card.mini .work-body { padding: 14px; gap: 7px; }
.work-card.mini h3 { font-size: 16px; }
.work-card.mini p { font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work-card.mini .work-stack { -webkit-line-clamp: 1; }
.work-card.mini .work-meta .tag { font-size: 11.5px; padding: 2px 7px; }
.work-card.mini .text-link { font-size: 13px; }
.work-card.mini .monogram { font-size: 26px; }

.start-here { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.start-here a { display: grid; align-content: start; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface-subtle); text-decoration: none; color: var(--ink); transition: border-color .16s, background .16s; }
.start-here a:hover { border-color: var(--action); background: #fff; }
.start-here strong { font: 650 17px/1.3 var(--sans); letter-spacing: -.02em; }
.start-here span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.start-here em { font: 600 13px/1.4 var(--sans); font-style: normal; color: var(--action); }

.service-rows { display: grid; gap: 22px; }
.service-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-3); background: #fff; scroll-margin-top: 90px; }
.service-row:target { border-color: var(--action); box-shadow: 0 0 0 3px rgba(23,75,255,.12); }
.service-copy { display: grid; align-content: start; gap: 12px; }
.service-head { display: flex; align-items: center; gap: 10px; }
.service-copy h3 { margin: 0; font: 650 26px/1.2 var(--sans); letter-spacing: -.04em; }
.service-copy h4 { margin: 6px 0 0; font: 650 12.5px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.service-copy > p:not(.offer-for) { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.service-copy .checklist { gap: 8px; }
.service-copy .checklist li { font-size: 14.5px; }
.service-proof { display: grid; grid-template-rows: auto 1fr; align-self: start; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface-subtle); transition: border-color .16s, box-shadow .16s; }
.service-proof:hover { border-color: var(--action); box-shadow: 0 10px 28px rgba(16,24,40,.08); }
.service-proof img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: top left; display: block; border-bottom: 1px solid var(--line); background: #fff; }
.proof-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.proof-body strong { font: 680 20px/1.25 var(--sans); letter-spacing: -.03em; color: #067647; }
.proof-body > span:not(.kicker) { font-size: 14px; line-height: 1.55; color: var(--muted); }
.proof-body em { font: 600 14px/1.4 var(--sans); font-style: normal; color: var(--action); margin-top: 4px; }

.included-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; background: var(--line); gap: 1px; }
.included-grid > div { background: #fff; padding: 22px; }
.included-grid h3 { margin: 0 0 6px; font: 650 17px/1.3 var(--sans); letter-spacing: -.02em; }
.included-grid h3::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 8px; }
.included-grid p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.live-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 14px; border-radius: 999px; background: #ecfdf3; color: #067647; font: 600 14px/1.4 var(--sans); }
.live-pill[hidden] { display: none; }
.live-pill i { width: 9px; height: 9px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px rgba(18,183,106,.2); }
.live-pill.off { background: var(--surface-muted); color: var(--muted); }
.live-pill.off i { background: #98a2b3; box-shadow: none; }
.demo-principles { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; }
.demo-principles li { background: #fff; padding: 16px 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.demo-principles strong { display: block; color: var(--ink); font: 650 15px/1.4 var(--sans); margin-bottom: 2px; }
.demo-card.has-media { padding: 0; gap: 0; overflow: hidden; grid-template-rows: auto 1fr; transition: border-color .16s, box-shadow .16s; }
.demo-card.has-media:hover { border-color: var(--action); box-shadow: 0 10px 28px rgba(16,24,40,.08); }
.demo-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-subtle); border-bottom: 1px solid var(--line); }
.demo-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.demo-body { display: grid; align-content: start; gap: 10px; padding: 22px; }
.demo-body h3 a { color: inherit; text-decoration: none; }
.demo-body h3 a:hover { color: var(--action); }
.demo-proves { padding: 10px 12px; border-radius: 8px; background: var(--surface-subtle); font-size: 14px !important; color: var(--ink-2) !important; }
.demo-proves strong { display: block; font: 650 11.5px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.demo-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.demo-foot > span { font: 550 13px/1.4 var(--sans); color: var(--faint); }

@media (max-width: 1100px) { .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .start-here { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .service-row { grid-template-columns: 1fr; gap: 20px; } .included-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .start-here, .included-grid, .demo-principles { grid-template-columns: 1fr; }
  .service-row { padding: 18px; }
  .service-copy h3 { font-size: 22px; }
  .wide-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-stats > div:nth-child(3) { border-left: 0; }
  .wide-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) { .mini-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .case-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .case-index { grid-template-columns: 1fr; } }

/* Wide hero for dense dashboards (heroWide in cases.mjs): text above, the screen full width below. */
.case-hero.wide { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.case-hero.wide > div:first-child { max-width: 860px; }
.case-hero.wide figure { box-shadow: 0 24px 60px rgba(16,24,40,.14); }
.case-hero.wide figure img { max-height: none; }
.case-section.full { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.case-section.full > h2 { position: static; }
.case-shots a { display: block; cursor: zoom-in; }

/* Featured inbox pilot and the enquiry handoff. */
.pilot-section, .hire-hero #enquiry { scroll-margin-top: 90px; }
.pilot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 4vw, 50px);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--action);
  border-radius: 12px;
  background: var(--surface-subtle);
}
.pilot-label { font-size: .9rem; font-weight: 650; color: var(--action-hover); }
.pilot-layout h2 { margin: 8px 0 14px; font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.04em; }
.pilot-layout h2 + p, .pilot-layout p + p { color: var(--ink-2); }
.pilot-layout .actions, .workflow-pilot .actions, .workflow-run { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pilot-layout .actions, .pilot-details { margin-top: 16px; }
.pilot-steps { margin: 0; align-self: center; }
.pilot-steps div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pilot-steps div:last-child { border-bottom: 0; }
.pilot-steps dt { font-weight: 650; }
.pilot-steps dd { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }
.pilot-form-note { border-inline-start: 3px solid var(--action); padding: 10px 14px; margin: 0 0 18px; background: var(--surface-subtle); }
.pilot-form-note p + p { margin-top: 5px; }
.enquiry-fields { display: grid; gap: 14px; }
.enquiry-fields[hidden] { display: none; }
.pilot-enquiry-help { margin-top: -8px; }
.pilot-preparation { padding: clamp(14px, 3vw, 22px); }
#pilot-receipt-status { scroll-margin-top: 90px; }
.pilot-preparation h3 { font-size: 1.15rem; font-weight: 650; }
.pilot-preparation > * + * { margin-top: 10px; }
.pilot-preparation .checklist { gap: 6px; }
.workflow-pilot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.workflow-pilot h2 { font-size: 1.35rem; }
.workflow-run { margin-top: 12px; }
.workflow-in .workflow-run .button { margin-top: 0; }

/* The guide uses an example review and acceptance checklist to explain the work. */
.pilot-page-intro { padding-top: clamp(32px, 5vw, 68px); }
.pilot-page-hero, .pilot-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.pilot-page-hero { align-items: center; }
.pilot-page-hero h1 { text-wrap: pretty; max-width: 17ch; }
.pilot-example {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: clamp(20px, 4vw, 36px);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
}
.pilot-example figcaption { font-weight: 650; }
.pilot-example div {
  padding: 10px 0 0 14px;
  border-inline-start: 2px solid var(--line-control);
}
.pilot-example div:last-of-type { border-inline-start-color: var(--action); }
.pilot-example div > span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.pilot-example div > p { margin: 4px 0 0; }
.pilot-example-note { color: var(--muted); font-size: .88rem; margin: 8px 0 0; }
.pilot-guide { grid-template-columns: minmax(0, .58fr) minmax(0, 1fr); }
.pilot-guide h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; }
.pilot-guide .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pilot-guide .checklist { margin-top: 0; }
.pilot-guide .checklist + p { margin-top: 18px; }
.pilot-acceptance { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-2); }
.pilot-acceptance h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 650; }
.pilot-acceptance > p { margin: 0 0 8px; }
@media (max-width: 700px) {
  .pilot-layout, .pilot-page-hero, .pilot-guide { grid-template-columns: minmax(0, 1fr); }
}
