/* ========== Fontes (locais, sem pedidos externos) ========== */
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap;
  src: url("assets/fonts/anton-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap;
  src: url("assets/fonts/anton-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("assets/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

/* ========== Tokens ========== */
:root {
  --yellow: #FFC62B;
  --yellow-deep: #FFB000;
  --yellow-soft: #FFE38A;
  --cream: #FFF7E6;
  --cream-2: #FCEFD2;
  --ink: #141414;
  --ink-soft: #4A4436;
  --leaf: #2F6B3A;
  --white: #FFFFFF;
  --tint: var(--cream);

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(22px, 6vw, 120px);
  --max: 1120px;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(20, 20, 20, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--yellow); }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.55;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.4rem, 9vw, 4.6rem); line-height: .95; letter-spacing: .005em; }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }
section { padding: clamp(72px, 12vw, 140px) 0; position: relative; }

.kicker { font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; color: var(--ink-soft); }
.lead { font-size: 1.125rem; max-width: 34em; margin-top: 18px; color: var(--ink-soft); }
.hl { background: linear-gradient(var(--white), var(--white)) 0 92% / 100% .26em no-repeat; padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ========== Botões ========== */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 58px; padding: 12px 30px; border-radius: 999px; text-decoration: none;
  background: var(--yellow); color: var(--ink); border: 0; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(20,20,20,.45);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(20,20,20,.5); }
.btn:active { transform: translateY(0) scale(.98); }
.btn__main { font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.btn__sub { font-size: .82rem; opacity: .8; margin-top: 2px; }
.btn--ink { background: var(--ink); color: var(--yellow); }
.btn--full { width: 100%; }

/* ========== Logo ========== */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 40px; height: 40px; }
.logo span { font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; line-height: .95; letter-spacing: .03em; }

/* ========== HERO (telemóvel) ========== */
.hero {
  position: relative; background: linear-gradient(160deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  padding: 20px var(--gutter) 34px; display: flex; flex-direction: column; overflow: hidden;
}
.hero__panel { order: 2; position: relative; margin: 6px calc(-1 * var(--gutter)) 0; text-align: center; }
.hero__word {
  display: block; font-family: var(--display); font-size: 31vw; line-height: .8; letter-spacing: -.01em; color: var(--ink);
}
.hero__banana {
  order: 3; position: relative; z-index: 2; width: min(92vw, 520px); margin: -15vw auto -4vw;
  transform: rotate(-8deg); animation: float 6s ease-in-out infinite;
  translate: var(--px, 0px) var(--py, 0px); will-change: transform;
}
.hero__content { display: contents; }
.hero .logo { order: 1; align-self: flex-start; }
.hero .kicker { order: 4; margin: 6px 0 8px; color: var(--ink); opacity: .75; }
.hero h1 { order: 5; font-family: var(--display); text-transform: uppercase; font-size: clamp(2.2rem, 10.2vw, 3.4rem); line-height: 1.04; }
.hero__lead { order: 6; margin-top: 12px; font-size: 1rem; max-width: 30em; }
.hero .btn { order: 7; margin-top: 18px; width: 100%; background: var(--ink); color: var(--yellow); }
.hero__facts { order: 8; list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.hero__facts li::before { content: "●"; font-size: .55em; vertical-align: middle; margin-right: 7px; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(-5deg); }
}

/* ========== Faixa ========== */
.marquee { background: var(--ink); color: var(--yellow); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; letter-spacing: .04em; padding: 0 22px; white-space: nowrap; }
.marquee span::after { content: "✦"; font-family: var(--body); font-size: .9rem; margin-left: 44px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ========== Origens ========== */
.origens { background: var(--tint); transition: background-color .6s ease; overflow: clip; }
.tabs {
  display: flex; gap: 8px; margin: 34px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 10px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; scroll-snap-align: start; min-height: 46px; padding: 10px 20px; border-radius: 999px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: 700 .95rem var(--body); cursor: pointer; transition: background .2s, color .2s;
}
.tab:hover { background: rgba(20,20,20,.08); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--yellow); }

.origem { position: relative; margin-top: 26px; min-height: 420px; display: flex; align-items: flex-end; }
.origem__word {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  font-family: var(--display); font-size: 26vw; line-height: .85; color: var(--ink); opacity: .1;
  white-space: nowrap; pointer-events: none; transition: opacity .3s;
}
.origem__word.is-swap { opacity: 0; }
.origem__card {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); width: 100%; margin-top: 18vw;
  transition: opacity .3s ease, transform .3s ease;
}
.origem__card.is-swap { opacity: 0; transform: translateY(10px); }
.origem__pais { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); }
.origem__card h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.2rem; line-height: 1; margin: 6px 0 12px; }
.origem__ideal { margin-top: 12px; font-size: .95rem; color: var(--ink-soft); }
.meters { display: grid; gap: 10px; margin: 22px 0 0; }
.meters div { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 12px; }
.meters dt { font-size: .85rem; font-weight: 500; }
.meters dd { margin: 0; height: 10px; background: var(--cream-2); border-radius: 99px; overflow: hidden; }
.meters dd i { display: block; height: 100%; background: var(--yellow-deep); border-radius: 99px; width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1); }

