/* EL FIT landing (landing.js): visitors without access and the "no subscription" page. */

/* the dialog and the sticky bar live outside .lp, so the palette is shared */
.lp, .lp-buy-dialog, .lp-buybar {
  --lp-dark: #141b17;
  --lp-gold: #dac17f;
  --lp-cream: #f5e6bd;
}
.lp {
  --lp-pad: 32px;
  --lp-bleed: calc(50% - 50vw);
  --lp-inner: max(var(--lp-pad), calc(50vw - 568px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 72px;
  padding-bottom: 24px;
  font-variant-numeric: lining-nums;
}
.lp h1, .lp h2, .lp h3 { text-wrap: balance; }
.lp-eyebrow {
  margin: 0 0 12px;
  color: #9a7a2c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}
.lp-section > h2, .lp-section > h1 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}
.lp-lead { font-size: 17px; line-height: 1.6; }
.lp-muted { color: var(--muted); line-height: 1.55; }
.lp-small { font-size: 14px; color: var(--muted); }
.lp-small a, .lp-muted a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-actions .efit-button { flex: 0 1 auto; min-width: 170px; }

/* hero */
.lp-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 24px 48px;
  min-height: min(86vh, 780px);
  margin: 0 var(--lp-bleed);
  padding: 96px var(--lp-inner) 40px;
  background: var(--lp-dark);
  color: #fff;
}
.lp-hero-bg, .lp-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-hero-bg { object-position: 70% 30%; opacity: .75; }
.lp-hero > picture { position: absolute; inset: 0; }  /* the <picture> wrapper (and its <source>) must not take a grid cell */
.lp-hero::after, .lp-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d120fef 0%, #0d120fb8 45%, #0d120f33 100%), linear-gradient(0deg, #0d120fcc, transparent 50%);
}
.lp-hero-copy, .lp-banner-copy { position: relative; z-index: 1; max-width: 640px; }
.lp-hero .lp-eyebrow, .lp-banner .lp-eyebrow { color: var(--lp-gold); }
.lp-hero h1 {
  margin: 0 0 22px;
  color: var(--lp-cream);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 500;
  line-height: 1.02;
}
.lp-hero h1 em { display: block; color: var(--lp-gold); font-style: italic; }
.lp-hero .lp-lead { max-width: 540px; margin: 0 0 30px; color: #ffffffd9; }
.lp-hero .efit-button-outline, .lp-banner .efit-button-outline { color: #fff; border-color: #ffffff59; }
.lp-hero .efit-button:not(.efit-button-outline), .lp-banner .efit-button:not(.efit-button-outline) { background: var(--lp-gold); border-color: var(--lp-gold); }
.lp-facts {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 8px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #ffffff26;
  list-style: none;
}
.lp-facts li { display: grid; gap: 4px; }
.lp-facts strong { font-family: var(--efit-serif); font-size: 32px; font-weight: 600; color: var(--lp-cream); }
.lp-facts span { color: #ffffffb3; font-size: 14px; }

/* offers */
.lp-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lp-offer {
  overflow: hidden;
  display: grid;
  grid-template-rows: 260px 1fr;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 12px 34px #1d27210d;
}
.lp-offer img { width: 100%; height: 100%; object-fit: cover; }
.lp-offer-dark { background: var(--lp-dark); color: #fff; border-color: var(--lp-dark); }
.lp-offer-dark img { object-position: center 20%; }
.lp-offer-body { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.lp-offer h3 { margin: 0; font-family: var(--efit-serif); font-size: 32px; font-weight: 600; }
.lp-offer .efit-button { margin-top: auto; align-self: flex-start; }
.lp-checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; line-height: 1.45; }
.lp-checks li { position: relative; padding-left: 28px; }
.lp-checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--lp-gold);
  color: #1d211b;
  font-size: 11px;
  font-weight: 800;
}

/* steps */
.lp-steps ol { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 24px; padding: 0; list-style: none; }
.lp-steps li { counter-increment: step; display: grid; gap: 8px; padding: 26px; border-radius: 20px; background: #f3eedf; }
.lp-steps li::before { content: '0' counter(step); font-family: var(--efit-serif); font-size: 40px; font-weight: 600; line-height: 1; color: #9a7a2c; }
.lp-steps strong { font-size: 18px; }
.lp-steps span { color: var(--muted); line-height: 1.5; }

/* trainers */
.lp-trainers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lp-trainer {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(150deg, #1b251f, #0f1512);
  color: #fff;
}
.lp-trainer-mark {
  position: absolute;
  right: 18px;
  top: -18px;
  font-family: var(--efit-serif);
  font-size: 170px;
  font-weight: 600;
  line-height: 1;
  color: #dac17f1f;
}
.lp-trainer h3 { margin: 0; font-family: var(--efit-serif); font-size: 34px; font-weight: 600; color: var(--lp-cream); }
.lp-trainer-role { margin: 0; color: var(--lp-gold); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lp-trainer p { margin: 0; line-height: 1.55; color: #ffffffd0; }
.lp-trainer-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.lp-trainer-links a {
  padding: 11px 20px;
  border-radius: 50px;
  background: var(--lp-gold);
  color: #1d211b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.lp-trainer-links a.secondary { background: transparent; border: 1px solid #ffffff4d; color: #fff; }

/* reviews: real client messages as an animated chat — see the block at the end */
.lp-results-title { margin: 28px 0 14px; font-family: var(--efit-serif); font-size: 28px; font-weight: 600; }
.lp-results { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lp-results a { overflow: hidden; aspect-ratio: 3 / 4; border-radius: 18px; background: #e8e5dc; }
.lp-results img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lp-results a:hover img { transform: scale(1.04); }

/* big buy banner */
.lp-banner {
  position: relative;
  overflow: hidden;
  margin: 0 var(--lp-bleed);
  padding: 80px var(--lp-inner);
  background: var(--lp-dark);
  color: #fff;
}
.lp-banner-bg { opacity: .55; }
.lp-banner-copy { max-width: 720px; }
.lp-banner h2 { margin: 0 0 16px; color: var(--lp-cream); font-size: clamp(36px, 5vw, 60px); font-weight: 500; line-height: 1.05; }
.lp-banner .lp-lead { color: #ffffffd9; margin: 0 0 30px; }
.lp-banner .lp-small { color: #ffffffb3; }
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }
.lp-plan {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid #ffffff2e;
  border-radius: 20px;
  background: #0d120fb3;
  backdrop-filter: blur(6px);
}
.lp-plan-best { border-color: var(--lp-gold); box-shadow: 0 0 0 1px var(--lp-gold); }
.lp-plan-name { color: #ffffffcc; font-size: 15px; font-weight: 600; }
.lp-plan strong { font-family: var(--efit-serif); font-size: 44px; font-weight: 600; line-height: 1.05; color: var(--lp-cream); }
.lp-plan small, .lp-plan p { margin: 0; color: #ffffffa6; font-size: 14px; }
.lp-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--lp-gold);
  color: #1d211b;
  font-size: 12px;
  font-weight: 800;
}
.lp-buy { min-width: 260px; min-height: 56px; font-size: 16px; }

/* cards and forms */
.lp-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 12px 34px #1d27210d;
}
.lp-card label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.lp-card input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d5dbd1;
  border-radius: 12px;
  background: #fbfbf8;
  font: inherit;
  font-weight: 400;
}
.lp-card input:focus { outline: 2px solid var(--lp-gold); outline-offset: 1px; border-color: transparent; }
.lp-card .efit-button { width: 100%; }
.lp-card form { display: grid; gap: 16px; }
.lp-card form[hidden], .lp-card [hidden] { display: none; }
.lp-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lp-dark);
  color: var(--lp-gold);
  font-weight: 700;
}

/* FAQ */
.lp-faq { display: grid; gap: 12px; }
.lp-faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.lp-faq summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; color: #9a7a2c; transition: transform .2s; }
.lp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); line-height: 1.6; }

/* login / registration */
.lp-auth { text-align: center; }
.lp-auth .lp-auth-card { max-width: 520px; margin: 0 auto; text-align: left; }
.lp-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: #f0eee6; }
.lp-tabs button {
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.lp-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px #0000000f; }
.lp-auth-alt { display: grid; gap: 12px; text-align: center; color: var(--muted); font-size: 14px; }
.lp-section .efit-button-outline { background: transparent; color: var(--ink); border-color: #cfd5cb; }

.lp-account h1 { margin-bottom: 14px; }

@media (max-width: 900px) {
  .lp { gap: 56px; }
  .lp-offers, .lp-trainers,   .lp-steps ol { grid-template-columns: 1fr; }
  .lp-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .lp { --lp-pad: 20px; }
  .lp-hero { padding-top: 96px; padding-bottom: 36px; min-height: min(88vh, 760px); }
  .lp-banner { padding-top: 56px; padding-bottom: 56px; }
  .lp-final { padding-top: 56px; padding-bottom: 56px; }
  .lp-hero::after, .lp-banner::after { background: linear-gradient(0deg, #0d120ff2 0%, #0d120fb3 55%, #0d120f59 100%); }
  .lp-hero-bg { object-position: 72% 20%; }
  .lp-actions .efit-button { flex: 1 1 100%; }
  .lp-offer { grid-template-rows: 210px 1fr; }
  .lp-offer-body, .lp-trainer, .lp-card { padding: 22px; }
  .lp-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-buy { width: 100%; }
}
@media (max-width: 480px) {
  .lp { --lp-pad: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-results img { transition: none; }
}
main:has(> .lp > .lp-top:first-child) { padding-top: 0; }

/* ---------- v2: selling animations ---------- */

/* running offer ribbon above the hero */
.lp-ribbon {
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 40px;
  margin: 0 var(--lp-bleed);
  background: var(--lp-gold);
  color: #1d211b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lp-ribbon-track { display: flex; flex: none; gap: 22px; padding-left: 22px; animation: lp-marquee 32s linear infinite; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* hero copy slides in */
.lp-in { animation: lp-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.lp-hero-copy > .lp-in:nth-child(2) { animation-delay: .08s; }
.lp-hero-copy > .lp-in:nth-child(3) { animation-delay: .16s; }
.lp-hero-copy > .lp-in:nth-child(4) { animation-delay: .24s; }
.lp-hero-copy > .lp-in:nth-child(5) { animation-delay: .34s; }
.lp-hero-copy > .lp-in:nth-child(6) { animation-delay: .44s; }
.lp-hero-copy > .lp-in:nth-child(7) { animation-delay: .52s; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(22px); } }

/* rotating goal */
.lp-goal { margin: -6px 0 18px; color: #ffffffcc; font-size: 18px; }
.lp-rotator { position: relative; display: inline-grid; vertical-align: bottom; color: var(--lp-gold); font-weight: 700; }
.lp-rotator span { grid-area: 1 / 1; opacity: 0; transform: translateY(70%); transition: opacity .45s, transform .45s; white-space: nowrap; }
.lp-rotator span.is-on { opacity: 1; transform: none; }

/* offer card with a glowing animated border */
.lp-offer-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #0d120fd9;
  color: #fff;
  text-decoration: none;
}
.lp-offer-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 20px;
  background: conic-gradient(from var(--lp-angle, 0deg), #dac17f, #fff3c4, #9a7a2c, #dac17f 40%, #dac17f22 60%, #dac17f);
  animation: lp-spin 4s linear infinite;
}
.lp-offer-card::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 18px; background: #101611; }
@property --lp-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes lp-spin { to { --lp-angle: 360deg; } }
.lp-offer-flame { font-size: 26px; animation: lp-bounce 1.6s ease-in-out infinite; }
@keyframes lp-bounce { 50% { transform: translateY(-4px) scale(1.08); } }
.lp-offer-text { display: grid; gap: 2px; }
.lp-offer-text small { color: #ffffffa6; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lp-offer-text strong { color: var(--lp-cream); font-size: 18px; }
.lp-offer-go {
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 50px;
  background: var(--lp-gold);
  color: #1d211b;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s;
}
.lp-offer-card:hover .lp-offer-go { transform: translateX(3px); }

/* main buy button: light sweep + pulsing ring */
.lp-cta { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 0 #dac17f99; animation: lp-pulse 2.4s ease-out infinite; }
.lp-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, #fff8dd99 48%, transparent 66%);
  transform: translateX(-120%);
  animation: lp-sweep 3.2s 1s ease-in-out infinite;
}
@keyframes lp-pulse { 70% { box-shadow: 0 0 0 16px #dac17f00; } 100% { box-shadow: 0 0 0 0 #dac17f00; } }
@keyframes lp-sweep { 45%, 100% { transform: translateX(120%); } }

.lp-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; color: #ffffffbf; }
.lp-trust li::before { content: '✓ '; color: var(--lp-gold); font-weight: 800; }

/* live phone mockup: the diary fills itself */
.lp-hero-phone { position: relative; z-index: 1; justify-self: center; animation: lp-rise .9s .3s both; }
.lp-mock {
  width: 290px;
  padding: 10px;
  border-radius: 42px;
  background: #0b0e0c;
  box-shadow: inset 0 0 0 2px #3a403b, 0 30px 70px #000a, 0 0 80px #dac17f26;
  animation: lp-float 6s ease-in-out infinite;
}
@keyframes lp-float { 50% { transform: translateY(-10px) rotate(-.6deg); } }
.lp-mock-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 6px; color: #fff; font-size: 12px; font-weight: 700; }
.lp-mock-bar span:last-child { font-size: 8px; letter-spacing: 1px; }
.lp-phone-island { width: 74px; height: 20px; border-radius: 20px; background: #000; }
.lp-mock-screen { display: grid; gap: 14px; padding: 18px 16px 20px; border-radius: 32px; background: #f8f6ef; color: var(--ink); }
.lp-mock-title { margin: 0; font-size: 13px; font-weight: 800; }
.lp-ring { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.lp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lp-ring circle { fill: none; stroke: #e8e3d3; stroke-width: 11; }
.lp-ring .lp-ring-fill { stroke: #b8923a; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; animation: lp-ring 2.2s .8s cubic-bezier(.3, .8, .3, 1) forwards; }
@keyframes lp-ring { to { stroke-dashoffset: 78; } }
.lp-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.lp-ring strong { font-family: var(--efit-serif); font-size: 32px; line-height: 1; }
.lp-ring small { color: var(--muted); font-size: 11px; }
.lp-macros { display: grid; gap: 7px; }
.lp-macros div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.lp-macros i { height: 7px; border-radius: 5px; background: linear-gradient(90deg, #b8923a var(--w), #e8e3d3 0) no-repeat; background-size: 0 100%; animation: lp-bar 1.6s 1.2s ease-out forwards; }
.lp-macros div:nth-child(2) i { animation-delay: 1.4s; }
.lp-macros div:nth-child(3) i { animation-delay: 1.6s; }
@keyframes lp-bar { to { background-size: 100% 100%; } }
.lp-meals { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.lp-meals li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px #0000000d;
  opacity: 0;
  animation: lp-drop .55s cubic-bezier(.2, .9, .3, 1.3) forwards;
}
.lp-meals li:nth-child(1) { animation-delay: 1.9s; }
.lp-meals li:nth-child(2) { animation-delay: 2.3s; }
.lp-meals li:nth-child(3) { animation-delay: 2.7s; }
.lp-meals li:nth-child(4) { animation-delay: 3.1s; }
@keyframes lp-drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
.lp-meals span { grid-column: 1; color: var(--muted); font-size: 10px; }
.lp-meals strong { grid-column: 1; font-size: 12px; line-height: 1.3; }
.lp-meals em { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-weight: 800; font-size: 12px; color: #9a7a2c; }
.lp-meals em::after { content: ' ккал'; font-weight: 600; color: var(--muted); }
.lp-float {
  position: absolute;
  padding: 9px 14px;
  border-radius: 50px;
  background: #fff;
  color: #1d211b;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 30px #0006;
  white-space: nowrap;
  opacity: 0;
  animation: lp-pop .6s cubic-bezier(.2, .9, .3, 1.4) forwards, lp-float 5s 1s ease-in-out infinite;
}
.lp-float-1 { left: -70px; top: 44%; animation-delay: 3.4s, 4s; }
.lp-float-2 { right: -40px; top: 12%; background: var(--lp-gold); animation-delay: 1.2s, 2s; }
@keyframes lp-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* reviews as a text chat */
.lp-chats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.lp-chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 26px; background: #efece3; box-shadow: inset 0 0 0 1px #e1dccd; }
.lp-chat header { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #ddd7c6; }
.lp-chat header strong { display: block; font-size: 15px; }
.lp-chat header small { color: var(--muted); font-size: 12px; }
.lp-chat-badge { align-self: flex-start; margin: 0; padding: 5px 12px; border-radius: 50px; background: var(--lp-dark); color: var(--lp-gold); font-size: 12px; font-weight: 800; }
.lp-chat-body { display: flex; flex-direction: column; gap: 6px; }
.lp-bubble {
  max-width: 88%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 20px 20px 20px 6px;
  background: #fff;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 1px 2px #0000000f;
  transform-origin: bottom left;
}
.lp-bubble-me { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--lp-dark); color: var(--lp-cream); transform-origin: bottom right; }
.lp-chat:not(.is-done) .lp-bubble:not(.is-on) { display: none; }
.lp-bubble.is-on { animation: lp-bubble .45s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes lp-bubble { from { opacity: 0; transform: translateY(8px) scale(.85); } }
.lp-typing { display: none; align-self: flex-start; gap: 4px; margin: 0; padding: 12px 14px; border-radius: 20px 20px 20px 6px; background: #fff; }
.lp-typing.lp-typing-me { align-self: flex-end; background: var(--lp-dark); }
.lp-typing.is-on { display: inline-flex; }
.lp-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9f98; animation: lp-dot 1s infinite; }
.lp-typing i:nth-child(2) { animation-delay: .15s; }
.lp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lp-dot { 30% { transform: translateY(-4px); opacity: .5; } }

/* final CTA */
.lp-final {
  margin: 0 var(--lp-bleed);
  padding: 72px var(--lp-inner);
  background: radial-gradient(circle at 50% 0%, #2b3a2f, var(--lp-dark) 70%);
  color: #fff;
  text-align: center;
}
.lp-final h2 { max-width: 760px; margin: 0 auto 28px; color: var(--lp-cream); font-size: clamp(32px, 4.4vw, 54px); font-weight: 500; line-height: 1.08; }
.lp-final .lp-eyebrow { color: var(--lp-gold); }
.lp-final .lp-cta { min-width: 260px; min-height: 56px; font-size: 16px; background: var(--lp-gold); border-color: var(--lp-gold); }
.lp-final .lp-trust { justify-content: center; }

/* sticky buy bar on phones */
.lp-buybar { display: none; }
@media (max-width: 720px) {
  .lp-buybar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border-radius: 20px;
    background: #101611f2;
    color: #fff;
    box-shadow: 0 14px 40px #0008, inset 0 0 0 1px #dac17f55;
    backdrop-filter: blur(10px);
    transform: translateY(140%);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .lp-buybar.is-on { transform: none; }
  .lp-buybar-text { display: grid; line-height: 1.2; }
  .lp-buybar-text small { color: #ffffffa6; font-size: 11px; }
  .lp-buybar-text strong { color: var(--lp-cream); font-size: 15px; }
  .lp-buybar .efit-button { margin-left: auto; min-height: 44px; padding: 10px 22px; background: var(--lp-gold); border-color: var(--lp-gold); }
  body.lp-bar-on .tg-float { bottom: 92px; }
}

@media (max-width: 1000px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); padding-top: 72px; }
  .lp-hero-phone { order: 2; margin: 18px 0 10px; }
  .lp-facts { order: 3; }
  .lp-float-1 { left: -36px; }
  .lp-float-2 { right: -24px; }
}
@media (max-width: 900px) {
  .lp-chats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .lp-mock { width: 260px; }
  .lp-offer-card { padding: 12px; gap: 10px; }
  .lp-offer-text strong { font-size: 16px; }
  .lp-offer-go { padding: 9px 13px; }
  .lp-goal { font-size: 16px; }
}
@media (max-width: 480px) {
  .lp-float-1 { left: -10px; top: 60%; }
  .lp-float-2 { right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-ribbon-track, .lp-in, .lp-offer-card::before, .lp-offer-flame, .lp-cta, .lp-cta::after, .lp-hero-phone, .lp-mock,
  .lp-float, .lp-bubble.is-on, .lp-typing i { animation: none; }
  .lp-meals li, .lp-float { animation: none; opacity: 1; }
  .lp-ring .lp-ring-fill { animation: none; stroke-dashoffset: 78; }
  .lp-macros i { animation: none; background-size: 100% 100%; }
  .lp-rotator span { transition: none; }
}
body:has(.lp) { overflow-x: clip; }  /* 100vw blocks must not add a horizontal scroll */

/* ---------- the one payment page (#pay) ---------- */
a.lp-plan { color: inherit; text-decoration: none; transition: transform .2s, border-color .2s; }
a.lp-plan:hover { transform: translateY(-3px); border-color: var(--lp-gold); }
.lp-pay h1 { margin: 0 0 12px; font-size: clamp(34px, 4.4vw, 52px); }
.lp-pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.lp-pay-plans { display: grid; gap: 14px; }
.lp-pay-plan {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 22px 22px 22px 58px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.lp-pay-plan input { position: absolute; left: 22px; top: 26px; width: 20px; height: 20px; accent-color: #9a7a2c; }
.lp-pay-plan:has(input:checked) { border-color: var(--lp-gold); box-shadow: 0 10px 28px #9a7a2c26; }
.lp-pay-plan .lp-plan-name { color: var(--muted); }
.lp-pay-plan strong { font-family: var(--efit-serif); font-size: 40px; font-weight: 600; line-height: 1.05; }
.lp-pay-plan small { color: var(--muted); font-size: 14px; }
.lp-pay-card h2 { margin: 0; font-size: 28px; }
.lp-pay-card .lp-pay-button { width: 100%; min-height: 56px; font-size: 17px; background: var(--lp-gold); border-color: var(--lp-gold); }
.lp-test-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff6d8; color: #6b5317; font-size: 14px; font-weight: 600; }
.lp-trust-dark { color: var(--muted); }
.lp-trust-dark li::before { color: #9a7a2c; }
.lp-pay-auth { display: grid; gap: 16px; }
.lp-pay-done { max-width: 640px; margin: 0 auto; text-align: center; }
@media (max-width: 900px) { .lp-pay-grid { grid-template-columns: minmax(0, 1fr); } }
.lp-email-only .lp-tabs, .lp-email-only .lp-auth-alt, .lp-email-only [data-auth-intro] { display: none; }

/* ---------- buy dialog (any "Купити" on the site) ---------- */
.lp-buy-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 30px 26px 24px;
  border: 0;
  border-radius: 26px;
  background: var(--cream, #fbfaf6);
  color: var(--ink);
  box-shadow: 0 30px 80px #0008;
  font-variant-numeric: lining-nums;
}
.lp-buy-dialog::backdrop { background: #0d120fcc; backdrop-filter: blur(3px); }
.lp-buy-dialog[open] { animation: lp-rise .35s cubic-bezier(.2, .8, .2, 1); }
.lp-buy-dialog h2 { margin: 0 0 18px; font-size: 32px; }
.lp-buy-dialog .lp-eyebrow { margin-bottom: 6px; }
.lp-buy-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #ece8dc;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lp-buy-form { display: grid; gap: 14px; }
.lp-buy-form .lp-pay-plans { gap: 10px; }
.lp-buy-dialog .lp-pay-plan { padding: 14px 16px 14px 50px; }
.lp-buy-dialog .lp-pay-plan input { left: 16px; top: 18px; }
.lp-buy-dialog .lp-pay-plan strong { font-size: 30px; }
.lp-buy-field { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.lp-buy-field[hidden] { display: none; }
.lp-buy-field input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d5dbd1;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.lp-buy-field input[name="code"] { font-size: 22px; letter-spacing: .3em; text-align: center; }
.lp-buy-field input:focus { outline: 2px solid var(--lp-gold); outline-offset: 1px; border-color: transparent; }
.lp-buy-form .lp-pay-button { width: 100%; min-height: 54px; font-size: 16px; background: var(--lp-gold); border-color: var(--lp-gold); }
.lp-buy-form .lp-muted:empty { display: none; }
.lp-pay-card { max-width: 560px; }
@media (prefers-reduced-motion: reduce) { .lp-buy-dialog[open] { animation: none; } }

/* mobile hero: no trainers eyebrow, title higher, more air between blocks */
@media (max-width: 720px) {
  .lp-hero { align-content: start; padding-top: 40px; }
  .lp-hero .lp-eyebrow { display: none; }
  .lp-hero-bg { object-position: 50% 0; opacity: .85; }  /* portrait photo (picture/source): sharp on phones */
  .lp-hero h1 { margin-bottom: 26px; line-height: 1.06; }
  .lp-hero h1 { font-size: clamp(36px, 11.5vw, 50px); overflow-wrap: normal; }
  .lp-hero h1 em { margin-top: 4px; }
  .lp-hero h1 .lp-h1-line { display: block; }  /* "починається" / "на кухні" on two lines, never past the screen edge */
  .lp-goal { margin: 0 0 22px; }
  .lp-hero .lp-lead { margin-bottom: 32px; font-size: 16px; line-height: 1.65; }
  .lp-offer-card { margin-bottom: 24px; }
  .lp-trust { margin-top: 24px; gap: 10px 18px; }
  /* less text on phones: only ribbon, title, lead, price card and one buy button */
  .lp-hero .lp-goal,
  .lp-hero .lp-trust,
  .lp-hero .lp-facts,
  .lp-hero .lp-hero-phone,
  .lp-hero .lp-actions .efit-button-outline { display: none; }
  .lp-hero .lp-actions .efit-button { width: 100%; }
}

/* pricing banner: air between the plans, the buy button and the text under it */
.lp-plans { margin-bottom: 30px; }
.lp-banner .lp-small { margin-top: 22px; }
.lp-buybar { display: none !important; }
body.lp-bar-on .tg-float { bottom: 24px; }
.lp-legal-note { font-size: 12px; line-height: 1.5; color: var(--muted, #647067); }
.lp-legal-note a { color: inherit; text-decoration: underline; }
