/**
 * Platform Pages — Shared layout patterns for all 11 platform feature pages.
 * Classes here mirror the platform-shared.css design language but are scoped
 * to .plt-page so they do not leak site-wide.
 *
 * Token references use --ds-* (from tokens.css) not bare --coral etc.
 */

/* Accent emphasis in headings — upright serif, not browser italic */
.plt-page em,
.plt-page h1 em,
.plt-page h2 em,
.plt-page h3 em,
.plt-page .plt-acc em,
.plt-section h2 em,
.plt-hero h1 em {
  font-family: var(--ds-font-serif);
  font-style: normal;
  font-weight: 400;
}

/* ===== OPPORTUNITY BLOCK ===== */
.plt-page .plt-opp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 28px;
}
.plt-page .plt-opp h2 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  max-width: 22ch;
  padding-bottom: .16em;
}
.plt-page .plt-opp .plt-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ds-ink-2);
  margin: 0 0 18px;
}
.plt-page .plt-opp .plt-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.plt-page .plt-opp .plt-stat .n {
  font-family: var(--ds-font-serif);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.03em;
}
.plt-page .plt-opp .plt-stat .l {
  font-size: 14px;
  color: var(--ds-ink-2);
  max-width: 20ch;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .plt-page .plt-opp {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== HOW IT WORKS BLOCKS ===== */
.plt-page .plt-hiw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 32px;
}
.plt-page .plt-hiw-block {
  border: 1px solid var(--ds-line);
  padding: 40px 36px;
  position: relative;
}
.plt-page .plt-hiw-block[data-num]::before {
  content: attr(data-num);
  display: block;
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  margin-bottom: 16px;
}
.plt-page .plt-hiw-block .sub {
  display: block;
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  margin-bottom: 8px;
}
.plt-page .plt-hiw-block h3 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  padding-bottom: .08em;
}
.plt-page .plt-hiw-block p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ds-ink-2);
  margin: 0 0 20px;
}
.plt-page .plt-hiw-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plt-page .plt-hiw-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ds-ink-2);
}
.plt-page .plt-hiw-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ds-ink-3);
  margin-top: 8px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .plt-page .plt-hiw {
    grid-template-columns: 1fr;
  }
}

/* ===== HOW IT WORKS ROWS (integrations style) ===== */
.plt-page .plt-hiw-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}
.plt-page .plt-hiw-head h2 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  padding-bottom: .16em;
}
.plt-page .plt-hiw-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--ds-line);
  align-items: start;
}
.plt-page .plt-hiw-row:last-child {
  border-bottom: 1px solid var(--ds-line);
}
.plt-page .plt-hiw-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plt-page .plt-hiw-side .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
  align-self: flex-start;
}
.plt-page .plt-hiw-side h3 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
  padding-bottom: .06em;
}
.plt-page .plt-hiw-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ds-ink-2);
  margin: 0 0 20px;
}
.plt-page .plt-hiw-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plt-page .plt-hiw-bullets li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ds-ink-2);
  padding-left: 16px;
  position: relative;
}
.plt-page .plt-hiw-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ds-ink-3);
}
@media (max-width: 768px) {
  .plt-page .plt-hiw-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== PILLAR GRID (collaboration / security) ===== */
.plt-page .plt-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.plt-page .plt-pillar {
  border: 1px solid var(--ds-line);
  border-radius: 22px;
  padding: 32px;
  background: var(--ds-bg-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plt-page .plt-pillar .plt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  align-self: flex-start;
}
.plt-page .plt-pillar h3 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0;
  padding-bottom: .06em;
}
.plt-page .plt-pillar > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ds-ink-2);
  margin: 0;
}
.plt-page .plt-pillar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.plt-page .plt-pillar ul li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ds-ink-2);
  display: flex;
  gap: 10px;
}
.plt-page .plt-pillar ul li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ds-ink-3);
  margin-top: 8px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .plt-page .plt-pillar-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FLOW BOARD (collaboration status flow) ===== */
