/* =========================================================
   IDE SERTÃO CAFÉ · protótipo v0.1
   Tokens espelham docs/03-design-system.md
   ========================================================= */

:root {
  /* Barro: cor da embalagem (primária) */
  --barro-900: #3b1a0f;
  --barro-800: #4e2415;
  --barro-700: #60301d;
  --barro-600: #7b3b20; /* primária */
  --barro-500: #93533c;
  --barro-300: #c98b6b;

  /* Café: marrom escuro da logo e da madeira (fundos escuros) */
  --cafe-900: #1c120c;
  --cafe-800: #2b1a12;
  --cafe-700: #3d261a;
  --cafe-600: #502a15;

  /* Verde: camiseta "Gente que ama missões" */
  --verde-900: #22361c;
  --verde-800: #2e4a26;
  --verde-700: #3e5f33;
  --verde-600: #4a6f3c;
  --verde-300: #9db67e;

  /* Neutros quentes */
  --areia: #e2cfae;    /* cáqui da camiseta / kraft */
  --kraft: #c29a7c;    /* kraft / caixa */
  --papel: #f3ebdf;    /* fundo principal */
  --papel-200: #e9dfcf;
  --tinta: #1f1612;    /* texto / xilogravura */
  --tinta-70: rgba(31, 22, 18, .72);
  --tinta-50: rgba(31, 22, 18, .5);

  /* Acentos (uso pontual) */
  --cereja: #b8371e;   /* só cerejas, pinos e foco */
  --cereja-700: #962a15;
  --sol: #e3a04a;      /* sol do sertão (estampa da camiseta) */

  /* Tipografia */
  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Courier Prime", "Courier New", ui-monospace, monospace;

  --fs-display: clamp(2.6rem, 1.5rem + 4.2vw, 5.4rem);
  --fs-display-sm: clamp(2.4rem, 1.6rem + 3.6vw, 4.75rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 3vw, 4rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-caption: .8125rem;

  /* Espaço e forma */
  --gutter: clamp(16px, 4vw, 56px);
  --sec-y: clamp(96px, 12vw, 180px);
  --radius: 4px;
  --arch: 999px 999px 6px 6px;
  --shadow-produto: 0 40px 60px -20px rgba(30, 18, 12, .55), 0 18px 24px -12px rgba(30, 18, 12, .4);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Grão de papel (SVG noise) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Fontes (WOFF2 locais, subconjunto latino: cobre o português) ---------- */
@font-face { font-family: "Young Serif"; src: url("assets/fonts/young-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("assets/fonts/courier-prime-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
main, .footer, .hero, .sec, .pedir { overflow-x: clip; }
/* Ordem de empilhamento: seção com ramo fica acima da seguinte, para o ramo atravessar a divisa */
.hero { z-index: 4; }
.cafe { z-index: 3; }
.ide, .missao, .quem { z-index: 1; }
.faq { z-index: 2; }
.pedir { z-index: 3; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 var(--fs-body)/1.6 var(--f-body);
  overflow-x: clip; /* clip (e não hidden) para o body não virar contêiner de rolagem */
}
body::after { /* grão global sutil */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: var(--grain); opacity: .14; mix-blend-mode: multiply;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, blockquote, figure, dl, dd, ol, ul { margin: 0; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3, .display, .h1 { text-wrap: balance; }
ol, ul { padding: 0; list-style: none; }
strong { font-weight: 600; } /* só carregamos Hanken 400–600 */
:focus-visible { outline: 2px dashed var(--sol); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; } /* alvo de âncora recebe foco sem moldura */

/* Pular para o conteúdo: aparece só no foco por teclado */
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 999px; background: var(--papel); color: var(--tinta);
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus-visible { transform: none; }
/* Texto só para leitores de tela */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Lenis (antes vinha de um CSS externo; inline poupa uma requisição bloqueante) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografia ---------- */
.display, .h1 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.015em; }
.display { font-size: var(--fs-display); line-height: .98; color: var(--papel); }
.display--sm { font-size: var(--fs-display-sm); }
.h1 { font-size: var(--fs-h1); line-height: 1.04; }
.h1--light { color: var(--papel); }
.display em, .h1 em { font-style: normal; color: var(--barro-600); }
.display em { color: var(--sol); }
.h1--light em { color: var(--sol); }
h3 { font: 600 var(--fs-h3)/1.25 var(--f-body); letter-spacing: -.005em; }

.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 34ch; }
.lead--light { color: rgba(243, 235, 223, .86); }
.body { color: var(--tinta-70); max-width: 46ch; }
.body--light { color: rgba(243, 235, 223, .78); }

.eyebrow, .caption { font-family: var(--f-mono); letter-spacing: .02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-size: .8125rem; text-transform: uppercase; letter-spacing: .14em; color: var(--barro-600);
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow .num { color: var(--tinta-50); }
.eyebrow--light { color: var(--barro-300); }
.eyebrow--light .num { color: rgba(243, 235, 223, .5); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cereja); }
.eyebrow:has(.dot)::before { display: none; }
.caption { font-size: var(--fs-caption); color: var(--tinta-50); }
.caption--light { color: rgba(243, 235, 223, .6); }

/* Marcação de conteúdo a confirmar (remover antes de publicar) */
.todo { background: rgba(232, 162, 74, .28); color: var(--barro-700); padding: 0 .25em; border-radius: 2px; font-family: var(--f-mono); font-size: .92em; }
.todo-light { color: var(--sol) !important; font-family: var(--f-mono); }

/* ---------- Botões e links ---------- */
/* Botão: preenchimento chapado que "varre" da esquerda no hover (sem brilho), ícone dá um balanço */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease);
}
.btn .ico { width: 20px; height: 20px; flex: none; transition: transform .5s var(--ease); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn--primary { background: var(--verde-700); color: var(--papel); }
.btn--primary::before { background: var(--verde-800); }
.btn--light { background: transparent; color: var(--papel); border: 1px solid rgba(243, 235, 223, .55); }
.btn--light::before { background: var(--papel); }
@media (hover: hover) {
  .btn:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
  .btn:hover .ico { transform: rotate(-14deg) scale(1.1); }
  .btn--primary:hover { transform: translateY(-2px); }
  .btn--light:hover { color: var(--barro-700); border-color: var(--papel); }
}
.btn--sm { min-height: 44px; padding: 0 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }

/* Link: o sublinhado sai pela direita e volta pela esquerda */
.link { font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; }
@media (hover: hover) { .link:hover { animation: sublinha .7s var(--ease); } }
@keyframes sublinha {
  0%   { background-size: 100% 1px; background-position: 100% 100%; }
  45%  { background-size: 0 1px;    background-position: 100% 100%; }
  46%  { background-size: 0 1px;    background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}
.link--light { color: var(--papel); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  color: var(--papel);
  transition: background-color .35s, box-shadow .35s, transform .45s var(--ease);
}
.nav.is-solid { background: rgba(43, 26, 18, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(243, 235, 223, .08); }
/* Some ao descer, volta ao subir; nunca some com foco dentro (teclado) */
.nav.is-hidden:not(:focus-within) { transform: translateY(-100%); }
.nav__progresso {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sol);
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%; opacity: 0; transition: opacity .35s;
}
.nav.is-solid .nav__progresso { opacity: .9; }
.nav__brand .logo { transition: transform .5s var(--ease); }
@media (hover: hover) { .nav__brand:hover .logo { transform: rotate(-6deg) scale(1.05); } }
.nav__brand { display: block; color: var(--papel); }
.logo { display: block; width: 56px; height: 60px; }
.nav__links { display: flex; gap: 8px; }
.nav__links a {
  position: relative; padding: 10px 16px; border-radius: 999px;
  font: 500 1.0625rem/1 var(--f-body); letter-spacing: .005em; text-decoration: none;
  color: rgba(243, 235, 223, .82);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
/* Hover: fundo suave em pílula + traço do sol que cresce do centro */
.nav__links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--sol); transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--papel); background: rgba(243, 235, 223, .08); }
.nav__links a:hover::after, .nav__links a:focus-visible::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--papel); }
@media (max-width: 860px) { .nav__links { display: none; } .nav .btn--sm { font-size: .82rem; } }

