/* Switch by Clarity Labs — shared tokens + components */

:root {
  --indigo: #23427e;
  --indigo-deep: #182f5e;
  --indigo-soft: #c9d3ea;
  --ink: #0d1430;
  --off: #e9edf1;
  --white: #ffffff;
  --noise: #d7dce2;
  --mute: #5d667a;
  --line: rgba(35, 66, 126, 0.16);

  --f-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Archivo", "DM Sans", system-ui, sans-serif;

  --gutter: 16px;
  --max: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --h-display: clamp(44px, 11.5vw, 148px);
  --h-1: clamp(38px, 8.4vw, 104px);
  --h-2: clamp(30px, 5.6vw, 64px);
  --h-3: clamp(22px, 3vw, 32px);
  --t-lead: clamp(17px, 1.6vw, 21px);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- type ---------- */
.display, .h1, .h2, .h3 {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: var(--h-display); }
.h1 { font-size: var(--h-1); }
.h2 { font-size: var(--h-2); letter-spacing: -0.035em; line-height: 1; }
.h3 { font-size: var(--h-3); letter-spacing: -0.02em; line-height: 1.1; }
.lead { font-size: var(--t-lead); line-height: 1.45; color: var(--mute); margin: 0; max-width: 34ch; text-wrap: pretty; }
.label {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mono { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--indigo);
  --fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.4s var(--ease), background-color 0.3s, box-shadow 0.4s var(--ease);
  box-shadow: 0 10px 30px -12px rgba(35, 66, 126, 0.6);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(35, 66, 126, 0.7); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--indigo-soft); outline-offset: 3px; }
.btn--light { --bg: var(--white); --fg: var(--indigo); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35); }
.btn--ghost { --bg: transparent; --fg: var(--indigo); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn .price { font-weight: 500; opacity: 0.8; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--gutter);
  color: var(--indigo);
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.site-header.is-dark { color: var(--white); }
.site-header.is-solid:not(.is-dark) {
  background: rgba(233, 237, 241, 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.site-header .brand svg { height: 22px; width: auto; }
.site-header nav { display: none; gap: 28px; }
.site-header nav a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: 0.8; }
.site-header nav a:hover { opacity: 1; }
.site-header .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.site-header.is-dark .btn { --bg: var(--white); --fg: var(--indigo); }
@media (min-width: 900px) { .site-header nav { display: flex; } }

/* ---------- sticky buy bar (mobile) ---------- */
.buybar {
  position: fixed;
  left: 10px; right: 10px; bottom: 10px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px -18px rgba(13, 20, 48, 0.45), inset 0 0 0 1px rgba(35, 66, 126, 0.08);
  transform: translateY(140%);
  transition: transform 0.6s var(--ease);
}
.buybar.is-on { transform: none; }
.buybar .meta { font-size: 14px; line-height: 1.2; color: var(--ink); }
.buybar .meta b { font-weight: 800; letter-spacing: -0.02em; }
.buybar .meta span { color: var(--mute); }
.buybar .btn { min-height: 46px; padding: 0 20px; }
@media (min-width: 900px) {
  .buybar { left: auto; right: 24px; bottom: 24px; width: 420px; }
}

/* ---------- offer ---------- */
.offer {
  padding: 96px var(--gutter);
  background: var(--white);
}
.offer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) { .offer__inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; } }
.offer__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 20%, var(--white) 0%, var(--off) 70%);
  overflow: hidden;
}
.offer__media img { position: absolute; inset: 10% 8%; width: 84%; height: 80%; object-fit: contain; }
.offer h2 { margin-bottom: 12px; }
.price-big { font-size: clamp(48px, 8vw, 88px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--indigo); }
.price-big small { font-size: 0.24em; font-weight: 500; letter-spacing: 0; color: var(--mute); margin-left: 8px; vertical-align: middle; }
.per-session { font-size: 18px; margin: 8px 0 28px; }
.per-session b { color: var(--indigo); }

.qty {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.qty label {
  position: relative;
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  transition: box-shadow 0.3s, background-color 0.3s;
}
.qty input { position: absolute; opacity: 0; pointer-events: none; }
.qty label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--indigo); background: rgba(35, 66, 126, 0.04); }
.qty label:has(input:focus-visible) { outline: 3px solid var(--indigo-soft); outline-offset: 2px; }
.qty b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.qty span { font-size: 13px; color: var(--mute); }
.qty .tag { position: absolute; top: -9px; right: 12px; padding: 2px 8px; border-radius: 99px; background: var(--indigo); color: var(--white); font-size: 10px; }

.offer .btn { width: 100%; justify-content: center; min-height: 58px; font-size: 17px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 13px; color: var(--mute); }
.pay-row span::before { content: "✓"; color: var(--indigo); margin-right: 6px; font-weight: 700; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.trust li {
  padding: 8px 12px;
  border-radius: 99px;
  background: var(--off);
  color: var(--indigo);
}
.trust a { text-decoration: none; }

/* certification marks (FSSAI and GMP lifted from the carton artwork: tools/build_marks.py) */
.marks { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.marks li { display: grid; justify-items: center; align-content: start; gap: 8px; }
.marks img, .marks .mark__svg { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.marks span { font-family: var(--f-label); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.25; color: var(--mute); }
.marks + .trust { margin-top: 18px; }

/* ---------- founder / proof ---------- */
.proof {
  padding: 96px var(--gutter);
  background: var(--off);
}
.proof__inner { max-width: 880px; margin: 0 auto; }
.proof blockquote {
  margin: 28px 0 24px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: pretty;
}
.proof .sig { display: flex; align-items: center; gap: 14px; }
.proof .sig .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--indigo-soft); }
.proof .sig b { display: block; }
.proof .sig span { color: var(--mute); font-size: 14px; }
.batch {
  margin-top: 48px;
  padding: 24px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.batch__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.batch__num { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--indigo); }
.batch__bar { height: 6px; margin-top: 14px; border-radius: 6px; background: var(--off); overflow: hidden; }
.batch__bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--indigo); border-radius: inherit; transition: width 1.6s var(--ease); }
.placeholder-note { font-size: 12px; color: #b04a00; margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { padding: 96px var(--gutter); background: var(--white); }
.faq__inner { max-width: 880px; margin: 0 auto; }
.faq h2 { margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  color: var(--indigo);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--mute); max-width: 60ch; }

/* ---------- end frame ---------- */
.endframe {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  padding: 96px var(--gutter);
  background: var(--white);
  text-align: center;
}
.cursor-line { display: flex; align-items: center; justify-content: center; height: 64px; }
.cursor-line i {
  width: 3px; height: 56px;
  background: var(--indigo);
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- footer ---------- */
.site-footer {
  padding: 64px var(--gutter) 120px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}
.site-footer__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 32px; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer svg { height: 28px; width: auto; color: var(--white); margin-bottom: 16px; }
.site-footer h4 { color: var(--white); margin: 0 0 10px; }
.site-footer p { margin: 0 0 6px; }
.site-footer .fine { grid-column: 1 / -1; font-size: 12px; opacity: 0.6; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; }

/* ---------- reveal helpers ---------- */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .cursor-line i { animation: none; }
}

/* the category, always next to the name */
.brand__tag {
  font-family: var(--f-label); font-weight: 600; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1; padding: 5px 8px 4px; border-radius: 99px;
  box-shadow: inset 0 0 0 1px currentColor; opacity: 0.85; white-space: nowrap;
  transform: translateY(-3px);
}
@media (max-width: 359px) { .brand__tag { display: none; } }
@media (max-width: 479px) { .site-header .btn .price { display: none; } }
