/* Apps & software (software.html) only */

/* ---------- Hero ---------- */
.sw-hero__media .screen { inset: 13% 6% auto 14%; }
.sw-hero__scope { width: 316px; z-index: 3; }
.sw-hero__match { width: 208px; }
.sw-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.sw-jump a {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px solid var(--c-line-d); background: rgba(255, 255, 255, 0.04); color: var(--c-muted-d);
  font-size: 13.5px; font-weight: 500; transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.sw-jump a svg { width: 16px; height: 16px; color: var(--c-lime); }
.sw-jump a:hover { color: #fff; border-color: rgba(200, 241, 105, 0.5); background: rgba(200, 241, 105, 0.08); }

/* ---------- Word strip ---------- */

/* ---------- Where to start ---------- */
.sw-scope { min-height: 360px; gap: 14px; }
.sw-scope__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sw-scope__num {
  font-size: 64px; font-weight: 600; line-height: 0.9; letter-spacing: -0.05em; color: transparent;
  -webkit-text-stroke: 1.2px #b9c4be; transition: color 0.3s, -webkit-text-stroke-color 0.3s;
}
.sw-scope:hover .sw-scope__num { color: var(--c-lime); -webkit-text-stroke-color: var(--c-lime); }
.sw-scope__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Sticky tabs panels ---------- */
.sw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.sw-actions .link-arrow { color: var(--c-lime); }
.sw-aside { gap: 10px; padding: 22px 24px; }
.sw-feats { display: grid; }
.sw-feats li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--c-line); }
.sw-feats li:first-child { border-top: 0; padding-top: 6px; }
.sw-feats__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c-mint); color: var(--c-forest); }
.sw-feats__ico svg { width: 17px; height: 17px; }
.sw-feats strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.stabs__panel-body .sw-aside .sw-feats p { font-size: 13.5px; line-height: 1.55; color: var(--c-muted); margin-top: 3px; }
.sw-feats__link { color: var(--c-teal); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.sw-feats__link:hover { border-bottom-color: currentColor; }
.sw-note { margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--c-line-d); font-size: 14px; color: var(--c-muted-d); }
.sw-steps-card { width: 290px; }
.sw-steps-card .ui-steps__labels { color: var(--c-muted-d); }