/* ---------- HERO ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(760px, 100svh);
  padding-top: 140px; padding-bottom: 220px;
  color: var(--papel);
  --hz-back: var(--barro-800);
  --hz-front: var(--papel);
}
.hero__sky {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(70% 55% at 72% 78%, rgba(232, 162, 74, .55), transparent 70%),
    linear-gradient(180deg, var(--cafe-800) 0%, var(--cafe-600) 24%, var(--barro-700) 55%, var(--barro-500) 78%, #c47a4c 100%);
}
.hero__sky::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .35; mix-blend-mode: overlay; }
.hero__sun { position: absolute; width: min(40vw, 500px); aspect-ratio: 1; right: 8%; bottom: 10%; color: var(--sol); opacity: .25; }

.hero__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.hero__copy .lead { margin-top: 28px; }
/* Traço do sol sob "eterno.", desenhado na entrada */
.traco-wrap { position: relative; display: inline-block; }
.traco { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; pointer-events: none; }
.traco path { fill: none; stroke: var(--sol); stroke-width: 5; stroke-linecap: round; opacity: .85; }
.nowrap { white-space: nowrap; }
.hero__lead { max-width: 36ch; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.45; text-wrap: balance; color: rgba(243, 235, 223, .92); }
.specs { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 22px; padding: 14px 0 0; border-top: 1px solid rgba(243, 235, 223, .2); width: fit-content;
  font: 400 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: rgba(243, 235, 223, .7); }