/* ========== Cabazes ========== */
.cabazes { background: var(--cream); }
.cards { display: grid; gap: 22px; margin-top: 40px; }
.card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; line-height: 1; }
.card__peso { margin-top: 6px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: .97rem; }
.card li { padding-left: 22px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }
.price { font-family: var(--display); font-size: 3.4rem; line-height: 1; margin: 22px 0 18px; margin-top: auto; padding-top: 22px; }
.price__cur { font-family: var(--body); font-weight: 700; font-size: 1.1rem; vertical-align: top; margin-right: 4px; position: relative; top: .5em; }
.card--destaque { background: var(--yellow); }
.card--destaque li::before { background: var(--white); }
.card--destaque .card__peso { color: var(--ink); }
.badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--ink); color: var(--yellow); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: 99px; }
.cabazes__nota { margin-top: 30px; text-align: center; color: var(--ink-soft); }
.cabazes__nota strong { color: var(--ink); }

/* ========== Passos ========== */
.passos { background: var(--ink); color: var(--cream); }
.passos .kicker { color: var(--yellow); }
.passos__lista { list-style: none; padding: 0; margin: 46px 0 0; display: grid; gap: 34px; }
.passos__n { display: block; font-family: var(--display); font-size: 4.4rem; line-height: .9; color: var(--yellow); margin-bottom: 8px; }
.passos__lista h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; margin-bottom: 6px; }
.passos__lista p { color: rgba(255,247,230,.75); max-width: 24em; }

/* ========== Entregas ========== */
.entregas { background: var(--yellow); }
.entregas .kicker, .entregas .lead { color: var(--ink); }
.zonas { display: grid; gap: 16px; margin-top: 40px; }
.zona { background: var(--cream); border-radius: var(--radius); padding: 26px 24px; }
.zona h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.zona__preco { font-family: var(--display); font-size: 3.6rem; line-height: 1; margin: 12px 0 4px; }
.zona__preco--sm { font-size: 2.1rem; padding: 10px 0 6px; }
.zona p:last-child { color: var(--ink-soft); }
.zona--free { background: var(--ink); color: var(--yellow); }
.zona--free p:last-child { color: var(--cream); opacity: .8; }

/* ========== Porquê ========== */
.porque { display: grid; background: var(--white); padding-top: 0; }
.porque__img { position: relative; background: var(--yellow); overflow: hidden; }
.porque__img img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.porque__word {
  position: absolute; left: -2%; bottom: -.12em; font-family: var(--display); font-size: 30vw; line-height: 1;
  color: var(--yellow); opacity: .9; pointer-events: none; white-space: nowrap; text-shadow: 0 6px 30px rgba(20,20,20,.25);
}
.porque__txt { padding: 56px var(--gutter) 0; }
.beneficio { margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--ink); }
.beneficio h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; margin-bottom: 6px; }
.beneficio p { color: var(--ink-soft); max-width: 30em; }

/* ========== FAQ ========== */
.faq { background: var(--cream); }
.faq h2 { margin-bottom: 26px; }
details { border-bottom: 2px solid var(--ink); }
summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 1.1rem; min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 500; transition: transform .3s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 40em; }

/* ========== CTA final ========== */
.final { background: var(--yellow); text-align: center; overflow: hidden; padding: clamp(90px, 16vw, 180px) 0; }
.final__word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--display); font-size: 42vw; line-height: 1; color: transparent;
  -webkit-text-stroke: 2px rgba(20,20,20,.14); white-space: nowrap; pointer-events: none;
}
.final .wrap { position: relative; }
.final h2 { font-size: clamp(3rem, 13vw, 7rem); }
.final .btn { margin-top: 34px; width: 100%; max-width: 380px; }

