/* ==========================================================================
   Showcase sections (TrustPort Connect style)
   Everything is scoped under .tps so it never touches Bootstrap/Cartzilla
   classes (.card, .btn, .badge ...) used elsewhere on the site.
   ========================================================================== */

.tps {
  --tps-g900: #053d22; --tps-g800: #075a31; --tps-g700: #0a6e3c; --tps-g600: #0f8a4a;
  --tps-g500: #1fa45c; --tps-g100: #e3f4ea; --tps-g50: #f3faf6;
  --tps-red: #d2182b; --tps-blue: #1e78c2;
  --tps-ink: #16261d; --tps-muted: #5b6b62; --tps-line: #dbe7e0;
  --tps-radius: 18px;
  --tps-shadow: 0 1px 2px rgba(5,61,34,.06), 0 10px 30px -12px rgba(5,61,34,.18);
  /* Use your site font by default; set to "Merriweather", Georgia, serif for the original look */
  --tps-heading-font: inherit;
  --tps-sticky-top: 0px;          /* set to your header height if the site header is sticky */
  color: var(--tps-ink);
}
.tps img { max-width: 100%; display: block; }
.tps section[id] { scroll-margin-top: calc(var(--tps-sticky-top) + 70px); }

/* ---------- In-page menu ---------- */
.tps-subnav {
  position: sticky; top: var(--tps-sticky-top); z-index: 1020;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tps-line);
}
.tps-subnav-list {
  position: relative; display: flex; gap: 4px; list-style: none; margin: 0; padding: 10px 0;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.tps-subnav-list::-webkit-scrollbar { display: none; }
.tps-subnav-list a {
  display: block; font-size: .9rem; font-weight: 700; color: var(--tps-muted);
  padding: 8px 14px; border-radius: 999px; text-decoration: none; transition: .2s;
}
.tps-subnav-list a:hover, .tps-subnav-list a.active { color: var(--tps-g700); background: var(--tps-g100); }

/* ---------- Icons (original TrustPort SVG set: "tp-xxx") ---------- */
.tps-ico {
  width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.125em;
}
.tps-tile .tps-ico { width: 26px; height: 26px; }
.tps-tile-sm .tps-ico { width: 20px; height: 20px; }
.tps-tile-xl .tps-ico { width: 34px; height: 34px; }
.tps-badge .tps-ico { width: 24px; height: 24px; }
.tps-step-circle .tps-ico { width: 36px; height: 36px; }
.tps-opt-logo .tps-ico { width: 26px; height: 26px; }
.tps-pill .tps-ico { width: 18px; height: 18px; }
.tps-aud li .tps-ico { width: 20px; height: 20px; color: var(--tps-g600); margin-top: 2px; }

/* ---------- Clickable boxes (item has a link) ---------- */
:where(a.tps-link) { display: block; }
a.tps-link { color: inherit; text-decoration: none; cursor: pointer; }
a.tps-link:focus-visible { outline: 3px solid var(--tps-g500); outline-offset: 3px; }
a.tps-card.tps-link { transition: transform .25s, border-color .25s, box-shadow .25s; }
a.tps-card.tps-link:hover { transform: translateY(-4px); border-color: var(--tps-g500); color: inherit; box-shadow: 0 16px 34px -14px rgba(5,61,34,.35); }
a.tps-link:hover .tps-more i, a.tps-link:hover .tps-go { transform: translateX(4px); }
.tps-go { color: var(--tps-g600); align-self: center; transition: transform .2s; margin-left: auto; }
a.tps-benefit { margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 12px; transition: background .2s; }
a.tps-benefit:hover { background: var(--tps-g50); }
a.tps-step:hover .tps-step-circle { transform: scale(1.06); border-color: var(--tps-g700); }
.tps-step-circle { transition: transform .25s, border-color .25s; }
.tps-aud-more { padding: 0 22px 22px; margin-top: auto; }
.tps-pillar .tps-more { margin-top: 12px; }

/* Section briefly glows after a box/menu click scrolls to it */
@keyframes tps-flash { 0% { box-shadow: 0 0 0 0 rgba(31,164,92,.55); } 100% { box-shadow: 0 0 0 18px rgba(31,164,92,0); } }
.tps-flash .tps-badge { animation: tps-flash 1.1s ease-out 2; }

/* ---------- Common ---------- */
.tps-section { padding: 96px 0; }
.tps-theme-alt { background: var(--tps-g50); }
.tps-theme-dark { background: linear-gradient(135deg, var(--tps-g800), var(--tps-g900)); color: #fff; }
.tps-theme-dark .tps-head h2, .tps-theme-dark .tps-lead { color: #fff; }

.tps-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.tps-head h2 {
  font-family: var(--tps-heading-font); font-weight: 900; color: var(--tps-g800);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.015em; line-height: 1.2; margin: 0;
}
.tps-badge {
  width: 52px; height: 52px; border-radius: 50%; background: var(--tps-g700); color: #fff;
  display: grid; place-items: center; flex: none; font-size: 1.4rem;
  box-shadow: 0 8px 18px -8px rgba(10,110,60,.8);
}
.tps-badge-num { font-family: var(--tps-heading-font); font-weight: 900; font-size: 1.25rem; }
.tps-lead { color: var(--tps-muted); font-size: 1.08rem; max-width: 760px; margin-bottom: 44px; }
.tps-subhead { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tps-g700); margin: 24px 0 0; font-weight: 900; }

.tps-card {
  background: #fff; border: 1px solid var(--tps-line); border-radius: var(--tps-radius);
  box-shadow: var(--tps-shadow); color: var(--tps-ink);
}

.tps-tile {
  width: 54px; height: 54px; border-radius: 14px; background: var(--tps-g100); color: var(--tps-g700);
  display: inline-grid; place-items: center; flex: none; font-size: 1.5rem; overflow: hidden;
}
.tps-tile img { max-width: 70%; max-height: 70%; object-fit: contain; }
.tps-tile-solid { background: var(--tps-g700); color: #fff; }
.tps-tile-round { border-radius: 50%; }
.tps-tile-sm { width: 38px; height: 38px; border-radius: 10px; font-size: 1.1rem; }
.tps-tile-xl { width: 70px; height: 70px; border-radius: 50%; font-size: 2rem; }
.tps-tile-glass { background: rgba(255,255,255,.15); color: #fff; }
.tps-tile.tps-style-blue { background: #e3f0fb; color: var(--tps-blue); }
.tps-tile-solid.tps-style-blue { background: var(--tps-blue); color: #fff; }
.tps-tile-solid.tps-style-dark { background: var(--tps-g800); color: #fff; }

.tps-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px;
  font-weight: 900; text-decoration: none; transition: .2s;
}
.tps-btn-primary { background: var(--tps-g700); color: #fff; box-shadow: 0 10px 24px -10px rgba(10,110,60,.7); }
.tps-btn-primary:hover { background: var(--tps-g800); color: #fff; transform: translateY(-1px); }
.tps-btn-ghost { border: 1.5px solid var(--tps-g700); color: var(--tps-g700); }
.tps-btn-ghost:hover { background: var(--tps-g50); color: var(--tps-g700); }
.tps-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.tps-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .88rem; color: var(--tps-g700); text-decoration: none; }
.tps-more i { transition: .2s; }
.tps-arrow { color: var(--tps-g600); font-size: 1.8rem; line-height: 1; }

.tps-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700;
  color: var(--tps-g700); font-size: .92rem; background: var(--tps-g100); padding: 8px 14px; border-radius: 999px;
}

/* ---------- Overview ---------- */
.tps-glance { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; }
.tps-glance-img { border-radius: var(--tps-radius); overflow: hidden; background: linear-gradient(180deg, #eaf3fb, #fff); border: 1px solid var(--tps-line); }
.tps-glance-img img { width: 100%; }
.tps-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.tps-pillar { padding: 24px; }
.tps-pillar h3 { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; color: var(--tps-g800); margin-bottom: 10px; font-weight: 800; }
.tps-pillar p { color: var(--tps-muted); font-size: .96rem; margin: 0; }
.tps-benefits { padding: 28px 30px; }
.tps-benefits h3 { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tps-g700); margin-bottom: 14px; font-weight: 900; }
.tps-benefit { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--tps-line); }
.tps-benefit:last-child { border-bottom: 0; }
.tps-benefit b { display: block; color: var(--tps-g800); font-size: 1.04rem; }
.tps-benefit span:not(.tps-tile) { color: var(--tps-muted); font-size: .95rem; }

/* ---------- Linked card grid ---------- */
.tps-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tps-method { padding: 28px; transition: .25s; display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.tps-method-top { display: flex; align-items: center; justify-content: space-between; }
.tps-method-n { font-family: var(--tps-heading-font); font-weight: 900; color: var(--tps-red); letter-spacing: .06em; }
.tps-method h3 { font-size: 1.15rem; color: var(--tps-g800); line-height: 1.3; margin: 0; font-weight: 800; }
.tps-method p { color: var(--tps-muted); font-size: .95rem; margin: 0; }
.tps-method .tps-more { margin-top: auto; }

/* ---------- Detail ---------- */
.tps-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.tps-detail-noimg { grid-template-columns: 1fr; max-width: 820px; }
.tps-detail-rev .tps-media { order: 2; }
.tps-media img { width: 100%; max-width: 560px; margin: auto; }
.tps-media-framed { border-radius: var(--tps-radius); overflow: hidden; box-shadow: var(--tps-shadow); }
.tps-logo { margin-bottom: 22px; }
.tps-logo img { height: 64px; width: auto; }
.tps-features { display: grid; gap: 16px; }
.tps-feature { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; }
.tps-feature b { display: block; color: var(--tps-g800); font-size: 1.06rem; margin-bottom: 2px; }
.tps-feature span:not(.tps-tile):not(.tps-acct) { color: var(--tps-muted); font-size: .95rem; }
.tps-transfer { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tps-transfer .tps-arrow { font-size: 1.2rem; }
.tps-acct {
  border: 2px solid var(--tps-blue); color: var(--tps-blue); background: #fff; border-radius: 10px;
  padding: 6px 12px; font-weight: 900; font-size: .84rem; display: inline-flex; align-items: center; gap: 6px;
}
.tps-acct-final { border-color: var(--tps-g600); color: var(--tps-g700); }
.tps-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tps-opt { padding: 20px; display: flex; gap: 14px; align-items: center; }
.tps-opt-logo {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex: none; overflow: hidden;
  background: var(--tps-g100); color: var(--tps-g700); border: 1px solid var(--tps-line); font-size: 1.5rem;
}
.tps-opt-logo:has(img) { background: #fff; }
.tps-opt-logo img { max-width: 46px; max-height: 40px; object-fit: contain; }
.tps-opt b { display: block; color: var(--tps-g800); }
.tps-opt span:not(.tps-opt-logo) { color: var(--tps-muted); font-size: .9rem; }
.tps-ministeps { display: grid; gap: 12px; margin-top: 22px; }
.tps-ministeps div { display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--tps-g800); }
.tps-ministeps i {
  font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--tps-g700); color: #fff;
  display: grid; place-items: center; font-size: .85rem; font-weight: 900; flex: none;
}

/* ---------- Flow + rails ---------- */
.tps-flow { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 40px; }
.tps-node { display: flex; align-items: center; gap: 14px; padding: 16px 26px 16px 16px; font-weight: 900; color: var(--tps-g800); font-size: 1.05rem; }
.tps-rails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tps-rail { padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tps-rail-pill {
  min-width: 150px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.3rem; color: #fff; letter-spacing: .04em; background: var(--tps-g700); padding: 0 16px;
}
.tps-rail-pill.tps-style-blue { background: var(--tps-blue); }
.tps-rail-pill.tps-style-dark { background: var(--tps-g800); }
.tps-rail-img { background: #fff; }
.tps-rail-img img { height: 52px; width: auto; }
.tps-rail h3 { color: var(--tps-g800); font-size: 1.1rem; margin: 0; font-weight: 800; }
.tps-rail p { color: var(--tps-muted); font-size: .93rem; margin: 0; }

/* ---------- Audience ---------- */
.tps-audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tps-aud { overflow: hidden; display: flex; flex-direction: column; }
.tps-aud-head {
  background: linear-gradient(135deg, var(--tps-g700), var(--tps-g800)); color: #fff;
  padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 150px;
}
.tps-aud-head h3 { font-size: 1.1rem; line-height: 1.3; margin: 0; color: #fff; font-weight: 800; }
.tps-aud ul { list-style: none; padding: 20px 22px 24px; margin: 0; display: grid; gap: 12px; }
.tps-aud li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }

/* ---------- Steps ---------- */
.tps-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.tps-steps::before {
  content: ""; position: absolute; top: 44px; left: 12%; right: 12%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--tps-g500) 0 10px, transparent 10px 18px);
}
.tps-step { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.tps-step-circle {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 18px; background: #fff;
  border: 2px solid var(--tps-g500); display: grid; place-items: center; color: var(--tps-g700);
  box-shadow: var(--tps-shadow); font-size: 2.1rem; font-weight: 900;
}
.tps-step-circle img { max-width: 50%; }
.tps-step-done .tps-step-circle { background: var(--tps-g700); color: #fff; border-color: var(--tps-g700); }
.tps-step small { display: block; font-weight: 900; letter-spacing: .18em; color: var(--tps-red); font-size: .75rem; margin-bottom: 6px; text-transform: uppercase; }
.tps-step h3 { color: var(--tps-g800); font-size: 1.12rem; margin-bottom: 6px; font-weight: 800; }
.tps-step p { color: var(--tps-muted); font-size: .93rem; margin: 0; }

/* ---------- Pipeline ---------- */
.tps-pipeline { display: flex; align-items: stretch; gap: 14px; }
.tps-pipeline > .tps-arrow { align-self: center; }
.tps-pipeline > .tps-card, .tps-pipeline > .tps-stack { flex: 1 1 0; }
.tps-anode { padding: 24px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.tps-anode > img { max-height: 70px; width: auto; }
.tps-anode b { color: var(--tps-g800); }
.tps-anode span:not(.tps-tile) { color: var(--tps-muted); font-size: .88rem; }
.tps-stack { display: grid; gap: 10px; align-content: center; }
.tps-stack .tps-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 900; color: var(--tps-g800); }
.tps-note {
  margin-top: 34px; padding: 22px 26px; display: flex; gap: 16px; align-items: center;
  background: var(--tps-g700); color: #fff; border-radius: var(--tps-radius); font-size: 1.05rem;
}

/* ---------- Reveal ---------- */
.tps-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.tps-reveal.tps-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tps-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .tps-glance, .tps-detail { grid-template-columns: 1fr; }
  .tps-detail-rev .tps-media { order: 0; }
  .tps-methods, .tps-rails, .tps-audience { grid-template-columns: 1fr 1fr; }
  .tps-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .tps-steps::before { display: none; }
  .tps-pipeline { flex-direction: column; }
  .tps-pipeline > .tps-arrow { transform: rotate(90deg); }
}
@media (max-width: 620px) {
  .tps-section { padding: 70px 0; }
  .tps-methods, .tps-rails, .tps-audience, .tps-pillars, .tps-opts, .tps-steps { grid-template-columns: 1fr; }
}
