/* =====================================================================
   Suco 100 | Landing 10g de fibras
   Desktop (>= 768px): rÃ©plica proporcional do frame do Figma (1290 x 4823).
     1 px do Figma = var(--u) = 100cqw / 1290, entÃ£o tudo escala com a largura.
   Mobile (< 768px): mesmo conteÃºdo reorganizado em fluxo, medidas em cqw.
   ===================================================================== */

/* ---------- Redonda (arquivos de teste enviados pelo cliente) ---------- */
@font-face {
  font-family: 'Redonda';
  src: url('../fonts/RedondaTest-ExtraBoldItalic.woff2') format('woff2');
  font-weight: 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Redonda';
  src: url('../fonts/RedondaTest-BoldItalic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Redonda';
  src: url('../fonts/RedondaTest-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #fef0d3;
  --yellow: #ffb71e;
  --orange: #fe6600;
  --coral: #fd5231;
  --pink: #fb3d61;
  --green-btn: #449e07;
  --green-card: #93c784;
  --purple: #4c2947;
  --black: #000;

  /* A versÃ£o de teste da Redonda nÃ£o tem os caracteres % ? Ã‡ Ã‰ Ã.
     Esses caem para a Poppins Italic, que por isso continua carregada. */
  --font-display: 'Redonda', 'Poppins', Arial, sans-serif;
  --font-body: 'Poppins', Arial, sans-serif;
  --lh-display: 1.24;   /* line-height "normal" da Redonda no Figma */
  --lh-body: 1.5;       /* line-height "normal" da Poppins */

  --gradient: linear-gradient(180deg,
    #fef0d3 0%, #ffb71e 25%, #fe6600 50%, #fd5231 75.481%, #fb3d61 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--pink); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--black); -webkit-font-smoothing: antialiased; }
img { display: block; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 4px; }

/* ---------- PÃ¡gina ---------- */
.page {
  container-type: inline-size;
  --u: calc(100cqw / 1290);
  width: 100%;
  overflow: hidden;
  overflow: clip;
}
.stage { position: relative; }

/* Tipografia base (fontes do Figma) */
.hero__title, .hero__tagline, .intro__title, .bottle__title,
.flavors__title, .card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  line-height: var(--lh-display);
}
.hero__sub, .fact__big {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  line-height: var(--lh-display);
}
.intro__text, .fact__small, .card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--lh-body);
}
.intro__text strong { font-weight: 700; }
.bottle__title, .fact, .flavors__title { color: var(--cream); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-btn);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .2s ease;
}
.btn:hover { filter: brightness(1.1); }

.card { background: var(--cream); text-align: center; }
.card--laranja   .card__name { color: var(--yellow); }
.card--tangerina .card__name { color: var(--orange); }
.card--verde     .card__name { color: var(--green-card); }
.card--acai      .card__name { color: var(--purple); }

