
/* =====================================================================
   ROUND 30 · one type system for the whole site
   Inter Tight (display: headings, big numbers) + Manrope (everything else).
   All families, sizes and spacing come from these tokens.
   ===================================================================== */
:root {
  --f-display: "Inter Tight", "Manrope", system-ui, sans-serif;
  --f-text: "Manrope", system-ui, sans-serif;
  --sc-font-display: var(--f-display);
  --sc-font-text: var(--f-text);
  --sc-font-mono: var(--f-text);          /* no monospace anywhere */

  --burgundy: #862631;
  --ink: #171311;
  --ink-soft: #4E4640;

  /* type scale */
  --t-h1: min(22vw, 11svh, 6.4rem);
  --t-h2: clamp(2.125rem, 1.45rem + 2.9vw, 4.25rem);
  --t-h2-xl: clamp(2.5rem, 1.5rem + 4vw, 5.25rem);
  --t-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.6rem);
  --t-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-label: 0.8125rem;
  --t-micro: 0.6875rem;

  /* tracking */
  --ls-display: -0.05em;
  --ls-head: -0.04em;
  --ls-title: -0.025em;

  /* 8 px spacing */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px; --s-6: 48px; --s-8: 64px;
}

body { font-family: var(--f-text); font-size: var(--t-body); }

/* ---------------------------------------------------------------- headings */
.h2, .h3, .title__h { font-family: var(--f-display); font-weight: 400; letter-spacing: var(--ls-head); line-height: 1.04; color: var(--ink); text-wrap: balance; }
.h2 { font-size: var(--t-h2); }
.h2--xl { font-size: var(--t-h2-xl); }
.w-light { font-weight: 400; }
.w-heavy { font-weight: 400; font-style: italic; color: var(--burgundy); letter-spacing: -0.035em; }
.ch--ink .h2, .ch--ink .h3 { color: #F3EEE8; }
.ch--ink .w-heavy { font-style: italic; color: #E08A93; text-decoration: none; }

/* card and block titles: the display face, medium, never bold */
.pull, .yt__list h3, .lesson h4, .pains__list h3, .bonus__h, .guarantee h3, .prog .lesson h4,
.vs__head, .buy__name, .who h3, .after h3, .faq__sub, .drawer__lead {
  font-family: var(--f-display); font-weight: 500; letter-spacing: var(--ls-title); line-height: 1.2;
}
.pains__list h3, .lesson h4, .prog .lesson h4 { font-size: var(--t-h3); }
.julia__quote, .pull { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.25; }
.drawer__lead { font-size: var(--t-lead); font-weight: 400; line-height: 1.35; }

/* ---------------------------------------------------------------- labels: «[ Про мене ]» */
.label { display: inline-block; font-family: var(--f-text); font-weight: 400; font-size: var(--t-label); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.label::before { content: "[ "; display: inline; width: auto; height: auto; background: none; opacity: 0.5; }
.label::after { content: " ]"; opacity: 0.5; }
.ch__head--split .label, .title__facts .label, .countries .label, .bonus__card .label, .lesson .label, .prog__side .label { display: block; }
.title__facts .label::before, .countries .label::before, .bonus__card .label::before, .lesson .label::before, .prog__side .label::before { display: inline; }
.ch--ink .label, .bonus .label { color: rgb(243 238 232 / 0.75); }
.ch__head--split .label { padding-top: 0.7em; }

/* ---------------------------------------------------------------- body text */
main p { line-height: 1.6; }
.pains__list p, .lesson p, .julia__text > p, details p, .drawer__text, .price__note, .yt__list p, .who li, .after li { font-size: var(--t-body); line-height: 1.6; }
.julia__role { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); letter-spacing: -0.03em; color: var(--burgundy); }
details summary { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); letter-spacing: -0.02em; line-height: 1.3; }

/* ---------------------------------------------------------------- numbers */
.countries .big, .prog__num, .buy__price, .julia__stats b, .title__facts b, .hx__price b, .big {
  font-family: var(--f-display); font-weight: 400; letter-spacing: var(--ls-display); font-variant-numeric: lining-nums;
}
.julia__stats b { font-weight: 500; }
.title__facts b { font-weight: 500; letter-spacing: -0.03em; }

/* ---------------------------------------------------------------- buttons */
.btn, .btn__label { font-family: var(--f-text); font-weight: 600; letter-spacing: 0; }
.btn { font-size: 1.0625rem; }

/* ---------------------------------------------------------------- rhythm on an 8 px grid */
.ch__head { gap: var(--s-2); margin-bottom: clamp(var(--s-5), 5vw, var(--s-8)); }
.ch__head .h2 { margin: 0; }
.julia__text > p + p { margin-top: var(--s-2); }
.promise .h2 { max-width: none; }
.promise .hero__gain { margin-top: var(--s-3); }

/* =====================================================================
   FIRST SCREEN · variant E
   ===================================================================== */
.hx, .hx * { font-family: var(--f-text); }
.hx__swash { display: none; }
.hx__top { padding-top: 26px; }
.hx__kicker { margin: 0; font-weight: 400; font-size: var(--t-label); letter-spacing: -0.01em; text-transform: none; color: var(--ink-soft); padding-left: 0; }
.hx__kicker::before { content: "[ "; opacity: 0.55; }
.hx__kicker::after { content: " ]"; opacity: 0.55; }
.hx__h { position: relative; margin: 12px auto 0; width: auto; }
.hx__h1, .hx__h2 { display: block; font-family: var(--f-display) !important; }
.hx__h1 { font-weight: 400; font-size: var(--t-h1); line-height: 0.86; letter-spacing: -0.052em; color: var(--ink); }
.hx__h2 { font-style: italic; font-weight: 400; font-size: min(15.5vw, 7.6svh, 4.5rem); line-height: 0.92; letter-spacing: -0.035em; color: var(--burgundy); margin-top: 0.06em; }
.hx__ch { display: inline-block; }
.hx__sub { margin: 18px auto 0; max-width: 17em; font-weight: 400; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); }
.hx__meta { margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 14px; font-weight: 400; font-size: var(--t-label); letter-spacing: -0.01em; color: var(--ink-soft); }
.hx__meta span::before { content: "[ "; opacity: 0.55; }
.hx__meta span::after { content: " ]"; opacity: 0.55; }
.hx__meta b { font-weight: inherit; color: var(--burgundy); }