.specs li:not(:last-child)::after { content: "·"; margin: 0 .9em; color: var(--sol); }
@media (max-width: 860px) {
  .specs { flex-direction: column; gap: 10px; width: 100%; }
  .specs li { display: flex; align-items: center; gap: .8em; }
  .specs li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sol); flex: none; }
  .specs li:not(:last-child)::after { content: none; }
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.hero__meta { position: relative; margin-top: 56px; z-index: 2; }
/* Rota do hero em formato de "bilhete" */
.rota-chip {
  display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 26px; border-radius: 999px;
  background: rgba(28, 18, 12, .38); border: 1px solid rgba(243, 235, 223, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.rota-chip__stop { display: grid; gap: 3px; position: relative; padding-left: 18px; }
.rota-chip__stop::before { content: ""; position: absolute; left: 0; top: 50%; translate: 0 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--sol); box-shadow: 0 0 0 4px rgba(227, 160, 74, .22); }
.rota-chip__stop small { font: 400 .7rem/1 var(--f-mono); letter-spacing: .06em; color: rgba(243, 235, 223, .6); }
.rota-chip__stop b { font: 400 1.25rem/1 var(--f-display); color: var(--papel); }
.rota-chip__linha { width: 44px; height: 0; border-top: 2px dotted rgba(227, 160, 74, .8); transform-origin: 0 50%; }
@media (max-width: 860px) {
  .rota-chip { border-radius: 20px; gap: 10px 14px; padding: 14px 18px; }
  .rota-chip__linha { display: none; }
  .rota-chip__stop b { font-size: 1.05rem; }
}

/* Embalagem (recorte PNG/WebP) + etiqueta kraft */
.hero__product { position: relative; justify-self: center; width: min(100%, 560px); padding: 40px 0 20px; perspective: 1100px; }
/* Gravuras atrás do pacote, como na referência 23° Cartapani */
.gravuras { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.gravura { position: absolute; height: auto; opacity: .42; }
.gravura--igreja    { width: 44%; right: -8%; bottom: 0; transform: scaleX(-1); }
.gravura--aves      { width: 46%; right: -8%; top: 0; }
.gravura--caatinga  { width: 42%; left: -8%;  bottom: 2%; }
.bag-wrap { position: relative; z-index: 1; width: 50%; margin-inline: auto; }
.bag-img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 40px 34px rgba(30, 18, 12, .55)) drop-shadow(0 10px 10px rgba(30, 18, 12, .35));
}

/* Horizonte: invade a seção seguinte */
.horizon { position: absolute; left: 0; right: 0; bottom: -2px; height: 200px; pointer-events: none; z-index: 1; }
.horizon__ground { position: absolute; inset: auto 0 0; width: 100%; height: 100%; }
.cacto { position: absolute; color: var(--barro-900); --cut: var(--barro-700); }
.cacto--1 { left: 6%;  bottom: 40px; width: 64px;  height: 118px; }
.cacto--2 { left: calc(6% + 100px); bottom: 48px; width: 38px;  height: 70px; } /* ancorado no cacto--1: não encosta no celular */
.cacto--3 { right: 30%; bottom: 52px; width: 46px; height: 86px; }
.cacto--4 { right: 4%; bottom: 28px; width: 92px;  height: 170px; color: var(--tinta); --cut: var(--barro-600); }
.horizon--top { top: -1px; bottom: auto; height: auto; }
.horizon--top svg { display: block; width: 100%; height: clamp(60px, 8vw, 120px); }

