/* ==========================================================================
   Squarely — Platform overview page
   Figma node 420:92 ("Platform | Platform Overview New")
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */
.pf-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #3fa285 0%, #125e59 100%);
  color: var(--white);
  padding: 150px 0 56px;
}

.pf-hero__lines {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 1104px;
  max-width: 62%;
  object-fit: cover;
  object-position: left top;
  opacity: 0.8;
  pointer-events: none;
}

.pf-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
}

.pf-hero__eyebrow {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
}

.pf-hero__title {
  margin: 0 0 26px;
  font-size: 80px;
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -1.5px;
  max-width: 861px;
}
.pf-hero__title .grad {
  display: block;
  background: linear-gradient(150deg, #aada91 0%, #cfe2f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pf-hero__text {
  margin: 0 0 36px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  max-width: 957px;
}

.pf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Hero buttons (larger than the shared .btn--primary) */
.btn--mint {
  background: #aada91;
  color: var(--teal-700);
  height: 52px;
  padding: 0 34px;
  font-size: 22px;
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  height: 52px;
  padding: 0 34px;
  font-size: 22px;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); filter: none; }

/* Chips row */
.pf-chips {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 64px auto 0;
  padding-inline: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  color: var(--white);
  font-size: 14px;
}
.pf-chips__label { font-weight: 400; }
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.pf-chip img { width: 22px; height: 22px; object-fit: contain; }

/* ==========================================================================
   ESG Execution Flow
   ========================================================================== */
.flow {
  background: var(--white);
  padding: 96px 0 90px;
}

.flow__head {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
  text-align: center;
}
.flow__eyebrow {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  color: var(--green-600);
}
.flow__title {
  margin: 0 auto 18px;
  font-size: 54px;
  font-weight: 900;
  line-height: 0.95;
  color: var(--teal-900);
  max-width: 765px;
}
.flow__text {
  margin: 0 auto;
  font-size: 18px;
  font-weight: 400;
  color: #424a52;
  max-width: 757px;
}

.flow__panel {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(145deg, #aada91 0%, #cfe2f3 38.9%, #e4daf5 69.2%, #ffd9c2 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

/* Flow card = one subpage entry */
.flow-card {
  background: var(--white);
  border-radius: 20px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  min-height: 267px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 71, 80, 0.14);
}
.flow-card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
}
.flow-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.flow-card__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--teal-900);
  line-height: 1.2;
}
.flow-card__subtitle {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 400;
  color: var(--teal-900);
  line-height: 1.2;
}
.flow-card__desc {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 400;
  color: var(--teal-700);
  line-height: 1.35;
}
.flow-card__explore {
  margin-top: auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--green-600);
}
.flow-card:hover .flow-card__explore { text-decoration: underline; }

