/* Slice 3: workflow demonstration, work patterns, authority band.
   Kept separate from styles.css while Slice 1 edits that file;
   merge into styles.css once Slice 1 lands. Uses only existing tokens. */

.workflow-demo {
  padding: clamp(72px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}

.wf-head {
  max-width: 860px;
}

.wf-eyebrow {
  margin: 0 0 18px;
  font: 600 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--petrol);
}

.workflow-demo h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.wf-lead {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
}

.wf-more {
  margin: 34px 0 0;
}

.wf-more a {
  color: var(--petrol);
  font: 600 12px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-bottom: 1px solid var(--petrol);
  padding-bottom: 3px;
}

.wf-more a:hover,
.wf-more a:focus-visible {
  color: var(--petrol-deep);
  border-bottom-color: var(--petrol-deep);
}

/* Work patterns */

.wf-patterns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 56px;
  margin: 48px 0 0;
  border-top: 1px solid var(--line-strong);
}

.wf-pattern {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.wf-pattern strong {
  display: block;
  margin: 0 0 10px;
  font: 600 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--petrol);
}

.wf-pattern p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.authority-band .site-shell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: clamp(44px, 5vw, 64px);
  padding-bottom: clamp(44px, 5vw, 64px);
}

/* Responsive */

@media (max-width: 980px) {
  .wf-patterns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
  }
}

@media (max-width: 620px) {
  .wf-patterns-grid {
    grid-template-columns: 1fr;
  }
}

/* Section jump nav (replaces the metrics strip) */

.section-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.section-nav a {
  padding: 18px 6px 20px;
  font: 600 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 1px solid var(--line);
}

.section-nav a:first-child {
  border-left: 0;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--petrol);
}

.section-nav a.is-active {
  color: var(--petrol);
  box-shadow: inset 0 -2px 0 var(--petrol);
}

@media (max-width: 700px) {
  .section-nav {
    grid-template-columns: 1fr 1fr;
  }

  .section-nav a {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 4px;
  }
}

.wf-panel .wf-lead {
  color: rgba(237, 241, 239, 0.62);
}

/* Home: after-launch operations strip */

.ops-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 40px;
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
}

@media (max-width: 980px) {
  .ops-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
  }
}

@media (max-width: 620px) {
  .ops-strip {
    grid-template-columns: 1fr;
  }
}

/* Home: FAQ accordion */

.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 24px 44px 24px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--petrol);
  font-size: 20px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 26px;
  max-width: 680px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.faq-item a {
  color: var(--petrol);
}

/* ============================================================
   Product screens on Solutions: one run, example workflows,
   operating overview, connected services. All demo-workspace captures.
   ============================================================ */

.demo-label,
.run-shot figcaption,
.systems-shot figcaption {
  margin: 10px 0 0;
  font: 600 11.5px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.run-steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.run-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 48px;
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .run-step {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

.run-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 46ch;
}

.run-no {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--petrol);
}

.run-copy h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.run-copy p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.run-shot,
.systems-shot,
.wf-example {
  margin: 0;
  min-width: 0;
}

.run-shot img,
.systems-shot img,
.wf-example-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: #f5f7f6;
}

.wf-examples {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 760px) {
  .wf-examples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

.wf-example figcaption {
  margin-top: 16px;
}

.wf-example figcaption strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wf-example figcaption p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.wf-patterns .demo-label {
  margin-top: 14px;
}

.wf-patterns-lead {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.wf-patterns-lead .wf-lead {
  margin-top: 0;
}

.systems-shot {
  width: var(--shell);
  margin: 48px auto 0;
}

.systems-shot figcaption {
  color: rgba(251, 250, 246, 0.72);
}

.workflow-demo h2 em {
  font-style: normal;
  color: var(--petrol);
}

.wf-patterns .wf-head {
  max-width: 1180px;
}

@media (min-width: 700px) {
  .shots-title-line {
    white-space: nowrap;
  }
}

.process-measure .measure-statement {
  margin-top: 72px;
  border-top-color: var(--line-dark);
  color: var(--ice);
}

/* ============================================================
   Home story: alternating copy / screenshot rows under the hero.
   Numbered beats, a centre spine, mounted screenshots.
   ============================================================ */

.section-story {
  padding-block: clamp(88px, 9vw, 140px);
}

.story {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 8vw, 128px);
}

.story-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 64px;
  align-items: center;
}

@media (min-width: 860px) {
  .story-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  /* spine down the centre gutter, with a node at each beat */
  .story::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--line);
    transform: translateX(-0.5px);
  }

  .story-row::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 859px) {
  .story-row-reverse .story-copy {
    order: -1;
  }
}

.story-copy {
  min-width: 0;
  max-width: 600px;
}