/* Ramos atravessando as divisas (signature move da referência) */
.ramo { position: absolute; color: var(--tinta); pointer-events: none; z-index: 3; height: auto; filter: drop-shadow(0 18px 18px rgba(31, 22, 18, .35)); }
.ramo--hero { width: min(52vw, 560px); left: -4%; bottom: -70px; transform: rotate(-8deg); }
.ramo--cafe { width: min(44vw, 440px); right: -6%; bottom: -60px; transform: scaleX(-1) rotate(-14deg); }
.ramo--pedir { width: min(40vw, 420px); right: 2%; top: -40px; transform: rotate(10deg); color: var(--tinta); }

@media (max-width: 860px) {
  .hero { padding-top: 120px; padding-bottom: 200px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__product { width: min(100%, 420px); }
    .cacto--3 { display: none; }
  .ramo--hero { width: 78vw; bottom: -46px; }
}

/* ---------- Seções ---------- */
.sec { position: relative; padding-block: var(--sec-y); }
.sec--papel { background: var(--papel); }
.sec--areia { background: var(--areia); }
.sec--noite { background: var(--verde-800); color: var(--papel); overflow: hidden; }
.sec--curvas::before { content: ""; position: absolute; inset: 0; background: url("assets/curvas-de-nivel.svg") center / cover; opacity: .055; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 55%, transparent 20%, #000 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 55%, transparent 20%, #000 75%); }
.sec__head { position: relative; margin-bottom: clamp(48px, 7vw, 96px); max-width: 760px; }
.sec__head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 860px) { .sec__head--split { grid-template-columns: 1fr; } }

/* 01 Ide */
.ide { padding-top: calc(var(--sec-y) + 20px); padding-bottom: clamp(40px, 5vw, 72px); }
.ide + .cafe { padding-top: clamp(56px, 6vw, 96px); }
.ide__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.ide__side { display: grid; gap: 28px; }
/* Fios que se desenham: --fio vai de 0 a 1 no GSAP (sem JS fica 1) */
.verse { position: relative; padding-left: 20px; }
.verse::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--verde-700); transform: scaleY(var(--fio, 1)); transform-origin: 50% 0; }
.verse p { font: 400 1.5rem/1.3 var(--f-display); color: var(--barro-700); }
.verse cite { display: block; margin-top: 10px; font: normal .8125rem var(--f-mono); color: var(--tinta-50); }
@media (max-width: 860px) { .ide__grid { grid-template-columns: 1fr; } }


/* 02 O café: vista anotada */
.anatomy { position: relative; display: grid; grid-template-columns: 1fr minmax(240px, 340px) 1fr; align-items: center; gap: 32px; }
.anatomy__photo { grid-column: 2; grid-row: 1 / span 2; }
.anatomy__notes { display: contents; }
.note { position: relative; width: min(100%, 260px); padding-top: 16px; }
/* Fio da nota: nasce do lado do produto (--fio) e o ponto cereja "acende" (--ponto) */
.note::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--tinta); transform: scaleX(var(--fio, 1)); transition: background-color .3s; }
.note__n { font: 400 .8125rem var(--f-mono); color: var(--verde-700); }
.note h3 { margin: 6px 0 6px; }
.note p { color: var(--tinta-70); font-size: .95rem; line-height: 1.55; text-wrap: balance; }
.note::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--cereja); transform: scale(var(--ponto, 1)); transition: box-shadow .35s var(--ease); }
.note--l1, .note--l2 { grid-column: 1; justify-self: end; text-align: right; }
.note--l1::before, .note--l2::before { transform-origin: 100% 50%; }
.note--l1::after, .note--l2::after { right: -4px; }
.note--r1, .note--r2 { grid-column: 3; }
.note--r1::before, .note--r2::before { transform-origin: 0 50%; }
.note--r1::after, .note--r2::after { left: -4px; }
@media (hover: hover) {
  .note:hover::before { background: var(--cereja); }
  .note:hover::after { box-shadow: 0 0 0 5px rgba(184, 55, 30, .18); }
}
.note--l1 { grid-row: 1; } .note--l2 { grid-row: 2; } .note--r1 { grid-row: 1; } .note--r2 { grid-row: 2; }

