/* Bold cinematic preview overlays. Scoped additions on top of styles.css. */
:root {
  --btn: #0d6b38;
  --btn-hover: #0a552c;
  --on-btn: #ffffff;
}

@view-transition { navigation: auto; }

.logo { view-transition-name: fa-logo; }

.lang a[aria-current="page"],
.lang button[aria-pressed="true"],
.blog-lang a[aria-current="page"] {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--on-btn);
}

/* Existing offer/phase reveals yield to GSAP when it runs; stay visible if it does not. */
.js #offer .offer-rise,
.js .phase-stack.rise,
.js .portrait-grid.rise {
  opacity: 1;
  transform: none;
}

/* Stop off-canvas reveal transforms from widening the page on mobile Chrome. */
html, body { overflow-x: clip; }
.ings { overflow-x: clip; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5.4rem 0 2.4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-aurora,
.hero-grain {
  position: absolute;
  inset: -18% -10%;
  pointer-events: none;
  z-index: 0;
}
.hero-aurora {
  background:
    radial-gradient(ellipse 50% 45% at 18% 28%, rgba(30, 161, 94, 0.38), transparent 58%),
    radial-gradient(ellipse 45% 50% at 86% 72%, rgba(13, 107, 56, 0.42), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(30, 161, 94, 0.2), transparent 55%);
  animation: fa-aurora 16s ease-in-out infinite alternate;
}
.hero-grain {
  inset: 0;
  z-index: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes fa-aurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2.2%, -1.8%, 0) scale(1.06); }
}
.hero-film-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  transform-origin: 50% 45%;
}
.hero .hero-film {
  position: relative;
  z-index: 1;
  width: min(1180px, 94vw);
  max-height: 62vh;
  object-fit: contain;
  outline: 0;
  box-shadow: none;
  background: transparent;
  margin-inline: auto;
}
.hero-foot {
  position: relative;
  z-index: 3;
  padding: 1.6rem 1.4rem 0.4rem;
}
.hero-title .char,
.hero-title .word {
  display: inline-block;
  will-change: transform, opacity;
}

/* ---------- Film rail ---------- */
.film-rail {
  position: relative;
  background: #000;
}
.film-rail-pin {
  position: relative;
}
.film-rail-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 1.4rem 0.8rem;
}
.film-rail-index {
  font-family: var(--sans);
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  min-width: 4.5rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.film-progress {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(243, 247, 248, 0.16);
  overflow: hidden;
}
.film-progress > i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.film-rail-viewport {
  overflow: hidden;
}
.film-rail-track {
  display: flex;
  align-items: stretch;
  gap: 1.4rem;
  padding: 0 6vw 1.6rem;
  width: max-content;
  will-change: transform;
}
.film-rail .film {
  flex: 0 0 auto;
  width: min(72vw, 920px);
  padding: 0.4rem 0 1.2rem;
  background: #050505;
  border-radius: 1rem;
}
.film-rail .film video {
  width: 100%;
  max-width: 100%;
  outline: 0;
  box-shadow: none;
  background: #0d6b38;
  border-radius: 0.7rem;
}
.film-rail-nav {
  display: none;
  justify-content: center;
  gap: 0.8rem;
  padding: 0 1rem 1.4rem;
}
.film-rail-nav button {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(155, 231, 191, 0.5);
  border-radius: 999px;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.65rem;
  line-height: 1;
  display: grid;
  place-items: center;
  background: rgba(6, 16, 10, 0.82);
  color: #fff;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.film-rail-nav button:hover,
.film-rail-nav button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}
.film-rail-nav button:disabled {
  opacity: 0.38;
}

/* ---------- Explode ---------- */
.explode {
  position: relative;
  background: #000;
}
.explode-pin {
  position: relative;
}
.explode-stage {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}
.explode-bottle-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(340px, 30vw, 46vh);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.explode-bottle {
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}
.explode-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.explode-svg path {
  fill: none;
  stroke: rgba(30, 161, 94, 0.75);
  stroke-width: 1.25;
}
.explode-labels {
  list-style: none;
  margin: 0;
  padding: 0;
}
.explode-lab {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
  min-width: 0;
  max-width: min(16rem, 28vw);
  margin: 0;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(155, 231, 191, 0.55);
  background: rgba(6, 16, 10, 0.88);
  border-radius: 1rem;
  color: #f3f7f8;
  font-size: clamp(0.8125rem, 1.5vw, 0.95rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.explode-lab-key {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}
.explode-lab:nth-child(1) { top: 14%; left: 7%; }
.explode-lab:nth-child(2) { top: 8%; left: 0; right: 0; width: fit-content; margin-inline: auto; }
.explode-lab:nth-child(3) { top: 14%; right: 7%; left: auto; }
.explode-lab:nth-child(4) { top: 38%; right: 4%; left: auto; }
.explode-lab:nth-child(5) { top: 62%; right: 7%; left: auto; }
.explode-lab:nth-child(6) { bottom: 12%; left: 0; right: 0; top: auto; width: fit-content; margin-inline: auto; }
.explode-lab:nth-child(7) { top: 62%; left: 6%; }
.explode-lab:nth-child(8) { top: 38%; left: 4%; }
.explode-lab:nth-child(9) { bottom: 22%; left: 18%; top: auto; }
.explode-lab:nth-child(10) { bottom: 22%; right: 16%; left: auto; top: auto; }

/* ---------- Marquee ---------- */
.marquees {
  overflow: hidden;
  border-block: 1px solid rgba(243, 247, 248, 0.12);
  background: #06140c;
  padding: 0.85rem 0;
}
.marquee-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: fa-marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@keyframes fa-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Word reveal ---------- */
.word-reveal .word {
  display: inline-block;
  will-change: transform, opacity;
}

/* ---------- Stacking phases ---------- */
#formula .phase-stack {
  display: block;
  margin-top: 2.4rem;
}
#formula .phase {
  position: sticky;
  background: #141414;
  border: 1px solid rgba(243, 247, 248, 0.12);
  border-radius: 1.15rem;
  padding: 2rem 1.7rem 2.3rem;
  min-height: min(58vh, 32rem);
  margin-bottom: 1.1rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  transform-origin: center top;
}
#formula .phase:nth-child(1) { top: 5.5rem; z-index: 1; }
#formula .phase:nth-child(2) { top: 6.45rem; z-index: 2; }
#formula .phase:nth-child(3) { top: 7.4rem; z-index: 3; }
#formula .phase .num {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
}