/* ---------- Fundo ---------- */
.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--gradient);
  pointer-events: none;
}
.grunge {
  position: absolute;
  inset: 0;
  background: url('../img/textura_bg.webp') 0 0 / 860px auto repeat;
  mix-blend-mode: soft-light;
  opacity: .7;
}
.shape {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shape img { flex: none; max-width: none; object-fit: cover; opacity: .11; }
.shape--bottom img { transform: rotate(4.3deg); }
.shape--top img    { transform: rotate(175.7deg) scaleY(-1); }

.fruit { position: absolute; pointer-events: none; z-index: 0; }
.fruit img { width: 100%; height: auto; }

/* ---------- Parallax ---------- */
.px { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .px { will-change: auto; transform: none !important; }
}

/* =====================================================================
   MOBILE (base)
   ===================================================================== */
.stage { padding: 6cqw 5cqw 16cqw; }

.shape img { width: 150cqw; height: auto; }
.shape--top    { top: 28%; right: -55cqw; }
.shape--bottom { top: 66%; left: -55cqw; }

.hero, .intro, .bottle, .flavors, .footer { position: relative; }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__logo { width: 26cqw; height: auto; }
.hero__title { font-size: 11.4cqw; white-space: nowrap; }
.hero__bottles { order: 1; width: 100%; margin-top: -3cqw; }
.hero__bottles img { width: 100%; height: auto; }
.hero__tagline { order: 2; font-size: 6.2cqw; margin-top: 3cqw; white-space: nowrap; }
.hero__sub { order: 3; font-size: 4.9cqw; white-space: nowrap; }
.btn {
  order: 4;
  width: 100%;
  min-height: 14cqw;
  margin-top: 6cqw;
  border-radius: 4cqw;
  font-size: 4.4cqw;
}

.intro { margin-top: 16cqw; }
.intro__title { font-size: 6.6cqw; }
.intro__text { font-size: 4.2cqw; margin-top: 5cqw; }
.intro__text p + p { margin-top: 1.5em; }

.bottle { margin-top: 16cqw; display: flex; flex-direction: column; }
.bottle__title { font-size: 9.6cqw; }
.bottle__media { order: 1; margin: 2cqw auto 0; width: 86%; }
.bottle__media img { width: 100%; height: auto; }
.bottle__facts { position: relative; z-index: 1; order: 2; margin-top: 8cqw; display: grid; gap: 6cqw; }
.fact { display: flex; flex-direction: column; }
.fact__big { font-size: 9.2cqw; }
.fact__small { font-size: 5cqw; }

.flavors { margin-top: 20cqw; }
.flavors__title { position: relative; z-index: 1; font-size: 7.6cqw; text-align: center; }
.flavors__grid { display: grid; gap: 4cqw; margin-top: 8cqw; }
.card { position: relative; z-index: 1; border-radius: 7cqw; padding: 8cqw 6cqw; }
.card__name { font-size: 6.4cqw; }
.card__desc { font-size: 4.6cqw; margin-top: 2cqw; }

.fruit--69 {width: 26cqw;top: -150cqw;right: -5cqw;}
.fruit--71 {width: 22cqw;top: -16cqw;left: -5cqw;}
.fruit--70 {width: 32cqw;bottom: -16cqw;right: -5cqw;}

.footer { margin-top: 24cqw; display: flex; justify-content: center; }
.footer img { width: 52cqw; height: auto; }

/* =====================================================================
   DESKTOP (>= 768px): coordenadas exatas do Figma, em unidades --u
   ===================================================================== */
@media (min-width: 768px) {
  .stage { padding: 0; height: calc(4823 * var(--u)); }

  .hero, .intro, .bottle, .flavors, .footer,
  .flavors__grid, .bottle__facts, .fact { position: static; display: block; margin: 0; }

  .hero > *, .intro > *, .bottle__media, .bottle__title, .fact > span,
  .flavors__title, .card, .fruit, .footer img { position: absolute; }

  /* Fundo */
  .grunge { background-size: calc(1290 * var(--u)) auto; }

  .shape--top {
    left: calc(198 * var(--u)); right: auto; top: calc(1367 * var(--u));
    width: calc(1244.321 * var(--u)); height: calc(1101.888 * var(--u));
  }
  .shape--top img { width: calc(1171.418 * var(--u)); height: calc(1016.841 * var(--u)); }
  .shape--bottom {
    left: calc(-223 * var(--u)); top: calc(3226 * var(--u));
    width: calc(1234.321 * var(--u)); height: calc(1092.303 * var(--u));
  }
  .shape--bottom img { width: calc(1162 * var(--u)); height: calc(1008 * var(--u)); }

  /* Hero */
  .hero__logo {
    left: calc(572 * var(--u)); top: calc(37 * var(--u));
    width: calc(147 * var(--u)); height: calc(102 * var(--u));
    object-fit: cover;
  }
  .hero__title {
    left: calc(67 * var(--u)); top: calc(139 * var(--u)); width: calc(1156.842 * var(--u));
    font-size: calc(154 * var(--u));
  }
  .hero__bottles {
    left: calc(208 * var(--u)); top: calc(268 * var(--u));
    width: calc(830 * var(--u)); height: calc(623 * var(--u));
    margin: 0;
  }
  .hero__bottles img { width: 100%; height: 100%; object-fit: cover; }
  .hero__tagline {
    left: calc(230 * var(--u)); top: calc(914 * var(--u)); width: calc(830 * var(--u));
    font-size: calc(64 * var(--u)); margin: 0;
  }
  .hero__sub {
    left: calc(471.665 * var(--u)); top: calc(993 * var(--u)); width: calc(347 * var(--u));
    font-size: calc(50.228 * var(--u));
  }
  .btn {
    left: calc(360 * var(--u)); top: calc(1099 * var(--u));
    width: calc(570 * var(--u)); height: calc(81 * var(--u)); min-height: 0;
    margin: 0;
    padding: 0 5.26% 0 3.68%;
    border-radius: calc(20 * var(--u));
    font-size: calc(36 * var(--u));
  }

  /* Fibras e bem-estar */
  .intro__title {
    left: calc(249 * var(--u)); top: calc(1258 * var(--u)); width: calc(924 * var(--u));
    font-size: calc(64 * var(--u));
    white-space: nowrap;
  }
  .intro__text {
    left: calc(313 * var(--u)); top: calc(1396 * var(--u)); width: calc(860 * var(--u));
    margin: 0;
    font-size: calc(30.047 * var(--u));
    text-align: right;
  }

  /* O que tem em uma garrafa */
  .bottle__media {
    left: calc(492 * var(--u)); top: calc(1760 * var(--u));
    width: calc(798 * var(--u)); height: calc(1354 * var(--u));
    margin: 0;
  }
  .bottle__media img { width: 100%; height: 100%; }
  .bottle__title {
    left: calc(130 * var(--u)); top: calc(1896 * var(--u)); width: calc(408 * var(--u));
    font-size: calc(70 * var(--u));
  }
  .fact > span { left: calc(130 * var(--u)); white-space: nowrap; }
  .fact__big   { font-size: calc(64 * var(--u)); }
  .fact__small { font-size: calc(36 * var(--u)); }
  .fact--1 .fact__big   { top: calc(2337 * var(--u)); }
  .fact--1 .fact__small { top: calc(2400 * var(--u)); }
  .fact--2 .fact__big   { top: calc(2510.315 * var(--u)); }
  .fact--2 .fact__small { top: calc(2584 * var(--u)); }
  .fact--3 .fact__big   { top: calc(2692.084 * var(--u)); }
  .fact--3 .fact__small { top: calc(2759 * var(--u)); }

  /* Qual Ã© o seu 100% */
  .flavors__title {
    left: calc(263.5 * var(--u)); top: calc(3197 * var(--u)); width: calc(733 * var(--u));
    font-size: calc(64 * var(--u));
  }
  .card {
    width: calc(491 * var(--u)); height: calc(269 * var(--u));
    padding: 0;
    border-radius: calc(36.62 * var(--u));
  }
  .card--laranja   { left: calc(129.5 * var(--u)); top: calc(3372 * var(--u)); }
  .card--tangerina { left: calc(658.5 * var(--u)); top: calc(3372 * var(--u)); }
  .card--verde     { left: calc(133.5 * var(--u)); top: calc(3679 * var(--u)); }
  .card--acai      { left: calc(658.5 * var(--u)); top: calc(3686 * var(--u)); }

  .card__name, .card__desc { position: absolute; margin: 0; }
  .card__name { top: 21.56%; left: var(--nl, 0%); right: var(--nr, 0%); font-size: calc(33.803 * var(--u)); white-space: nowrap; }
  .card__desc { top: 43.12%; left: var(--dl); right: var(--dr); font-size: calc(30.047 * var(--u)); }
  .card--laranja   { --dl: 16.29%; --dr: 16.29%; }
  .card--tangerina { --dl: 11.81%; --dr: 10.79%; }
  .card--verde     { --nl: 18.53%; --nr: 20.98%; --dl: 9.78%; --dr: 9.57%; }
  .card--acai      { --nl: 2.44%;  --nr: 3.05%;  --dl: 24.03%; --dr: 20.37%; }

  .fruit--69 {
    left: calc(1003 * var(--u)); top: calc(2806 * var(--u)); right: auto; bottom: auto;
    width: calc(287 * var(--u)); height: calc(350 * var(--u));
  }
  .fruit--71 {
    left: 0; top: calc(3148 * var(--u)); right: auto; bottom: auto;
    width: calc(261 * var(--u)); height: calc(352 * var(--u));
  }
  .fruit--70 {
    left: calc(913 * var(--u)); top: calc(3544 * var(--u)); right: auto; bottom: auto;
    width: calc(377 * var(--u)); height: calc(392 * var(--u));
  }
  .fruit img { height: 100%; }

  .footer img {
    left: calc(460.239 * var(--u)); top: calc(4233 * var(--u));
    width: calc(358.522 * var(--u)); height: calc(249 * var(--u));
    object-fit: cover;
  }

  .hero__title, .hero__tagline, .hero__sub, .flavors__title { text-align: center; white-space: nowrap; }
}
