/*=====================================================*/
/*  TWO PATHS TO OPERATIONAL AI — page styles          */
/*  Depends on assets/css/ai/common.css                */
/*=====================================================*/

/*----------------------------*/
/* HERO: THE TWO ARCHITECTURES*/
/*----------------------------*/
.tpo-lanes {
  display: flex;
  flex-direction: column;
  background: #FFF;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 4px 0 0 var(--ai-primary);
  overflow: hidden;
}

.tpo-lane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--ai-cream);
}

.tpo-lane--erp {
  background: #1C2028;
  border-top: 1px solid var(--ai-line);
}

.tpo-lane__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ai-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ai-muted);
}

.tpo-lane--erp .tpo-lane__label {
  color: var(--ai-primary);
}

.tpo-lane__label i,
.tpo-lane__label svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.tpo-lane>p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5 !important;
  color: var(--ai-muted);
}

.tpo-lane--erp>p {
  color: rgba(255, 255, 255, 0.7);
}

/* AI-First: boxes joined by integration wires */
.tpo-flow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpo-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
  padding: 14px 8px;
  background: #FFF;
  border: 1px solid var(--ai-line);
  border-radius: 12px;
}

.tpo-node i,
.tpo-node svg {
  width: 20px;
  height: 20px;
  color: var(--ai-primary-deep);
  stroke-width: 2.2;
}

.tpo-node em {
  font-family: var(--ai-mono);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ai-ink);
}

.tpo-node--api {
  border-style: dashed;
  background: transparent;
}

.tpo-node--api i,
.tpo-node--api svg {
  color: #B9B2A6;
}

.tpo-wire {
  position: relative;
  flex: 0 0 34px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ai-line) 0 6px, transparent 6px 12px);
}

/* Packet crossing the integration boundary — the AI-First round trip */
.tpo-wire b {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--ai-primary);
  box-shadow: 0 0 0 3px rgba(var(--ai-primary-rgb), 0.22);
  animation: tpo-packet 2.6s ease-in-out infinite;
}

@keyframes tpo-packet {

  0%,
  8% {
    left: 0;
    opacity: 0;
  }

  16% {
    opacity: 1;
  }

  46% {
    left: calc(100% - 7px);
    opacity: 1;
  }

  54% {
    left: calc(100% - 7px);
    opacity: 0;
  }

  100% {
    left: calc(100% - 7px);
    opacity: 0;
  }
}

/* ERP-First: one platform with the AI core inside it */
.tpo-embedded {
  position: relative;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--ai-primary-rgb), 0.4);
  border-radius: 14px;
}

.tpo-embedded__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ai-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.tpo-embedded__title i,
.tpo-embedded__title svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.tpo-embedded__core {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 14px auto;
  padding: 12px 18px;
  width: fit-content;
  background: var(--ai-primary);
  border-radius: 999px;
  font-family: var(--ai-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #FFF;
}

.tpo-embedded__core i,
.tpo-embedded__core svg {
  width: 16px;
  height: 16px;
  color: #FFF;
  stroke-width: 2.6;
}

/* Signal radiating from the AI core into the surrounding workflows */
.tpo-embedded__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border: 2px solid rgba(var(--ai-primary-rgb), 0.5);
  border-radius: 50%;
  animation: tpo-radiate 3s ease-out infinite;
  pointer-events: none;
}

@keyframes tpo-radiate {
  0% {
    transform: scale(0.35);
    opacity: 0.85;
  }

  80%,
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.tpo-embedded ul {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tpo-embedded li {
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ai-line-dark);
  border-radius: 8px;
  font-family: var(--ai-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}

@media (prefers-reduced-motion: reduce) {

  .tpo-wire b,
  .tpo-embedded__ring {
    animation: none;
  }
}

/*----------------------------*/
/* WHAT IS AI ARCHITECTURE    */
/*----------------------------*/
.tpo-arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.tpo-arch__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.tpo-arch__copy h2 {
  margin: 0;
  font-family: var(--ai-heading);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ai-ink);
}

.tpo-arch__copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7 !important;
  color: var(--ai-muted);
}

.tpo-arch__copy p strong {
  color: var(--ai-ink);
}

.tpo-determines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tpo-determines li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #FFF;
  border: 1px solid var(--ai-line);
  border-radius: 13px;
  font-family: var(--ai-heading);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ai-ink);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tpo-determines li:hover {
  transform: translateX(6px);
  border-color: rgba(var(--ai-primary-rgb), 0.45);
  box-shadow: 0 14px 30px rgba(20, 20, 20, 0.07);
}

.tpo-determines__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--ai-cream);
  border: 1px solid var(--ai-line);
  border-radius: 11px;
}

.tpo-determines__icon i,
.tpo-determines__icon svg {
  width: 19px;
  height: 19px;
  color: var(--ai-primary-deep);
  stroke-width: 2.2;
}