/* ---------- Before / after ---------- */
.ba-figure { overflow: hidden; }
.ba-zoom {
  display: block;
  position: relative;
  cursor: zoom-in;
}
.ba-img {
  width: 100%;
  height: auto;
}

/* ---------- Pricing shine + tilt ---------- */
@property --fa-beam {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.shop .card-tilt {
  height: 100%;
}
.shop .card-tilt .atropos-inner {
  height: 100%;
}
.card-featured {
  position: relative;
  overflow: hidden;
  border-color: rgba(30, 161, 94, 0.45);
}
.card-featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--fa-beam), transparent 55%, #9be7bf, #1ea15e, transparent 78%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: fa-beam 5.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.card-featured > * { position: relative; z-index: 2; }
.card-featured:hover { transform: none; }
@keyframes fa-beam {
  to { --fa-beam: 360deg; }
}

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 42;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #0d6b38;
  color: #fff;
  border-radius: 999px;
  padding: 0.72rem 1.05rem 0.72rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.wa-float svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  fill: currentColor;
}
.wa-float:hover,
.wa-float:focus-visible {
  background: #0a552c;
  color: #fff;
}
.sticky-buy { right: 1rem; bottom: 1rem; }

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #9be7bf;
  outline-offset: 3px;
}

@media (max-width: 900px), (max-height: 499px) {
  .hero { min-height: 0; justify-content: flex-start; padding-top: 4.9rem; padding-bottom: 1.6rem; }
  .hero-film-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  transform-origin: 50% 45%;
  will-change: transform;
}
.hero .hero-film { max-height: none; width: 100%; }
  .film-rail-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
  }
  .film-rail-viewport::-webkit-scrollbar { display: none; }
  .film-rail.has-embla .film-rail-viewport {
    overflow: hidden;
    scroll-snap-type: none;
    touch-action: pan-y;
  }
  .film-rail-track {
    padding-inline: 1rem;
    width: max-content;
  }
  .film-rail.has-embla .film-rail-track {
    width: auto;
    touch-action: pan-y pinch-zoom;
  }
  .film-rail .film {
    width: min(82vw, 560px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-width: 0;
  }
  .film-rail-nav {
    display: flex;
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    top: 2.55rem;
    height: min(46.1vw, 315px);
    align-items: center;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
    z-index: 6;
  }
  .film-rail-nav button {
    pointer-events: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  }
  .explode-stage {
    min-height: auto;
    overflow: visible;
    padding: 2.6rem 1rem 3.4rem;
  }
  .explode-bottle-wrap {
    position: relative;
    left: auto;
    top: auto;
    display: block;
    margin: 0 auto 1.25rem;
    transform: none;
    width: min(280px, 72vw);
    aspect-ratio: 1 / 1;
  }
  .explode-svg { display: none; }
  .explode-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
  .explode-lab,
  .explode-lab:nth-child(n) {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    white-space: normal;
    text-align: center;
    max-width: none;
    width: auto;
    margin: 0;
  }
  #formula .phase {
    position: relative;
    top: auto !important;
    min-height: 0;
  }
  .wa-float-label { max-width: 11rem; }
  .card-featured::before { animation-duration: 7s; }
}

@media (max-height: 499px) {
  .explode-stage {
    min-height: auto;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: repeat(5, auto);
    align-items: start;
    gap: 0.28rem 0.55rem;
    padding: 4.15rem 0.65rem calc(4.85rem + env(safe-area-inset-bottom, 0px));
  }
  .explode-bottle-wrap {
    grid-column: 2;
    grid-row: 1 / span 5;
    position: relative;
    left: auto;
    top: auto;
    display: block;
    margin: 0;
    transform: none;
    width: min(160px, 28vh, 22vw);
    aspect-ratio: 1 / 1;
    align-self: center;
  }
  .explode-svg { display: none; }
  .explode-labels { display: contents; }
  .explode-lab,
  .explode-lab:nth-child(n) {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 0;
    max-width: none;
    width: auto;
    white-space: normal;
  }
  .explode-lab:nth-child(odd) { grid-column: 1; }
  .explode-lab:nth-child(even) { grid-column: 3; }
}