.hx__chips { counter-reset: b; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 12px 0; border-top: 1px solid rgb(23 19 17 / 0.16); background: rgb(247 242 235 / 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 0; }
.hx__chips li { flex-direction: column; justify-content: flex-start; gap: 4px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; min-height: 0; padding: 0 8px; text-align: center; font-size: 0.75rem; font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.hx__chips li + li { border-left: 1px solid rgb(23 19 17 / 0.14); }
.hx__chips li::before { counter-increment: b; content: "[ 0" counter(b) " ]"; font-size: 0.625rem; font-style: italic; letter-spacing: 0.04em; color: var(--ink-soft); }
.hx__chips svg { display: none; }
.hx__btn { border-radius: 999px; min-height: 56px; font-size: 1.0625rem; }
.hx__price { font-family: var(--f-text); }
.hx__price s { font-size: 1rem; font-weight: 400; }
.hx__price b { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.04em; color: var(--burgundy); }
.hx .consent { font-size: var(--t-micro); line-height: 1.45; }

@media (min-width: 900px) {
  .hx__top { padding-top: 0; }
  .hx__h { margin-left: 0; }
  .hx__h1 { font-size: clamp(5rem, min(9vw, 15svh), 9rem); }
  .hx__h2 { font-size: clamp(3.4rem, min(6.2vw, 10svh), 6.2rem); }
  .hx__sub { margin-left: 0; font-size: 1.25rem; max-width: 20em; }
  .hx__meta { justify-content: flex-start; }
  .hx__chips { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hx__chips li { font-size: 0.875rem; }
}

/* ---------------------------------------------------------------- first screen motion
   Runs once on arrival (r30.js adds .is-play); scroll then lifts the title away
   and lets Julia drift a little slower. Nothing moves under reduced motion. */
.hx__bg::before { content: ""; position: absolute; inset: -20% -60%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 238 214 / 0.38) 48%, rgb(255 246 232 / 0.18) 54%, transparent 64%);
  mix-blend-mode: screen; opacity: 0; }
.hx-anim .hx__top { translate: 0 calc(var(--hs, 0) * -70px); opacity: calc(1 - var(--hs, 0) * 1.3); }
.hx-anim .hx__julia { translate: 0 calc(var(--hs, 0) * -28px); }
.hx-anim .hx__bg { translate: 0 calc(var(--hs, 0) * 50px); }

.hx-anim .hx:not(.is-play) :is(.hx__kicker, .hx__ch, .hx__h2, .hx__sub, .hx__meta, .hx__julia, .hx__chips li, .hx__buy) { opacity: 0; }
.hx.is-play .hx__bg { animation: hxBg 2200ms cubic-bezier(0.2, 0.7, 0.1, 1) both; }
.hx.is-play .hx__bg img { animation: hxDrift 22s ease-in-out 2200ms infinite alternate; }
.hx.is-play .hx__bg::before { animation: hxSun 11s ease-in-out 1200ms infinite alternate; }
.hx.is-play .hx__kicker { animation: hxFade 700ms ease-out 100ms both; }
.hx.is-play .hx__ch { animation: hxCh 1000ms cubic-bezier(0.2, 0.8, 0.15, 1) both; animation-delay: calc(220ms + var(--c) * 60ms); }
.hx.is-play .hx__h2 { animation: hxWrite 1300ms cubic-bezier(0.65, 0, 0.25, 1) 700ms both; }
.hx.is-play .hx__sub { animation: hxUp 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 1150ms both; }
.hx.is-play .hx__meta { animation: hxUp 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 1300ms both; }
.hx.is-play .hx__julia { animation: hxJulia 1600ms cubic-bezier(0.2, 0.75, 0.15, 1) 350ms both; }
.hx.is-play .hx__julia img { animation: hxBreathe 7s ease-in-out 2200ms infinite alternate; transform-origin: 50% 100%; }
.hx.is-play .hx__chips li { animation: hxUp 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hx.is-play .hx__chips li:nth-child(1) { animation-delay: 1450ms; }
.hx.is-play .hx__chips li:nth-child(2) { animation-delay: 1550ms; }
.hx.is-play .hx__chips li:nth-child(3) { animation-delay: 1650ms; }
.hx.is-play .hx__buy { animation: hxUp 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 1750ms both; }
.hx__btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.28), transparent); transform: skewX(-18deg); opacity: 0; }
.hx__btn > * { position: relative; z-index: 1; }
.hx.is-play .hx__btn::after { animation: hxShine 5s ease-in-out 2800ms infinite; }
.hx.is-play .hx__arrow { animation: hxNudge 2.4s ease-in-out 3000ms infinite; }