/*----------------------------*/
/* SHARED VISION              */
/*----------------------------*/
.tpo-goals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto !important;
}

.tpo-goals li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  background: #FFF;
  border: 1px solid var(--ai-line);
  border-radius: 999px;
  font-family: var(--ai-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--ai-ink);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tpo-goals li:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ai-primary-rgb), 0.5);
  box-shadow: 0 14px 30px rgba(20, 20, 20, 0.08);
}

.tpo-goals li i,
.tpo-goals li svg {
  width: 19px;
  height: 19px;
  color: var(--ai-primary);
  stroke-width: 2.2;
  flex-shrink: 0;
}

.tpo-goals__note {
  max-width: 640px;
  margin: 34px auto 0;
  text-align: center;
  font-family: var(--ai-heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5 !important;
  color: var(--ai-muted);
}

.tpo-goals__note strong {
  color: var(--ai-ink);
}

.tpo-advisor {
  margin-top: 56px;
}

/*----------------------------*/
/* PATH ONE: AI-FIRST         */
/*----------------------------*/
.tpo-subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto 26px;
  font-family: var(--ai-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ai-ink);
}

.tpo-subhead i,
.tpo-subhead svg {
  width: 19px;
  height: 19px;
  color: var(--ai-primary);
  stroke-width: 2.4;
  flex-shrink: 0;
}

.tpo-prosscons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 56px;
}

/* Advantages reads green, challenges amber — the panel head is orange by default */
.tpo-panel--pro .ai-panel__head i,
.tpo-panel--pro .ai-panel__head svg {
  color: var(--ai-green);
}

.tpo-panel--con .ai-panel__head i,
.tpo-panel--con .ai-panel__head svg {
  color: var(--ai-amber);
}

.tpo-panel__lede {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ai-muted);
}

.tpo-conlist {
  display: grid;
  gap: 12px;
}

.tpo-conlist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ai-ink-soft);
}

.tpo-conlist li i,
.tpo-conlist li svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--ai-amber);
  stroke-width: 2.4;
  flex-shrink: 0;
}
/*----------------------------*/
/* PATH TWO: ERP-FIRST        */
/*----------------------------*/
.tpo-erpfirst {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.tpo-erpfirst__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.tpo-erpfirst__copy h2 {
  margin: 0;
  font-family: var(--ai-heading);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tpo-erpfirst__copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.tpo-erpfirst__copy p strong {
  color: #FFF;
}

.tpo-native {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tpo-native li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ai-line-dark);
  border-radius: 12px;
  font-family: var(--ai-heading);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFF;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tpo-native li:hover {
  background: rgba(var(--ai-primary-rgb), 0.12);
  border-color: rgba(var(--ai-primary-rgb), 0.55);
  transform: translateY(-3px);
}

.tpo-native li i,
.tpo-native li svg {
  width: 19px;
  height: 19px;
  color: var(--ai-primary);
  stroke-width: 2.2;
  flex-shrink: 0;
}

/*----------------------------*/
/* COMPARISON MATRIX          */
/*----------------------------*/
.tpo-matrix {
  max-width: 980px;
  margin: 0 auto !important;
}

.tpo-matrix__focus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.tpo-matrix__btn {
  padding: 11px 20px;
  background: #FFF;
  border: 1px solid var(--ai-line);
  border-radius: 999px;
  font-family: var(--ai-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ai-muted);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tpo-matrix__btn:hover {
  border-color: rgba(var(--ai-primary-rgb), 0.5);
  color: var(--ai-ink);
}

.tpo-matrix__btn.is-active {
  background: var(--ai-ink);
  border-color: var(--ai-ink);
  color: #FFF;
}

.tpo-matrix__table {
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  background: #FFF;
  overflow: hidden;
}

.tpo-matrix__head,
.tpo-matrix__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
}

.tpo-matrix__head>div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  font-family: var(--ai-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.tpo-matrix__head>div:first-child {
  background: var(--ai-cream);
  color: var(--ai-muted);
}

.tpo-matrix__head>div:nth-child(2) {
  background: var(--ai-ink-soft);
  color: #FFF;
}

.tpo-matrix__head>div:last-child {
  background: var(--ai-ink);
  color: #FFF;
}

.tpo-matrix__head i,
.tpo-matrix__head svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.tpo-matrix__head>div:nth-child(2) i,
.tpo-matrix__head>div:nth-child(2) svg {
  color: rgba(255, 255, 255, 0.6);
}

.tpo-matrix__head>div:last-child i,
.tpo-matrix__head>div:last-child svg {
  color: var(--ai-primary);
}

.tpo-matrix__row {
  border-top: 1px solid var(--ai-line);
}

.tpo-matrix__row>div {
  padding: 16px 24px;
  font-size: 15px;
  line-height: 1.5;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.tpo-matrix__row>div:first-child {
  font-family: var(--ai-heading);
  font-weight: 700;
  color: var(--ai-ink);
  background: var(--ai-cream);
}

.tpo-matrix__row>div:nth-child(2) {
  color: var(--ai-muted);
}

.tpo-matrix__row>div:last-child {
  color: var(--ai-ink);
  font-weight: 700;
  background: rgba(var(--ai-primary-rgb), 0.05);
}

/* Column focus: dim the architecture you're not reading */
.tpo-matrix.focus-ai .tpo-matrix__row>div:last-child,
.tpo-matrix.focus-ai .tpo-matrix__head>div:last-child,
.tpo-matrix.focus-erp .tpo-matrix__row>div:nth-child(2),
.tpo-matrix.focus-erp .tpo-matrix__head>div:nth-child(2) {
  opacity: 0.3;
}

.tpo-matrix.focus-ai .tpo-matrix__row>div:nth-child(2) {
  background: rgba(20, 20, 20, 0.04);
  color: var(--ai-ink);
  font-weight: 700;
}

.tpo-matrix.focus-erp .tpo-matrix__row>div:last-child {
  background: rgba(var(--ai-primary-rgb), 0.12);
}

.tpo-takeaway {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 720px;
  margin: 44px auto 0;
  text-align: center;
}

.tpo-takeaway .ai-kicker {
  margin-bottom: 10px;
}

.tpo-takeaway p {
  margin: 0;
  font-family: var(--ai-heading);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.5 !important;
  color: var(--ai-ink);
}

.tpo-takeaway p em {
  font-style: normal;
  color: var(--ai-primary-deep);
  border-bottom: 2px solid rgba(var(--ai-primary-rgb), 0.35);
}

.tpo-quoteband {
  margin-top: 64px;
}

.tpo-foundation__note {
  max-width: 760px;
  margin: 34px auto 0;
  text-align: center;
  font-size: 16.5px;
  line-height: 1.7 !important;
  color: var(--ai-muted);
}

.tpo-foundation__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 32px;
}

/*----------------------------*/
/* TWO CAPABILITIES           */
/*----------------------------*/
.tpo-duo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tpo-duo__plus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ai-primary);
  border: 4px solid #FFF;
  box-shadow: 0 10px 24px rgba(var(--ai-primary-rgb), 0.4);
}

.tpo-duo__plus i,
.tpo-duo__plus svg {
  width: 20px;
  height: 20px;
  color: #FFF;
  stroke-width: 3;
}

.tpo-duo__closer {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 20px 26px;
  border-left: 3px solid var(--ai-primary);
  background: var(--ai-cream);
  border-radius: 0 12px 12px 0;
  font-family: var(--ai-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55 !important;
  color: var(--ai-ink-soft);
}

/*----------------------------*/
/* WHICH APPROACH FITS        */
/*----------------------------*/
.tpo-fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tpo-fit__card ul {
  display: grid;
  gap: 13px;
}

.tpo-fit__card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ai-ink-soft);
}

