/* ===== Platform (industries) section ===== */

.platform-2 {
  padding-top: 0;
  padding-bottom: 0;
}

.platform-2-intro {
  padding: 100px 48px 64px;
  border-bottom: 0.5px solid var(--border-color);
}

.platform-2-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #E6F4FE;
  border: 1px solid var(--white);
  color: #0588F0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.07px;
  margin-bottom: 16px;
}

.platform-2-title {
  font-size: 48px;
  font-weight: 500;
  line-height: 56px;
  letter-spacing: -1.44px;
  color: #0A0A0A;
  margin-bottom: 16px;
  max-width: 648px;
  text-wrap: balance;
}

.platform-2-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: -0.18px;
  color: #5A5A5A;
  max-width: 688px;
}

/* Tabs + feature layout */
.platform-2-main {
  display: flex;
  align-items: flex-start;
}

.platform-2-tabs {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 56px;
  align-self: stretch;
  border-right: 0.5px solid #E5E5E5;
  position: sticky;
  top: 24px;
}

.platform-2-tab {
  display: flex;
  align-items: center;
  align-self: stretch;
  width: 100%;
  gap: 8px;
  padding: 10px 0 10px 40px;
  border: none;
  border-left: 2px solid transparent;
  outline: none;
  background: transparent;
  color: #A3A3A3;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: -0.108px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.platform-2-tab [data-lucide] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.platform-2-tab.is-active {
  background: var(--white);
  border-left-color: #0090FF;
  color: #0A0A0A;
}

.platform-2-tab:hover {
  color: #0A0A0A;
}

.platform-2-feature {
  flex: 1;
  min-width: 0;
}

.platform-2-feature-text {
  box-sizing: content-box;
  max-width: 619px;
  /* Right padding too, so text never runs into the container line when the panel is narrow */
  padding: 56px 48px 40px 48px;
}

.platform-2-feature-tag {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: #0588F0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-transform: uppercase;
}

.platform-2-feature-tag [data-lucide] {
  width: 18px;
  height: 18px;
}

.platform-2-feature-heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.48px;
  color: #0A0A0A;
  margin: 16px 0;
}

.platform-2-feature-copy {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: #657080;
  margin-bottom: 52px;
}

.platform-2-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.platform-2-check {
  display: flex;
  /* Icon sits on the first line when an item wraps */
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: #0A0A0A;
}

.platform-2-check-icon {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #454545;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: inset 0.889px 0.889px 1.778px 0px rgba(255, 255, 255, 0.25);
}

.platform-2-check-icon [data-lucide] {
  width: 11px;
  height: 11px;
}

.platform-2-buttons {
  display: flex;
  gap: 12px;
}

.platform-2-buttons .btn {
  padding: 0 14px;
  height: 36px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.07px;
}

@media (pointer: coarse) {
  .platform-2-buttons .btn { height: 40px; }
}

/* ===== Visual mock-dashboard panel ===== */

.platform-2-browser {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px 24px 28px;
}

.platform-2-breadcrumb {
  font-size: 13px;
  color: #0A0A0A;
  margin-bottom: 20px;
}

/* generic dashboard panel card */
.platform-2-panel {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 16px;
}

.platform-2-panel + .platform-2-panel {
  margin-top: 16px;
}

.platform-2-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.platform-2-panel-title {
  font-size: 13px;
  color: #0A0A0A;
  margin-bottom: 2px;
}

.platform-2-panel-sub {
  font-size: 11px;
  color: #737373;
}

.platform-2-panel-menu {
  color: #A3A3A3;
}

.platform-2-panel-menu [data-lucide] {
  width: 15px;
  height: 15px;
}

/* KPI row */
.platform-2-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.platform-2-kpi {
  background: #F9F9F9;
  border-radius: 15px;
  padding: 4px;
}

.platform-2-kpi-inner {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.platform-2-kpi-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #737373;
}

.platform-2-kpi-label [data-lucide] {
  width: 14px;
  height: 14px;
}

.platform-2-kpi-value {
  font-size: 23px;
  font-weight: 500;
  color: #0A0A0A;
}

