/* ================================
   PÁGINA DE FUNCIONALIDADES
   Mantém a identidade do site e
   deixa esta página independente
   do restante das seções da Home.
   ================================ */

.function-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background: var(--body);
}

.function-hero::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 240px;
  right: 0;
  top: 0;
  background: var(--white);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .95;
}

.function-hero .wrap {
 display: flex;
 justify-content: center;
 align-items: center;
 position: relative;
 z-index: 1;
 text-align: center;
}

.function-hero-copy {
  max-width: 720px;
  margin: 0 auto;
}

.function-hero-copy .kicker {
  margin-bottom: 20px;
  color: var(--teal);
}

.function-hero h1 {
max-width: 13ch;
margin: 0 auto 28px;
text-align: center;
}

.function-hero p {
max-width: 60ch;
margin: 0 auto;
color: var(--navy-soft);
font-size: 1rem;
}

.function-section {
  padding: 76px 0;
}

.function-section.alt {
  background: var(--white);
}

.function-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.function-row.reverse .function-visual {
  order: -1;
}

.function-copy {
  max-width: 520px;
}

.function-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.function-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.01em;
}

.function-copy p {
  margin: 0;
  color: var(--navy-soft);
  max-width: 48ch;
}

.function-copy .pill {
  margin-top: 24px;
}

.function-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Imagem única de notebook + celular */
.visual-combo {
  display: block;
  width: min(100%, 620px);
  height: auto;
}

/* Notebook e celular separados */
.device-pair {
  width: 100%;
  min-height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  position: relative;
  padding: 10px 0;
}

.pair-notebook {
  width: min(78%, 560px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 32px rgba(38,74,131,.16));
}

.pair-phone {
  width: min(28%, 210px);
  height: auto;
  display: block;
  margin-left: -78px;
  z-index: 2;
  filter: drop-shadow(0 22px 30px rgba(38,74,131,.18));
}

.single-notebook {
  width: min(100%, 640px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 32px rgba(38,74,131,.16));
}

.single-phone {
  width: min(72%, 330px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 32px rgba(38,74,131,.16));
}

.visual-note {
  margin-top: 12px;
  text-align: center;
  color: var(--navy-soft);
  font-size: .72rem;
  font-style: italic;
}

.function-cta {
  padding: 72px 0;
  background: var(--white);
  text-align: center;
}

.function-cta h2 {
  margin: 0 auto 14px;
  max-width: none;
}

.function-cta p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--navy-soft);
}

.function-cta .pill {
  margin-top: 24px;
}

/* Ajustes para tablets */
@media (max-width: 900px) {
  .function-hero .wrap,
  .function-row {
    gap: 36px;
  }

  .pair-phone {
    margin-left: -56px;
  }
}

/* Ajustes para celular */
@media (max-width: 760px) {
  .function-hero {
    padding: 48px 0 54px;
  }

  .function-hero::after {
    width: 70%;
    height: 170px;
  }

  .function-hero .wrap,
  .function-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .function-hero-art {
    order: -1;
  }

  .function-hero h1 {
    max-width: none;
  }

  .function-visual {
  order: 1;
  }

  .function-copy {
    max-width: none;
    order: 2;
  }

  .function-section {
    padding: 58px 0;
  }

  .device-pair {
    min-height: 0;
    gap: 0;
  }

  .pair-notebook {
    width: 86%;
  }

  .pair-phone {
    width: 30%;
    margin-left: -20%;
  }

  .single-notebook {
    width: 94%;
  }

  .single-phone {
    width: min(78%, 310px);
  }

  .function-copy .pill,
  .function-cta .pill {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .function-section {
    padding: 50px 0;
  }

  .function-title {
    font-size: 1.35rem;
  }

  .function-copy p {
    font-size: .88rem;
  }

  .pair-notebook {
    width: 92%;
  }

  .pair-phone {
    width: 31%;
    margin-left: -22%;
  }
}