/* =========================================================
   FARMACINHA NATURAL — PÁGINA 01
   CSS da primeira tela do funil.
   ========================================================= */

:root {
  --accent: #0891b2;
  --accent-hover: #219cba;
  --accent-track: rgba(8, 145, 178, 0.10);
  --green-highlight: #16a34a;

  --heading: #000000;
  --text: #334155;
  --muted: #6b7280;
  --legal: #8c8a9b;
  --background: #ffffff;

  --content-width: 28rem;
  --button-radius: 16px;
  --media-radius: 16px;
  --element-height: 56px;

  --font: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;

  background: var(--background);
  color: var(--text);

  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}


/* =========================================================
   ESTRUTURA PRINCIPAL
   ========================================================= */

.funnel-page {
  display: flex;

  min-height: 95svh;

  flex-direction: column;
  justify-content: space-between;

  gap: 1rem;

  padding: 0.75rem;

  background: #ffffff;

  opacity: 1;

  transition:
    opacity 220ms ease,
    transform 220ms ease;
}


/* Animação utilizada antes de mudar de página */

.funnel-page.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.funnel-header {
  position: relative;
  z-index: 10;

  display: grid;

  width: 100%;

  gap: 1rem;
}


/* Logo aparece no desktop */

.brand--desktop {
  display: none;
}

.Logo {
  width: 100%;
  height: auto;
}


/* =========================================================
   BARRA DE PROGRESSO
   ========================================================= */

.progress {
  position: relative;

  width: 100%;
  max-width: var(--content-width);

  height: 0.3rem;

  margin: 0 auto;

  overflow: hidden;

  border-radius: 999px;
}

.progress__track,
.progress__fill {
  position: absolute;
  inset: 0;

  border-radius: inherit;
}

.progress__track {
  background: var(--accent-track);
}

.progress__fill {
  width: 7.14286%;

  right: auto;

  background: #1B4EF5;

  transition: width 700ms ease;
}


/* =========================================================
   CONTEÚDO CENTRAL
   ========================================================= */

.funnel-content {
  width: 100%;
  max-width: var(--content-width);

  margin: 0 auto;
}


/* =========================================================
   TEXTO PRINCIPAL
   ========================================================= */

.intro {
  padding: 0.7rem 0.2rem 0.5rem;

  text-align: center;
}

.intro__title {
  margin: 0;

  color: var(--heading);

  font-size: 25.6px;
  font-weight: 700;
  line-height: 1.1;

  letter-spacing: -0.025em;
}

.intro__title span {
  color: #1B4EF5;
}

.intro__description {
  margin: 0.75rem 0 0;

  color: var(--text);

  font-size: 16px;
  line-height: 1.4;
}

.intro__time {
  margin: 0.75rem 0 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.4;
}


/* =========================================================
   IMAGEM PRINCIPAL
   ========================================================= */

.menina {
  position: relative;
  width: 100%;
  margin: 0.2rem 0 0;
  overflow: hidden;
  border-radius: var(--media-radius, 16px);
  background: #e9f4f4;
  aspect-ratio: 3 / 2;
}


.menina__imagem {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================================================
   BOTÃO CONTINUAR
   ========================================================= */

.continue-button {
  position: relative;

  display: grid;
  place-items: center;

  width: calc(100% - 0.4rem);
  min-height: var(--element-height);

  margin: 1.2rem 0.2rem 0;

  padding: 0.55rem 1rem;

  overflow: hidden;

  border-radius: var(--button-radius);

  background: #1B4EF5;
  color: #ffffff;

  cursor: pointer;

  font-weight: 500;
  line-height: 1.4;

  -webkit-tap-highlight-color: transparent;

  transition:
    background-color 200ms ease,
    transform 150ms ease,
    box-shadow 200ms ease,
    opacity 200ms ease;
}

.continue-button:hover {
  background: #3562F6;
}

.continue-button:focus-visible {
  outline: 3px solid #1B4EF5(8, 145, 178, 0.24);
  outline-offset: 3px;
}

.continue-button:active {
  transform: scale(0.99);
}

.continue-button:disabled {
  cursor: wait;
  opacity: 0.76;
}


/* =========================================================
   TERMOS
   ========================================================= */

.legal-text {
  margin: 1.2rem 0.2rem 0;

  color: var(--legal);

  text-align: center;

  font-size: 12px;
  line-height: 1.5;

  overflow-wrap: break-word;
}

.legal-text strong {
  color: var(--text);

  font-weight: 700;
}

.funnel-footer-space {
  min-height: 5rem;
}


/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

.sr-only {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;

  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   DESKTOP / TABLET
   ========================================================= */

@media (min-width: 768px) {

  .funnel-page {
    gap: 1.5rem;

    padding: 1.25rem;
  }

  .funnel-header {
    display: flex;

    align-items: flex-start;
    justify-content: center;

    gap: 1rem;
  }

  .brand--desktop {
    position: absolute;

    top: 0;
    left: 50%;

    display: block;

    width: 8rem;

    transform: translateX(-50%);
  }

  .progress {
    margin-top: 4.2rem;
  }
}


/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 390px) {

  .funnel-page {
    padding: 0.7rem;
  }

  .intro__title {
    font-size: 24px;
  }

  .intro__description,
  .intro__time {
    font-size: 15px;
  }

  .legal-text {
    font-size: 11px;
  }
}


/* =========================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;
  }
}

/* Aumenta a logo e mantém a centralização */
.funnel-header .brand {
  width: 180px;
  max-width: 100%;
  flex-shrink: 0;
  margin-inline: auto;
}

.funnel-header .brand .Logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}