/* ============================================================
   Platform Hub — page-specific styles
   Shares platform-block / prod-card / howfit patterns via
   partners.css + businesses.css (linked on this page too).
   ============================================================ */

/* --- Hero: equal-weight dashboard + phone composite --- */

.platform-hero {
  position: relative;
  padding-top: 152px;
  padding-bottom: 96px;
  overflow: hidden;
}

.platform-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(0, 77, 48, 0.07), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 77, 48, 0.04), transparent 60%);
}

.platform-hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.platform-hero__copy {
  display: flex; flex-direction: column;
  gap: 24px;
  max-width: 560px;
}

.platform-hero h1 {
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

.platform-hero h1 .accent {
  color: var(--g-700);
}

.platform-hero__subhead {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  margin: 0;
  max-width: 540px;
}

.platform-hero__anchor {
  display: inline-flex; align-items: center;
  gap: 6px;
  color: var(--g-700);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
}

.platform-hero__anchor .arrow {
  width: 16px; height: 16px;
  transition: transform var(--duration-base) var(--ease-out);
}

.platform-hero__anchor:hover .arrow { transform: translateY(2px); }

/* Equal-weight visual stage */
.platform-hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
  min-height: 460px;
}

.platform-hero__dashboard {
  position: absolute;
  inset: 4% 32% 14% 0%;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-elevated-ring);
  overflow: hidden;
  transform: rotate(-3deg);
  z-index: 5;
}

.platform-hero__dashboard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 26px;
  background: #F4F1EC;
  border-bottom: 1px solid rgba(0,46,29,0.06);
  z-index: 2;
}
.platform-hero__dashboard::after {
  content: "";
  position: absolute;
  top: 9px; left: 12px;
  width: 36px; height: 8px;
  background:
    radial-gradient(circle at 4px 4px, #E2746A 3.5px, transparent 4px),
    radial-gradient(circle at 16px 4px, #E2C36A 3.5px, transparent 4px),
    radial-gradient(circle at 28px 4px, #7DB58A 3.5px, transparent 4px);
  z-index: 3;
}

.platform-hero__dashboard img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.platform-hero__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  background: #0F172A;
  padding: 8px;
  box-shadow: var(--shadow-photo-glow);
  transform: rotate(5deg);
  z-index: 6;
}

.platform-hero__phone-inner {
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
}

.platform-hero__phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 1100px) {
  .platform-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .platform-hero__stage { min-height: 420px; }
}

@media (max-width: 540px) {
  .platform-hero { padding-top: 120px; }
  .platform-hero__phone { width: 44%; }
  .platform-hero__dashboard { inset: 4% 38% 10% 0; }
}

/* ============================================================
   Section 2 — Side intro under each side-block heading
   Extends .platform-side-block from partners.css
   ============================================================ */

.platform-sided__side-intro {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  max-width: 640px;
}

/* ============================================================
   Section 4 — Centered closing CTA
   ============================================================ */

.platform-cta {
  background: var(--surface-cream);
  padding-block: 96px;
}

.platform-cta__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 20px;
}

.platform-cta h2 {
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

.platform-cta__support {
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  margin: 0;
  max-width: 560px;
}

.platform-cta__cta {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .platform-cta { padding-block: 64px; }
}
