/* =====================================================================
   CURATIO — Sistema de cores por área, animações suaves e experiência mobile
   (carregado depois de style.css)
   Azul: corpo · Lilás: rosto · Verde: mãos e pés · Âmbar: banho e cabelo
   ===================================================================== */
:root {
  --area-azul: #3B9BDB; --area-lilas: #9466CF; --area-verde: #4E9F3D; --area-ambar: #C8782F;
  --spring: cubic-bezier(.22, 1.2, .36, 1);
  --tabbar-h: 64px;
}
html { -webkit-tap-highlight-color: transparent; }

/* ---------- cor da área ---------- */
.cdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pc, var(--accent)); margin-right: 8px; vertical-align: middle; flex: none; }
.with-dot { display: inline-flex; align-items: center; }
.pcard__meta span:first-child { display: inline-flex; align-items: center; }
.pcard__media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--pc, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 2; }
.pcard:hover .pcard__media::after { transform: scaleX(1); }
.pcard { transition: transform .5s var(--ease); }
.pcard:hover { transform: translateY(-4px); }
.chip .cdot { width: 7px; height: 7px; margin-right: 2px; }
.chip.on .cdot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.kit { border-left: 3px solid var(--pc, var(--accent)); }
.pdp__area { color: var(--pc, var(--accent)); }
.pdp__area::before { display: none; }
.pdp-wrap .thumb-info { background: color-mix(in srgb, var(--pc) 10%, #fff); color: color-mix(in srgb, var(--pc) 75%, #000); }
.pdp-wrap .price--lg .price__now { color: var(--ink); }

/* seção "Uma cor para cada cuidado" */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area { position: relative; border-radius: var(--r-lg); overflow: hidden; background: color-mix(in srgb, var(--pc) 9%, #fff); display: flex; flex-direction: column; transition: transform .6s var(--ease), box-shadow .6s var(--ease); isolation: isolate; }
.area::before { content: ''; position: absolute; inset: auto -30% -40% -30%; height: 70%; background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 32%, transparent), transparent); z-index: -1; transition: transform .8s var(--ease); }
.area:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--pc) 60%, transparent); }
.area:hover::before { transform: translateY(-12%) scale(1.1); }
.area__img { aspect-ratio: 4/4.4; overflow: hidden; }
.area__img .pimg { transition: transform 1s var(--ease); }
.area:hover .area__img .pimg { transform: scale(1.06); }
.area__body { padding: 18px 20px 22px; position: relative; }
.area__dot { display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--pc); margin-bottom: 14px; transition: width .5s var(--ease); }
.area:hover .area__dot { width: 52px; }
.area h3 { font-size: 24px; }
.area p { font-size: 13.5px; color: var(--grey); margin: 4px 0 0; }
.area__go { position: absolute; right: 18px; bottom: 20px; width: 38px; height: 38px; border-radius: 50%; background: var(--pc); color: #fff; display: grid; place-items: center; transition: transform .4s var(--spring); }
.area__go .ico { width: 18px; height: 18px; }
.area:hover .area__go { transform: translateX(4px) rotate(-8deg); }

/* ciência: números */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 6px; }
.stats div { border: 1px solid rgba(147, 211, 241, .2); border-radius: var(--r); padding: 16px; }
.stats strong { display: block; font-family: var(--f-body); font-weight: 200; font-size: clamp(30px, 3.4vw, 42px); line-height: 1; color: var(--sky); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12.5px; color: #9fb2bd; display: block; margin-top: 8px; line-height: 1.4; }

/* produto: benefícios e selos */
.benefits { list-style: none; padding: 0; margin: -6px 0 22px; display: grid; gap: 8px; }
.benefits li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 400; }
.benefits .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--pc, var(--accent)); color: #fff; }
.seals { display: flex; flex-wrap: wrap; gap: 8px; }
.seals span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink-2); }
.seals .ico { width: 14px; height: 14px; color: var(--pc, var(--accent)); }

/* sobre: diferenciais */
.diffs { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: d; }
.diffs li { position: relative; padding-left: 52px; color: var(--grey); font-size: 15.5px; }
.diffs li::before { counter-increment: d; content: '0' counter(d); position: absolute; left: 0; top: 0; font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: .1em; width: 38px; height: 38px; border-radius: 50%; background: var(--sky-3); display: grid; place-items: center; }
.diffs strong { display: block; color: var(--ink); font-weight: 500; font-size: 16.5px; margin-bottom: 2px; }