.plt-page .plt-flowboard {
  display: flex;
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--ds-line);
  border-radius: 22px;
  overflow: hidden;
}
.plt-page .plt-flowstep {
  flex: 1;
  padding: 28px 24px;
  border-right: 1px solid var(--ds-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plt-page .plt-flowstep:last-child {
  border-right: 0;
}
.plt-page .plt-flowstep .n {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plt-page .plt-flowstep .nd {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ds-ink-3);
}
.plt-page .plt-flowstep .mark {
  font-size: 22px;
}
.plt-page .plt-flowstep h5 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}
.plt-page .plt-flowstep > p {
  font-size: 13.5px;
  color: var(--ds-ink-2);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) {
  .plt-page .plt-flowboard {
    flex-direction: column;
  }
  .plt-page .plt-flowstep {
    border-right: 0;
    border-bottom: 1px solid var(--ds-line);
  }
  .plt-page .plt-flowstep:last-child {
    border-bottom: 0;
  }
}

/* ===== CAPABILITIES GRID ===== */
.plt-page .plt-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.plt-page .plt-cap {
  border: 1px solid var(--ds-line);
  border-radius: 18px;
  padding: 22px;
  background: var(--ds-bg-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  transition: border-color .2s, transform .3s;
}
.plt-page .plt-cap:hover {
  transform: translateY(-2px);
  border-color: var(--ds-line-2);
}
.plt-page .plt-cap .k {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
}
.plt-page .plt-cap h4,
.plt-page .plt-cap h5 {
  font-family: var(--ds-font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
  color: var(--ds-ink);
}
.plt-page .plt-cap p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ds-ink-2);
  margin: 0;
}
@media (max-width: 900px) {
  .plt-page .plt-cap-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .plt-page .plt-cap-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CONNECTOR LIBRARY (integrations cat-wide) ===== */
.plt-page .plt-cat-wide {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}
.plt-page .plt-cat-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--ds-line);
  align-items: start;
}
.plt-page .plt-cat-row:last-child {
  border-bottom: 1px solid var(--ds-line);
}
.plt-page .plt-cat-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
}
.plt-page .plt-cat-hdr h4 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
}
.plt-page .plt-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.plt-page .plt-cat-row > div > p {
  font-size: 15px;
  color: var(--ds-ink-2);
  line-height: 1.5;
  margin: 0 0 14px;
}
.plt-page .plt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plt-page .plt-chips span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--ds-line-2);
  font-size: 12.5px;
  color: var(--ds-ink-2);
  font-family: var(--ds-font-mono);
  letter-spacing: .06em;
}
@media (max-width: 768px) {
  .plt-page .plt-cat-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== DEEP GRID (my work surfaces) ===== */
.plt-page .plt-deep-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.plt-page .plt-deep {
  border: 1px solid var(--ds-line);
  border-radius: 22px;
  padding: 28px;
  background: var(--ds-bg-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
  transition: transform .3s, border-color .3s;
}
.plt-page .plt-deep:hover {
  transform: translateY(-3px);
  border-color: var(--ds-line-2);
}
.plt-page .plt-deep.plt-s-6 { grid-column: span 6; }
.plt-page .plt-deep.plt-s-12 { grid-column: span 12; }
.plt-page .plt-deep .plt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  align-self: flex-start;
}
.plt-page .plt-deep h3 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0;
  padding-bottom: .04em;
}
.plt-page .plt-deep > p {
  font-size: 14px;
  color: var(--ds-ink-2);
  margin: 0;
  line-height: 1.5;
}
.plt-page .plt-deep .plt-mini {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plt-page .plt-deep .plt-mini .row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ds-ink-3);
  font-family: var(--ds-font-mono);
  letter-spacing: .08em;
}
.plt-page .plt-deep .plt-mini .v {
  color: var(--ds-ink-2);
}
.plt-page .plt-deep .plt-bar {
  height: 4px;
  background: var(--ds-line);
  border-radius: 2px;
  overflow: hidden;
}
.plt-page .plt-deep .plt-bar span {
  display: block;
  height: 100%;
  background: var(--ds-ink-3);
  border-radius: 2px;
}
span.acc {
  display: inline-flex;
}
@media (max-width: 768px) {
  .plt-page .plt-deep.plt-s-6,
  .plt-page .plt-deep.plt-s-12 {
    grid-column: span 12;
  }
}

/* ===== COMPARE (workflows) ===== */
.plt-page .plt-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.plt-page .plt-compare .col {
  border: 1px solid var(--ds-line);
  border-radius: 18px;
  padding: 24px;
  background: var(--ds-bg-2);
}
.plt-page .plt-compare .col .k {
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  display: block;
  margin-bottom: 12px;
}
.plt-page .plt-compare .col p {
  font-size: 14px;
  color: var(--ds-ink-2);
  line-height: 1.55;
  margin: 0;
}
.plt-page .plt-compare .col.b {
  background: var(--ds-bg-3);
  border-color: var(--ds-line-2);
}
@media (max-width: 560px) {
  .plt-page .plt-compare {
    grid-template-columns: 1fr;
  }
}

/* ===== STAMP BADGE (security) ===== */
.plt-page .plt-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  margin-top: 20px;
  padding: 8px 16px;
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  align-self: flex-start;
}

/* ===== SECURITY PILLARS ===== */
.plt-page .plt-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}
.plt-page .plt-pillar-row {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--ds-line);
  align-items: start;
}
.plt-page .plt-pillar-row:last-child {
  border-bottom: 1px solid var(--ds-line);
}
.plt-page .plt-pillar-num {
  font-family: var(--ds-font-serif);
  font-style: normal;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ds-teal-soft, var(--ds-mint));
  opacity: .65;
}
.plt-page .plt-pillar-lead .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  margin-bottom: 12px;
}
.plt-page .plt-pillar-lead h3 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
  padding-bottom: .06em;
}
.plt-page .plt-pillar-body p {
  font-size: 14px;
  color: var(--ds-ink-2);
  line-height: 1.6;
  margin: 0 0 14px;
}
.plt-page .plt-pillar-body p:last-child { margin: 0; }
.plt-page .plt-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.plt-page .plt-check-list li {
  font-size: 13.5px;
  color: var(--ds-ink-2);
  display: flex;
  gap: 10px;
  line-height: 1.5;
}
.plt-page .plt-check-list li::before {
  content: '✓';
  color: var(--ds-teal-soft, var(--ds-mint));
  flex-shrink: 0;
  font-weight: 700;
}
@media (max-width: 900px) {
  .plt-page .plt-pillar-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plt-page .plt-pillar-num {
    font-size: 36px;
  }
}

