@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --platinum: #eef0f4;
  --pearl: #f8f9fb;
  --steel: #c9cdd6;
  --ink: #151a33;
  --ink-soft: #4a5068;
  --cobalt: #1e2fb8;
  --order: #0f7a4a;
  --order-hover: #0b6038;
  --holo: linear-gradient(100deg, #e98cc8 0%, #6fd0e6 20%, #a99af0 40%, #f0c97a 60%, #6fd0e6 80%, #e98cc8 100%);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --pad: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--platinum);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

/* Brand */

.brand {
  font-variation-settings: 'wdth' 125;
  font-weight: 850;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand span { color: var(--cobalt); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  border-radius: 10px;
  background: var(--order);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 150ms ease, transform 120ms ease;
}
.btn:hover { background: var(--order-hover); }
.btn:active { transform: scale(0.97); }
.btn-small { padding: 0.6em 1.1em; font-size: 0.9375rem; margin-left: auto; }

/* Top bar */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--platinum) 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--steel) 60%, transparent);
}
.index { display: flex; gap: 22px; }
.index a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  transition: color 150ms ease;
}
.index a:hover { color: var(--ink); }

/* Hamburger menu */

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out), opacity 150ms ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 19;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 88px var(--pad) 32px;
  background: var(--platinum);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 0s linear 200ms;
}
.menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--steel);
}
.menu-list a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 6px 0;
  border-bottom: 1px solid var(--steel);
  text-decoration: none;
}
.menu-list img { height: 44px; width: auto; justify-self: center; }
.menu-list .name {
  font-variation-settings: 'wdth' 112;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.menu-list .amount {
  font-variation-settings: 'wdth' 75;
  font-weight: 600;
  color: var(--accent);
}
.menu .btn { align-self: flex-start; }
html.menu-open { overflow: hidden; }
html.menu-open .wa-float { display: none; }

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 110px var(--pad) 80px;
  background:
    radial-gradient(60% 55% at 72% 60%, #ffffff 0%, transparent 70%),
    var(--platinum);
  overflow: hidden;
}
.hero-copy { max-width: 34rem; }
.hero h1 {
  margin: 0 0 24px;
  font-variation-settings: 'wdth' 118;
  font-weight: 850;
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-copy p {
  margin: 0 0 32px;
  max-width: 30rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}
.hero-shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2px, 0.8vw, 12px);
  height: min(56vh, 520px);
}
.hero-shelf img {
  height: 64%;
  width: auto;
  min-width: 0;
  max-width: 19%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 30px 30px rgba(21, 26, 51, 0.18));
}
.hero-shelf img:nth-child(2),
.hero-shelf img:nth-child(4) { height: 80%; }
.hero-shelf .lead { height: 100%; }
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  margin: 0;
  transform: translateX(-50%);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Catalog */

.catalog {
  padding: 100px var(--pad) 110px;
  background: var(--pearl);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}
.catalog h2 {
  margin: 0 0 10px;
  font-variation-settings: 'wdth' 118;
  font-weight: 850;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.catalog > p { margin: 0 0 48px; color: var(--ink-soft); }
.catalog-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 40px 24px;
  margin: 0;
  padding: 0;
}
.catalog-grid a {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 0;
  text-decoration: none;
  text-align: center;
}
.catalog-grid img {
  height: 170px;
  width: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 18px 18px rgba(21, 26, 51, 0.16));
  transition: transform 220ms var(--ease-out);
}
.catalog-grid .name { font-weight: 750; font-size: 1.0625rem; }
.catalog-grid .amount {
  font-variation-settings: 'wdth' 75;
  font-weight: 600;
  color: var(--accent);
}
@media (hover: hover) and (pointer: fine) {
  .catalog-grid a:hover img { transform: translateY(-8px); }
}

/* Product chapters */

.chapter { position: relative; }

.chapter-pin {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: 'info stage';
  align-items: start;
  gap: 40px;
  padding: max(110px, 13vh) var(--pad) 40px;
  overflow: hidden;
  background:
    radial-gradient(45% 55% at 68% 55%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 70%),
    var(--platinum);
}
.chapter.flip .chapter-pin {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas: 'stage info';
  background:
    radial-gradient(45% 55% at 32% 55%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 70%),
    var(--platinum);
}

.giant {
  position: absolute;
  bottom: -0.16em;
  left: 0;
  margin: 0;
  white-space: nowrap;
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: clamp(6rem, 19vw, 20rem);
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--holo);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.stage {
  grid-area: stage;
  position: relative;
  height: min(74vh, 660px);
}
.layer {
  position: absolute;
  width: auto;
  filter: drop-shadow(0 34px 34px rgba(21, 26, 51, 0.2));
  will-change: transform;
}
.box {
  right: 0;
  top: 6%;
  width: min(36vw, 560px);
}
.vial {
  left: 8%;
  bottom: 2%;
  height: 62%;
}
.water {
  left: 32%;
  bottom: 8%;
  height: 50%;
}
.chapter.flip .box { right: auto; left: 0; }
.chapter.flip .vial { left: auto; right: 22%; }
.chapter.flip .water { left: auto; right: 2%; }

