/* Tech Stack block — platform strip + architecture diagram + deployment cards. */
.sun-tech { display: block; }
.sun-tech__inner {
  box-sizing: border-box;
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
  padding: clamp(32px, 4vw, 64px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 96px);
}

/* ---------- Part 1: grouped platform strip ---------- */
.sun-tech__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
  padding: clamp(20px, 2.5vw, 32px) clamp(20px, 2.5vw, 40px);
  background: var(--sun-surface);                  /* #f5f5f5 card on the #efefef page (Figma 1304-31413, sampled) */
  border: 0;
  border-top: 1px solid var(--sun-primary);        /* orange hairline along the top edge */
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(19, 33, 64, 0.06);
}
.sun-tech__group { min-width: 0; }
.sun-tech__group-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--bluegrey, #4f5563);
}
.sun-tech__items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sun-tech__item { display: flex; align-items: center; gap: 12px; }
.sun-tech__media {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--wp--preset--color--border, #efefef);
  border-radius: 10px;
}
.sun-tech__media img { width: 24px; height: 24px; object-fit: contain; }
.sun-tech__media--icon svg,
.sun-tech__media--sprite svg { width: 22px; height: 22px; color: var(--wp--preset--color--accent, #4a67d2); }
.sun-tech__media--sprite svg { fill: currentColor; }
.sun-tech__item-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sun-tech__item-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--wp--preset--color--secondary, #132140);
}
.sun-tech__item-note {
  font-size: 13px;
  line-height: 1.35;
  color: var(--wp--preset--color--bluegrey, #4f5563);
}

/* ---------- Part 2: architecture diagram ---------- */
.sun-tech__part-head { margin-bottom: clamp(24px, 3vw, 48px); }
.sun-tech__part-heading {
  margin: 0 auto 16px;
  max-width: 760px;                                /* Figma 1304-31615: 48/56 on a 760 measure */
  font-size: clamp(29px, 3.75vw, 48px);
  line-height: 1.1667;
  letter-spacing: -0.48px;
  font-weight: 500;
  color: var(--wp--preset--color--secondary, #132140);
  text-align: center;
}
.sun-tech__part-sub {
  margin: 0 auto;
  max-width: 760px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: var(--wp--preset--color--bluegrey, #4f5563);
}
.sun-tech__diagram {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
.sun-tech__stack { display: flex; flex-direction: column; }
.sun-tech__node {
  background: #fff;
  border: 1px solid var(--wp--preset--color--muted, #b6bac4);
  border-radius: var(--wp--custom--radius--md, 12px);
  padding: 16px 20px;
  text-align: center;
}
.sun-tech__node--app { border-color: var(--wp--preset--color--accent, #4a67d2); }
.sun-tech__node-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--bluegrey, #4f5563);
}
.sun-tech__node-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sun-tech__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--wp--preset--color--surface, #f5f5f5);
  border: 1px solid var(--wp--preset--color--border, #efefef);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wp--preset--color--secondary, #132140);
}
.sun-tech__chip img { width: 16px; height: 16px; object-fit: contain; }
.sun-tech__chip-icon { display: inline-flex; }
.sun-tech__chip-icon svg { width: 15px; height: 15px; color: var(--wp--preset--color--accent, #4a67d2); }

/* vertical arrows between stack nodes */
.sun-tech__arrow {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
}
.sun-tech__arrow-line {
  position: relative;
  width: 1.5px;
  height: 100%;
  background: var(--wp--preset--color--muted, #b6bac4);
}
.sun-tech__arrow-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--wp--preset--color--muted, #b6bac4);
  border-bottom: 1.5px solid var(--wp--preset--color--muted, #b6bac4);
  transform: translateX(-50%) rotate(45deg);
}
.sun-tech__arrow-label {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--bluegrey, #4f5563);
  white-space: nowrap;
}

/* horizontal connector to the integrations column */
.sun-tech__side { display: flex; align-items: center; }
.sun-tech__side-connector {
  position: relative;
  width: clamp(32px, 4vw, 72px);
  height: 1.5px;
  background: var(--wp--preset--color--muted, #b6bac4);
  flex: none;
}
.sun-tech__side-connector::before,
.sun-tech__side-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--wp--preset--color--muted, #b6bac4);
  border-right: 1.5px solid var(--wp--preset--color--muted, #b6bac4);
}
.sun-tech__side-connector::before { left: 0; transform: translateY(-50%) rotate(-135deg); }
.sun-tech__side-connector::after { right: 0; transform: translateY(-50%) rotate(45deg); }
.sun-tech__side-connector .sun-tech__arrow-label {
  position: absolute;
  left: 50%;
  top: -26px;
  transform: translateX(-50%);
  padding: 2px 6px;
  background: var(--wp--preset--color--surface, #f5f5f5);
  border-radius: 4px;
  z-index: 1;
}
.sun-tech__node--integrations { flex: 1; text-align: left; }
.sun-tech__side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--wp--preset--color--secondary, #132140);
}
.sun-tech__side-list li { display: flex; align-items: center; gap: 8px; }
.sun-tech__side-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary, #ff710a);
  flex: none;
}
.sun-tech__diagram-note {
  margin: clamp(16px, 2vw, 24px) auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 14px;
  color: var(--wp--preset--color--bluegrey, #4f5563);
}

/* ---------- Part 3: installation spec cards ---------- */
.sun-tech__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: calc(-1 * clamp(24px, 3vw, 56px));
}
.sun-tech__spec-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--border, #efefef);
  border-radius: var(--wp--custom--radius--md, 12px);
  padding: clamp(20px, 2vw, 28px);
}
.sun-tech__spec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  background: var(--wp--preset--color--surface, #f5f5f5);
  border-radius: 10px;
}
.sun-tech__spec-icon svg { width: 22px; height: 22px; color: var(--wp--preset--color--accent, #4a67d2); }
.sun-tech__spec-title {
  margin: 0 0 10px;
  font-size: var(--wp--preset--font-size--h-6, 18px);
  font-weight: 500;
  color: var(--wp--preset--color--secondary, #132140);
}
.sun-tech__spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--wp--preset--color--bluegrey, #4f5563);
}
.sun-tech__spec-list li { display: flex; align-items: flex-start; gap: 8px; }
.sun-tech__spec-list li::before {
  content: "";
  margin-top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary, #ff710a);
  flex: none;
}

/* ---------- Part 4: deployment cards ---------- */
.sun-tech__deploy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
.sun-tech__deploy-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--border, #efefef);
  border-radius: var(--wp--custom--radius--lg, 16px);
  padding: clamp(24px, 3vw, 40px);
}
.sun-tech__deploy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  background: var(--wp--preset--color--surface, #f5f5f5);
  border-radius: 12px;
}
.sun-tech__deploy-icon svg { width: 24px; height: 24px; color: var(--wp--preset--color--accent, #4a67d2); }
.sun-tech__deploy-title {
  margin: 0 0 4px;
  font-size: var(--wp--preset--font-size--h-5, 24px);
  font-weight: 500;
  color: var(--wp--preset--color--secondary, #132140);
}
.sun-tech__deploy-sub { margin: 0 0 16px; color: var(--wp--preset--color--bluegrey, #4f5563); }
.sun-tech__deploy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--wp--preset--color--secondary, #132140);
}
.sun-tech__deploy-list li { display: flex; align-items: flex-start; gap: 10px; }
.sun-tech__deploy-check { display: inline-flex; flex: none; margin-top: 2px; }
.sun-tech__deploy-check svg { width: 16px; height: 16px; color: var(--wp--preset--color--primary, #ff710a); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sun-tech__strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sun-tech__diagram { grid-template-columns: 1fr; }
  .sun-tech__side { flex-direction: column; }
  .sun-tech__side-connector {
    width: 1.5px;
    height: clamp(28px, 4vw, 48px);
  }
  .sun-tech__side-connector::before { left: 50%; top: 0; transform: translateX(-50%) rotate(-45deg); }
  .sun-tech__side-connector::after { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%) rotate(135deg); }
  .sun-tech__side-connector .sun-tech__arrow-label { left: 16px; top: 50%; transform: translateY(-50%); }
  .sun-tech__node--integrations { width: 100%; text-align: center; }
  .sun-tech__side-list { align-items: center; }
}
@media (max-width: 1024px) {
  .sun-tech__specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sun-tech__strip { grid-template-columns: 1fr; }
  .sun-tech__deploy { grid-template-columns: 1fr; }
  .sun-tech__specs { grid-template-columns: 1fr; }
}