@keyframes hxBg { from { opacity: 0; transform: scale(1.14); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hxDrift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); } }
@keyframes hxSun { 0% { opacity: 0; transform: translateX(-30%); } 30% { opacity: 1; } 100% { opacity: 0.8; transform: translateX(30%); } }
@keyframes hxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hxCh { from { opacity: 0; transform: translateY(0.5em) rotate(6deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hxWrite { from { opacity: 0; clip-path: inset(-10% 100% -20% 0); transform: translateX(-0.12em); } 15% { opacity: 1; } to { opacity: 1; clip-path: inset(-10% -5% -20% 0); transform: none; } }
@keyframes hxUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hxJulia { from { opacity: 0; transform: translateY(48px) scale(0.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hxBreathe { from { transform: scale(1); } to { transform: scale(1.015); } }
@keyframes hxShine { 0%, 70% { left: -40%; opacity: 0; } 72% { opacity: 1; } 92% { left: 120%; opacity: 1; } 100% { left: 120%; opacity: 0; } }
@keyframes hxNudge { 0%, 80%, 100% { transform: none; } 88% { transform: translateX(5px); } }

@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; }
}
/* split headings keep both brackets */
.ch__head--split .label::before { display: inline; }
/* the benefits strip arrives as a whole, then its three lines */
.hx-anim .hx:not(.is-play) .hx__chips { opacity: 0; }
.hx.is-play .hx__chips { animation: hxUp 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 1350ms both; }
/* the word mask leaves room for tight tracking and italic overhang, so no letter edge is clipped */
.wd { padding-inline: 0.1em; margin-inline: -0.1em; }