/* ===== TICKER (integrations) ===== */
.plt-page .plt-ticker {
  border: 1px solid var(--ds-line);
  border-radius: 18px;
  padding: 20px 22px;
  background: var(--ds-bg-2);
  width: 220px;
  flex-shrink: 0;
}
.plt-page .plt-tk-th {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.plt-page .plt-tk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds-lime, #B8E986);
  animation: plt-blink 1.4s ease infinite;
}
@keyframes plt-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.plt-page .plt-tk-num {
  font-family: var(--ds-font-serif);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.plt-page .plt-tk-plus {
  font-size: 22px;
  opacity: .6;
}
.plt-page .plt-tk-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.plt-page .plt-tk-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ds-ink-2);
  font-family: var(--ds-font-mono);
  letter-spacing: .06em;
}
.plt-page .plt-tk-val {
  color: var(--ds-lime, #B8E986);
}
.plt-page .plt-tk-foot {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ds-ink-3);
  text-transform: uppercase;
}

/* ===== JOURNEY TIMELINE (embeddable) ===== */
.plt-page .plt-tl-strip {
  display: flex;
  gap: 10px;
  margin: 28px 0;
  overflow-x: auto;
  padding-bottom: 8px;
}
.plt-page .plt-tl-card {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--ds-line);
  border-radius: 18px;
  padding: 20px;
  background: var(--ds-bg-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, background .2s;
}
.plt-page .plt-tl-card.is-active,
.plt-page .plt-tl-card:hover {
  border-color: var(--ds-line-2);
  background: var(--ds-bg-3);
}
.plt-page .plt-tl-card-num {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--ds-ink-3);
  text-transform: uppercase;
}
.plt-page .plt-tl-card-time {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  color: var(--ds-ink-3);
}
.plt-page .plt-tl-card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ds-ink);
}
.plt-page .plt-tl-card-desc {
  font-size: 12.5px;
  color: var(--ds-ink-2);
  line-height: 1.5;
}
.plt-page .plt-tl-card-tag {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  margin-top: auto;
}
.plt-page .plt-jrny-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plt-page .plt-jrny-list li {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: var(--ds-ink-2);
  line-height: 1.5;
  padding: 14px 0;
  border-top: 1px solid var(--ds-line);
}
.plt-page .plt-jrny-list li:last-child {
  border-bottom: 1px solid var(--ds-line);
}
.plt-page .plt-jrny-list li b {
  color: var(--ds-ink);
  flex-shrink: 0;
  min-width: 180px;
}

/* ===== CTA SECTION (platform pages) ===== */
.plt-page .plt-cta {
  max-width: 1440px;
  margin: 40px auto 60px;
  padding: 0 40px;
}
.plt-page .plt-cta-block {
  border-radius: 36px;
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.plt-page .plt-cta-block h2 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 auto 24px;
  max-width: 24ch;
  padding-bottom: .08em;
}
.plt-page .plt-cta-block > p {
  font-size: 18px;
  opacity: .85;
  max-width: 52ch;
  margin: 0 auto 32px;
  line-height: 1.5;
}
.plt-page .plt-cta-row-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.plt-page .plt-cta-btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0,0,0,.18);
  text-decoration: none;
  cursor: pointer;
  background: rgba(0,0,0,.12);
  color: inherit;
}
.plt-page .plt-cta-btn.primary {
  background: currentcolor;
  filter: invert(1);
  border-color: transparent;
}
@media (max-width: 640px) {
  .plt-page .plt-cta-block {
    padding: 52px 24px;
  }
}

