@font-face {
  font-family: Montserrat;
  src: url("/assets/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url("/assets/roboto-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0b1055;
  --navy-hover: #171e70;
  --text: #374364;
  --pink-text: #b30056;
  --pink-pale: #fff0f7;
  --line: #dbe5f1;
  --heading-font: Montserrat, Roboto, Arial, sans-serif;
  --body-font: Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 12% 42%, #f9eaf3 0%, transparent 59%),
    linear-gradient(145deg, #f1f8ff 3%, #fffbfa 54%, #f1f6fb 100%);
  color: var(--navy);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(13.5rem, 45vw, 32rem);
  background: url("/assets/fundo-tecidos-mobile.webp") center top / cover no-repeat;
  opacity: .42;
  -webkit-mask-image: linear-gradient(#000 10%, transparent 100%);
  mask-image: linear-gradient(#000 10%, transparent 100%);
  pointer-events: none;
  content: "";
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--pink-text);
  outline-offset: 4px;
}

.page-width {
  width: min(calc(100% - var(--gutter) * 2), 73rem);
  margin-inline: auto;
}

.hero {
  flex: 1 0 auto;
  display: grid;
  align-content: end;
  grid-template-columns: minmax(0, 1fr);
}

.intro {
  position: relative;
  z-index: 1;
  width: min(calc(100% - var(--gutter) * 2), 32.5rem);
  margin-inline: auto;
  padding-block: clamp(1.8rem, 4.5vh, 3.4rem) .7rem;
}

.brand {
  position: relative;
  width: 7.65rem;
  height: 3.72rem;
  margin-bottom: 1.3rem;
}

.brand img {
  position: absolute;
  inset: -.245rem auto auto -1.943rem;
  width: 10.65rem;
  height: auto;
}

.headline {
  margin: 0;
  font: 770 clamp(1.78rem, 8.2vw, 2.72rem)/1.13 var(--heading-font);
  letter-spacing: -.052em;
  text-wrap: balance;
}

.headline span {
  display: block;
  margin-top: .11em;
  color: var(--pink-text);
  text-wrap: balance;
}

.description {
  max-width: 32ch;
  margin: .9rem 0 0;
  color: var(--text);
  font-size: clamp(1rem, 4vw, 1.125rem);
  line-height: 1.47;
  text-wrap: pretty;
}

.actions, .campaigns ul {
  display: grid;
  gap: .68rem;
}

.actions { margin-top: 1.5rem; }

.action {
  display: flex;
  align-items: center;
  gap: .83rem;
  min-height: 4.75rem;
  padding: .8rem .9rem;
  border: 1px solid transparent;
  border-radius: .94rem;
  text-decoration: none;
  -webkit-tap-highlight-color: rgb(255 0 123 / .11);
}

.action-primary {
  color: white;
  background: linear-gradient(115deg, #0b1055 0%, #282769 69%, #512457 100%);
  box-shadow: 0 8px 21px rgb(48 28 99 / .16);
}

.action-primary .action-description { color: #edf1ff; }

.action-secondary {
  color: var(--navy);
  border-color: #e6dce9;
  background: linear-gradient(110deg, #fff 40%, #fff6fa 100%);
  box-shadow: 0 4px 15px rgb(36 24 73 / .035);
}

.action-icon {
  display: grid;
  flex: 0 0 2.68rem;
  height: 2.68rem;
  place-items: center;
  border-radius: .69rem;
  background: var(--pink-pale);
  color: var(--pink-text);
}

.action-primary .action-icon {
  background: rgb(255 255 255 / .12);
  color: #ffc0df;
}

.action-copy {
  display: grid;
  min-width: 0;
  gap: .14rem;
}

.action-title {
  font-weight: 700;
  font-size: .915rem;
  line-height: 1.2;
  letter-spacing: .044em;
}

.action-description {
  color: var(--text);
  font-size: .9rem;
  line-height: 1.32;
}

.campaigns ul {
  list-style: none;
  margin: .68rem 0 0;
  padding: 0;
}

.campaign { padding-inline-start: 1.2rem; }

.product-scene {
  --counter-baseline: 77%;
  position: relative;
  isolation: isolate;
  min-width: 0;
  margin: 0;
  aspect-ratio: 12 / 7;
  overflow: hidden;
  overflow: clip;
}

.studio-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 34%, #000 94%, rgb(0 0 0 / .72));
  mask-image: linear-gradient(180deg, transparent, #000 34%, #000 94%, rgb(0 0 0 / .72));
}

.studio-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right var(--counter-baseline);
}

.product-row {
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% - var(--counter-baseline));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: .6%;
  width: min(calc(100% - clamp(.875rem, 4vw, 4rem)), 60rem);
  margin-inline: auto;
}

.product {
  position: relative;
  flex: none;
  width: var(--size);
}

.product::before {
  position: absolute;
  inset-inline: -4% -18%;
  bottom: clamp(-.38rem, -.45vw, -.16rem);
  height: clamp(.35rem, 1.15vw, .94rem);
  background: radial-gradient(ellipse at 46% 42%, rgb(54 52 73 / .33), rgb(54 52 73 / .11) 44%, transparent 72%);
  transform: skewX(-20deg);
  content: "";
}

.product img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(.12rem .16rem .2rem rgb(54 52 73 / .13));
}

.product-power-1kg { --size: 14.45%; }
.product-power-2kg { --size: 15.65%; }
.product-power-3kg { --size: 16.25%; }
.product-force, .product-soft { --size: 23.55%; }
.product-smell { --size: 6.15%; }

.footer {
  max-width: 32.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: .7rem 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text);
  text-align: center;
}

.footer p {
  order: 2;
  margin: .18rem 0 0;
  font-size: .875rem;
}

.footer-separator {
  margin-inline: .14em;
  color: #657393;
}

.instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .46rem;
  min-height: 2.75rem;
  padding-inline: .5rem;
  border-radius: .45rem;
  color: var(--navy);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
}

.instagram svg { color: var(--pink-text); }

.privacy-link {
  order: 3;
  min-height: 2.75rem;
  padding: .25rem .5rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.tracking-dialog {
  width: min(calc(100% - 2.5rem), 29rem);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  color: var(--navy);
}

.tracking-dialog::backdrop { background: rgb(11 16 85 / .49); }

.tracking-dialog h2 {
  margin: 0;
  font: 750 1.2rem/1.2 var(--heading-font);
}

.tracking-dialog p { color: var(--text); }

.tracking-dialog form {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .65rem;
}

.tracking-dialog button {
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--navy);
  background: #fff;
  font: 700 1rem var(--body-font);
  cursor: pointer;
}

.tracking-dialog button[value="allow"] {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}

@media (max-width: 22rem) {
  .headline { font-size: clamp(1.58rem, 8.3vw, 1.78rem); }

  .action {
    gap: .66rem;
    padding-inline: .75rem;
  }

  .action-icon {
    flex-basis: 2.35rem;
    height: 2.35rem;
  }
}

@media (min-width: 60rem) {
  body::before {
    inset-inline-end: 26%;
    background-image: url("/assets/fundo-tecidos.webp");
    -webkit-mask-image: radial-gradient(ellipse 93% 100% at 22% 0%, #000 15%, transparent 100%);
    mask-image: radial-gradient(ellipse 93% 100% at 22% 0%, #000 15%, transparent 100%);
  }

  .hero {
    grid-template-columns: minmax(23rem, max(39.5%, calc((100% - 80rem) / 2 + 28rem))) minmax(0, 1fr);
    align-content: stretch;
  }

  .intro {
    align-self: center;
    width: auto;
    margin-inline: max(var(--gutter), calc((100vw - 80rem) / 2)) clamp(1rem, 2.4vw, 2rem);
    padding-block: clamp(3.4rem, 8vh, 6rem);
  }

  .product-scene {
    min-height: clamp(34rem, 47vw, 46rem);
    aspect-ratio: auto;
    overflow: visible;
  }

  .studio-photo {
    inset-inline-start: clamp(-11rem, -10.5vw, -5rem);
    -webkit-mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / .72) 22%, #000 41%);
    mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / .72) 22%, #000 41%);
  }

  .product-row { gap: .85%; }

  .brand {
    width: 9.24rem;
    height: 4.55rem;
    margin-bottom: clamp(1.15rem, 2.8vh, 1.85rem);
  }

  .brand img {
    inset: -.296rem auto auto -2.354rem;
    width: 12.9rem;
  }

  .headline {
    font-size: clamp(2.1rem, 3.18vw, 3.4rem);
    text-wrap: initial;
  }

  .headline span { text-wrap: initial; }

  .description { margin-top: 1.12rem; }

  .actions, .campaigns { max-width: 28rem; }
  .actions { margin-top: 1.8rem; }

  .action { padding-inline: 1rem; }

  .footer {
    max-width: 73rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    padding-block: .72rem 1.2rem;
  }

  .footer p {
    order: 0;
    margin: 0;
  }
}

@media (hover: hover) {
  .action-primary:hover { background: var(--navy-hover); }

  .action-secondary:hover {
    border-color: #dfa2c1;
    background: #fff9fc;
  }

  .instagram:hover {
    color: var(--pink-text);
    text-decoration: underline;
    text-underline-offset: .2em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .action, .instagram {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  }

  .intro { animation: arrive 420ms ease-out both; }

  @keyframes arrive {
    from { transform: translateY(.32rem); }
    to { transform: translateY(0); }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .action:hover { transform: translateY(-2px); }
  .action:active { transform: translateY(0); }
}