.arch { --anel: var(--papel); border-radius: var(--arch); overflow: hidden; background: var(--papel-200); box-shadow: 0 0 0 1px rgba(31,22,18,.25), 0 0 0 10px var(--anel), 0 0 0 11px rgba(31,22,18,.2), 0 30px 50px -24px rgba(31,22,18,.45); transition: box-shadow .6s var(--ease); }
.arch img { width: 100%; height: 100%; object-fit: cover; } /* o GSAP amplia 15% e faz parallax por dentro da moldura */
.arch--tall { aspect-ratio: .6; }
@media (hover: hover) {
  .arch:hover { box-shadow: 0 0 0 1px rgba(31,22,18,.35), 0 0 0 10px var(--anel), 0 0 0 11px var(--barro-600), 0 40px 60px -24px rgba(31,22,18,.5); }
}

.ficha { position: relative; margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(6, 1fr); }
.ficha::before, .impacto::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--tinta); transform: scaleX(var(--fio, 1)); transform-origin: 0 50%; }
.ficha > div { padding: 18px 16px 0 0; }
.ficha dd { transition: color .3s, transform .4s var(--ease); }
@media (hover: hover) { .ficha > div:hover dd:not(.todo) { color: var(--barro-600); transform: translateX(4px); } }
.ficha dt { font: 400 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--tinta-50); }
.ficha dd { margin-top: 6px; font: 400 1.2rem/1.25 var(--f-display); }
.ficha dd.todo { font-size: .85rem; display: inline-block; }

@media (max-width: 860px) {
  .anatomy { grid-template-columns: 1fr 1fr; gap: 36px 20px; align-items: start; }
  .anatomy__photo { grid-column: 1 / -1; grid-row: auto; width: min(72vw, 300px); justify-self: center; margin-bottom: 24px; }
  .note, .note--l1, .note--l2, .note--r1, .note--r2 { grid-column: auto; grid-row: auto; justify-self: stretch; text-align: left; }
  .note::before { transform-origin: 0 50%; }
  .note::after { left: -4px !important; right: auto !important; }
  .ficha { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .ramo--cafe { width: 70vw; }
}

/* 03 Missão: rota */
.missao { padding-top: var(--sec-y); }
.missao::before { content: ""; position: absolute; inset: 0; background: url("assets/curvas-de-nivel.svg") 50% 0 / 1600px auto repeat; opacity: .045; filter: invert(1); pointer-events: none; }
.rota { position: relative; }
.rota__linha { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--areia); overflow: visible; pointer-events: none; }
.rota__paradas { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: 40px; }
.parada { position: relative; }
.parada:nth-child(2) { margin-top: 90px; }
.parada:nth-child(3) { margin-top: -10px; }
.pin { position: relative; z-index: 1; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--cereja); box-shadow: 0 0 0 5px rgba(184,55,30,.25), 0 0 0 1px var(--papel) inset; margin-bottom: 16px; }
/* Pulso do pino: liga quando a rota chega nele (.is-on, via GSAP) */
.pin::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--cereja); opacity: 0; }
.pin.is-on::after { animation: pulso 2.4s var(--ease) infinite; }
@keyframes pulso { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
/* Com a rota animada, o pino espera apagado e "acende" quando a linha chega */
.rota.is-animada .pin { transform: scale(.45); opacity: .45; transition: transform .6s cubic-bezier(.3, 1.8, .5, 1), opacity .3s; }
.rota.is-animada .pin.is-on { transform: none; opacity: 1; }
.parada__big { transition: color .4s var(--ease); }
@media (hover: hover) { .parada:hover .parada__big { color: var(--sol); } }
.parada__big { font: 400 clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem)/1 var(--f-display); color: var(--areia); margin: 6px 0 14px; }
.parada h3 { color: var(--papel); margin-bottom: 8px; }
.parada p:not(.caption):not(.parada__big) { color: rgba(243,235,223,.75); max-width: 32ch; }
.impacto { position: relative; margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(3, 1fr); }
.impacto::before { background: rgba(243,235,223,.25); }
.impacto__n { font-variant-numeric: tabular-nums; }
.impacto > div { padding-top: 22px; display: grid; gap: 6px; }
.impacto__n { font: 400 clamp(2rem, 1.4rem + 2vw, 3.2rem)/1 var(--f-display); }
.horizon--bottom { top: auto; bottom: -1px; height: auto; z-index: 2; }
.horizon--bottom svg:last-child { position: relative; z-index: 1; display: block; width: 100%; height: clamp(60px, 8vw, 120px); }
.horizon--chao .cacto { bottom: clamp(14px, 2vw, 28px); color: var(--verde-900); --cut: var(--verde-700); }
.cacto--noite { width: 110px; height: 200px; right: 7%; }
.cacto--noite2 { width: 56px; height: 104px; right: 15%; }
.sec:has(> .horizon--bottom) { padding-bottom: calc(var(--sec-y) + 60px); }
@media (max-width: 860px) {
  .rota__linha { display: none; }
  .rota__paradas { grid-template-columns: 1fr; gap: 48px; border-left: 1px dashed rgba(243,235,223,.35); padding-left: 24px; padding-top: 0; }
  .parada:nth-child(n) { margin-top: 0; }
  .pin { position: absolute; left: -32px; top: 2px; }
  .impacto { grid-template-columns: 1fr; gap: 20px; }
  .cacto--noite { display: none; }
}