/* ===== PAGE FOOTER STRIP ===== */
.plt-page .plt-page-foot {
  padding: 48px 28px 64px;
  text-align: center;
  border-top: 1px solid var(--ds-line);
  color: var(--ds-ink-3);
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.plt-page .plt-page-foot a {
  color: var(--ds-ink-2);
  text-decoration: none;
}
.plt-page .plt-page-foot a:hover {
  color: var(--ds-ink);
}
.plt-page .plt-foot-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}
.plt-page .plt-foot-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ===== CONNECT BAND ===== */
.plt-page .plt-connect-band {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 28px;
}
.plt-page .plt-cb-title {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.plt-page .plt-cb-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ds-line);
}
.plt-page .plt-cb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.plt-page .plt-cb-card {
  border: 1px solid var(--ds-line);
  border-radius: 18px;
  padding: 40px 25px ;
  background: var(--ds-bg-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
  transition: transform .3s, border-color .3s;
  text-decoration: none;
  color: inherit;
}
.plt-page .plt-cb-card:hover {
  transform: translateY(-3px);
  border-color: var(--ds-line-2);
}
.plt-page .plt-cb-card .k {
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ds-ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plt-page .plt-cb-card .k span.d,
.plt-page .plt-cb-card .d {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex-shrink: 0;
}
.plt-page .plt-cb-card h5 {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
  padding-bottom: .04em;
}
.plt-page .plt-cb-card p {
  font-size: 13px;
  color: var(--ds-ink-2);
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .plt-page .plt-cb-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .plt-page .plt-cb-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== MEDIA PAGE CREATION PANELS ===== */
.plt-page .plt-media-headline {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  font-size: clamp(52px, 7vw, 108px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 72px;
}
.plt-page .plt-media-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.plt-page .plt-media-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 4.8vw, 72px);
  height: clamp(32px, 3.4vw, 52px);
  border-radius: 10px;
  flex-shrink: 0;
}

/* =============================================================================
   PLATFORM IFRAME BUNDLES (plt-standalone-page.php)
   Shared section rhythm, opportunity, CTA, agent library carousel.
   Uses bundle tokens --ink, --line, --bg from platform-standalone/*.html.
   Loaded after each platform-{slug}.css in the iframe.
   ============================================================================= */

/* --- Container (canonical — reference: platform-purpose-built) --- */

.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

/* --- Section shell --- */

section.section {
  padding-top: 60px;
  padding-bottom: 60px;
}

section.section-alt {
  padding-top: 120px;
  padding-bottom: 120px;
}

section.capabilities {
  padding-top: 120px;
  padding-bottom: 0;
}

section.connect-band {
  padding-top: 60px;
  padding-bottom: 120px;
}

section.cta {
  padding-top: 0px;
  padding-bottom: 120px;
  margin: 0;
}

section#library,
section.agents-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

/* --- Opportunity --- */

.opp {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 0;
  margin-top: 0;
}

.opp h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
  padding-bottom: 0.16em;
}

.opp h2 em {
  font-style: normal;
}

.opp .body p {
  font-size: 20px !important;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 16px;
}

.opp .body p:last-child {
  margin-bottom: 0;
}

/* --- How it works --- */

.hiw {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hiw-list {
  gap: 15px;
}

.hiw-block h3 .sub {
  margin-bottom: 10px;
}

.hiw-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: fit-content;
}

.hiw-list li::before {
  content: "";
  display: none;
}

/* --- Capability / workspace / connect band cards --- */

/* Hero headline — natural line breaks via max-width (no <br>) */
.hero h1,
.hero-cstm h1,
.hero-wf h1,
.hero-pb h1,
.hero-em h1,
.media-hero h1 {
  max-width: 14ch;
  margin-top: 16px;
  text-wrap: balance;
}

@media (max-width: 700px) {
  .hero h1,
  .hero-cstm h1,
  .hero-wf h1,
  .hero-pb h1,
  .hero-em h1,
  .media-hero h1 {
    max-width: none;
  }
}

.cap {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 25px ;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: auto;
  text-align: left;
  align-items: flex-start;
  transition: border-color 0.25s, transform 0.25s;
}

.cap .name,
.cap .desc,
.cap h4,
.cap h5,
.cap p {
  text-align: left;
  width: 100%;
}

.cap:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--plt-card-accent, var(--lavender)) 55%, var(--line));
}

.ws {
  padding: 40px 25px ;
  text-align: left;
  align-items: flex-start;
  transition: border-color 0.25s, transform 0.25s;
}

.ws:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--plt-card-accent, var(--lavender)) 55%, var(--line));
}

.ws .tag,
.ws h4,
.ws h5,
.ws p {
  text-align: left;
  width: 100%;
}

.cb-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 25px !important;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  transition: transform 0.3s, border-color 0.3s;
  color: inherit;
  text-decoration: none;
}

.cb-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--plt-card-accent, var(--lavender)) 55%, var(--line));
}

.connect-band .cb-title,
section.connect-band > h2,
.connect-band > h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
  margin: 0 0 40px;
  padding-bottom: 0.06em;
  display: block;
}

.connect-band .cb-title::after {
  display: none;
}

.connect-band .cb-title em {
  font-style: normal;
  color: var(--ink);
}

.cb-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cap-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Bottom CTA banner (shared — spacing/buttons match company-dossier-agent; per-page bg/color via inline .cta-inner style) --- */

section.cta .container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

.cta-inner {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 36px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cta h2,
.cta-inner h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(50px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 auto 22px;
  max-width: 26ch;
  padding-bottom: 0.05em;
}

.cta p,
.cta-inner > p {
  font-size: 19px;
  opacity: 0.82;
  max-width: 52ch;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.cta .row,
.cta-inner .row,
.cta-inner .amy-ev-hero-ctas.cta-btns,
.cta .amy-ev-hero-ctas.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 auto;
}

.cta .row .btn,
.cta-inner .row .btn,
.cta-inner .amy-ev-hero-ctas .btn,
.cta .amy-ev-hero-ctas .btn,
.cta-inner .btn,
.cta .btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #0a0a0b !important;
  text-decoration: none;
  letter-spacing: -0.01em;
  background: transparent;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
}

