/* ==========================================================================
   GLIDE Nutrition – coming-soon site
   Sections: tokens · base · buttons · header · announcement bar · layout ·
   home · waitlist · formula · FAQ · footer · responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #4B2BD0;
  --bg2: #7A5CFF;
  --ink: #120B2E;
  --lime: #CFF23E;
  --pink: #FF9F5A;
  --foam: #fff;

  --sa: env(safe-area-inset-top, 0px);
  --nh: calc(var(--sa) + 3.25rem);   /* nav height */
  --hh: calc(var(--sa) + 7rem);      /* nav + announcement bar */
  /* Side padding: 5vw on small screens, centres a 74rem column on big ones */
  --pad: max(5vw, calc((100vw - 74rem) / 2), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));

  --d: 'Unbounded', 'Arial Black', sans-serif; /* display font */
  --b: 'Manrope', system-ui, sans-serif;       /* body font */
  --h1: clamp(2.3rem, 8vw, 5.4rem);
  --h2: clamp(1.7rem, 4.4vw, 3rem);

  box-sizing: border-box;
  color-scheme: dark;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: inherit; margin: 0; }
[hidden] { display: none !important; }

html {
  font-size: clamp(16px, .7vw + 10px, 26px); /* everything in rem scales up on large screens */
  min-height: 100%;
  background: linear-gradient(180deg, var(--bg) 0, #2A1A7A 40%, var(--ink) 100%) no-repeat, var(--ink);
  scroll-padding-top: var(--hh);
  -webkit-text-size-adjust: 100%;
}
/* Column layout so the footer always sits at the bottom of the screen */
body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--foam);
  font: 400 1rem/1.55 var(--b);
  overflow-x: hidden;
}
/* Moving aurora glow */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(38% 34% at 18% 22%, rgba(122,92,255,.6), transparent 70%),
    radial-gradient(32% 28% at 82% 30%, rgba(207,242,62,.2), transparent 70%),
    radial-gradient(42% 36% at 58% 82%, rgba(255,159,90,.22), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(7%, -5%, 0) rotate(10deg) scale(1.12); } }
/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--lime); color: var(--ink); padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; }

.h1 { font: 900 var(--h1)/1.02 var(--d); letter-spacing: -.03em; }
.h2 { font: 900 var(--h2)/1.06 var(--d); letter-spacing: -.02em; margin-bottom: .3rem; }
.lead { font-size: 1.05rem; line-height: 1.45; max-width: 42ch; opacity: .92; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--lime);
  color: var(--ink);
  font: 800 1rem var(--b);
  padding: .7rem 1.5rem;
  border-radius: 99px;
  text-decoration: none;
  border: 2px solid var(--lime);
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(207,242,62,.28); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.pk { background: var(--pink); border-color: var(--pink); }
.btn.ghost { background: var(--ink); color: var(--foam); border-color: var(--foam); }
.cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .9rem; }