/* 04 Quem somos */
.quem { padding-top: var(--sec-y); }
.quem__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.quem__photo { --anel: var(--areia); aspect-ratio: .82; position: relative; }
.quem__photo img { object-position: 50% 30%; }
/* Centralizada sem transform, para a etiqueta poder "cair" girando na entrada */
.quem__photo figcaption { position: absolute; inset: auto 0 14px; width: fit-content; margin-inline: auto; background: var(--papel); padding: 4px 10px; color: var(--tinta-70); white-space: nowrap; }
.quem__copy .body { margin-top: 24px; }
.mesa { margin-top: 44px; padding: 28px; background: var(--papel); border-radius: var(--radius); box-shadow: 0 20px 40px -24px rgba(31,22,18,.4); transform: rotate(-1deg); transition: box-shadow .5s var(--ease); }
@media (hover: hover) { .mesa:hover { box-shadow: 0 34px 50px -26px rgba(31,22,18,.5); } }
.mesa .eyebrow { margin-bottom: 12px; }
.mesa__quote { font: 400 1.4rem/1.35 var(--f-display); color: var(--barro-700); margin-bottom: 14px; }
@media (max-width: 860px) { .quem__grid { grid-template-columns: 1fr; } .quem__photo { width: min(86vw, 380px); justify-self: center; } }

/* 05 Dúvidas (FAQ) */
.faq { padding-top: calc(var(--sec-y) + 40px); }
.faq .horizon--top { z-index: 0; }
.faq__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq__head .body { margin-top: 24px; }
.faq__lista { position: relative; }
.faq__lista::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--tinta); transform: scaleX(var(--fio, 1)); transform-origin: 0 50%; }
/* Fios entre as perguntas: se desenham em sequência (--fio em cada item, via GSAP) */
.faq__item + .faq__item > summary::before,
.faq__lista::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(31, 22, 18, .2); transform: scaleX(var(--fio, 1)); transform-origin: 0 50%; }
.faq__item + .faq__item > summary::before { top: 0; }
.faq__lista::after { bottom: 0; }
.faq__item summary {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none;
  font: 600 var(--fs-h3)/1.3 var(--f-body); letter-spacing: -.005em; transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
/* "+" que gira e vira "×" ao abrir */
.faq__item summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--tinta);
  background:
    linear-gradient(var(--tinta), var(--tinta)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--tinta), var(--tinta)) center / 1.5px 12px no-repeat;
  transition: transform .45s var(--ease), background-color .3s, border-color .3s;
}
.faq__item[open] summary::after { transform: rotate(135deg); background-color: var(--papel-200); }
.faq__item[open] summary { color: var(--barro-600); }
@media (hover: hover) {
  .faq__item summary:hover { color: var(--barro-600); }
  .faq__item summary:hover::after { border-color: var(--barro-600); }
  .faq__item:not([open]) summary:hover::after { transform: rotate(90deg); }
}
/* Resposta entra deslizando ao abrir */
.faq__item[open] .faq__resposta { animation: resposta .55s var(--ease) both; }
@keyframes resposta { from { opacity: 0; transform: translateY(-10px); } }
.faq__resposta { padding: 0 56px 24px 0; color: var(--tinta-70); max-width: 60ch; }
/* Abrir/fechar com altura animada onde houver suporte (Chrome); nos demais, abre na hora */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
}
.ramo--faq { width: min(36vw, 400px); left: -5%; top: -60px; transform: scaleX(-1) rotate(8deg); }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .faq__resposta { padding-right: 0; }
  .ramo--faq { width: 64vw; top: -36px; }
}