.info {
  grid-area: info;
  position: relative;
  z-index: 2;
  max-width: 30rem;
}
.info h2 {
  margin: 0 0 18px;
  font-variation-settings: 'wdth' 112;
  font-weight: 850;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.info h2 span {
  display: block;
  margin-top: 8px;
  font-variation-settings: 'wdth' 75;
  font-weight: 600;
  font-size: 0.5em;
  letter-spacing: 0;
  color: var(--accent);
}
.desc { margin: 0 0 26px; color: var(--ink-soft); }

.specs {
  margin: 0 0 30px;
  border-top: 1px solid var(--steel);
}
.specs div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--steel);
}
.specs dt {
  font-variation-settings: 'wdth' 75;
  font-weight: 600;
  color: var(--ink-soft);
}
.specs dd { margin: 0; font-weight: 600; }

/* Order form: strength and quantity */

.order-form {
  display: grid;
  gap: 14px;
  margin: -12px 0 28px;
}
.field {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.field legend,
.field .legend {
  float: left;
  padding: 0;
  font-variation-settings: 'wdth' 75;
  font-weight: 600;
  color: var(--ink-soft);
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pills span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: var(--pearl);
  font-weight: 650;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.pills label:hover span { border-color: var(--ink-soft); }
.pills input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pills input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.stepper {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: var(--pearl);
}
.stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.stepper button:hover { background: var(--platinum); }
.stepper button:disabled { color: var(--steel); cursor: default; background: none; }
.stepper output {
  min-width: 5.5rem;
  text-align: center;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* How ordering works */

.steps {
  padding: 120px var(--pad);
  background: var(--pearl);
  border-top: 1px solid var(--steel);
}
.steps h2 {
  margin: 0 0 48px;
  font-variation-settings: 'wdth' 118;
  font-weight: 850;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.steps ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0 0 56px;
  padding: 0;
}
.steps li {
  counter-increment: step;
  max-width: 22rem;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 14px;
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 1;
  background: var(--holo);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps strong { display: block; margin-bottom: 4px; color: var(--ink); }

/* Footer */

.footer {
  padding: 56px var(--pad) 120px;
  background: var(--ink);
  color: #c4c8d6;
}
.footer .brand { color: #fff; margin: 0 0 14px; }
.footer .brand span { color: #8ea0ff; }
.footer p:last-child { max-width: 46rem; margin: 0; font-size: 0.9375rem; }

/* Floating WhatsApp button */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: var(--order);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 122, 74, 0.35);
  transition: background-color 150ms ease, transform 120ms ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: var(--order-hover); }
.wa-float:active { transform: scale(0.97); }
.wa-float.pulse { animation: pulse 900ms var(--ease-out); }
@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(15, 122, 74, 0.35), 0 0 0 0 rgba(15, 122, 74, 0.45); }
  100% { box-shadow: 0 10px 30px rgba(15, 122, 74, 0.35), 0 0 0 18px rgba(15, 122, 74, 0); }
}

/* Small screens: stack, no pinning */

@media (max-width: 899px) {
  .index,
  .topbar .btn-small { display: none; }
  .menu .btn { align-self: stretch; justify-content: center; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 28px;
    padding: 100px var(--pad) 110px;
    align-content: start;
  }
  .hero-shelf { height: 46vw; }
  .scroll-hint { display: none; }
  .chapter-pin,
  .chapter.flip .chapter-pin {
    grid-template-columns: 1fr;
    grid-template-areas: 'stage' 'info';
    min-height: 0;
    padding: 72px var(--pad) 64px;
    gap: 8px;
  }
  .giant { bottom: auto; top: 72px; font-size: 34vw; }
  .stage { height: 56vh; max-height: 440px; }
  .box,
  .chapter.flip .box { left: auto; right: 0; width: 78%; top: 4%; }
  .vial,
  .chapter.flip .vial { left: 4%; right: auto; height: 66%; }
  .water,
  .chapter.flip .water { left: 34%; right: auto; height: 52%; }
  .steps,
  .catalog { padding: 80px var(--pad); }
  .catalog > p { margin-bottom: 28px; }
  /* One swipeable row; the next vial peeks in at the edge so it reads as scrollable */
  .catalog-grid {
    display: flex;
    gap: 8px;
    margin: 0 calc(var(--pad) * -1);
    padding: 12px var(--pad) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .catalog-grid::-webkit-scrollbar { display: none; }
  .catalog-grid li {
    flex: 0 0 28%;
    scroll-snap-align: start;
  }
  .catalog-grid img { height: 132px; }
  .catalog-grid .name { font-size: 0.9375rem; }
  .steps ol { grid-template-columns: 1fr; gap: 28px; }
  .wa-float { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
}

@media (max-width: 1360px) {
  .index { display: none; }
  .menu-toggle { display: block; }
}

@media (min-width: 1361px) {
  .menu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .wa-float, .index a, .catalog-grid img, .pills span, .stepper button,
  .menu, .menu.open, .menu-toggle span { transition: none; }
  .wa-float.pulse { animation: none; }
}
