/* Platform: compact landscape — phone + integrations carousel + operations */

.home-page--obsidian .home-panel--platform {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

.home-page--obsidian .platform-shell {
  width: fit-content;
  max-width: min(1080px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
  height: fit-content !important;
  max-height: none !important;
  padding: 1.15rem 1.25rem 1.2rem !important;
}

.home-page--obsidian .home-panel--platform .sec-head {
  margin: 0 0 0.75rem !important;
  max-width: 34rem;
}

.home-page--obsidian .home-panel--platform .sec-head__title {
  font-size: clamp(1.3rem, 2.3vw, 1.65rem) !important;
}

.home-page--obsidian .home-panel--platform .sec-head__lead {
  font-size: 0.9rem !important;
  max-width: 32rem;
}

.platform-layout {
  display: grid;
  grid-template-columns: auto minmax(14rem, 16.5rem) minmax(17rem, 21rem);
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: start;
  margin-top: 0.15rem;
  height: fit-content;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
}

/* Compact phone — height authority for sibling columns */
.integrations-phone {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.4rem;
  width: 9.75rem;
  height: auto;
}

.integrations-phone__frame {
  width: 100%;
  max-width: 9.75rem;
  margin: 0 auto;
}

.integrations-phone__frame .hero-phone--showcase {
  width: 100%;
  max-width: none;
  margin: 0;
}

.integrations-phone__frame .hero-phone__device-shell {
  filter: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.integrations-phone__controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.28rem;
  align-items: center;
  width: 100%;
}

.integrations-phone__nav {
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 6px;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.integrations-phone__nav svg {
  width: 0.75rem;
  height: 0.75rem;
}

.integrations-phone__track {
  display: flex;
  gap: 0.28rem;
  justify-content: center;
  overflow: hidden;
  padding: 0.1rem;
}

.integrations-phone__track .mobile-showcase__slide {
  flex: 0 0 auto;
  width: 0.38rem;
  height: 0.38rem;
  min-width: 0;
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.18);
  cursor: pointer;
  text-indent: -9999px;
  overflow: hidden;
}

.integrations-phone__track .mobile-showcase__slide.is-active {
  background: #111;
  width: 0.9rem;
}

.integrations-phone__track .mobile-showcase__slide-eyebrow,
.integrations-phone__track .mobile-showcase__slide-desc,
.integrations-phone__track .mobile-showcase__slide-title {
  display: none;
}

.integrations-phone__rail {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.1);
  overflow: hidden;
}

.integrations-phone__progress {
  display: block;
  height: 100%;
  width: 0%;
  background: #111;
  transition: width 0.35s ease;
}

/* Integrations carousel — sized to phone height */
.int-carousel {
  min-width: 0;
  width: 100%;
  height: var(--platform-col-h, auto);
  display: flex;
  align-self: start;
}

.int-carousel__card {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.4rem;
  padding: 0.7rem 0.75rem 0.6rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.04);
  box-sizing: border-box;
  overflow: hidden;
  align-content: stretch;
}

.int-carousel__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.6rem;
  align-items: start;
}

.int-carousel__eyebrow {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6560;
}

.int-carousel__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  line-height: 1.15;
  grid-column: 1;
}

.int-carousel__badges {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  align-items: flex-end;
}

.int-carousel__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: #f7f7f6;
  font-size: 0.6rem;
  font-weight: 650;
  color: #333;
  white-space: nowrap;
}

.int-carousel__badge--live i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #2f6f4e;
  animation: int-live-pulse 1.8s ease-out infinite;
}

@keyframes int-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 111, 78, 0.4); }
  70% { box-shadow: 0 0 0 5px rgba(47, 111, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 111, 78, 0); }
}

.int-carousel__viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 9px;
  background: #fafafa;
}

.int-carousel__viewport::before,
.int-carousel__viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0.9rem;
  z-index: 2;
  pointer-events: none;
}

.int-carousel__viewport::before {
  top: 0;
  background: linear-gradient(180deg, #fafafa, transparent);
}

.int-carousel__viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, #fafafa, transparent);
}

.int-carousel__track {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  display: grid;
  gap: 0.3rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.int-carousel__item {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  height: 2.4rem;
  padding: 0.3rem 0.5rem 0.3rem 0.35rem;
  border-radius: 7px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.int-carousel__item.is-active {
  opacity: 1;
  border-color: rgba(17, 17, 17, 0.14);
  box-shadow: 0 3px 10px rgba(17, 17, 17, 0.05);
}

.int-carousel__logo {
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f4f4f3;
  border: 1px solid rgba(17, 17, 17, 0.05);
  overflow: hidden;
  flex-shrink: 0;
  padding: 0.22rem;
  box-sizing: border-box;
}

.int-carousel__logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 1.35rem;
  max-height: 1.1rem;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.int-carousel__logo img[src*="-mark.svg"] {
  max-width: 1.2rem;
  max-height: 1.2rem;
}

.int-carousel__copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  align-content: center;
}

.int-carousel__copy strong {
  font-size: 0.78rem;
  font-weight: 650;
  color: #111;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.int-carousel__copy small {
  font-size: 0.64rem;
  font-weight: 550;
  color: #6b6560;
}

.int-carousel__item--more {
  background: #111;
  border-color: #111;
}

.int-carousel__item--more .int-carousel__logo {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.int-carousel__item--more .int-carousel__copy strong,
.int-carousel__item--more .int-carousel__copy small {
  color: #fff;
}

.int-carousel__item--more .int-carousel__copy small {
  color: rgba(255, 255, 255, 0.65);
}

.int-carousel__foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem;
}

.int-carousel__nav {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 7px;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.int-carousel__nav:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.int-carousel__nav svg {
  width: 0.85rem;
  height: 0.85rem;
}

.int-carousel__rail {
  height: 2px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.1);
  overflow: hidden;
}

.int-carousel__rail-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #111;
  transition: width 0.35s ease;
}