/* 06 Pedir */
.pedir {
  position: relative; isolation: isolate; color: var(--papel);
  padding-block: calc(var(--sec-y) + 60px) var(--sec-y);
  background: radial-gradient(60% 60% at 80% 100%, rgba(232,162,74,.45), transparent 70%), linear-gradient(180deg, var(--barro-700), var(--barro-600) 60%, var(--barro-500));
}
.pedir::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: .3; mix-blend-mode: overlay; }
.pedir .horizon--top { z-index: 0; }
.pedir__sol { position: absolute; z-index: -1; width: min(60vw, 640px); aspect-ratio: 1; left: -10%; bottom: -30%; color: var(--sol); opacity: .22; }
.horizon--pedir .cacto { bottom: 14px; color: var(--barro-800); --cut: var(--barro-600); }
.horizon--pedir .cacto--1 { left: auto; right: 6%; width: 70px; height: 128px; }
.horizon--pedir .cacto--2 { left: auto; right: calc(6% + 84px); width: 40px; height: 74px; bottom: clamp(6px, 1.4vw, 20px); } /* acompanha a altura do chão (que fica por cima) */
.horizon--pedir svg:last-child { height: clamp(40px, 5vw, 70px); }
.pedir__grid { position: relative; display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pedir .lead { margin-top: 24px; }
.pedir__lead { max-width: 26ch; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.45; text-wrap: balance; color: rgba(243, 235, 223, .92); }
.pedido { background: var(--papel); color: var(--tinta); padding: 32px; border-radius: 6px; display: grid; gap: 24px; box-shadow: var(--shadow-produto); position: relative; z-index: 3; } /* grãos passam por baixo do cupom */
.pedido::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(31,22,18,.25); border-radius: 3px; pointer-events: none; }
.pedido fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.pedido legend { width: 100%; margin-bottom: 10px; padding: 0; text-transform: uppercase; letter-spacing: .1em; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--tinta); font-weight: 500; transition: background-color .25s, color .25s, transform .35s var(--ease); }
@media (hover: hover) { .chip:hover input:not(:checked) + span { background: var(--papel-200); transform: translateY(-2px); } }
.chip input:checked + span { background: var(--tinta); color: var(--papel); animation: carimbo .45s var(--ease); }
@keyframes carimbo { 0% { transform: scale(.9); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }
.chip input:focus-visible + span { outline: 2px dashed var(--cereja); outline-offset: 3px; }
.qtd { display: inline-flex; align-items: center; border: 1px solid var(--tinta); border-radius: 999px; overflow: hidden; }
.qtd button { width: 48px; height: 44px; border: 0; background: transparent; font: 500 1.3rem var(--f-body); cursor: pointer; color: var(--tinta); transition: background-color .2s, transform .15s var(--ease); }
@media (hover: hover) { .qtd button:hover { background: var(--papel-200); } }
.qtd button:active { transform: scale(.88); }
.qtd output { min-width: 40px; text-align: center; font: 400 1.3rem var(--f-display); font-variant-numeric: tabular-nums; }
.pedido__nota { position: relative; }
@media (max-width: 860px) { .pedir { padding-bottom: calc(var(--sec-y) + 70px); } .pedir__grid { grid-template-columns: 1fr; } .pedido { padding: 24px; } .ramo--pedir { width: 60vw; top: -20px; } }

/* Footer */
.footer { position: relative; z-index: 2; background: var(--cafe-900); color: var(--papel); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: auto 1fr 1fr 1.4fr; gap: 40px; align-items: start; }
.footer a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: color .3s, background-size .45s var(--ease); }
@media (hover: hover) { .footer a:hover { color: var(--barro-300); background-size: 100% 1px; } }
.footer .caption { margin-bottom: 8px; }
.logo--footer { width: 96px; height: 102px; color: var(--papel); }
.footer__verse { font: 400 1.15rem/1.4 var(--f-display); color: var(--barro-300); }
.footer__legal { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(243,235,223,.15); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__verse { grid-column: 1 / -1; } }