.cta .row .btn.primary,
.cta-inner .row .btn.primary,
.cta-inner .amy-ev-hero-ctas .btn.primary,
.cta .amy-ev-hero-ctas .btn.primary,
.cta-inner .btn.primary,
.cta .btn.primary {
  background: #fff;
  color: #0f0f12;
  border-color: #fff;
}

[data-theme="light"] .cta .row .btn,
[data-theme="light"] .cta-inner .row .btn,
[data-theme="light"] .cta-inner .amy-ev-hero-ctas .btn:not(.primary),
[data-theme="light"] .cta .amy-ev-hero-ctas .btn:not(.primary),
[data-theme="light"] .cta-inner .btn:not(.primary),
[data-theme="light"] .cta .btn:not(.primary) {
  border-color: rgba(15, 15, 18, 0.15);
}

[data-theme="light"] .cta .row .btn.primary,
[data-theme="light"] .cta-inner .row .btn.primary,
[data-theme="light"] .cta-inner .amy-ev-hero-ctas .btn.primary,
[data-theme="light"] .cta .amy-ev-hero-ctas .btn.primary,
[data-theme="light"] .cta-inner .btn.primary,
[data-theme="light"] .cta .btn.primary {
  background: #0f0f12;
  color: #fff !important;
  border-color: #0f0f12;
}

.cta .btn:hover,
.cta-inner .btn:hover,
.cta .row .btn:hover,
.cta-inner .row .btn:hover,
.cta-inner .amy-ev-hero-ctas .btn:hover,
.cta .amy-ev-hero-ctas .btn:hover {
  transform: translateY(-1px);
}

.cta .btn.primary:hover,
.cta-inner .btn.primary:hover,
.cta-inner .amy-ev-hero-ctas .btn.primary:hover,
.cta .amy-ev-hero-ctas .btn.primary:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.cta .btn:not(.primary):hover,
.cta-inner .btn:not(.primary):hover,
.cta-inner .amy-ev-hero-ctas .btn:not(.primary):hover,
.cta .amy-ev-hero-ctas .btn:not(.primary):hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .cta .btn:not(.primary):hover,
[data-theme="light"] .cta-inner .btn:not(.primary):hover,
[data-theme="light"] .cta-inner .amy-ev-hero-ctas .btn:not(.primary):hover,
[data-theme="light"] .cta .amy-ev-hero-ctas .btn:not(.primary):hover {
  background: rgba(15, 15, 18, 0.06);
}

html[data-theme="light"] section.cta .amy-ev-hero-ctas .btn:not(.primary):hover {
  background: none !important;
}

.cta .row .btn .arr,
.cta-inner .row .btn .arr,
.cta-inner .amy-ev-hero-ctas .btn .arr,
.cta .amy-ev-hero-ctas .btn .arr,
.cta-inner .btn .arr,
.cta .btn .arr {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.cta .row .btn.primary .arr,
.cta-inner .row .btn.primary .arr,
.cta-inner .amy-ev-hero-ctas .btn.primary .arr,
.cta .amy-ev-hero-ctas .btn.primary .arr,
.cta-inner .btn.primary .arr,
.cta .btn.primary .arr {
  background: rgba(0, 0, 0, 0.12);
  color: currentColor;
}

[data-theme="light"] .cta .row .btn.primary .arr,
[data-theme="light"] .cta-inner .row .btn.primary .arr,
[data-theme="light"] .cta-inner .amy-ev-hero-ctas .btn.primary .arr,
[data-theme="light"] .cta .amy-ev-hero-ctas .btn.primary .arr,
[data-theme="light"] .cta-inner .btn.primary .arr,
[data-theme="light"] .cta .btn.primary .arr {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

html[data-theme="dark"] .cta .row .btn.primary .arr,
html[data-theme="dark"] .cta-inner .row .btn.primary .arr,
html[data-theme="dark"] .cta-inner .amy-ev-hero-ctas .btn.primary .arr,
html[data-theme="dark"] .cta .amy-ev-hero-ctas .btn.primary .arr,
html[data-theme="dark"] .cta-inner .btn.primary .arr,
html[data-theme="dark"] .cta .btn.primary .arr {
  background: transparent;
  color: currentColor;
}

html[data-theme="dark"] .amy-ev-hero-ctas .btn:not(.primary),
html[data-theme="dark"] .hero .cta-row .btn:not(.primary),
html[data-theme="dark"] .hero-pb .cta-row .btn:not(.primary),
html[data-theme="dark"] .hero-wf .cta-row .btn:not(.primary),
html[data-theme="dark"] .hero-cstm .cta-row .btn:not(.primary),
html[data-theme="dark"] .hero-em .cta-row .btn:not(.primary),
html[data-theme="dark"] .media-hero .cta-row .btn:not(.primary) {
  border-color: rgba(255, 255, 255, 0.7) !important;
}

article.deep.s-12 {
  min-height: auto;
}

/* --- Agent library (tabs + rail carousel) --- */

.lib-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}

.lib-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.lib-tab .sw {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  display: none;
}

.lib-tab .ct {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-3);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: none;
}