/* Featured (Manage) card — filled dark green */
.flow-card--featured { background: var(--teal-700); }
.flow-card--featured .flow-card__icon img { filter: brightness(0) invert(1); }
.flow-card--featured .flow-card__title,
.flow-card--featured .flow-card__subtitle { color: var(--white); }
.flow-card--featured .flow-card__desc { color: rgba(255, 255, 255, 0.82); }
.flow-card--featured .flow-card__explore { color: #aada91; }

/* ==========================================================================
   Why Squarely
   ========================================================================== */
.why {
  background: var(--white);
  padding: 30px 0 100px;
}
.why__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
}
.why__eyebrow {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: var(--green-600);
}
.why__title {
  margin: 0 0 14px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--teal-900);
}
.why__text {
  margin: 0 0 44px;
  font-size: 18px;
  font-weight: 400;
  color: var(--teal-700);
  max-width: 764px;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.why__features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.why-feature__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-feature__icon img { width: 26px; height: 26px; object-fit: contain; }
.why-feature__icon--green  { background: #53bc7d; }
.why-feature__icon--blue   { background: #7ba8d9; }
.why-feature__icon--purple { background: #a68bd9; }
.why-feature__icon--orange { background: #f2a57a; }
.why-feature__body { flex: 1; }
.why-feature__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-900);
  line-height: 1.25;
}
.why-feature__desc {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--teal-700);
  line-height: 1.4;
}

/* Image area: dashboard illustration */
.why__media { display: flex; align-items: center; }
.why__media img { width: 100%; height: auto; }

/* ==========================================================================
   Contact CTA
   ========================================================================== */
.pf-contact {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px 100px;
}
.pf-contact__panel {
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  background: #125e59;
  background-image: radial-gradient(circle at 85% 30%, rgba(45, 130, 103, 0.9) 0%, rgba(45, 130, 103, 0) 55%);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 603px;
  gap: 60px;
  align-items: center;
}
.pf-contact__intro { color: var(--white); }
.pf-contact__eyebrow {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
  color: var(--green-500);
}
.pf-contact__title {
  margin: 0 0 22px;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.05;
  max-width: 592px;
}
.pf-contact__text {
  margin: 0 0 34px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 608px;
}
.btn--cta {
  background: var(--green-500);
  color: var(--white);
  height: 52px;
  padding: 0 30px;
  font-size: 22px;
}
.pf-contact__media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-contact__media img { height: 300px; width: auto; max-width: 100%; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .pf-hero { padding: 110px 0 48px; }
  .pf-hero__title { font-size: clamp(40px, 6.4vw, 60px); }
  .pf-hero__text { font-size: clamp(18px, 2.6vw, 22px); }
  .pf-hero__lines { max-width: 45%; opacity: 0.45; }

  .flow__title { font-size: clamp(30px, 5vw, 40px); }
  .flow__panel { grid-template-columns: repeat(2, 1fr); }
  /* Odd card out (Manage) fills the last row as a featured banner */
  .flow-card--featured { grid-column: 1 / -1; min-height: 0; }

  .why__grid { grid-template-columns: 1fr; gap: 48px; }
  .why__title { font-size: clamp(28px, 4.4vw, 36px); }

  .pf-contact__panel {
    grid-template-columns: 1fr;
    padding: 56px 48px;
    gap: 40px;
  }
  .pf-contact__media img { height: 240px; }
}

@media (max-width: 640px) {
  .pf-hero { padding: 80px 0 40px; }
  .pf-hero__inner,
  .pf-chips { padding-inline: 22px; }
  .pf-hero__title { font-size: 40px; letter-spacing: -1px; }
  .pf-hero__text { font-size: 18px; }
  .pf-hero__actions { gap: 14px; }
  .btn--mint, .btn--ghost { width: 100%; font-size: 18px; }
  .pf-hero__lines { display: none; }

  /* Chips → clean left-aligned vertical list (matches home .feature-strip) */
  .pf-chips {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 16px;
    margin-top: 36px;
  }
  .pf-chips__label { margin-bottom: 2px; opacity: 0.85; }
  .pf-chip { width: 100%; white-space: normal; }

  .flow { padding: 64px 0 60px; }
  .flow__head { padding-inline: 22px; }
  .flow__title { font-size: 30px; }
  .flow__text { font-size: 16px; }
  .flow__panel {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
    margin-inline: 22px;
    max-width: none;
  }
  .flow-card { min-height: 0; }

  .why { padding: 20px 0 64px; }
  .why__inner { padding-inline: 22px; }
  .why__title { font-size: 28px; }
  .why__text { font-size: 16px; }
  .why-feature__title { font-size: 18px; }
  .why-feature__desc { font-size: 16px; }
  .pf-contact { padding: 0 22px 64px; }
  .pf-contact__panel { padding: 40px 24px; border-radius: 30px; }
  .pf-contact__media { display: none; } /* decorative mark — hide on mobile */
  .pf-contact__title { font-size: 30px; }
  .pf-contact__text { font-size: 16px; }
  .btn--cta { width: 100%; font-size: 18px; }
}
