/* SEEQ "What SEEQ delivers" panel visuals. Section shell, cards and the feature chain
   come from platform-capabilities.css; variables are the shared --cap-* set. */

/* =========================================================
   Card 1 — Deterioration pathway windows
   ========================================================= */
.seeq-path__window--prevent {
  --cap-window-span: 1 / 4;
}

.seeq-path__window--late {
  --cap-window-span: 4;
  border-top: 1.5px dashed var(--cap-line-strong);
  font-size: 14px;
  color: var(--cap-faint);
}

.seeq-path__window--late .platform-path__window-label {
  color: var(--cap-faint);
}

/* =========================================================
   Card 2 — Failure mode hierarchy
   ========================================================= */
.seeq-fm__root {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.seeq-fm__root-mark {
  position: relative;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--cap-ink);
  border-radius: 4px;
}

.seeq-fm__root-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 1.5px;
  background: var(--cap-ink);
}

.seeq-fm__tree,
.seeq-fm__modes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seeq-fm__tree {
  --seeq-fm-line: var(--cap-line-strong);
  margin: -8px 0 0 7px;
}

.seeq-fm__system {
  position: relative;
  padding: 8px 0 0 22px;
}

.seeq-fm__system::before,
.seeq-fm__system::after,
.seeq-fm__modes li::before,
.seeq-fm__modes li::after {
  content: "";
  position: absolute;
  left: 0;
  background: var(--seeq-fm-line);
}

.seeq-fm__system::before {
  top: 0;
  bottom: 0;
  width: 1px;
}

.seeq-fm__system:last-child::before {
  bottom: auto;
  height: 21px;
}

.seeq-fm__system::after {
  top: 21px;
  width: 14px;
  height: 1px;
}

.seeq-fm__system-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 26px;
  font-size: 12px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cap-muted);
}

.seeq-fm__system--more .seeq-fm__system-name {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13.5px;
  color: var(--cap-faint);
}

.seeq-fm__modes {
  margin-left: 4px;
}

.seeq-fm__modes li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding-left: 18px;
}

.seeq-fm__modes li::before {
  top: 0;
  bottom: 0;
  width: 1px;
}

.seeq-fm__modes li:last-child::before {
  bottom: 50%;
}

.seeq-fm__modes li::after {
  top: 50%;
  width: 11px;
  height: 1px;
}

.seeq-fm__mode {
  flex: 1 1 auto;
  min-width: 0;
  padding-block: 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--cap-ink);
}

/* The way-system branch feeds the featured pathway */
.seeq-fm__system--focus {
  --seeq-fm-line: rgba(60, 82, 148, 0.55);
}

.seeq-fm__system--focus + .seeq-fm__system::before {
  background: var(--cap-line-strong);
}

/* =========================================================
   Card 3 — Preventive maintenance excerpt
   ========================================================= */
.seeq-pm__routines {
  display: flex;
  gap: 3px;
}

.seeq-pm__seg {
  flex: var(--steps) 1 0;
  height: 6px;
  border-radius: 3px;
  background: rgba(60, 82, 148, 0.14);
  transform-origin: left center;
  transition: transform 0.7s var(--cap-ease);
}

.seeq-pm__seg.is-current {
  background: var(--cap-blue);
}

.seeq-pm__sheet {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  border: 1px solid var(--cap-line);
  border-radius: 14px;
  overflow: hidden;
}

.seeq-pm__sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 12px 16px;
  background: rgba(23, 34, 53, 0.025);
  border-bottom: 1px solid var(--cap-line);
}

.seeq-pm__routine {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.seeq-pm__steps {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Rows share any height the paired card adds, so spacing stays even */
.seeq-pm__step {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 14px minmax(0, 1fr);
  align-content: center;
  gap: 14px;
  padding: 16px;
}

.seeq-pm__step + .seeq-pm__step {
  border-top: 1px solid rgba(23, 34, 53, 0.07);
}

.seeq-pm__box {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 1.5px solid var(--cap-line-strong);
  border-radius: 4px;
}

.seeq-pm__task {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

/* =========================================================
   Card 4 — Knowledge gap review
   ========================================================= */
.seeq-gap__map {
  --seeq-gap-gutter: 30px;
  --seeq-gap-row: 10px;
  --seeq-gap-line: rgba(23, 34, 53, 0.26);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--seeq-gap-gutter) minmax(0, 1.05fr);
  align-items: center;
  margin-block: auto;
}

.seeq-gap__sources {
  position: relative;
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--seeq-gap-row);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Bus joining the three source centers, then one line into the gap */
.seeq-gap__sources::before,
.seeq-gap__sources::after {
  content: "";
  position: absolute;
}

.seeq-gap__sources::before {
  right: calc(var(--seeq-gap-gutter) / -2);
  top: calc((100% - 2 * var(--seeq-gap-row)) / 6);
  bottom: calc((100% - 2 * var(--seeq-gap-row)) / 6);
  width: 1px;
  background: var(--seeq-gap-line);
  transform-origin: top;
}

.seeq-gap__sources::after {
  right: calc(var(--seeq-gap-gutter) * -1);
  top: 50%;
  width: calc(var(--seeq-gap-gutter) / 2);
  height: 1px;
  background: rgba(161, 98, 7, 0.6);
  transform-origin: left;
}

.seeq-gap__doc {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  border: 1px solid var(--cap-line);
  border-radius: 12px;
  background: #fff;
}

.seeq-gap__doc::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--seeq-gap-gutter) / -2 - 1px);
  width: calc(var(--seeq-gap-gutter) / 2 + 1px);
  height: 1px;
  background: var(--seeq-gap-line);
}