.lib-tab:hover {
  color: var(--ink);
  border-color: var(--line-2);
}

.lib-tab:hover .sw {
  transform: scale(1.18);
}

.lib-tab.is-active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--bg-2);
}

.lib-tab.is-active .sw {
  transform: scale(1.25);
}

html[data-theme="light"] .lib-tab.is-active {
  background: var(--bg);
}

.lib-stage {
  position: relative;
  min-height: 280px;
}

.lib-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform: translateY(8px);
}

.lib-panel.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lib-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0 0 30px;
}

.lib-panel-head h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  padding-bottom: 0.06em;
  max-width: 24ch;
  text-wrap: balance;
}

.lib-panel-head h3 em {
  font-style: normal;
}

section#library .lib-panel-head h3 em {
  color: var(--mint);
}

section.agents-section .lib-panel-head h3 em {
  color: var(--amber);
}

.lib-panel-head .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 14px;
}

.lib-panel-head .nav-btns {
  display: flex;
  gap: 6px;
}

.lib-panel-head .nav-btns button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lib-panel-head .nav-btns button:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.lib-panel-head .nav-btns button:disabled {
  opacity: 0.32;
  cursor: default;
}

.lib-panel-head .nav-btns button:disabled:hover {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--line);
}

.lib-rail-wrap {
  position: relative;
  margin: 0 -28px;
  padding: 4px 28px 120px;
  border-bottom: 1px solid var(--line);
}

.lib-rail-wrap::before,
.lib-rail-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 2;
}

.lib-rail-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}

.lib-rail-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}

section.section-alt .lib-rail-wrap::before {
  background: linear-gradient(90deg, var(--bg-2) 0%, transparent 100%);
}

section.section-alt .lib-rail-wrap::after {
  background: linear-gradient(270deg, var(--bg-2) 0%, transparent 100%);
}

.lib-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding: 4px 0 0;
}

.lib-rail.is-grabbing {
  cursor: grabbing;
  scroll-snap-type: none;
}

.lib-rail::-webkit-scrollbar {
  display: none;
}

.lib-progress {
  display: none;
}

@media (max-width: 991px) {
  .lib-rail-wrap {
    padding-bottom: 60px;
  }
}

@media (max-width: 767px) {
  .lib-rail-wrap {
    padding-bottom: 50px;
  }
}

.lib-rail .agent-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.lib-rail .agent-card.amy-plt-agent-bg {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 0 !important;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  border: 1px solid var(--amy-net-border, var(--line)) !important;
  border-radius: 20px !important;
  color: #111 !important;
  box-sizing: border-box !important;
  flex: 0 0 370px !important;
  width: 370px !important;
  min-height: 232px !important;
  aspect-ratio: 452 / 260 !important;
  padding: 22px 24px 48px !important;
  background-size: cover !important;
  background-position: 88% center !important;
  background-repeat: no-repeat !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

.lib-rail .agent-card.amy-plt-agent-bg:hover {
  transform: none !important;
  box-shadow: none !important;
}

.lib-rail .agent-card.amy-plt-agent-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.78) 32%,
    rgba(255, 255, 255, 0.22) 55%,
    rgba(255, 255, 255, 0) 72%
  );
}

.lib-rail .agent-card.amy-plt-agent-bg .a-name {
  order: 1;
  position: relative;
  z-index: 2;
  margin: 0 0 10px !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  max-width: 58% !important;
  color: rgba(10, 10, 14, 0.92) !important;
}

.lib-rail .agent-card.amy-plt-agent-bg .a-desc {
  order: 2;
  position: relative;
  z-index: 2;
  margin: 0 !important;
  flex: 0 1 auto !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.36 !important;
  max-width: 50% !important;
  color: rgba(10, 10, 14, 0.72) !important;
  opacity: 1 !important;
}

.lib-rail .agent-card.amy-plt-agent-bg .a-arrow {
  order: 3;
  position: absolute !important;
  top: auto !important;
  left: auto !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 3;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  line-height: 1 !important;
  background: rgba(0, 0, 0, 0.1) !important;
  opacity: 0.7 !important;
  transition: opacity 0.18s ease, background 0.18s ease !important;
}

.lib-rail .agent-card.amy-plt-agent-bg:hover .a-arrow {
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.16) !important;
}
section#workspaces {
  padding-top: 60px;
  padding-bottom: 120px;
}
.opp .body, .opp .rhs  {
  padding-bottom: 60px;
}
header.hero h1, header.hero-cstm h1, header.hero-wf h1, header.hero-pb h1, header.hero-em h1, header.media-hero h1 {
  line-height: 1.16!important;

}
/* --- Iframe responsive --- */