/* ========== Rodapé ========== */
.footer {
  background: var(--ink); color: var(--cream); padding: 28px var(--gutter) 110px;
  display: flex; flex-direction: column; gap: 14px; font-size: .88rem;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--cream); opacity: .85; text-decoration: none; padding: 6px 0; }
.footer a:hover { opacity: 1; text-decoration: underline; }

/* ========== Barra de compra (telemóvel) ========== */
.buybar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--yellow); border-radius: 999px; padding: 8px 8px 8px 22px;
  box-shadow: 0 14px 30px -10px rgba(20,20,20,.55);
  transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.buybar.is-on { transform: translateY(0); }
.buybar p { display: flex; flex-direction: column; line-height: 1.1; }
.buybar p span { font-size: .75rem; font-weight: 500; }
.buybar strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.buybar .btn { min-height: 50px; padding: 10px 26px; }

/* ========== Toast ========== */
.toast {
  position: fixed; left: 50%; top: 20px; z-index: 60; transform: translate(-50%, -150%);
  background: var(--ink); color: var(--yellow); padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  transition: transform .35s ease; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }

/* ========== Revelações ao scroll ========== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease-out, transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ========== Tablet ========== */
@media (min-width: 600px) {
  .hero .btn { width: auto; align-self: flex-start; }
  .btn__main { white-space: nowrap; }
  .zonas { grid-template-columns: repeat(3, 1fr); }
  .passos__lista { grid-template-columns: repeat(3, 1fr); }
  .origem__word { font-size: 20vw; }
}

/* ========== Desktop ========== */
@media (min-width: 960px) {
  .hero {
    min-height: 100svh; padding: 0; display: grid; grid-template-columns: 40% 60%;
    background: linear-gradient(90deg, var(--yellow) 0, var(--yellow-deep) 40%, var(--cream) 40%);
    overflow: visible;
  }
  .hero__panel { grid-column: 1; grid-row: 1; margin: 0; position: relative; overflow: hidden; }
  .hero__word {
    position: absolute; left: 6%; top: 50%; transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl; font-size: min(36vh, 15vw); line-height: .78; white-space: nowrap;
  }
  .hero__banana {
    position: absolute; left: 12%; top: 54%; width: min(38vw, 620px); margin: 0;
    translate: var(--px, 0px) calc(-50% + var(--py, 0px)); z-index: 3;
  }
  .hero__content {
    grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 6vh var(--gutter) 6vh 22%; position: relative; z-index: 4;
  }
  .hero .logo { position: absolute; top: 34px; right: var(--gutter); }
  .hero h1 { font-size: min(5.2rem, 9.5vh); max-width: 11.5em; }
  .hero__lead { font-size: 1.15rem; max-width: 27em; margin-top: 20px; }
  .hero .btn { margin-top: 30px; padding: 14px 40px; }
  .hero .kicker { margin-bottom: 14px; }

  .origem { min-height: 470px; align-items: center; justify-content: flex-end; }
  .origem__word { left: 0; top: 50%; transform: translateY(-50%); font-size: min(11vw, 11rem); opacity: .12; }
  .origem__card { width: 44%; margin-top: 0; padding: 40px 40px; }

  .cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .card--destaque { transform: translateY(-18px); }
  .card--destaque.reveal.in { transform: translateY(-18px); }

  .porque { grid-template-columns: 1fr 1fr; align-items: center; padding: 0; }
  .porque__img { height: 100%; min-height: 640px; }
  .porque__img img { height: 100%; aspect-ratio: auto; }
  .porque__word { font-size: 14vw; }
  .porque__txt { padding: 110px var(--gutter) 110px 8%; }

  .footer { flex-direction: row; justify-content: space-between; align-items: center; padding-bottom: 28px; }
  .buybar { display: none; }
}

/* ========== Botão de música ========== */
.music {
  position: fixed; top: 14px; right: 14px; z-index: 55;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--yellow);
  font: 700 .82rem var(--body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(20,20,20,.5); transition: transform .2s ease;
}
.music:hover { transform: translateY(-2px); }
.music__eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.music__eq i { display: block; width: 3px; height: 5px; background: currentColor; border-radius: 2px; transition: height .3s; }
.music.is-on .music__eq i { animation: eq .9s ease-in-out infinite; }
.music.is-on .music__eq i:nth-child(2) { animation-delay: -.3s; }
.music.is-on .music__eq i:nth-child(3) { animation-delay: -.6s; }
.music.is-on .music__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@media (min-width: 960px) {
  .music { top: auto; bottom: 24px; right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