.platform-2-kpi-caption {
  font-size: 11px;
  color: #737373;
  margin-top: 4px;
}

/* Status bar chart */
.platform-2-barchart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 130px;
  padding-top: 20px;
  background-image:
    linear-gradient(to right, #E2E2E2 50%, transparent 0),
    linear-gradient(to right, #E2E2E2 50%, transparent 0),
    linear-gradient(to right, #E2E2E2 50%, transparent 0),
    linear-gradient(to right, #E2E2E2 50%, transparent 0);
  background-size: 7px 1px, 7px 1px, 7px 1px, 7px 1px;
  background-repeat: repeat-x, repeat-x, repeat-x, repeat-x;
  background-position: 0 23%, 0 47%, 0 71%, 0 100%;
}

.platform-2-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.platform-2-bar-num {
  font-size: 11px;
  color: #0A0A0A;
}

.platform-2-bar {
  width: 100%;
  max-width: 36px;
  background: #0090FF;
  border-radius: 3px 3px 0 0;
}

.platform-2-bar-label {
  width: 44px;
  font-size: 10px;
  color: #737373;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Leaderboard */
.platform-2-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.platform-2-lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-2-lb-rank {
  width: 20px;
  font-size: 13px;
  color: #737373;
  flex-shrink: 0;
}

.platform-2-lb-icon {
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0A0A0A;
  overflow: hidden;
}

.platform-2-lb-icon.has-chip {
  border-radius: 3px;
  background: #F1F1F1;
}

.platform-2-lb-icon [data-lucide] {
  width: 11px;
  height: 11px;
}

.platform-2-lb-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.platform-2-lb-icon.has-chip img {
  object-fit: cover;
}

.platform-2-lb-name {
  width: 90px;
  flex-shrink: 0;
  font-size: 13px;
  color: #0A0A0A;
}

.platform-2-lb-track {
  flex: 1;
  height: 4px;
  background: #F5F5F5;
  border-radius: 9999px;
  overflow: hidden;
}

.platform-2-lb-range {
  height: 100%;
  background: #171717;
  border-radius: 9999px;
}

.platform-2-lb-value {
  width: 16px;
  text-align: right;
  font-size: 13px;
  color: #737373;
}

/* Two-up grid for donut / treemap and SEO stat rows */
.platform-2-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Donut chart */
.platform-2-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.platform-2-donut {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    #5EB1EF 0% 30%,
    #0090FF 30% 55%,
    #0588F0 55% 78%,
    #0D74CE 78% 100%
  );
}

.platform-2-donut-center {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.platform-2-donut-total {
  font-size: 28px;
  font-weight: 700;
  color: #0A0A0A;
}

.platform-2-donut-total-label {
  font-size: 11px;
  color: #737373;
}

.platform-2-btn-details {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 11px;
  color: #737373;
  background: var(--white);
}

.platform-2-btn-details [data-lucide] {
  width: 15px;
  height: 15px;
}

/* Treemap */
.platform-2-treemap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.85fr;
  grid-template-rows: 1fr 0.45fr;
  gap: 4px;
  height: 230px;
}

.platform-2-tm-cell {
  border-radius: 6px;
  color: var(--white);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 11px;
}

.platform-2-tm-cell strong {
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.platform-2-tm-1 { grid-column: 1; grid-row: 1; background: #0D0D0C; }
.platform-2-tm-2 { grid-column: 1; grid-row: 2; background: #393937; }
.platform-2-tm-3 { grid-column: 2; grid-row: 1 / span 2; background: #8D8D8B; }
.platform-2-tm-4 { grid-column: 3; grid-row: 1; background: #626260; }
.platform-2-tm-5 { grid-column: 3; grid-row: 2; background: #B8B8B7; }

/* SEO stat cards */
.platform-2-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.platform-2-stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-2-stat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #737373;
}

.platform-2-stat-head [data-lucide] {
  width: 15px;
  height: 15px;
}

.platform-2-stat-value {
  font-size: 23px;
  font-weight: 500;
  color: #0A0A0A;
}

.platform-2-badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px 10px 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #0A0A0A;
}

.platform-2-badge-ai [data-lucide] {
  width: 11px;
  height: 11px;
  color: #0090FF;
}

/* Line charts */
.platform-2-linechart {
  width: 100%;
  height: 130px;
}

.platform-2-linechart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #C8C8C6;
  margin-top: 6px;
}

@media (max-width: 960px) {
  .platform-2-main {
    flex-direction: column;
  }
  .platform-2-tabs {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-top: 16px;
    padding-right: 40px;
    position: static;
    /* Swipeable row: no scrollbar, tabs snap, and the right edge fades so more industries read as "swipe for more" */
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  }
  .platform-2-tabs::-webkit-scrollbar {
    display: none;
  }
  .platform-2-tab {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: auto;
    white-space: nowrap;
    padding: 10px 16px;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .platform-2-tab.is-active {
    border-left-color: transparent;
    border-bottom-color: #0090FF;
  }
  .platform-2-feature {
    margin-top: 0;
  }
  .platform-2-feature-text {
    padding: 40px 32px;
  }
  .platform-2-intro {
    padding: 72px 32px 48px;
  }
  .platform-2-kpi-row,
  .platform-2-two-col,
  .platform-2-stat-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .platform-2-feature {
    flex-direction: column;
  }
  .platform-2-feature-text {
    max-width: none;
    padding: 32px 24px;
  }
  .platform-2-feature-copy {
    margin-bottom: 32px;
  }
  .platform-2-intro {
    padding: 56px 24px 40px;
  }
  .platform-2-buttons {
    flex-direction: column;
  }
  .platform-2-buttons .btn {
    width: 100%;
    height: auto;
    min-height: 40px;
    padding: 10px 14px;
    white-space: normal;
    text-align: center;
  }
  .platform-2-title {
    font-size: var(--section-title-phone);
    line-height: var(--section-title-phone-lh);
    letter-spacing: -0.02em;
  }
}

/* Industry panels: only the active one shows */
.platform-2-feature:not(.is-active) {
  display: none;
}

/* =========================================================================
   Home page showcase for industries: same idea as the Platform section.
   The industry list stays put under the header while scrolling picks the
   industry (js/platform-showcase.js). Only on body.home-showcase and only when
   the viewport is large enough; otherwise the normal tabs + panel layout applies.
   ========================================================================= */
@media (min-width: 1025px) and (min-height: 720px) {
  .home-showcase .platform-2-track {
    /* No preview image any more: the pinned stage only needs to fit the industry list. */
    --p2-stick: min(var(--p1-stick), 600px);
    height: calc(var(--p2-stick) + var(--p2-steps, 12) * var(--p2-step, 50vh));
  }

  @supports (height: 100dvh) {
    .home-showcase {
      --p2-step: 50dvh;
    }
  }

  .home-showcase .platform-2-stick {
    position: sticky;
    /* Centre the stage in the space under the header, so the leftover is split above and below */
    top: calc(var(--p1-header) + (var(--p1-stick) - var(--p2-stick)) / 2);
    height: var(--p2-stick);
    background: var(--bg-color);
  }

  .home-showcase .platform-2-main {
    position: relative;
    height: 100%;
    align-items: stretch;
  }

  .home-showcase .platform-2-tabs {
    position: static;
    padding-top: 32px;
    gap: 2px;
  }

  .home-showcase .platform-2-tab {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .home-showcase .platform-2-feature {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 320px;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
  }

  .home-showcase .platform-2-feature.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s ease 0.12s, transform 0.3s ease 0.12s, visibility 0s;
  }

  .home-showcase .platform-2-feature:not(.is-active) {
    display: flex;
  }

  .home-showcase .platform-2-feature-text {
    flex: 0 0 auto;
    padding: 32px 0 24px 48px;
  }
}

@media (min-width: 1025px) and (min-height: 720px) and (prefers-reduced-motion: reduce) {
  .home-showcase .platform-2-feature,
  .home-showcase .platform-2-feature.is-active {
    transition: none;
    transform: none;
  }
}