@media (min-width: 1100px) {
  .lib-tabs {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    overflow: visible !important;
  }

  .lib-tab {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding: 8px 8px !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    gap: 5px !important;
  }

  .lib-tab .sw {
    width: 7px !important;
    height: 7px !important;
    flex-shrink: 0 !important;
  }

  .lib-tab .ct {
    padding: 1px 4px !important;
    font-size: 9px !important;
    flex-shrink: 0 !important;
  }
}

@media (min-width: 992px) and (max-width: 1099px) {
  .lib-tabs {
    flex-wrap: nowrap !important;
    gap: 5px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .lib-tabs::-webkit-scrollbar {
    display: none;
  }

  .lib-tab {
    flex: 0 0 auto !important;
    padding: 8px 10px !important;
    font-size: 9.5px !important;
    letter-spacing: 0.1em !important;
  }
}

@media (max-width: 1100px) {
  .hero .grid,
  .hero-grid,
  .hero-wf .grid,
  .hero-pb .grid,
  .media-hero .grid,
  .hero-em .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero .preview,
  .hero-wf .preview,
  .hero-pb .preview,
  .hero-pb .hero-chat,
  .media-hero .preview {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero-wf .preview,
  .media-hero .preview {
    min-height: 520px;
  }

  .lib-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 28px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 20px;
    width: 100%;
    overflow-x: auto;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .lib-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 991px) {
  section.section {
    padding-top: 30px;
    padding-bottom: 60px;
  }

  section.section-alt {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  section.capabilities {
    padding-top: 60px;
    padding-bottom: 30px;
  }

  section.connect-band {
    padding-top: 30px;
    padding-bottom: 60px;
  }
  section#workspaces {
    padding-top: 30px;
    padding-bottom: 60px;
}
  section.cta {
    padding-top: 30px;
    padding-bottom: 60px;
    margin: 0;
  }
  .opp .body,  .opp .rhs  {
    padding-bottom: 0;
  }
 
  section#library,
  section.agents-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .opp {
    grid-template-columns: 1fr 1.3fr;
    padding-bottom: 0;
  }

  .cap,
  .cb-card {
    min-height: auto;
  }

  .cap-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lib-rail-wrap {
    padding: 4px 28px 60px !important;
  }
}

@media (max-width: 767px) {
  .container,
  section.cta .container {
    padding-left: 25px;
    padding-right: 25px;
  }

  .plt-page .plt-cta {
    padding: 0 25px;
  }

  section.section,
  section.section-alt,
  section.capabilities,
  section.connect-band,
  section.cta,
  section#library,
  section.agents-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  section.section {
    padding-top: 25px;
  }
  .opp .body ,  .opp .rhs {
    padding-bottom: 0;
  }
  section.section-alt {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  section#workspaces {
    padding-top: 25px;
    padding-bottom: 50px;
}
  section.capabilities {
    padding-top: 50px;
    padding-bottom: 0;
  }

  section.connect-band {
    padding-top: 50px;
    padding-bottom: 50px !important;
  }
 
  .opp {
    padding-bottom: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .opp .body p {
    font-size: 14px !important;
  }

  .cap-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cb-grid {
    grid-template-columns: 1fr;
  }

  .cap,
  .ws {
    gap: 10px !important;
    min-height: auto !important;
    padding: 20px !important;
    text-align: left;
    align-items: flex-start;
  }
  .flowboard {
    padding: 20px !important;
}
  .cb-card {
    padding: 20px !important;
    gap: 10px !important;
    min-height: auto;
  }

  .section > .lede,
  .section > p.lede {
    margin: 0 0 25px;
    font-size: 14px !important;
  }

  .hiw-list {
    grid-template-columns: 1fr;
  }

  .hiw {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Mobile type scale: 16|15|14.5|14 → 14px; 13.5 → 13px; 12.5 → 12px */
  .hero .lede,
  .hero > .lede,
  .hero p.lede,
  .hero .body,
  .hero-pb .lede,
  .hero-cstm .lede,
  .hero-wf .lede,
  .media-hero p,
  .opp p,
  .panel p,
  .panel .copy,
  .panel p.copy,
  .section > .lede,
  .section > p.lede,
  .section .lede,
  .pillar p,
  .hiw-row .hiw-body p,
  .hiw-block p,
  .cnx-row .ds,
  .flow-row .val,
  .amy-ev-hero-ctas .btn,
  .hero .cta-row .btn,
  .btn,
  .plt-page .plt-pillar-body p,
  .plt-page .plt-jrny-list li,
  .plt-page .plt-tl-card-title,
  .plt-page .plt-cta-btn,
  .plt-page .plt-cta-block > p {
    font-size: 14px !important;
  }

  .cap p,
  .feat p,
  .feat ul li,
  .hiw-list li,
  .hiw-row .hiw-bullets li,
  .cat-row p,
  .cb-card p,
  .lib-cat .agents,
  .plt-page .plt-flowstep > p,
  .plt-page .plt-check-list li {
    font-size: 13px !important;
  }

  .conn-tile,
  .subnav a,
  .nav .links a,
  .plt-page .plt-tl-card-desc {
    font-size: 12px !important;
  }

  .subnav a {
    font-size: 12px;
  }

  .hero .preview,
  .hero-wf .preview,
  .hero-pb .preview,
  .hero-em .preview,
  .hero-em .em-preview,
  .media-hero .preview {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 16px;
    overflow-x: hidden;
  }

  .hero .grid,
  .hero-wf .grid,
  .hero-pb .grid,
  .media-hero .grid {
    gap: 0;
  }


  .hero-wf .cta-row,
  .hero-pb .cta-row,
  .media-hero .cta-row{
    margin: 0 0 25px;
  }
  .amy-ev-hero-ctas,   .hero .cta-row{
    margin: 0 0 20px !important;
  }
  .hero .lede,
  .hero-wf .lede,
  .hero-pb .lede,
  .media-hero .lede {
    font-size: 14px !important;
    color: var(--ink-2);
    max-width: 100%;
    line-height: 1.5;
    margin: 0 0 26px;
  }

  .section h2,
  .hero h2,
  .hero-wf h2,
  .hero-em h2,
  .hero-cstm h2,
  .hero-pb h2,
  .media-hero h2,
  h2 {
    font-size: clamp(32px, 4.5vw, 60px) !important;
    line-height: 1.08 !important;
    text-wrap: balance;
    margin-bottom: 25px !important;
    padding-bottom: 0 !important;
  }

  .cta h2,
  .cta-inner h2 {
    font-size: clamp(32px, 4.5vw, 60px);
    line-height: 1.08;
    text-wrap: balance;
    margin: 0 auto 25px;
    padding-bottom: 0;
    max-width: none;
  }

  .cta-inner {
    border-radius: 28px;
    padding: 40px 40px;
    gap: 0;
  }

  .cta p,
  .cta-inner > p {
    font-size: 16px;
    margin: 0 auto 25px;
  }

  .cta .row,
  .cta-inner .row,
  .cta-inner .amy-ev-hero-ctas.cta-btns,
  .cta .amy-ev-hero-ctas.cta-btns {
    gap: 12px;
  }

  .cta .row .btn,
  .cta-inner .row .btn,
  .cta-inner .amy-ev-hero-ctas .btn,
  .cta .amy-ev-hero-ctas .btn,
  .cta-inner .btn,
  .cta .btn {
    padding: 12px 20px;
    font-size: 14px;
    gap: 10px;
  }

  .lib-panel-head .nav-btns button {
    font-size: 14px;
  }

  .lib-rail .agent-card.amy-plt-agent-bg .a-name,
  .lib-rail .agent-card.amy-plt-agent-bg .a-arrow {
    font-size: 14px !important;
  }

  .lib-rail .agent-card.amy-plt-agent-bg .a-desc {
    font-size: 12px !important;
  }
  .hiw-block{
    padding: 20px !important;
  }
  header.hero .hero-grid, header.hero-wf .grid{
    gap: 0 !important;
    margin-top: 0 !important;
  }
  header.hero-wf h1, header.hero h1{
    margin-top: 0 !important;
  }
  .panel,.work , .deep, .cb-card, .cap {
    padding: 20px !important;
}
.lib-rail-wrap {
  padding: 4px 25px 50px !important;
}
#library h2 {
  margin-bottom: 0 !important;
}
#library .library-title{
  gap: 15px !important;
  margin: 0 0 20px !important;
}
.lib-tabs {
  margin: 0 0 5px;
  padding-bottom: 20px;
}
.lib-panel-head {
  gap: 15px;
  margin: 0 0 20px;
}
}

@media (max-width: 640px) {
  .opp {
   
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  
}
}

@media (max-width: 520px) {
  .lib-rail .agent-card.amy-plt-agent-bg {
    flex: 0 0 86% !important;
    width: auto !important;
    min-height: 190px !important;
    padding: 20px !important;
  }

  .lib-rail .agent-card.amy-plt-agent-bg .a-name,
  .lib-rail .agent-card.amy-plt-agent-bg .a-desc {
    max-width: 72% !important;
  }
}

/* ── FAQ grid (platform + hub pages) ── */
.plt-faq-grid,
.hub-faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 70px;
  align-items: start;
}

.plt-faq-list,
.hub-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.plt-faq-list details,
.hub-faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2, #fff);
  overflow: hidden;
}

.plt-faq-list summary,
.hub-faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.plt-faq-list summary::-webkit-details-marker,
.hub-faq-list summary::-webkit-details-marker {
  display: none;
}

.plt-faq-list summary span,
.hub-faq-list summary span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-3);
  transition: transform 0.2s ease;
}

.plt-faq-list details[open] summary span,
.hub-faq-list details[open] summary span {
  transform: rotate(45deg);
}

.plt-faq-list p,
.hub-faq-list p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .plt-faq-grid,
  .hub-faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