/* ---------- Movimento ----------
   Toda a coreografia está no script.js (GSAP + ScrollTrigger + SplitText).
   .js-anim só existe com JS e sem prefers-reduced-motion: esconde os itens de entrada do hero
   até o GSAP assumir. Título e pacote (elemento LCP) nunca ficam escondidos. */
.js-anim [data-intro] { visibility: hidden; }

/* Entrada do texto, do pacote e do bilhete da rota: CSS puro, roda já na primeira pintura
   (não espera o JS, que só carrega depois do LCP). O pacote só se move, nunca fica invisível. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > :not(h1), .hero__meta { animation: entra 1s var(--ease) both; }
  .hero__copy > .eyebrow { animation-delay: .05s; }
  .hero__copy > .hero__lead { animation-delay: .2s; }
  .hero__copy > .specs { animation-delay: .35s; }
  .hero__copy > .hero__actions { animation-delay: .5s; }
  .hero__meta { animation-delay: .7s; }
  .bag-img { animation: pacote 1.4s var(--ease) both; }
  .rota-chip__linha { animation: linha .7s var(--ease) 1.1s both; }
  .rota-chip__linha + .rota-chip__stop + .rota-chip__linha { animation-delay: 1.35s; }
}
@keyframes entra { from { opacity: 0; transform: translateY(16px); } }
@keyframes pacote { from { transform: translateY(36px) scale(.95) rotate(-2deg); } }
@keyframes linha { from { transform: scaleX(0); } }
.split-linha { padding-bottom: .06em; } /* a máscara das linhas não corta descendentes */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Missão em verde: rótulos em areia */
.missao .eyebrow--light { color: var(--areia); }
.missao .eyebrow--light .num { color: rgba(243,235,223,.55); }

/* Onda com textura: mesmo fundo da seção seguinte (cor + curvas), recortada por máscara */
.horizon--tex { height: clamp(60px, 8vw, 120px); background: var(--hz-color, var(--verde-800));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120 V 70 C 160 48, 300 30, 440 54 S 620 96, 960 78 S 1260 40, 1440 66 V 120Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120 V 70 C 160 48, 300 30, 440 54 S 620 96, 960 78 S 1260 40, 1440 66 V 120Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.horizon--tex::after { content: ""; position: absolute; inset: 0; background: url("assets/curvas-de-nivel.svg") 50% 100% / 1600px auto repeat; opacity: .045; filter: invert(1); }

/* Grãos de café espalhados (fotos recortadas, Magnific) */
.graos { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.grao {
  position: absolute; z-index: 2; pointer-events: none; height: auto;
  width: var(--s, 48px); left: var(--x, 0); top: var(--top, auto); bottom: var(--bottom, auto);
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 10px 8px rgba(30, 18, 12, .35)) drop-shadow(0 2px 2px rgba(30, 18, 12, .3));
}
.grao--perto { z-index: 5; filter: blur(2.5px) drop-shadow(0 16px 14px rgba(30, 18, 12, .35)); }
.anatomy, .quem__grid, .pedir__grid, .ide__grid { position: relative; }
@media (max-width: 860px) {
  .grao { width: calc(var(--s, 48px) * .7); }
  /* No celular os grãos ficam só no hero (aos pés do pacote); nas outras seções cairiam sobre o texto */
  .grao:not(.graos .grao) { display: none; }
}

/* 404: página de erro (mesmo papel, tipografia e horizonte do site) */
.erro { min-height: 100svh; display: grid; align-content: center; position: relative; }
.erro__main { padding-block: 96px 160px; display: grid; justify-items: start; gap: 20px; }
.erro__logo { width: 72px; height: auto; margin-bottom: 24px; }
.erro .eyebrow { margin-bottom: 0; }
.erro__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 12px; }
.erro__chao { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(60px, 8vw, 120px); }