.seeq-gap__doc-icon {
  position: relative;
  width: 13px;
  height: 16px;
  margin-top: 1px;
  border: 1.25px solid var(--cap-faint);
  border-radius: 2px 5px 2px 2px;
}

.seeq-gap__doc-icon::before,
.seeq-gap__doc-icon::after {
  content: "";
  position: absolute;
  left: 2.5px;
  right: 2.5px;
  height: 1.25px;
  background: var(--cap-line-strong);
}

.seeq-gap__doc-icon::before {
  top: 5px;
}

.seeq-gap__doc-icon::after {
  top: 9px;
}

.seeq-gap__doc-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.seeq-gap__bus {
  position: relative;
  align-self: stretch;
}

.seeq-gap__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px dashed rgba(161, 98, 7, 0.45);
  border-radius: 14px;
  background: rgba(161, 98, 7, 0.035);
}

.seeq-gap__flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cap-amber);
}

.seeq-gap__flag::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.seeq-gap__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.seeq-gap__review {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid rgba(161, 98, 7, 0.18);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--cap-ink);
}

@container (max-width: 430px) {
  .seeq-gap__map {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 28px auto;
  }

  .seeq-gap__doc::after,
  .seeq-gap__sources::before,
  .seeq-gap__sources::after {
    display: none;
  }

  .seeq-gap__bus::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 1px;
    background: linear-gradient(var(--seeq-gap-line), rgba(161, 98, 7, 0.6));
    transform-origin: top;
  }
}

/* =========================================================
   Card 5 — Training intelligence
   ========================================================= */
.seeq-train__flow {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seeq-train__tier {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
}

.seeq-train__tier:last-child {
  padding-bottom: 0;
}

/* Rail: marker per tier, connector between tiers */
.seeq-train__tier::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin: 16px 0 0 6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--seeq-tier, var(--cap-blue));
}

.seeq-train__tier:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10.5px;
  top: 31px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--seeq-tier, var(--cap-blue)), var(--seeq-tier-next, var(--cap-blue)));
  opacity: 0.5;
  transform-origin: top;
}

.seeq-train__tier--fm {
  --seeq-tier: var(--cap-blue);
  --seeq-tier-next: var(--cap-cyan-deep);
}

.seeq-train__tier--know {
  --seeq-tier: var(--cap-cyan-deep);
  --seeq-tier-next: var(--cap-teal);
}

.seeq-train__tier--priority {
  --seeq-tier: var(--cap-teal);
}

.seeq-train__body {
  padding: 11px 14px 12px;
  border-radius: 12px;
  background: rgba(23, 34, 53, 0.03);
}

.seeq-train__tier--priority .seeq-train__body {
  background: var(--cap-teal-soft);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
}

.seeq-train__label {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--seeq-tier, var(--cap-blue));
}

.seeq-train__lead {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.seeq-train__tier--priority .seeq-train__lead {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.seeq-train__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.seeq-train__list {
  display: grid;
  gap: 4px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.seeq-train__list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(23, 34, 53, 0.86);
}

.seeq-train__list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--cap-cyan-deep);
}

/* =========================================================
   Scroll reveals (only once the shared script has enhanced the section)
   ========================================================= */
.platform-cap.is-enhanced .seeq-pm__seg {
  transform: scaleX(0);
}

.platform-cap.is-enhanced .is-inview .seeq-pm__seg {
  transform: none;
}

.seeq-pm__seg:nth-child(2) { transition-delay: 0.06s; }
.seeq-pm__seg:nth-child(3) { transition-delay: 0.12s; }
.seeq-pm__seg:nth-child(4) { transition-delay: 0.18s; }
.seeq-pm__seg:nth-child(5) { transition-delay: 0.24s; }

.platform-cap.is-enhanced .seeq-gap__sources::before,
.platform-cap.is-enhanced .seeq-gap__bus::before,
.platform-cap.is-enhanced .seeq-train__tier::after {
  transform: scaleY(0);
  transition: transform 0.7s var(--cap-ease) 0.35s;
}

.platform-cap.is-enhanced .seeq-gap__sources::after {
  transform: scaleX(0);
  transition: transform 0.5s var(--cap-ease) 0.8s;
}

.platform-cap.is-enhanced .is-inview .seeq-gap__sources::before,
.platform-cap.is-enhanced .is-inview .seeq-gap__sources::after,
.platform-cap.is-enhanced .is-inview .seeq-gap__bus::before,
.platform-cap.is-enhanced .is-inview .seeq-train__tier::after {
  transform: none;
}