.tpo-fit__card li i,
.tpo-fit__card li svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--ai-primary);
  stroke-width: 2.4;
  flex-shrink: 0;
}

.tpo-fit__note {
  max-width: 760px;
  margin: 34px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.7 !important;
  color: var(--ai-muted);
}

.tpo-asking__note,
.tpo-checklist__note {
  max-width: 760px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.7 !important;
  color: var(--ai-muted);
}

.tpo-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 34px;
  max-width: 860px;
  margin: 0 auto !important;
}

.tpo-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--ai-cream);
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  font-family: var(--ai-heading);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ai-ink);
}

.tpo-checklist li i,
.tpo-checklist li svg {
  width: 20px;
  height: 20px;
  color: var(--ai-green);
  stroke-width: 2.6;
  flex-shrink: 0;
}

/*----------------------------*/
/* RESPONSIVE                 */
/*----------------------------*/
@media (max-width: 1023px) {

  .tpo-arch,
  .tpo-erpfirst {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tpo-matrix__head>div,
  .tpo-matrix__row>div {
    padding: 14px 16px;
    font-size: 14px;
  }
}

@media (max-width: 767px) {

  .tpo-prosscons,
  .tpo-duo,
  .tpo-fit,
  .tpo-checklist,
  .tpo-native {
    grid-template-columns: 1fr;
  }

  .tpo-duo__plus {
    position: static;
    transform: none;
    margin: -4px auto;
  }

  
  /* Matrix collapses to stacked feature blocks */
  .tpo-matrix__head {
    display: none;
  }

  .tpo-matrix__row {
    grid-template-columns: 1fr;
  }

  .tpo-matrix__row>div:first-child {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .tpo-matrix__row>div:nth-child(2)::before {
    content: "AI-First — ";
    font-family: var(--ai-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ai-muted);
  }

  .tpo-matrix__row>div:last-child::before {
    content: "ERP-First — ";
    font-family: var(--ai-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ai-primary-deep);
  }

  .tpo-embedded ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