.story-row-reverse .story-copy {
  justify-self: end;
}

.story-copy-lead h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(32px, 2.95vw, 42px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.story-copy h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.story-copy h2 em,
.story-copy h3 em {
  font-style: normal;
  color: var(--petrol);
}

.story-text {
  margin: 20px 0 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.1vw, 17.5px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.story-shot {
  margin: 0;
  min-width: 0;
  justify-self: end;
  width: 100%;
  max-width: 600px;
}

.story-row-reverse .story-shot {
  justify-self: start;
}

/* mounted screenshot: hairline frame, offset backing plate, register marks */
.story-plate {
  position: relative;
  margin: 8px 12px 26px 8px;
}

.story-plate::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  background: var(--paper-deep);
}

.story-plate img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
}

.story-shot {
  position: relative;
}

/* caption as a teal tag pinned over the corner of the mounted screenshot,
   cut out from the image with a paper keyline; sits on the side facing the copy */
.story-label {
  position: absolute;
  right: -6px;
  bottom: 2px;
  z-index: 2;
  max-width: calc(100% - 48px);
  padding: 13px 20px 14px;
  background: var(--petrol-surface);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.012em;
  box-shadow: 0 0 0 4px var(--paper);
}

.story-row-reverse .story-label {
  right: auto;
  left: -6px;
}

@media (max-width: 859px) {
  .story-label,
  .story-row-reverse .story-label {
    right: auto;
    left: 20px;
  }
}

/* CTA in the "Bring us the work" section */
.start-actions {
  margin-top: 36px;
}


/* "Your workflow" card among the samples on Solutions */
.wf-yours {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px 22px 24px;
  border: 1px dashed var(--line-strong);
  background: var(--paper-deep);
  box-sizing: border-box;
}

.wf-example-yours {
  display: flex;
  flex-direction: column;
}

.wf-example-yours .wf-yours {
  flex: 1 1 auto;
}

.wf-yours-kicker {
  font: 700 11.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--petrol);
}

.wf-yours-title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wf-yours-fields {
  margin: 4px 0 0;
  display: grid;
  gap: 0;
}

.wf-yours-fields > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
}

.wf-yours-fields dt {
  font: 600 11.5px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.wf-yours-fields dd {
  margin: 0;
  color: var(--ink-soft);
}

.wf-yours-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--petrol);
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Solutions: legible business examples and expanded screenshots. */
.solution-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px; }
.solution-card { min-width:0; padding:24px; border:1px solid var(--line); background:var(--paper); }
.solution-preview { display:block; aspect-ratio:2.1; overflow:hidden; border:1px solid var(--line); background:var(--paper-deep); }
.solution-preview img { width:100%; height:100%; object-fit:cover; object-position:top left; }
.solution-zoom { display:inline-block; color:var(--petrol); font-size:13px; text-decoration:underline; text-underline-offset:4px; margin-top:12px; }
.solution-card h3 { font-size:clamp(25px,2.5vw,34px); font-weight:400; line-height:1.15; letter-spacing:-.03em; margin:24px 0; }
.solution-card dl { display:grid; gap:18px; margin:0; }
.solution-card dt { font-size:13px; color:var(--petrol); font-weight:600; margin-bottom:5px; }
.solution-card dd { margin:0; color:var(--ink-soft); font-size:16px; line-height:1.6; }
.solution-yours { display:flex; flex-direction:column; background:var(--paper-deep); }
.solution-yours h3 { margin-top:0; }
.solution-yours p { font-size:17px; line-height:1.6; margin:0 0 24px; }
.solution-yours dl { margin-bottom:28px; }
.solution-yours .button { align-self:flex-start; margin-top:auto; }
.run-shot a { display:block; }
.run-shot figcaption { font-size:13px; color:var(--petrol); margin-top:12px; text-decoration:underline; }
.step-participation { margin:0 0 26px 100px; padding:20px 0; border-top:1px solid var(--line-dark); color:rgba(251,250,246,.85); font-size:16px; line-height:1.6; }
.step-participation strong { display:block; color:var(--ice); margin-bottom:6px; }
.solution-system-crop { overflow:hidden; aspect-ratio:1.7; position:relative; background:var(--paper); }
.solution-system-crop img { position:absolute; width:164%; max-width:none; height:auto; left:-63%; top:-27%; }
.solution-system-shot { max-width:900px; }
.solution-system-shot figcaption { margin-top:16px; font-size:14px; color:var(--white); }
.solution-system-shot figcaption a { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:700px) { .solution-cards { grid-template-columns:minmax(0,1fr); gap:24px; } .solution-card { padding:20px; } .step-participation { margin-left:0; } }
.solution-cards { margin-top: 36px; }
.solution-system-crop img { left: -54%; top: -32%; }