/* slogan */
.footer__slogan { font-family: var(--f-display); font-size: 24px; line-height: 1.25; color: #fff; margin: 22px 0 12px; }
.footer__slogan em, .mnav__slogan em { font-style: normal; color: var(--sky-2); }
.mnav__slogan { font-family: var(--f-display); font-size: 26px; line-height: 1.2; margin: 4px 0 20px; }
.mnav__wa { display: none; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; height: 52px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 500; font-size: 15px; }
.mnav__wa .ico { width: 22px; height: 22px; }
.area-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.area-mini a { border-radius: 16px; padding: 14px; background: color-mix(in srgb, var(--pc) 10%, #fff); display: grid; gap: 2px; transition: transform .3s var(--spring); }
.area-mini a:active { transform: scale(.97); }
.area-mini i { width: 22px; height: 4px; border-radius: 4px; background: var(--pc); margin-bottom: 8px; }
.area-mini strong { font-weight: 500; font-size: 15px; }
.area-mini small { font-size: 11.5px; color: var(--grey); line-height: 1.35; }

/* =====================================================================
   ANIMAÇÕES
   ===================================================================== */
/* entrada do herói: palavra por palavra */
.hero__title { font-size: clamp(42px, 6.2vw, 86px); line-height: 1.04; margin: 18px 0 22px; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; animation: wordUp 1.1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.hero__title em { font-style: normal; color: var(--sky); }
@keyframes wordUp { from { transform: translateY(105%); opacity: 0; } }
.anim-in { animation: fadeUp 1s var(--ease) both; animation-delay: calc(var(--a) * 90ms + 100ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } }
.hero__card { animation: fadeUp 1s var(--ease) both, floaty 6s ease-in-out 2s infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.hero__bg { will-change: transform; animation: heroZoom 2.4s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.15); opacity: 0; } to { transform: scale(1.08); } }
.hero__in { will-change: transform, opacity; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: #fff; display: grid; place-items: center; animation: nudge 2.4s ease-in-out 2s infinite; }
.hero__scroll .ico { width: 18px; height: 18px; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* troca de página */
#main.page-enter > * { animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } }

/* revelação em cascata */
.reveal { transition-delay: var(--d, 0ms); }
.sec-head h2 .script { display: block; }
.reveal .eyebrow::before, .reveal.eyebrow::before { transition: width .9s var(--ease) .2s; }
.reveal:not(.in) .eyebrow::before { width: 0; }

/* imagens surgem ao carregar */
img.pimg:not(.is-loaded) { opacity: 0; animation: imgSafety 0s 2.5s forwards; }
img.pimg { transition: opacity .7s var(--ease), transform .8s var(--ease); }
@keyframes imgSafety { to { opacity: 1; } }
.pcard__media, .area__img, .pdp__main, .split__media { background: linear-gradient(100deg, var(--paper) 30%, #eef5f9 50%, var(--paper) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.pcard__media:has(img.is-loaded), .area__img:has(img.is-loaded), .pdp__main:has(img.is-loaded), .split__media:has(img.is-loaded), .pcard__media:has(.pimg--ph), .area__img:has(.pimg--ph) { animation: none; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* sacola: contador e "voo" */
.badge-count.bump { animation: bump .6s var(--spring); }
@keyframes bump { 0% { transform: scale(.4); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.fly-ghost { position: fixed; z-index: 300; object-fit: cover; border-radius: 14px; pointer-events: none; box-shadow: 0 18px 40px -12px rgba(14, 26, 33, .45); }

/* toques e botões */
.btn, .icon-btn, .chip, .kit, .area, .need { -webkit-tap-highlight-color: transparent; }
.btn:active, .chip:active, .icon-btn:active { transform: scale(.96); transition-duration: .1s; }
.btn--dark, .btn--light, .btn--accent { position: relative; overflow: hidden; isolation: isolate; }
.btn--dark::after, .btn--light::after, .btn--accent::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); z-index: -1; }
.btn--dark:hover::after, .btn--light:hover::after, .btn--accent:hover::after { transform: translateX(120%); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.drawer__panel { transition: transform .55s cubic-bezier(.32, .72, 0, 1); }
.toast { padding: 10px 10px 10px 18px; }
.toast__act { margin-left: 6px; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.toast__act:hover { background: rgba(255, 255, 255, .24); }

/* =====================================================================
   BARRA DE NAVEGAÇÃO INFERIOR (celular)
   ===================================================================== */
.tabbar { display: none; }
@media (max-width: 960px) {
  .tabbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 80;
    display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabbar-h);
    background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(14, 26, 33, .06); border-radius: 22px; box-shadow: 0 14px 40px -16px rgba(14, 26, 33, .35);
    animation: tabIn .8s var(--spring) .3s both;
  }
  @keyframes tabIn { from { transform: translateY(120%); } }
  .tabbar a, .tabbar button { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; font-size: 10.5px; letter-spacing: .04em; color: var(--grey); }
  .tabbar .ico { width: 22px; height: 22px; transition: transform .35s var(--spring); }
  .tabbar .on { color: var(--ink); }
  .tabbar .on .ico { transform: translateY(-2px); }
  .tabbar .on::before { content: ''; position: absolute; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); left: 50%; transform: translateX(-50%); top: auto; bottom: 5px; }
  .tabbar .badge-count { top: 6px; right: calc(50% - 22px); }
  .tabbar :active .ico { transform: scale(.85); }
  body { padding-bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); }
  .hide-md { display: none !important; }
  .wa-float { bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); right: 14px; width: 48px; height: 48px; }
  .wa-float .ico { width: 24px; height: 24px; }
  .sticky-buy { bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); left: 10px; right: 10px; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 14px 40px -18px rgba(14, 26, 33, .4); padding: 10px 10px 10px 16px; }
  #toasts { bottom: calc(var(--tabbar-h) + 26px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: 40px; }
}

/* =====================================================================
   MOBILE
   ===================================================================== */
/* nada pode alargar a página no celular */
#store-shell, .pn, #app { overflow-x: clip; }
@media (max-width: 960px) {
  .hero__in, .science, .split, .about-grid, .aff-hero__in, .aff-band, .sim, .pdp, .auth-wrap, .checkout, .standards, .steps-3 { grid-template-columns: minmax(0, 1fr); }
  .btn { white-space: normal; text-align: center; line-height: 1.25; min-height: 50px; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .btn--sm { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
  .btn--xs { min-height: 32px; padding-top: 6px; padding-bottom: 6px; }
  .areas { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .header__actions .icon-btn[data-search] { display: none; }
}
@media (max-width: 600px) {
  :root { --gut: 18px; }
  .input, .select, .textarea { font-size: 16px; } /* evita zoom automático no iOS */
  .section { padding: 64px 0; }
  .h-lg { font-size: 31px; }
  .sec-head { margin-bottom: 26px; gap: 14px; }
  .sec-head h2 .script { font-size: 1.15em; }

  /* herói em tela cheia */
  .hero__in { min-height: calc(100svh - 38px); padding-top: 40px; padding-bottom: 86px; gap: 26px; align-content: end; }
  .hero__title { font-size: 46px; line-height: 1.02; margin: 14px 0 16px; }
  .hero .lead { font-size: 15.5px; }
  .hero__ctas { flex-direction: column; gap: 10px; margin-top: 24px; }
  .hero__ctas .btn { width: 100%; height: 54px; }
  .hero__trust { gap: 10px 16px; margin-top: 22px; font-size: 12.5px; }
  .hero__card { display: none; }
  .hero__scroll { bottom: 16px; }

  .ticker__item { padding: 12px 16px; font-size: 11.5px; }

  /* cores por área: grade 2×2 compacta */
  .areas { gap: 10px; }
  .area { border-radius: 20px; }
  .area__img { aspect-ratio: 1; }
  .area__body { padding: 12px 14px 16px; }
  .area h3 { font-size: 19px; }
  .area p { font-size: 11.5px; line-height: 1.35; padding-right: 30px; }
  .area__dot { margin-bottom: 10px; width: 22px; }
  .area__go { width: 30px; height: 30px; right: 12px; bottom: 14px; }
  .area__go .ico { width: 15px; height: 15px; }

  /* vitrine em carrossel deslizante */
  .tabs--scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); scrollbar-width: none; width: calc(100% + var(--gut) * 2); }
  .tabs--scroll::-webkit-scrollbar { display: none; }
  .tabs--scroll .chip { flex: none; }
  .grid-products.scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut) 12px; scroll-padding: 0 var(--gut); scrollbar-width: none; }
  .grid-products.scroller::-webkit-scrollbar { display: none; }
  .grid-products.scroller > .pcard { flex: 0 0 68%; scroll-snap-align: start; }
  .grid-products.scroller .pcard__short { display: block; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard:hover { transform: none; }
  .pcard__add { position: absolute; left: auto; right: 10px; bottom: 10px; margin: 0; }
  .pcard__add .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 0; letter-spacing: 0; background: #fff; color: var(--ink); box-shadow: 0 8px 20px -8px rgba(14, 26, 33, .4); gap: 0; }
  .pcard__add .btn .ico { width: 20px; height: 20px; }
  .pcard__add .btn:hover .ico:last-child { transform: none; }
  .pcard__meta { font-size: 10px; letter-spacing: .14em; }
  .price__inst { font-size: 11.5px; }

  /* ciência */
  .molecule { max-width: 300px; }
  .stats { gap: 8px; }
  .stats div { padding: 12px 10px; }
  .stats strong { font-size: 28px; }
  .stats span { font-size: 11px; }

  /* produto */
  .pdp { padding-top: 6px; gap: 22px; }
  .pdp__gallery { margin: 0 calc(var(--gut) * -1); }
  .pdp__main { border-radius: 0; aspect-ratio: 4/4.4; }
  .pdp__thumbs { display: flex; overflow-x: auto; gap: 8px; padding: 0 var(--gut); scrollbar-width: none; }
  .pdp__thumbs > * { flex: 0 0 112px; aspect-ratio: auto; height: 92px; }
  .pdp__thumbs .thumb-info { font-size: 9.5px; letter-spacing: .06em; line-height: 1.35; overflow-wrap: anywhere; }
  .wa-float { display: none; }
  .mnav__wa { display: flex !important; }
  .pdp__info h1 { font-size: 34px; }
  .pdp__buy { flex-direction: column; }
  .pdp__buy .qty { align-self: flex-start; }
  .benefits li { font-size: 14.5px; }
  .crumbs { font-size: 11.5px; margin-bottom: 10px; }

  /* checkout: resumo recolhível no topo */
  .checkout { gap: 16px; padding-top: 16px; }
  .co-summary { padding: 0; background: var(--paper); border-radius: 18px; overflow: hidden; }
  .co-sum-toggle { display: flex !important; }
  .co-summary .co-sum-body { display: none; padding: 0 18px 18px; }
  .co-summary.open .co-sum-body { display: block; animation: fadeUp .4s var(--ease); }
  .co-summary.open .co-sum-toggle .ico:last-child { transform: rotate(180deg); }
  .co-box { border-radius: 18px; padding: 20px 16px; }
  .steps { gap: 4px; }
  .steps span { font-size: 10.5px; padding: 6px 10px 6px 6px; letter-spacing: .04em; }
  .rcard { padding: 14px; }
  #place { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 14px 30px -12px rgba(14, 26, 33, .5); }

  /* sacola em tela cheia, deslizando de baixo */
  .drawer:not(.drawer--left) .drawer__panel { width: 100%; top: auto; bottom: 0; height: calc(100% - 40px); border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .drawer:not(.drawer--left).open .drawer__panel { transform: none; }
  .drawer:not(.drawer--left) .drawer__head::before { content: ''; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; border-radius: 4px; background: var(--line); transform: translateX(-50%); }
  .drawer__head { position: relative; padding-top: 22px; }
  .drawer__foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .drawer--left .drawer__panel { width: 88%; border-radius: 0 24px 24px 0; }

  .aff-band__nums strong { font-size: 26px; }
  .footer__slogan { font-size: 21px; }
  .search-panel__bar input { font-size: 22px; }
  .confirm { padding-top: 30px; }
  .timeline { margin-top: 24px; }
}
.co-sum-toggle { display: none; width: 100%; align-items: center; gap: 10px; padding: 16px 18px; font-size: 14.5px; }
.co-sum-toggle span { flex: 1; text-align: left; }
.co-sum-toggle strong { font-weight: 600; }
.co-sum-toggle .ico { width: 18px; height: 18px; transition: transform .3s; }
@media (min-width: 601px) { .co-summary .co-sum-body { display: block; } }

/* respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .hero__title .w > span, .anim-in, .hero__card, .hero__bg, #main.page-enter > *, .tabbar { animation: none !important; }
  img.pimg:not(.is-loaded) { opacity: 1; }
  .pcard__media, .area__img, .pdp__main, .split__media { animation: none; }
}