.hero-title,
h1,
#formula .phase,
#formula .phase h2,
#formula .phase p,
#offer .card,
#offer .card h3,
#offer .card .desc,
#offer .price {
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
}

@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .shop > *, .shop .card, .shop .card-tilt, .shop .atropos-inner { min-width: 0; max-width: 100%; }
}
@media (max-width: 380px) {
  .card h3 { font-size: 1.6rem; }
  .price { font-size: 3rem; }
  .nav { padding: 0.7rem 0.5rem; gap: 0.35rem; grid-template-columns: auto 1fr auto; }
  .lang { gap: 0.25rem; }
  .lang a, .lang button { width: 1.95rem; height: 1.95rem; font-size: 0.55rem; }
  .logo { font-size: 1.15rem; letter-spacing: 0.02em; }
  .nav-end { gap: 0.3rem; }
  .nav-buy { padding: 0.38rem 0.5rem; }
  .nav-blog { font-size: 0.6rem; letter-spacing: 0.04em; }
  .menu-btn { padding: 0.42rem 0.55rem; letter-spacing: 0.06em; font-size: 0.62rem; }
}

/* ---------- Mobile explode animation layers ---------- */
.explode-bottle-wrap.is-anim { isolation: isolate; perspective: 900px; }
.explode-bottle-wrap.is-anim .explode-bottle { position: relative; z-index: 1; will-change: transform, opacity; }
.explode-glow {
  position: absolute;
  inset: -12%;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(30, 161, 94, 0.6) 0%, rgba(30, 161, 94, 0.22) 42%, rgba(30, 161, 94, 0) 70%);
  will-change: transform, opacity;
}
.explode-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.explode-shine i {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 55%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  will-change: transform;
}
.explode-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.explode-trail path { fill: none; stroke: rgba(155, 231, 191, 0.85); stroke-width: 1.4; }
.explode-trail circle { fill: #9be7bf; }
.explode .explode-labels { position: relative; z-index: 3; }
.explode .explode-lab { will-change: transform, opacity; }

/* ---------- Mobile spacing + card height fixes ---------- */
h1, h2, h3, .hero-title, .lede, .q { text-wrap: balance; }
@media (max-width: 900px), (max-height: 499px) {
  .film-rail-track,
  .film-rail.has-embla .film-rail-track { align-items: flex-start; padding-bottom: 0.6rem; }
  .film-rail .film { height: auto; min-height: 0; padding: 0.4rem 0 1.4rem; }
  .film-rail-bar { padding-top: 0.6rem; }
  section.film-rail { padding: 1.6rem 0 0.6rem; }
  .film-rail-viewport { transition: height 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
  section.explode { padding: 0; }
  .explode-stage { padding-top: 2.6rem; }
}
@media (max-height: 499px) {
  section { padding-top: 3rem; padding-bottom: 3rem; }
  section.hero { padding-top: 4.4rem; padding-bottom: 1.4rem; }
  section.film-rail { padding: 1.4rem 0 0.6rem; }
  section.explode { padding: 0; }
  .closing { padding-bottom: 4rem; }
  .hero { min-height: 0; justify-content: flex-start; }
  .explode-stage { padding-top: 2.2rem; padding-bottom: 2.6rem; }
}

/* ---------- Floating buttons: compact on phones, hide while reading ---------- */
.wa-label-short { display: none; }
.fab-managed .wa-float,
.fab-managed .sticky-buy {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  will-change: transform, opacity;
}
.fab-hidden .wa-float,
.fab-hidden .sticky-buy {
  transform: translateY(calc(100% + 1.4rem));
  opacity: 0;
  pointer-events: none;
}
.fab-hidden .wa-float:focus-visible,
.fab-hidden .sticky-buy:focus-visible,
.wa-float:focus-within,
.sticky-buy:focus-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 900px), (max-height: 499px) {
  .wa-float {
    left: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 0.85rem 0.5rem 0.6rem;
    font-size: 0.74rem;
  }
  .wa-float svg { width: 1.15rem; height: 1.15rem; }
  .wa-float .wa-label-full { display: none; }
  .wa-float .wa-label-short { display: inline; }
  .sticky-buy {
    right: 0.75rem !important;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.72rem;
  }
  body:has(.sticky-buy) { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .fab-managed .wa-float,
  .fab-managed .sticky-buy { transition: none; }
  .fab-hidden .wa-float,
  .fab-hidden .sticky-buy { transform: none; }
  @view-transition { navigation: none; }
  .hero-aurora,
  .marquee-track,
  .card-featured::before { animation: none !important; }
  .hero .hero-film,
  .explode-bottle,
  .explode-lab,
  .film-rail-track { transform: none !important; filter: none !important; }
}