.int-carousel__hint {
  font-size: 0.62rem;
  font-weight: 600;
  color: #6b6560;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Built for operations — matches phone height */
.platform-why {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-self: start;
  width: 100%;
  height: var(--platform-col-h, auto);
  max-height: var(--platform-col-h, none);
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  background: #fafaf9;
  box-sizing: border-box;
  overflow: hidden;
}

.platform-why__head {
  display: grid;
  gap: 0.1rem;
}

.platform-why__eyebrow {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 650;
  color: #6b6560;
}

.platform-why__title {
  margin: 0;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: #111;
  line-height: 1.15;
}

.platform-why__lead {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: #555;
}

.why-grid--platform {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.3rem !important;
  min-height: 0;
  height: 100%;
  align-content: stretch !important;
}

.why-grid--platform .why-card {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: none;
  padding: 0.45rem 0.6rem !important;
  gap: 0.12rem !important;
  box-sizing: border-box;
}

.why-grid--platform .why-card__title {
  margin: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
}

.why-grid--platform .why-card__text {
  margin: 0 !important;
  font-size: 0.68rem !important;
  line-height: 1.3 !important;
}

@media (prefers-reduced-motion: reduce) {
  .int-carousel__track,
  .int-carousel__item,
  .integrations-phone__progress,
  .int-carousel__rail-fill {
    transition: none;
  }

  .int-carousel__badge--live i {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .home-page--obsidian .platform-shell {
    width: min(1080px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
  }

  .platform-layout {
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
  }

  .platform-why {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .home-page--obsidian .home-panel--platform {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .home-page--obsidian .platform-shell {
    width: calc(100% - 1.5rem);
    margin-left: auto;
    margin-right: auto;
    padding: 0.9rem 0.85rem !important;
  }

  .home-page--obsidian .home-panel--platform .sec-head {
    margin: 0 0 0.65rem !important;
    max-width: none;
  }

  .home-page--obsidian .home-panel--platform .sec-head__title {
    font-size: clamp(1.2rem, 5.5vw, 1.4rem) !important;
  }

  .home-page--obsidian .home-panel--platform .sec-head__lead {
    font-size: 0.88rem !important;
  }

  .platform-layout {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.85rem;
  }

  .integrations-phone {
    order: 0 !important;
    width: min(100%, 10.25rem);
    justify-self: center;
    height: auto;
  }

  .integrations-phone__frame {
    max-width: 10.25rem;
  }

  .int-carousel {
    order: 1;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    height: auto;
  }

  .int-carousel__card {
    min-height: 0;
    height: auto;
    max-height: none;
    gap: 0.35rem;
    padding: 0.6rem 0.65rem 0.5rem;
  }

  .int-carousel__viewport {
    /* Exactly 3 full rows: 3×2.45rem + 2×0.28rem gap + 0.6rem track pad */
    height: 8.55rem;
    min-height: 8.55rem;
    max-height: 8.55rem;
    overflow: hidden;
  }

  .int-carousel__viewport::before,
  .int-carousel__viewport::after {
    display: none;
  }

  .int-carousel__track {
    padding: 0.3rem;
    gap: 0.28rem;
  }

  .int-carousel__item {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    min-height: 2.45rem !important;
    height: 2.45rem !important;
    padding: 0.28rem 0.45rem 0.28rem 0.3rem;
    overflow: hidden;
  }

  .int-carousel__logo {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0.22rem;
    overflow: hidden;
  }

  .int-carousel__logo img {
    max-width: 1.6rem;
    max-height: 1.4rem;
    width: auto;
    height: auto;
  }

  .int-carousel__logo img[src*="-mark.svg"] {
    max-width: 1.4rem;
    max-height: 1.4rem;
  }

  .platform-why {
    order: 2;
    grid-column: auto;
    height: auto;
    max-height: none;
    padding: 0.7rem 0.75rem;
  }

  .why-grid--platform {
    grid-template-rows: none !important;
    height: auto;
    gap: 0.35rem !important;
  }

  .why-grid--platform .why-card {
    height: auto;
    padding: 0.5rem 0.6rem !important;
  }

  .int-carousel__badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 420px) {
  .home-page--obsidian .platform-shell {
    width: calc(100% - 1.25rem);
    padding: 0.8rem 0.7rem !important;
  }

  .int-carousel__viewport {
    height: 8.55rem;
    min-height: 8.55rem;
    max-height: 8.55rem;
  }

  .int-carousel__title {
    font-size: 0.95rem;
  }

  .platform-why__title {
    font-size: 1.05rem;
  }
}