/* ---------- Header ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: var(--nh);
  padding: var(--sa) var(--pad) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .7rem;
  background: var(--ink);
}

/* Logo: the G slides in, the bolt strikes, then zaps every few seconds */
.logo { display: flex; align-items: center; gap: .5rem; font: 900 1rem var(--d); letter-spacing: .06em; text-decoration: none; }
.logo svg { height: 1.375rem; width: auto; fill: #fff; overflow: visible; }
.logo .g, .logo .bolt { transform-box: fill-box; transform-origin: center; }
.logo .g { animation: gin .6s cubic-bezier(.2,.9,.2,1) both; }
.logo .bolt { animation: strike .5s .3s cubic-bezier(.2,.9,.2,1) both, zap 4.5s 2.5s infinite; }
.logo:hover .bolt { animation: zap .7s; }
@keyframes gin { from { opacity: 0; transform: translateX(-14px); } }
@keyframes strike { from { opacity: 0; transform: translate(14px, -18px) scale(1.6); } }
@keyframes zap {
  0%, 88%, 100% { fill: #fff; transform: none; }
  90% { fill: #CFF23E; transform: translate(10px, -10px); }
  94% { fill: #fff; transform: none; }
  96% { fill: #CFF23E; transform: translate(-4px, 4px); }
}
.wm { display: inline-flex; }
.wm span { display: inline-block; animation: wmin .55s cubic-bezier(.2,.9,.2,1) both; animation-delay: calc(.45s + var(--i) * .06s); }
@keyframes wmin { from { opacity: 0; transform: translateX(-14px) skewX(-14deg); } }
.logo:hover .wm span { animation: hop .5s calc(var(--i) * .05s) both; }
@keyframes hop { 40% { transform: translateY(-6px) skewX(-10deg); color: var(--lime); } }

.links { display: flex; gap: 1.5rem; justify-self: center; }
.links a { text-decoration: none; font-weight: 800; padding: .4rem 0; border-bottom: 3px solid transparent; transition: border-color .3s; }
.links a:hover { border-color: var(--pink); }
.links a[aria-current] { border-color: var(--lime); }
.act { display: flex; align-items: center; gap: .5rem; justify-self: end; }

/* Small round nav buttons */
.nb { border-radius: 99px; font-weight: 800; font-size: .82rem; min-height: 2.125rem; padding: 0 .8rem; border: 2px solid var(--foam); background: transparent; position: relative; }

/* Language pill (EN | BG) */
.lang { display: inline-flex; align-items: center; border: 2px solid rgba(255,255,255,.3); border-radius: 99px; padding: 2px; background: transparent; min-height: 2.125rem; }
.lang span { padding: .1rem .55rem; border-radius: 99px; font: 800 .75rem var(--b); opacity: .7; transition: .3s; }
.lang span.on { background: var(--lime); color: var(--ink); opacity: 1; }

/* ---------- Announcement bar ---------- */
.promo { position: fixed; top: var(--nh); left: 0; right: 0; z-index: 29; display: block; color: var(--ink); text-decoration: none; }
.pr1 { position: relative; height: 1.625rem; background: var(--lime); font: 800 .72rem var(--b); overflow: hidden; white-space: nowrap; display: flex; align-items: center; }
.pr1::before, .pr1::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 1; pointer-events: none; }
.pr1::before { left: 0; background: linear-gradient(90deg, var(--lime), transparent); }
.pr1::after { right: 0; background: linear-gradient(270deg, var(--lime), transparent); }
.marq div { display: inline-block; animation: slide 30s linear infinite; }
.marq span { margin: 0 .8rem; }
@keyframes slide { to { transform: translateX(-50%); } }
.pr2 { height: 1.375rem; display: flex; justify-content: center; align-items: center; gap: .4rem; background: linear-gradient(90deg, rgba(18,11,46,.92), rgba(42,26,122,.85)); color: var(--lime); font: 700 .68rem var(--b); }
.pr2 span { color: var(--foam); opacity: .8; font-weight: 600; }
.pr2 b { font: 800 .72rem var(--d); font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.pg { flex: 1 0 auto; } /* grows so the footer is pushed down */
section { padding: clamp(20px, 4vh, 56px) var(--pad); }
/* .flush: no top padding, so a block sits tight under the one above */
section.flush { padding-top: 0; }
.head { padding-top: calc(var(--hh) + 1vh); padding-bottom: 0; }
.head .lead { margin-top: .5rem; }

/* Shared round icon */
.ic { width: 5.25rem; height: 5.25rem; padding: 1.2rem; border-radius: 50%; background: var(--ink); stroke: var(--lime); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 3D canvases (logo on home, pouch on product) */
.logo3d, .stage { position: relative; cursor: grab; touch-action: pan-y; user-select: none; }
.logo3d { height: min(42vh, 22rem); background: radial-gradient(circle closest-side, rgba(122,92,255,.55), transparent); }
.stage { height: min(62vh, 34rem); background: radial-gradient(circle closest-side, var(--bg2), transparent); } /* closest-side: the glow never gets clipped into a box */
.logo3d:active, .stage:active { cursor: grabbing; }
.logo3d canvas, .stage canvas { width: 100%; height: 100%; display: block; }
.logo3d canvas {
  -webkit-mask-image: radial-gradient(ellipse 78% 88% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 88% at 50% 50%, #000 55%, transparent 100%);
}
/* Shown when WebGL is unavailable */
.fb::before { content: "GLIDE"; position: absolute; inset: 12% 30%; border-radius: 14% 14% 8% 8%; background: #0A2457; color: var(--lime); font: 900 1.6rem var(--d); display: grid; place-items: center; }


/* ---------- Home: hero ---------- */
.wordband { padding: calc(var(--hh) + 2vh) var(--pad) 2vh; display: flex; justify-content: center; overflow: hidden; }
.word { display: flex; font: 900 22vw/1 var(--d); letter-spacing: -.03em; pointer-events: none; white-space: nowrap; }
.word span {
  display: block;
  color: transparent;
  background: linear-gradient(180deg, #fff 10%, var(--lime) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateX(-120%);
  opacity: 0;
  animation: glide 1.2s cubic-bezier(.2,.9,.2,1) forwards;
  animation-delay: calc(var(--i) * .08s);
}
@keyframes glide { 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.hero { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 2vh var(--pad) 20svh; }
.hero .h1 { position: relative; z-index: 2; max-width: 11ch; animation: rise .9s .7s both; }
.hero .lead { position: relative; z-index: 2; margin-top: .6rem; animation: rise .9s .85s both; }
.hero .cta { position: relative; z-index: 2; animation: rise .9s 1s both; }
@keyframes rise { from { transform: translateY(26px); opacity: 0; } to { opacity: 1; transform: none; } }
.waves {
  position: absolute;
  z-index: 1;
  left: -10%;
  bottom: -10vh; bottom: -10svh;
  width: 120%;
  height: 56vh; height: 56svh;
  display: block;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 62%, transparent);
}

/* ---------- Home: statement + pillars ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; align-items: center; }
.big { font: 700 clamp(1.5rem, 3.8vw, 2.7rem)/1.18 var(--d); letter-spacing: -.02em; }
.big .w { opacity: .25; transition: opacity .3s; }
.big .w.on { opacity: 1; }

.pillars { display: flex; flex-direction: column; gap: .8rem; margin-top: .8rem; }
.pil { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; border-radius: 44px; padding: 1rem 2rem 1rem 1rem; color: var(--ink); transition: transform .3s; }
.pil:hover { transform: translateX(6px); }
.c1 { background: var(--lime); }
.c2 { background: var(--pink); margin-left: 6%; }
.c3 { background: #fff; margin-right: 6%; }
.c2 .ic { stroke: var(--pink); }
.c3 .ic { stroke: #fff; }
.pt { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-width: 0; }
.pt small { order: -1; display: inline-block; background: var(--ink); color: var(--lime); font: 800 .72rem/1.2 var(--b); padding: .2rem .65rem; border-radius: 99px; transform: rotate(-2deg); margin-bottom: .3rem; }
.c2 .pt small { color: var(--pink); }
.c3 .pt small { color: #fff; }
.pt h3 { font: 900 clamp(1.3rem, 3.4vw, 2.2rem)/1 var(--d); text-transform: uppercase; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pt p { font-size: .9rem; margin-top: .3rem; line-height: 1.4; max-width: 46ch; }
.pil em { font: 900 clamp(1.8rem, 5vw, 3rem)/1 var(--d); font-style: normal; text-align: right; }

/* ---------- Waitlist (3D pouch + sign-up card) ---------- */
.waitlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3vw;
  align-items: center;
  align-content: center;
}
.buy { background: rgba(18,11,46,.55); border: 2px solid rgba(207,242,62,.25); border-radius: 28px; padding: 1.1rem; }
.price { font: 900 1.8rem var(--d); color: var(--lime); }
.price small { font: 600 .8rem var(--b); color: var(--foam); opacity: .8; }
.facts { list-style: none; padding: 0; margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.buy h2 { margin-bottom: .2rem; }
.kicker { display: inline-block; background: var(--pink); color: var(--ink); font: 800 .78rem var(--b); padding: .25rem .75rem; border-radius: 99px; transform: rotate(-2deg); margin-bottom: .5rem; }
.buy .lead { margin: .3rem 0 .9rem; }
.wl-row { display: flex; gap: .6rem; }
.wl-row input {
  flex: 1;
  min-width: 0;
  font: 600 1rem var(--b);
  padding: .8rem 1rem;
  min-height: 48px;
  border-radius: 99px;
  border: 2px solid rgba(255,255,255,.45);
  background: rgba(18,11,46,.5);
  color: var(--foam);
}
.wl-row input:focus { border-color: var(--lime); outline: none; }
.wl-row input::placeholder { color: rgba(255,255,255,.55); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; line-height: 1.4; margin-top: .7rem; opacity: .9; cursor: pointer; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: .1rem; accent-color: var(--lime); flex: none; }
.wl-msg { font-weight: 800; margin-top: .6rem; min-height: 1.3em; }
.wl-msg.ok { color: var(--lime); }
.wl-msg.err { color: var(--pink); }
.wl-done { text-align: center; padding: 1rem 0; }
.wl-done b { display: block; font: 900 1.4rem var(--d); color: var(--lime); margin-bottom: .3rem; }
.hp { position: absolute; left: -9999px; } /* honeypot field that bots fill in */
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }
.nav-cta { min-height: 2.125rem; padding: 0 .9rem; font-size: .82rem; }
.facts li { border: 2px solid rgba(255,255,255,.3); border-radius: 99px; padding: .2rem .75rem; font-size: .82rem; }

/* ---------- Formula ---------- */
section.fx { display: grid; grid-template-columns: minmax(0, min(27rem, 48%)) 1fr; gap: 3vw; align-items: start; padding-top: 2.6rem; }
.fxr .cards { grid-template-columns: 1fr; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .5rem; }
.card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; background: rgba(18,11,46,.55); border: 2px solid rgba(207,242,62,.25); border-radius: 28px; padding: .8rem 1.2rem .8rem .8rem; }
.am { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 50%; background: var(--lime); color: var(--ink); font: 900 .9rem/1.05 var(--d); text-align: center; flex: none; }
.card:nth-child(even) .am { background: var(--pink); }
.card h3 { font: 900 1.05rem var(--d); color: var(--lime); margin-bottom: .15rem; }
.card p { font-size: .9rem; line-height: 1.4; }

/* Nutrition facts label */
.nf { background: var(--lime); color: #0b0b0b; font: 400 .92rem/1.2 Helvetica, Arial, sans-serif; border: 9px solid #fff; border-radius: 30px; padding: .55rem .8rem .65rem; width: 100%; transform: rotate(1.8deg); box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 20px 44px rgba(0,0,0,.5); position: relative; transition: transform .4s; }
.nf:hover { transform: rotate(-.5deg) scale(1.02); }
.nf::before { content: ""; position: absolute; inset: 3px; border: 2px dashed rgba(0,0,0,.4); border-radius: 18px; pointer-events: none; }
.nf-t { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font: 900 clamp(1.5rem, 6.4vw, 2.1rem)/1 'Arial Black', Helvetica, Arial, sans-serif; letter-spacing: -.03em; border-bottom: 3px solid #000; padding-bottom: .2rem; }
html[lang=bg] .nf-t { font-size: clamp(1.2rem, 5.4vw, 1.5rem); }
.nf-l { height: 30px; width: auto; fill: #000; flex: none; }
.nf-s, .nf-s2 { font-size: .98rem; font-weight: 700; }
.nf-s { margin-top: .15rem; }
.nf-s2 { padding-bottom: .15rem; }
.nf-b { height: 9px; background: #000; border-radius: 5px; margin: .1rem 0; }
.nf-a { font-weight: 900; font-size: .76rem; border-bottom: 1px solid #000; padding: .05rem 0; }
.nf-h { text-align: right; font-weight: 900; font-size: .76rem; border-bottom: 1px solid #000; padding: .1rem 0; }
.nf-r { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #000; padding: .2rem 0; font-size: 1rem; }
.nf-r.sub { padding: 0 0 .15rem 1rem; font-size: .84rem; font-style: italic; }
.nf-r b { font-weight: 900; }
.nf-m { height: 6px; background: #000; border-radius: 3px; margin-top: .1rem; }
.nf-f { font-size: .7rem; padding-top: .25rem; }

/* ---------- FAQ ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chips span { background: var(--lime); color: var(--ink); font: 800 .78rem var(--b); padding: .3rem .8rem; border-radius: 99px; }
.chips span:nth-child(even) { background: var(--pink); }
details { background: rgba(18,11,46,.5); border: 2px solid rgba(207,242,62,.25); border-radius: 20px; padding: .1rem 1.1rem; margin-top: .5rem; transition: transform .3s; }
summary { font-weight: 800; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 900 1.4rem var(--d); color: var(--lime); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: .9rem; max-width: 60ch; }

/* ---------- Footer ---------- */
footer { margin-top: auto; padding: 1.4rem var(--pad) calc(1.4rem + env(safe-area-inset-bottom, 0px)); opacity: .8; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; background: var(--ink); }

/* ---------- Responsive ---------- */
/* Tablets and phones: no menu, just logo, BG | EN and the "Запиши се" button */
@media (max-width: 900px) {
  nav { display: flex; justify-content: space-between; }
  .links { display: none; }
}
/* Phones */
@media (max-width: 700px) {
  .wl-row { flex-direction: column; }
  .hero .cta .btn { flex: 1; }
  body::before { animation: none; }
  body::after { display: none; }
  .duo, .waitlist, .pillars, .cards, section.fx { grid-template-columns: 1fr; }
  .waitlist { min-height: 0; }
  .logo3d { height: 30vh; }
  .stage { height: 46vh; }
  .pillars { gap: .6rem; }
  .pil { grid-template-columns: auto 1fr; border-radius: 32px; padding: .8rem 1rem .8rem .8rem; gap: .8rem; }
  .pil .ic { width: 60px; height: 60px; padding: 13px; grid-row: span 2; }
  .pil em { grid-column: 2; text-align: left; font-size: 1.7rem; }
  .c2 { margin-left: 3%; }
  .c3 { margin-right: 3%; }
  .pt h3 { font-size: 1.1rem; }
  footer { flex-direction: column; }
}
/* Tablets */
@media (min-width: 701px) and (max-width: 1024px) {
  :root { --h1: clamp(2.3rem, 7vw, 4.4rem); }
  .pil { padding-right: 1.4rem; }
  section.fx { grid-template-columns: minmax(0, 380px) 1fr; }
  .duo { gap: 2vw; }
  .buy { padding: 1rem; }
}
/* Phones in landscape */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --h1: clamp(1.8rem, 5vw, 3rem); }
  .stage { height: 78vh; }
  .logo3d { height: 70vh; }
  .wordband { padding-top: calc(var(--hh) + 1vh); }
  .pr1 { height: 22px; }
}
@media (min-width: 1500px) { .pil { border-radius: 56px; } }
@media (min-width: 701px) { .fx .nf { position: sticky; top: calc(var(--hh) + 1rem); } }
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; }
  .pil:hover { transform: none; }
  .nf:hover { transform: rotate(1.8deg); }
}
/* Bigger tap targets on touch screens */
@media (pointer: coarse) {
  .nb::before, .lang::before { content: ""; position: absolute; inset: -6px; }
  .lang { position: relative; }
  summary { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Coming-soon extras: price card, comparison table, how-to steps, about
   ========================================================================== */
.price { font: 900 1.8rem var(--d); color: var(--lime); margin-top: .2rem; }
.price small { font: 600 .8rem var(--b); color: var(--foam); opacity: .8; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: .7rem 0 .2rem; }
.opt { border: 2px solid rgba(255,255,255,.45); border-radius: 18px; padding: .7rem .8rem; line-height: 1.3; }
.opt.on { border-color: var(--lime); background: rgba(207,242,62,.15); }
.opt small { display: block; color: var(--pink); font-weight: 800; }
.opt b { font: 700 1.05rem var(--d); display: block; margin-top: .1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Comparison table: scrolls sideways on narrow phones instead of squashing */
.cmp-wrap { overflow-x: auto; margin-top: .9rem; border-radius: 24px; border: 2px solid rgba(207,242,62,.25); background: rgba(18,11,46,.55); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 42rem; border-collapse: collapse; font-size: .92rem; }
.cmp th, .cmp td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: middle; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font: 900 .95rem/1.2 var(--d); }
.cmp thead small, .cmp td small { font: 600 .75rem var(--b); opacity: .75; }
.cmp tbody th { font-weight: 800; opacity: .85; width: 26%; }
.cmp .us { background: rgba(207,242,62,.14); }
.cmp thead .us { background: var(--lime); color: var(--ink); }
.cmp td.us b { color: var(--lime); }
.cmp-note { font-size: .75rem; opacity: .65; margin-top: .6rem; max-width: 80ch; }
.cmp-take { margin-top: 1rem; max-width: 60ch; }

/* How to use */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: .8rem; }
.step { background: rgba(18,11,46,.55); border: 2px solid rgba(207,242,62,.25); border-radius: 28px; padding: 1.1rem; }
.step .n { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--lime); color: var(--ink); font: 900 1.1rem var(--d); margin-bottom: .6rem; }
.step:nth-child(2) .n { background: var(--pink); }
.step:nth-child(3) .n { background: #fff; }
.step h3 { font: 900 1.15rem var(--d); margin-bottom: .2rem; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3vw; align-items: start; }
.about-text .lead { max-width: 52ch; margin-top: .8rem; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .8rem; }
.value { border-radius: 24px; padding: 1rem; color: var(--ink); }
.value:nth-child(1) { background: var(--lime); }
.value:nth-child(2) { background: var(--pink); }
.value:nth-child(3) { background: #fff; }
.value:nth-child(4) { background: #0A2457; color: var(--foam); }
.value b { display: block; font: 900 1rem/1.15 var(--d); margin-bottom: .3rem; }
.value span { font-size: .88rem; line-height: 1.35; }

@media (max-width: 700px) {
  .steps, .about { grid-template-columns: 1fr; }
}

/* On this one-page site the .head titles sit mid-page, so they need less top space
   than in the shop theme (anchor jumps still clear the fixed header via scroll-padding-top). */
main .head { padding-top: clamp(2.5rem, 9vh, 6rem); }
/* Keep the row names visible while the table scrolls sideways on phones */
.cmp tbody th, .cmp thead th:first-child { position: sticky; left: 0; z-index: 1; background: #1a1240; }

/* ==========================================================================
   Motion: scroll reveal + "glide" arrival (driven by assets/site.js → Reveal, Glide)
   ========================================================================== */
/* Only hidden when JS is running, so the page is fully visible without it */
.js-reveal .reveal {
  opacity: 0;
  translate: -28px 18px;
  transition: opacity .7s cubic-bezier(.2,.9,.2,1), translate .8s cubic-bezier(.2,.9,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal .reveal.in { opacity: 1; translate: 0 0; }

/* When you glide to a section, its content slides in from the left, like the GLIDE wordmark */
.arrive > * { animation: arrive .7s cubic-bezier(.2,.9,.2,1) both; }
.arrive > *:nth-child(2) { animation-delay: .06s; }
.arrive > *:nth-child(3) { animation-delay: .12s; }
@keyframes arrive { from { translate: -22px 0; opacity: .35; } }
/* The sign-up card also gets a short lime glow so you see where to type */
.arrive .buy { animation: arrive .7s cubic-bezier(.2,.9,.2,1) both, glow 1.4s .3s ease-out; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(207,242,62,.55); } 100% { box-shadow: 0 0 0 18px rgba(207,242,62,0); } }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; translate: none; }
}

/* ---------- Product card title + sign-up form ---------- */
/* Long Bulgarian words ("възстановяване") must fit the card at every width */
.buy .h2 { font-size: clamp(1.55rem, 2.7vw, 2.4rem); line-height: 1.06; overflow-wrap: break-word; hyphens: auto; margin-bottom: .1rem; }
.buy .lead { font-size: .98rem; }

/* The form is its own highlighted box inside the card */
.wl-box { margin-top: .9rem; padding: 1rem; border-radius: 22px; background: rgba(207,242,62,.07); border: 2px solid rgba(207,242,62,.35); }
.wl-label { display: block; font: 900 1rem/1.2 var(--d); color: var(--lime); margin-bottom: .65rem; }
.wl-row { align-items: stretch; }
.wl-row input { min-height: 52px; background: rgba(18,11,46,.75); }
.wl-row .btn { min-height: 52px; flex: none; white-space: nowrap; padding: .7rem 1.4rem; }

/* Bigger, on-brand checkbox */
.consent { align-items: center; margin-top: .8rem; font-size: .8rem; opacity: .85; }
.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.35rem; height: 1.35rem;
  margin: 0;
  border-radius: 7px;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}
.consent input::after { content: ""; width: .7rem; height: .7rem; background: var(--ink); clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 86% 8%, 40% 70%); transform: scale(0); transition: transform .2s cubic-bezier(.2,.9,.2,1); }
.consent input:checked { background: var(--lime); border-color: var(--lime); }
.consent input:checked::after { transform: scale(1); }
.consent a { color: var(--lime); }
.wl-msg { margin-top: .5rem; min-height: 0; }
.wl-msg:empty { display: none; }
.wl-done { margin-top: .9rem; padding: 1.2rem 1rem; border-radius: 22px; background: rgba(207,242,62,.1); border: 2px solid var(--lime); }

@media (max-width: 700px) {
  .wl-row .btn { width: 100%; }
}

/* Small keyword line above the hero slogan (part of the H1 for search engines) */
.hero .h1 .eyebrow { display: block; width: max-content; max-width: min(100%, 90vw); white-space: normal; margin-bottom: .7rem; padding: .3rem .8rem; border-radius: 99px; background: var(--lime); color: var(--ink); font: 800 clamp(.78rem, 1.4vw, .95rem)/1.25 var(--b); letter-spacing: 0; }
/* Balanced line breaks so "Стигни по-далеч." never splits at the hyphen */
.hero .h1 { max-width: 14ch; text-wrap: balance; }

/* ==========================================================================
   Blog: article pages (/blog/...), post cards, sweat calculator
   ========================================================================== */
.doc-page { padding: calc(var(--hh) + 2vh) var(--pad) 3rem; }
.doc-head, .doc-body { max-width: 46rem; }
.doc-head .h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.05; }
.doc-head .lead { margin-top: .8rem; max-width: 52ch; }
.crumbs { font-size: .85rem; opacity: .75; margin-bottom: .8rem; }
.crumbs a { color: var(--lime); text-decoration: none; }
.meta { font-size: .85rem; opacity: .7; margin-top: .8rem; }
.doc-body { margin-top: 2rem; font-size: 1.04rem; line-height: 1.7; }
.doc-body h2 { font: 900 clamp(1.3rem, 2.6vw, 1.7rem)/1.2 var(--d); margin: 2.2rem 0 .7rem; }
.doc-body h3 { font: 900 1.1rem var(--d); margin-bottom: .6rem; }
.doc-body p + p { margin-top: .8rem; }
.doc-body ul, .doc-body ol { padding-left: 1.3rem; margin: .6rem 0; }
.doc-body li + li { margin-top: .35rem; }
.doc-body a { color: var(--lime); }
.doc-body b { color: #fff; }
.sources { font-size: .8rem; opacity: .65; margin-top: 1rem; line-height: 1.5; }
.doc-cta { margin: 2.4rem 0 1.4rem; padding: 1.3rem; border-radius: 26px; background: rgba(207,242,62,.1); border: 2px solid var(--lime); }
.doc-cta b { display: block; font: 900 1.15rem/1.2 var(--d); color: var(--lime); margin-bottom: .4rem; }
.doc-cta p { font-size: .95rem; margin-bottom: .9rem; }
.doc-cta .btn { color: var(--ink); }

/* Post cards (blog index + "От блога" on the home page) */
.post-list, .posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .9rem; }
.post-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; border-radius: 26px; text-decoration: none; color: var(--foam); background: rgba(18,11,46,.55); border: 2px solid rgba(207,242,62,.25); transition: transform .3s, border-color .3s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--lime); }
.post-card h2, .post-card h3 { font: 900 1.1rem/1.2 var(--d); margin: 0; }
.post-card p { font-size: .92rem; opacity: .85; line-height: 1.45; margin: 0; }
.post-card span { margin-top: auto; color: var(--lime); font-weight: 800; font-size: .9rem; }
.doc-body.post-list { max-width: none; }

/* Sweat-rate calculator */
.calc { margin: 1.6rem 0; padding: 1.2rem; border-radius: 24px; background: rgba(18,11,46,.6); border: 2px solid rgba(207,242,62,.3); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.calc label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 700; }
.calc input { font: 700 1.05rem var(--b); padding: .7rem .9rem; min-height: 48px; border-radius: 14px; border: 2px solid rgba(255,255,255,.4); background: rgba(18,11,46,.7); color: var(--foam); width: 100%; }
.calc input:focus { border-color: var(--lime); outline: none; }
.calc-out { margin-top: 1rem; font-size: 1rem; }
.calc-out b { color: var(--lime); }
@media (max-width: 700px) { .calc-grid { grid-template-columns: 1fr; } }

/* Phones: nothing may scroll sideways. The hero waves are 120% wide on purpose;
   iOS Safari ignores overflow on <body> alone, so clip on <html> too.
   `clip` (unlike `hidden`) keeps position: sticky working. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.hero { overflow-x: clip; }
