:root {
  --ink: #1c1720;          /* texto escuro */
  --body-ink: #5f5866;     /* texto secundário em fundo claro */
  --night: #0e0c10;        /* filme */
  --purple: #5b1a72;
  --purple-2: #7a3aa0;
  --lime: #a6d83f;
  --lime-ink: #1f3300;
  --cream: #f7f3ee;
  --paper: #ffffff;
  --line: #e9e2ec;
  --light: #f7f5f9;        /* texto claro sobre o filme */
  --muted-light: #c9c2cf;
  --radius: 22px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --curve: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html.lenis, html.lenis body { height: auto; }
html.lenis-stopped { overflow: hidden; }
html { overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 4.3rem); line-height: 1.02; }
h1 span { color: var(--lime); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.7rem); line-height: 1.08; }
.kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--purple-2); margin: 0 0 14px; }

/* ---------- topo: transparente no filme, branco no resto ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; color: var(--light);
  display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 4vw, 48px);
  transition: background .5s var(--curve), color .5s var(--curve), box-shadow .5s var(--curve);
}
.top.solid { background: #fffffff2; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px #1c172055; }
.brand { position: relative; display: block; height: 44px; }
.brand img { height: 44px; width: auto; transition: opacity .5s var(--curve); }
.brand .logo-dark { position: absolute; inset: 0; opacity: 0; }
.top.solid .logo-dark { opacity: 1; }
.top.solid .logo-light { opacity: 0; }
.top nav { display: flex; gap: 30px; margin-left: auto; font-weight: 700; font-size: .92rem; }
.top nav a { text-decoration: none; position: relative; padding: 6px 0; opacity: .9; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--lime); transform: scaleX(0); transition: transform .4s var(--curve); }
.top nav a:hover::after { transform: scaleX(1); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: #ffffff1f; color: inherit; padding: 10px 14px; border-radius: 999px; font: 700 .9rem var(--font);
  box-shadow: inset 0 0 0 1px #ffffff40; transition: background .4s, box-shadow .4s;
}
.top.solid .cart-btn { background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.cart-btn b { background: var(--lime); color: var(--lime-ink); min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: .78rem; padding: 0 6px; }
.voo { position: fixed; z-index: 70; margin: 0; pointer-events: none; transform-origin: 50% 50%; object-fit: contain; filter: drop-shadow(0 14px 26px #5b1a7288); }
.chegou { animation: chegou .6s cubic-bezier(.3, 1.7, .5, 1); }
.chegou svg { animation: chegouIc .6s ease-out; }
.chegou b { animation: chegouCnt .6s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes chegou { 0% { scale: 1; box-shadow: 0 0 0 0 #a6d83fcc; } 35% { scale: 1.12; } 100% { scale: 1; box-shadow: 0 0 0 16px #a6d83f00; } }
@keyframes chegouIc { 0%, 100% { rotate: 0deg; } 30% { rotate: -14deg; } 60% { rotate: 8deg; } }
@keyframes chegouCnt { 0% { scale: 1; } 40% { scale: 1.6; } 100% { scale: 1; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; font: 800 .95rem var(--font); text-decoration: none;
  transition: transform .4s var(--curve), background .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 24px -12px #6f9a1d; }
.btn-ghost { background: #ffffff14; color: var(--light); box-shadow: inset 0 0 0 1.5px #ffffff55; }
.btn-line { color: var(--light); box-shadow: inset 0 0 0 1.5px #ffffff66; background: none; }
.btn.wide { width: 100%; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.cta-row.center { justify-content: center; }

/* ---------- filme ---------- */
.hero { height: 640vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; color: var(--light); transform-origin: 50% 30%; will-change: transform; background: radial-gradient(90% 70% at 50% 45%, #2a1736 0%, #141117 60%, var(--night) 100%); }
#film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #0e0c10e6 0%, #0e0c1066 45%, transparent 70%), linear-gradient(0deg, #0e0c10 0%, transparent 30%); }
.stage-dim { position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; z-index: 6; }
.frost { position: absolute; top: 0; left: 0; width: 100%; height: clamp(90px, 13vw, 170px); z-index: 2; transform-origin: top; will-change: transform; pointer-events: none; }
.hero-copy { position: absolute; left: clamp(16px, 6vw, 96px); top: 54%; translate: 0 -50%; max-width: 620px; z-index: 3; }
.hero-copy .kicker { color: var(--lime); }
.hero-copy h1 { text-shadow: 0 4px 30px var(--night); }
.lead { font-size: 1.05rem; color: var(--muted-light); max-width: 40ch; line-height: 1.55; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); display: grid; justify-items: center; gap: 10px; white-space: nowrap; }
.scroll-hint span { width: 2px; height: 36px; background: linear-gradient(#fff, transparent); animation: drip 1.6s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { opacity: 0; } }

/* os 5 tipos em arco */
.arc-head { position: absolute; top: 110px; left: 0; right: 0; text-align: center; z-index: 4; opacity: 0; pointer-events: none; padding: 0 16px; }
.arc-head .kicker { color: var(--lime); }
.arc-head p:last-child { color: var(--muted-light); margin: 12px 0 0; }
.arc { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.arc.on { pointer-events: auto; }
.tcard {
  position: absolute; left: 0; top: 0; width: var(--cw); margin: calc(var(--cw) * -0.66) 0 0 calc(var(--cw) * -0.5);
  border: 0; padding: 0; background: none; cursor: pointer; color: var(--ink); font: inherit; text-align: left;
  will-change: transform, opacity;
}
.tcard .in {
  --k: 1;
  display: grid; gap: 10px; padding: 12px 12px 16px; border-radius: 24px;
  background: rgb(255 255 255 / var(--k)); box-shadow: 0 30px 60px -24px rgb(0 0 0 / calc(var(--k) * .55));
  transition: transform .5s var(--curve), box-shadow .5s var(--curve);
}
.tcard:focus-visible .in { box-shadow: 0 40px 70px -24px #000a, 0 0 0 3px var(--lime); }
.tcard img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; pointer-events: none; filter: drop-shadow(0 10px 14px #0005); }
.tcard b, .tcard small { opacity: var(--k); padding: 0 4px; }
.tcard b { font-size: .98rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tcard small { display: block; color: var(--purple-2); font-weight: 700; font-size: .78rem; margin-top: -4px; }
.tcard .go { opacity: var(--k); margin: 2px 4px 0; font-size: .8rem; font-weight: 800; color: #6c8f1f; }

/* ---------- capítulos (estrutura do catálogo da NexTag, em tema claro) ---------- */
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: .08em; }
.kicker.mono { font-weight: 700; letter-spacing: .14em; }
.after { position: relative; z-index: 5; margin-top: -100vh; background: var(--cream); overflow-x: clip; }
.after::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -1px; height: 260px; z-index: -1;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--cream);
  box-shadow: 0 -30px 80px #00000066;
}
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }
.chapter { padding: 110px 0 40px; scroll-margin-top: 70px; }
.chapter:first-child { padding-top: 160px; }
.chapter.white { background: var(--paper); }
.ch-head { max-width: 640px; margin-bottom: 40px; }
.ch-head h2, .pain-in h2, .faq-in h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.045em; }
.ch-head p:last-child { color: var(--body-ink); line-height: 1.6; font-size: 1.05rem; }
.muted { color: var(--body-ink); line-height: 1.6; }

/* profundidade no fundo das abas de produto (mesma ideia do site da New Victor):
   palavra gigante desfocada, embalagens fora de foco em camadas e manchas de luz, cada uma com seu parallax */
.chapter.deep { position: relative; overflow: hidden; isolation: isolate; }
.chapter.deep > .wrap { position: relative; z-index: 1; }
.depth { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.depth > * { position: absolute; will-change: transform; }
.pf { top: 70px; left: -3vw; font-weight: 800; font-size: clamp(130px, 24vw, 360px); line-height: .8; letter-spacing: -.07em; white-space: nowrap; color: rgb(91 26 114 / .06); text-shadow: 0 0 18px rgb(91 26 114 / .08); }
#extras .pf { left: auto; right: -4vw; color: rgb(95 125 42 / .08); }
.bk { width: 42vw; aspect-ratio: 1; border-radius: 50%; opacity: .45; }
.bk > *, .fl img { animation: flutuar 15s ease-in-out infinite alternate; }
.bk-roxo { top: 8%; right: -14%; background: radial-gradient(circle, #b07ad6 0%, #b07ad600 70%); }
.bk-lima { bottom: 6%; left: -16%; background: radial-gradient(circle, #c7ec7a 0%, #c7ec7a00 70%); }
#extras .bk-lima { top: 10%; left: -14%; bottom: auto; }
#extras .bk-roxo { top: auto; bottom: 4%; right: -12%; }
.fl img { display: block; width: 100%; height: auto; }
/* quanto mais longe, mais desfocada, menor e mais lenta */
.fl.f-a { width: clamp(220px, 24vw, 380px); top: 120px; right: -5vw; }
.fl.f-a img { opacity: .55; rotate: 14deg; animation-duration: 17s; }
.fl.f-b { width: clamp(180px, 18vw, 300px); bottom: 14%; left: -4vw; }
.fl.f-b img { opacity: .5; rotate: -12deg; animation-duration: 13s; animation-delay: -5s; }
.fl.f-c { width: clamp(90px, 8vw, 140px); top: 46%; right: 2.5vw; }
.fl.f-c img { opacity: .9; rotate: 8deg; animation-duration: 11s; animation-delay: -3s; }
.fl.f-d { width: clamp(80px, 7vw, 120px); top: 34%; left: 3vw; }
.fl.f-d img { opacity: .4; rotate: -18deg; animation-duration: 19s; animation-delay: -9s; }
.fl.f-e { width: clamp(140px, 13vw, 220px); bottom: 3%; right: 6vw; }
.fl.f-e img { opacity: .6; rotate: -6deg; animation-duration: 16s; animation-delay: -7s; }
@keyframes flutuar {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, -6%, 0) scale(1.06); }
}
@media (max-width: 900px) {
  .fl.f-c, .fl.f-e { display: none; }
  .fl.f-a { width: 46vw; right: -16vw; }
  .fl.f-b { width: 40vw; left: -14vw; }
}

/* card de produto: visual, dor em destaque, solução, variação, quantidade, adicionar */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pc {
  background: var(--paper); border-radius: 24px; padding: 18px 20px 20px; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -36px #1c172080; scroll-margin-top: 90px;
  transition: box-shadow .6s var(--curve);
}
.pc.flash { box-shadow: 0 0 0 3px var(--accent), 0 30px 60px -30px color-mix(in srgb, var(--accent) 70%, transparent); }
.pc-img { aspect-ratio: 5 / 4; border-radius: 16px; display: grid; place-items: center; padding: 14px; overflow: hidden; min-height: 0;
  background: radial-gradient(70% 70% at 50% 60%, color-mix(in srgb, var(--accent) 14%, #fff) 0%, #fff 75%); }
.pc-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px #1c172030); transition: opacity .25s ease, transform .6s var(--curve); }
.pc-img img.swap { opacity: 0; transform: scale(.95); }

.pc-tag { align-self: flex-start; margin: 16px 0 8px; padding: 5px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accent); }
.pc h3 { font-size: 1.35rem; letter-spacing: -0.03em; }
.pc .prob { margin: 10px 0 6px; color: #c2410c; font-weight: 700; line-height: 1.4; font-size: .95rem; }
.pc .sol { margin: 0; color: var(--body-ink); line-height: 1.5; font-size: .93rem; }
.pc .price { margin: 12px 0 0; font-size: .82rem; font-weight: 700; color: var(--purple-2); }
.pc hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0 12px; width: 100%; }
.pc .lbl { margin: 0 0 8px; font-size: .68rem; color: var(--body-ink); text-transform: uppercase; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes button {
  border: 0; cursor: pointer; padding: 8px 11px; border-radius: 10px; font: 700 .8rem var(--font);
  color: var(--ink); background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .3s, color .3s, box-shadow .3s;
}
.sizes button:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.sizes button[aria-checked="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.pc .row { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 16px; }
.pc .add { flex: 1; border: 0; cursor: pointer; padding: 13px 14px; border-radius: 999px; font: 800 .88rem var(--font); background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 22px -12px #6f9a1d; transition: background .3s, transform .4s var(--curve); }
.pc .add:hover { background: #b6e356; transform: translateY(-2px); }

.step { display: inline-flex; align-items: center; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.step button { border: 0; background: none; width: 36px; height: 44px; font-size: 1.15rem; cursor: pointer; color: var(--ink); }
.step output { min-width: 22px; text-align: center; font-weight: 800; }

/* convite para o próximo capítulo */
.nextch { display: grid; justify-items: center; gap: 6px; margin: 70px auto 0; text-decoration: none; text-align: center; width: max-content; max-width: 100%; }
.nextch small { font-size: .7rem; color: var(--body-ink); text-transform: uppercase; }
.nextch b { font-size: 1.1rem; }
.nextch i { font-style: normal; color: var(--purple-2); animation: nudge 1.8s var(--curve) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* polpas dentro do capítulo 02 */
.polpas-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 70px; padding: 28px; border-radius: 28px; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.polpas-in > img { border-radius: 18px; }
.h3big { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.packs { --accent: var(--purple-2); margin-top: 18px; }
.flavors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.flavors button { border: 0; cursor: pointer; padding: 9px 14px; border-radius: 999px; font: 700 .84rem var(--font); background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .3s, transform .4s var(--curve); }
.flavors button:hover { box-shadow: inset 0 0 0 1.5px var(--purple-2); transform: translateY(-2px); }
.flavors button b { color: var(--purple-2); margin-left: 4px; }

/* capítulo 03 */
.pain-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.pain-in .big { font-size: 1.15rem; color: var(--ink); font-weight: 600; line-height: 1.6; margin-top: 0; }
.timeline { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.timeline li { padding: 24px; border-right: 1px solid var(--line); }
.timeline li:last-child { border-right: 0; }
.timeline small { color: var(--purple-2); font-size: .78rem; }
.timeline .bar { display: block; height: 3px; border-radius: 3px; margin: 10px 0 16px; background: linear-gradient(90deg, var(--purple-2) var(--w), var(--line) var(--w)); }
.timeline b { font-size: 1.1rem; }
.timeline p { margin: 6px 0 0; color: var(--body-ink); line-height: 1.5; }

/* capítulo 04 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px #1c172066; }
.steps small { color: var(--purple-2); font-size: .74rem; text-transform: uppercase; }
.steps h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--body-ink); line-height: 1.5; }

/* capítulo 05 */
.faq-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; padding-bottom: 60px; }
.qs { display: grid; gap: 10px; }
.qs details { background: var(--paper); border-radius: 18px; padding: 0 22px; box-shadow: 0 1px 0 var(--line); }
.qs summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; color: var(--purple-2); font-size: 1.3rem; line-height: 1; transition: transform .45s var(--curve); }
.qs details[open] summary::after { transform: rotate(45deg); }
.qs p { margin: 0 0 20px; color: var(--body-ink); line-height: 1.55; }

.close { padding: 100px 0 120px; text-align: center; color: var(--light); background: radial-gradient(80% 120% at 50% 0%, #7a3aa0 0%, var(--purple) 55%, #3c1050 100%); border-radius: 40px 40px 0 0; }
.close p { color: #e5d6ef; }
.foot { background: var(--paper); text-align: center; padding: 40px 16px 110px; color: var(--body-ink); font-size: .88rem; }
.foot img { height: 56px; margin: 0 auto 12px; }

/* trilho de capítulos e pílula */
.rail { position: fixed; right: 22px; top: 50%; translate: 0 -50%; z-index: 15; display: grid; gap: 14px; justify-items: end; opacity: 0; pointer-events: none; transition: opacity .5s var(--curve); }
.rail.on { opacity: 1; pointer-events: auto; }
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rail a span { font: 700 .66rem "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 6px 14px -8px #1c172055; opacity: 0; translate: 6px 0; transition: opacity .4s var(--curve), translate .4s var(--curve); }
.rail a i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b9b0c0; background: var(--cream); transition: height .45s var(--curve), background .3s, box-shadow .3s; }
.rail a.done i { background: #b9b0c0; }
.rail a.now i { height: 26px; border-radius: 6px; background: var(--purple-2); box-shadow: none; }
.rail a.now span, .rail a:hover span { opacity: 1; translate: 0 0; }
.rail a.now span b { color: var(--purple-2); }

.pill { position: fixed; left: 50%; bottom: 18px; z-index: 25; display: flex; align-items: center; gap: 14px; padding: 7px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 20px 40px -16px #000a; translate: -50% 160%; transition: translate .6s var(--curve); }
.pill.on { translate: -50% 0; }
.pill button { border: 0; cursor: pointer; font: 800 .8rem var(--font); border-radius: 999px; }
.pill-prev { width: 40px; height: 40px; background: #ffffff14; color: #fff; }
.pill-next { padding: 12px 16px; background: var(--purple-2); color: #fff; }
.pill-next:hover { background: #8b47b3; }
.pill-mid { display: grid; justify-items: center; gap: 6px; min-width: 130px; }
.pill-mid small { font-size: .64rem; text-transform: uppercase; color: #cfc8d6; }
.dashes { display: flex; gap: 4px; }
.dashes i { width: 14px; height: 3px; border-radius: 2px; background: #ffffff30; transition: background .4s; }
.dashes i.on { background: #c9a3e8; }

.cart-float { position: fixed; right: 18px; bottom: 18px; z-index: 26; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 13px 16px; border-radius: 999px; font: 800 .9rem var(--font); background: var(--purple); color: #fff; box-shadow: 0 18px 36px -14px #5b1a72aa; animation: rise .6s var(--curve); }
.cart-float b { background: #fff; color: var(--purple); min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: .78rem; padding: 0 6px; }
@keyframes rise { from { transform: translateY(140%); } }

/* pedido */
.scrim { display: none !important; }
@keyframes fade { from { opacity: 0; } }
/* checkout como página própria (tela cheia), pensada primeiro pro celular */
.drawer { position: fixed; inset: 0; z-index: 31; background: var(--cream); color: var(--ink); display: flex; flex-direction: column; animation: pageIn .55s var(--curve); }
.drawer.saindo { animation: pageOut .4s var(--curve) forwards; }
@keyframes pageIn { from { transform: translateY(6%); opacity: 0; } }
@keyframes pageOut { to { transform: translateY(6%); opacity: 0; } }
.drawer > * { width: min(680px, 100%); margin-inline: auto; padding-inline: 18px; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 10px; }
.drawer-head h2 { font-size: 1.5rem; margin-left: auto; }
.co-backstore { border: 0; background: none; font: 700 .9rem var(--font); color: var(--purple-2); cursor: pointer; padding: 10px 0; }
.drawer .x { display: none; }
.x { border: 0; background: var(--paper); width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-list li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; background: var(--paper); padding: 10px; border-radius: 14px; }
.cart-list img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; }
.cart-list .nm { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.cart-list .nm small { display: block; font-weight: 500; color: var(--body-ink); }
.empty { color: var(--body-ink); }
.order-form { display: grid; gap: 12px; align-content: start; }
/* checkout em 2 passos: as telas deslizam lado a lado */
.drawer { overflow: hidden; }
.co-pane { padding-inline: 18px !important; }
.co-steps { list-style: none; display: flex; gap: 8px; padding: 0 18px; margin: 0 auto 14px; }
.co-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: .85rem; color: var(--body-ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s var(--curve), color .4s; }
.co-steps li b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--cream); }
.co-steps li.on { background: var(--purple); color: #fff; box-shadow: none; }
.co-steps li.on b { background: var(--lime); color: var(--lime-ink); }
.drawer > .co-track { padding-inline: 0; }
.co-track { flex: 1; min-height: 0; display: grid; grid-template-columns: 100% 100%; transition: transform .6s var(--curve); }
.co-track.s2 { transform: translateX(-100%); }
.co-pane { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 2px 2px 8px; transition: opacity .4s; }
.co-track:not(.s2) #orderForm, .co-track.s2 #coItems { opacity: 0; pointer-events: none; }
#orderForm { display: flex; }
/* botão principal preso embaixo, ao alcance do polegar */
.co-foot { position: sticky; bottom: 0; margin-top: auto; display: grid; gap: 10px; padding: 12px 0 max(14px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--cream) 22%); }
.co-foot.two { grid-template-columns: auto 1fr; }
.btn-wa { background: #25d366; color: #fff; gap: 10px; white-space: nowrap; box-shadow: 0 12px 26px -12px #128c7e; }
.btn-wa:hover { background: #1ebe5b; }
.btn-wa .wa-ic { flex: none; }
@media (max-width: 600px) {
  .co-foot.two .btn-soft { padding-inline: 18px; }
  .co-foot.two .vt { display: none; }
  .btn-wa { min-width: 0; padding-inline: 14px; font-size: .9rem; }
}
.btn-soft { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.order-form fieldset { border: 0; padding: 14px; margin: 0; border-radius: 16px; background: var(--paper); display: grid; gap: 12px; }
.order-form legend { float: left; width: 100%; margin-bottom: 2px; font: 800 .72rem "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-2); }
.order-form label small { font-weight: 500; color: var(--body-ink); }
.order-form select, .order-form textarea { font: 500 1rem var(--font); padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.order-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--purple-2) 50%), linear-gradient(135deg, var(--purple-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.order-form textarea { resize: vertical; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 4px #7a3aa022; }
.order-form .bad { border-color: #d64545 !important; animation: shake .45s var(--curve); }
@keyframes shake { 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
.at { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.at:focus-within { border-color: var(--purple-2); box-shadow: 0 0 0 4px #7a3aa022; }
.at i { font-style: normal; font-weight: 800; color: var(--purple-2); padding-left: 14px; }
.order-form .at input { border: 0; box-shadow: none; padding-left: 4px; flex: 1; min-width: 0; }
.co-summary { font-size: .88rem; color: var(--body-ink); background: #efe9f2; padding: 12px 14px; border-radius: 12px; line-height: 1.5; }
.co-summary b { color: var(--ink); }
.order-form label { display: grid; gap: 6px; font-weight: 700; font-size: .85rem; }
.order-form input { font: 500 1rem var(--font); padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.note { margin: 0; font-size: .85rem; color: var(--body-ink); background: #efe9f2; padding: 10px 12px; border-radius: 10px; }
.toast { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -30px); opacity: 0; z-index: 40; background: var(--ink); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 999px; transition: transform .5s var(--curve), opacity .3s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* entradas em curva */
[data-reveal] { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1s var(--curve), transform 1.2s var(--curve); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- interação com o mouse (só em telas com mouse) ---------- */
@media (hover: hover) and (pointer: fine) {
  /* card de produto: inclina em 3D seguindo o mouse, a embalagem flutua e um brilho acompanha o cursor */
  .pc { position: relative; --rx: 0deg; --ry: 0deg; --px: 0; --py: 0; --mx: 50%; --my: 50%; --lift: 0px; }
  .pc.in { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, var(--lift), 0); transition: transform .45s var(--curve), box-shadow .5s var(--curve); transition-delay: 0s; }
  .pc.in:hover { --lift: -8px; box-shadow: 0 0 0 2px var(--accent), 0 40px 70px -34px color-mix(in srgb, var(--accent) 75%, #000); }
  .pc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--curve);
    background: radial-gradient(420px circle at var(--mx) var(--my), #ffffff59, transparent 45%); mix-blend-mode: soft-light; }
  .pc:hover::after { opacity: 1; }
  .pc .pc-img img { transition: opacity .25s ease, transform .5s var(--curve), filter .5s var(--curve); }
  .pc:hover .pc-img img { transform: translate3d(calc(var(--px) * -16px), calc(var(--py) * -12px - 8px), 0) scale(1.07) rotate(calc(var(--px) * -3deg)); filter: drop-shadow(0 24px 22px #1c172045); }
  .pc .pc-img { transition: background .5s var(--curve); }
  .pc:hover .pc-img { background: radial-gradient(70% 70% at var(--mx) var(--my), color-mix(in srgb, var(--accent) 24%, #fff) 0%, #fff 75%); }
  .pc .pc-tag { transition: transform .45s var(--curve); }
  .pc:hover .pc-tag { transform: translateX(4px); }

  /* os tipos no arco */
  .tcard .in { --rx: 0deg; --ry: 0deg; --lift: 0px; --sc: 1; transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, var(--lift), 0) scale(var(--sc)); transition: transform .45s var(--curve), box-shadow .5s var(--curve); }
  .tcard:hover .in { --lift: -14px; --sc: 1.05; box-shadow: 0 46px 80px -26px #000c, 0 0 0 3px var(--lime); }
  .tcard img { transition: transform .5s var(--curve); }
  .tcard:hover img { transform: translateY(-6px) scale(1.06); }
  .tcard .go { transition: letter-spacing .4s var(--curve), color .3s; }
  .tcard:hover .go { letter-spacing: .04em; color: var(--purple-2); }

  /* botões: atraídos pelo cursor e com um brilho que passa */
  .btn, .pc .add, .pill-next, .cart-float, .cart-btn { translate: var(--tx, 0) var(--ty, 0); transition: transform .4s var(--curve), translate .35s var(--curve), background .3s, box-shadow .3s; position: relative; overflow: hidden; }
  .btn::after, .pc .add::after, .pill-next::after, .cart-float::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%) skewX(-20deg); background: linear-gradient(90deg, transparent, #ffffff70, transparent); }
  .btn:hover::after, .pc .add:hover::after, .pill-next:hover::after, .cart-float:hover::after { transform: translateX(120%) skewX(-20deg); transition: transform .8s var(--curve); }

  /* tamanhos, sabores, passos, frio e dúvidas */
  .sizes button { transition: background .3s, color .3s, box-shadow .3s, transform .35s var(--curve); }
  .sizes button:hover { transform: translateY(-2px); }
  .sizes button:active, .flavors button:active { transform: scale(.94); }
  .flavors button:hover { background: var(--purple); color: #fff; box-shadow: none; }
  .flavors button:hover b { color: var(--lime); }
  .steps li { transition: transform .5s var(--curve), box-shadow .5s var(--curve); }
  .steps li:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--purple-2), 0 30px 50px -30px #5b1a7299; }
  .timeline li { transition: background .5s var(--curve); }
  .timeline li:hover { background: color-mix(in srgb, var(--purple-2) 7%, #fff); }
  .timeline .bar { transition: background-size .6s var(--curve); }
  .qs details { transition: box-shadow .4s var(--curve), transform .4s var(--curve); }
  .qs details:hover { transform: translateX(4px); box-shadow: 0 0 0 1.5px var(--purple-2); }
  .rail a:hover i { transform: scale(1.4); }
  .rail a i { transition: height .45s var(--curve), background .3s, box-shadow .3s, transform .35s var(--curve); }
  .polpas-in > img { transition: transform .6s var(--curve); }
  .polpas-in > img:hover { transform: scale(1.02) rotate(-.5deg); }
}

@media (max-width: 900px) {
  .top nav { display: none; }
  .cart-btn { margin-left: auto; }
  .brand, .brand img { height: 38px; }
  .hero-copy { top: auto; bottom: 12vh; translate: none; right: 16px; }
  .vignette { background: linear-gradient(0deg, #0e0c10 5%, #0e0c1090 45%, transparent 75%); }
  .arc-head { top: 92px; }
  .arc-head h2 { font-size: 1.6rem; }
  .steps, .polpas-in, .pain-in, .faq-in, .timeline { grid-template-columns: 1fr; }
  .timeline li { border-right: 0; border-bottom: 1px solid var(--line); }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rail { display: none; }
  .polpas-in { padding: 18px; }
}
@media (max-width: 600px) {
  .pgrid { grid-template-columns: 1fr; }
  .pill { gap: 10px; padding: 6px; }
  .pill-mid { min-width: 70px; }
  .pill-mid small { display: none; }
  .pill-next { white-space: nowrap; padding: 11px 14px; }
  .pill-prev { width: 36px; height: 36px; }
  .cart-float { bottom: 80px; }
  .tcard b { font-size: .8rem; }
  .tcard small, .tcard .go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bk > *, .fl img { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