/* Software screenshots: keep the whole image visible, without floating overlays. */
.sw-demo {
  padding: clamp(10px, 2.4vw, 28px);
  background: linear-gradient(145deg, #193a2f, #101b16 70%);
  border: 1px solid rgba(199, 221, 207, 0.14);
}
.sw-demo--mint { background: linear-gradient(145deg, #eaf2dc, #d9e5d7); border-color: #d5e3cf; }
.sw-demo__frame {
  min-width: 0; overflow: hidden; border-radius: clamp(8px, 1.2vw, 14px);
  background: #f7f9f6; border: 1px solid rgba(238, 246, 240, 0.28);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}
.sw-demo__bar {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px;
  color: #53645a; border-bottom: 1px solid #e0e7df;
  font-size: 12px; font-weight: 500; line-height: 1.5;
}
.sw-demo__status { width: 7px; height: 7px; border-radius: 50%; background: #6d8b58; flex: none; }
.sw-demo__image { display: block; width: 100%; height: auto; object-fit: contain; }

/* Project responsibilities and integration planning use live, translatable text. */
.sw-diagram { padding: clamp(10px, 1.8vw, 20px); container: sw-visual / inline-size; }
.sw-diagram__surface { padding: clamp(18px, 2.4vw, 30px); border-radius: 14px; background: #f8faf6; color: #172c21; min-width: 0; }
.sw-diagram__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #dce5d8; }
.sw-diagram__kicker { display: block; margin-bottom: 8px; color: #687b65; font-size: 12px; font-weight: 500; letter-spacing: 0.025em; }
.sw-diagram__head h4 { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.sw-diagram__head-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #e9f3d8; color: #345937; }
.sw-diagram__head-icon svg { width: 23px; height: 23px; }
.sw-diagram__legend { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 20px 0 10px; font-size: 12px; color: #5c6d5b; }
.sw-diagram__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.sw-party-dot { width: 8px; height: 8px; border-radius: 50%; background: #92a48e; }
.sw-party-dot--appscraft { background: #aacb57; }
.sw-party-dot--partner { background: #245b44; }
.sw-route { list-style: none; margin: 0; padding: 0; }
.sw-route__step { position: relative; display: grid; grid-template-columns: 32px minmax(100px, 0.65fr) minmax(0, 2.5fr); column-gap: 18px; align-items: start; padding: 22px 0; }
.sw-route__step:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 62px; bottom: 0; border-left: 1px solid #c9d8c4; }
.sw-route__step:not(:last-child)::after { content: ""; position: absolute; left: 12px; bottom: 1px; width: 6px; height: 6px; border-right: 1px solid #8da182; border-bottom: 1px solid #8da182; transform: rotate(45deg); }
.sw-route__number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #c8d6c2; background: #edf3e8; color: #5c7255; font-family: var(--font-mono); font-size: 12px; }
.sw-route__step--appscraft .sw-route__number { background: var(--c-lime); border-color: var(--c-lime); color: #233d1e; }
.sw-route__step--partner .sw-route__number { background: #214d3a; border-color: #214d3a; color: #fff; }
.sw-route__owner { display: flex; align-items: flex-start; gap: 8px; padding-top: 7px; font-size: 13px; line-height: 1.4; font-weight: 600; color: #53694f; }
.sw-route__owner > [data-icon] { display: inline-flex; flex: none; }
.sw-route__owner svg { width: 17px; height: 17px; }
.sw-route__step--appscraft .sw-route__owner, .sw-route__step--partner .sw-route__owner { color: #214d3a; }
.sw-route__detail { min-width: 0; }
.sw-route__detail h5 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 3px 0 8px; }
.sw-route__detail > p { margin: 0; font-size: 14px; line-height: 1.65; color: #647260; }
.sw-route__output { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 12px; padding: 8px 11px; border-left: 2px solid #adc594; background: #edf3e6; font-size: 12px; line-height: 1.6; }
.sw-route__output > span { color: #74826b; }
.sw-route__output > strong { color: #3b5531; font-weight: 500; }
.sw-diagram__continuity { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; margin-top: 12px; padding: 20px; border-radius: 11px; background: #193d2f; color: #f4f8ee; }
.sw-diagram__continuity > [data-icon] { padding-top: 3px; color: var(--c-lime); }
.sw-diagram__continuity svg { width: 22px; height: 22px; }
.sw-diagram__continuity strong { font-size: 15px; font-weight: 600; line-height: 1.5; }
.sw-diagram__continuity p { margin: 5px 0 0; color: #bccdbb; font-size: 13px; line-height: 1.65; }

.sw-integration { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 24px; padding: 26px 0; }
.sw-integration__column { position: relative; min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.sw-integration__column:not(:last-child)::after { content: "→"; position: absolute; right: -20px; top: 52%; width: 16px; color: #79936c; font-size: 18px; line-height: 1; }
.sw-integration__column > h5 { display: flex; align-items: baseline; gap: 8px; min-height: 38px; font-size: 13px; line-height: 1.4; font-weight: 600; }
.sw-integration__column > h5 > span:first-child { font: 11px var(--font-mono); color: #84977a; flex: none; }
.sw-system-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sw-system-list > li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 14px 12px; min-height: 88px; border: 1px solid #dce5d7; border-radius: 9px; background: #fff; }
.sw-system-list > li > [data-icon] { display: inline-flex; padding-top: 2px; color: #65815a; }
.sw-system-list svg { width: 19px; height: 19px; }
.sw-system-list strong { font-size: 13px; line-height: 1.5; font-weight: 600; }
.sw-system-list p { margin: 5px 0 0; color: #75816e; font-size: 12px; line-height: 1.5; }
.sw-system-list--outputs > li { background: #eef4e6; border-color: #dbe8ce; }
.sw-gateway { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 284px; padding: 20px 16px; border-radius: 11px; background: #1c4030; color: #f5f9ef; }
.sw-gateway__icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: rgba(206, 243, 142, 0.12); color: var(--c-lime); }
.sw-gateway__icon svg { width: 22px; height: 22px; }
.sw-gateway > strong { font-size: 15px; line-height: 1.45; font-weight: 600; }
.sw-gateway > ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sw-gateway li { display: flex; align-items: baseline; gap: 8px; font-size: 12px; line-height: 1.5; color: #e0ecd4; }
.sw-gateway li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #b4d980; flex: none; }
.sw-gateway > p { margin: auto 0 0; padding-top: 12px; border-top: 1px solid rgba(210, 231, 194, 0.2); color: #abc3a1; font-size: 12px; line-height: 1.6; }
.sw-rollout { padding-top: 24px; }
.sw-rollout > h5 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.sw-rollout > ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; gap: 18px; }
.sw-rollout li { position: relative; min-width: 0; border-top: 1px solid #cfdcc5; padding-top: 12px; }
.sw-rollout li:not(:last-child)::after { content: "→"; position: absolute; top: -10px; right: -12px; color: #7e966f; background: #f8faf6; font-size: 14px; }
.sw-rollout b { display: block; margin-bottom: 7px; color: #8ba376; font: 11px var(--font-mono); }
.sw-rollout strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }
.sw-rollout li span { display: block; margin-top: 5px; color: #7a8672; font-size: 11px; line-height: 1.6; }

@container sw-visual (max-width: 680px) {
  .sw-route__step { grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; }
  .sw-route__number { grid-row: 1 / 3; }
  .sw-route__owner, .sw-route__detail { grid-column: 2; }
  .sw-route__owner { padding-top: 6px; margin-bottom: 9px; }
  .sw-route__detail h5 { font-size: 16px; }
  .sw-diagram__head-icon { width: 34px; height: 34px; border-radius: 9px; }
  .sw-integration { grid-template-columns: 1fr; gap: 30px; }
  .sw-integration__column:not(:last-child)::after { content: "↓"; right: auto; left: calc(50% - 8px); top: auto; bottom: -24px; text-align: center; }
  .sw-integration__column > h5 { min-height: 0; margin-bottom: 12px; font-size: 14px; }
  .sw-system-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sw-system-list > li { grid-template-columns: 1fr; align-content: start; min-height: 0; padding: 13px 11px; gap: 8px; }
  .sw-gateway { display: grid; grid-template-columns: 37px minmax(0, 1fr); min-height: 0; gap: 10px 16px; padding: 18px; }
  .sw-gateway__icon { grid-row: 1 / 3; }
  .sw-gateway > strong, .sw-gateway > ul { grid-column: 2; }
  .sw-gateway > ul { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .sw-gateway > p { grid-column: 1 / -1; margin-top: 4px; }
  .sw-rollout > ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .sw-rollout li:nth-child(2)::after { display: none; }
}
@container sw-visual (max-width: 440px) {
  .sw-diagram__surface { padding: 16px; }
  .sw-diagram__head { gap: 10px; padding-bottom: 17px; }
  .sw-diagram__head h4 { font-size: 20px; }
  .sw-diagram__head-icon { display: none; }
  .sw-diagram__legend { gap: 9px 15px; font-size: 11px; }
  .sw-route__step { column-gap: 12px; padding-block: 18px; }
  .sw-route__detail > p { font-size: 13px; }
  .sw-route__output { font-size: 11px; gap: 2px 10px; }
  .sw-diagram__continuity { padding: 16px; gap: 10px; }
  .sw-system-list { grid-template-columns: 1fr; }
  .sw-system-list > li { grid-template-columns: 20px minmax(0, 1fr); padding: 13px; gap: 10px; }
  .sw-system-list strong { font-size: 14px; }
  .sw-rollout strong { font-size: 13px; }
}

/* ---------- Specialists ---------- */
.sw-roles { gap: 16px; }
.sw-role {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 300px; padding: 24px 24px 20px; border-radius: 18px;
  background: var(--c-mist); border: 1.5px solid transparent; color: var(--c-text);
  transition: background-color 0.25s, border-color 0.25s, transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.sw-role:hover { background: #fff; border-color: var(--c-line); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.sw-role__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sw-role__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--c-forest); transition: background-color 0.25s, color 0.25s; }
.sw-role__ico svg { width: 22px; height: 22px; }
.sw-role:hover .sw-role__ico, .sw-role--company .sw-role__ico { background: var(--c-black); color: var(--c-lime); }
.sw-role__badge { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; transition: background-color 0.25s, transform 0.3s var(--ease-out); }
.sw-role__badge svg { width: 16px; height: 16px; }
.sw-role:hover .sw-role__badge { background: var(--c-lime); color: var(--c-lime-ink); transform: translateX(3px); }
.sw-role__title { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.sw-role__skills { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--c-teal); }
.sw-role__body { font-size: 14.5px; line-height: 1.6; color: var(--c-muted); }
.sw-role__action { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--c-forest); }
.sw-xp-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 20px 24px;
  border-radius: 16px; border: 1px dashed #c9d3cc;
}
.sw-xp-foot p { font-size: 16px; font-weight: 500; }

/* ---------- Approach + checklist ---------- */
.sw-prep { align-items: start; }
.sw-duty { display: grid; gap: 10px; margin-top: 6px; }
.sw-duty li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--c-line-d); font-size: 15px; color: var(--c-text-d);
}
.sw-prep__link { color: var(--c-lime); margin-top: 6px; justify-self: start; }
.sw-checklist { gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: 22px; border: 0; box-shadow: var(--shadow-card); }
.sw-checklist__head { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.sw-checklist__head .ui-ico { margin-top: 4px; }
.sw-checklist__head .muted { margin-top: 6px; font-size: 15px; }
.sw-qs { border-top: 1px solid var(--c-line); }
.sw-qs li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--c-line); font-size: 16px; font-weight: 500; }
.sw-qs__n { font-family: var(--font-mono); font-size: 13px; color: var(--c-muted); }
.sw-checklist__foot { display: flex; padding-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .sw-scope { min-height: 0; }
}
@media (max-width: 640px) {
  .sw-hero__match { display: none; }
  .sw-hero__media .screen { inset: 10% 6% auto 6%; }
  .sw-hero__scope { width: 262px; }
  .sw-jump a { height: 34px; font-size: 13px; }
  .sw-scope__num { font-size: 52px; }
  .sw-steps-card { width: 240px; }
  .sw-role { min-height: 0; }
  .sw-qs li { grid-template-columns: 32px minmax(0, 1fr) 20px; font-size: 15px; }
}
