/*
 * Design system for the landing page. Hand written on purpose: the Tailwind Play CDN
 * compiles utilities in the browser on every visit, which is the single heaviest thing
 * on a page whose visitors arrive from mobile ads.
 *
 * Direction: near black canvas, one lime accent, oversized type. No gradients, no
 * stock illustration - the things that make a page read as generated.
 */

/* Fonts are served from our own origin: the Google Fonts stylesheet is render
   blocking and cost ~850 ms of first paint on a phone. Onest ships as a variable
   font, so one file covers every weight we use. */
@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/onest-400-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/onest-400-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/unbounded-700-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/unbounded-700-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0a0a0b;
  --ink-soft: #121214;
  --ink-card: #17171a;
  --line: #26262b;
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --accent: #c9fe6e;
  --accent-ink: #0a0a0b;
  --danger: #fca5a5;
  --ok: #c9fe6e;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  --step-4: clamp(2.3rem, 1.5rem + 2.8vw, 4.75rem);

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.75rem;
  --space-l: 3rem;
  --space-xl: clamp(3.5rem, 2rem + 7vw, 7rem);

  --radius: 14px;
  --wrap: 1440px;
  --measure: 62ch;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Onest, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint grain: gives the flat dark canvas some texture without an image request. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: Unbounded, Onest, "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-s);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  line-height: 1.25;
}

p {
  margin: 0 0 var(--space-s);
  max-width: var(--measure);
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Layout ------------------------------------------------------------------ */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--line);
}

.section--plain {
  border-top: 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
  flex-wrap: wrap;
}

/* Oversized numerals as section markers - the one motif repeated page-wide.
   The outline is kept above a 3:1 contrast ratio: an outlined numeral is still
   text on screen, and hiding it from the contrast check would only hide it from
   the people who need it. */
.marker {
  font-family: Unbounded, sans-serif;
  font-size: var(--step-2);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px #71717a;
  line-height: 1;
}

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-s);
  font-weight: 600;
}

.lead {
  font-size: var(--step-1);
  color: var(--text-dim);
  max-width: 46ch;
}

.dim {
  color: var(--text-dim);
}

.accent {
  color: var(--accent);
}

.small {
  font-size: var(--step--1);
  color: var(--text-dim);
}

/* Header ------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding-block: 0.75rem;
}

.brand {
  font-family: Unbounded, sans-serif;
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.topbar .cta {
  padding: 0.6rem 1.1rem;
  font-size: var(--step--1);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  padding-block: clamp(2rem, 0.8rem + 3.5vw, 3.5rem) var(--space-xl);
}

.hero__grid {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
  margin-top: var(--space-m);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.hero__facts > div {
  flex: 1 1 8rem;
}

.fact__value {
  font-family: Unbounded, sans-serif;
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.fact__label {
  font-size: var(--step--1);
  color: var(--text-dim);
  margin: 0;
  max-width: 22ch;
}

/* Video ------------------------------------------------------------------- */

.player {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow: 0 30px 80px -40px rgba(201, 254, 110, 0.35);
}

.player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-soft);
}

.player__note {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--text-dim);
  margin: 0;
  max-width: none;
}

/* Buttons ----------------------------------------------------------------- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: Unbounded, sans-serif;
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(201, 254, 110, 0.7);
}

.cta:active {
  transform: translateY(0);
}

.cta--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.cta--ghost:hover {
  border-color: var(--accent);
  box-shadow: none;
}

.cta--wide {
  width: 100%;
}

@media (min-width: 640px) {
  .cta--wide {
    width: auto;
  }
}

/* Cards ------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--space-s);
}

.card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-m);
}

.card__num {
  font-family: Unbounded, sans-serif;
  font-size: var(--step-1);
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-xs);
}

.card p {
  margin: 0;
  color: var(--text-dim);
}

.card h3 {
  margin-bottom: 0.4rem;
}

/* Program ----------------------------------------------------------------- */

.module {
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-s);
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: var(--space-s);
  align-items: start;
}

.module:first-of-type {
  border-top: 1px solid var(--line);
}

.module__num {
  font-family: Unbounded, sans-serif;
  font-size: var(--step-1);
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1.2;
}

.module h3 {
  font-size: var(--step-0);
  font-family: Onest, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
}

.module p {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--step--1);
}

.module--flag h3::after {
  content: "важливо";
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-family: Onest, sans-serif;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* Two-column list --------------------------------------------------------- */

.split {
  display: grid;
  gap: var(--space-m);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.ticks li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-dim);
}

.ticks li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.ticks--minus li::before {
  content: "–";
  color: var(--text-dim);
}

/* Offer ------------------------------------------------------------------- */

.offer {
  background: var(--ink-soft);
}

.offer__card {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-m);
  background: linear-gradient(180deg, rgba(201, 254, 110, 0.06), transparent 60%);
}

.price {
  display: flex;
  align-items: baseline;
  gap: var(--space-s);
  flex-wrap: wrap;
  margin-bottom: var(--space-s);
}

.price__now {
  font-family: Unbounded, sans-serif;
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.price__was {
  font-size: var(--step-1);
  color: var(--text-dim);
  text-decoration: line-through;
}

.price__note {
  font-size: var(--step--1);
  color: var(--text-dim);
  margin: 0;
}

/* FAQ --------------------------------------------------------------------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-s);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: Unbounded, sans-serif;
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--text-dim);
  margin: var(--space-xs) 0 0;
}

/* Email fallback ---------------------------------------------------------- */

.fallback {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-m);
  background: var(--ink-card);
}

.field {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.field input[type="email"] {
  flex: 1 1 16rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
  font: inherit;
  font-size: var(--step-0);
}

.field input::placeholder {
  color: #6b6b73;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--step--1);
  color: var(--text-dim);
}

.consent input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
  width: 1.05rem;
  height: 1.05rem;
}

/* track.js overwrites the result element's className with these exact utilities,
   so they have to exist here - see site/js/track.js. */
.text-sm {
  font-size: var(--step--1);
}

.mt-4 {
  margin-top: var(--space-s);
}

.text-red-600 {
  color: var(--danger);
}

.text-green-700 {
  color: var(--ok);
}

/* Checkout dialog --------------------------------------------------------- */

.sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--ink-card);
  color: var(--text);
  width: min(100% - 2rem, 30rem);
  max-height: 90dvh;
}

.sheet::backdrop {
  background: rgba(4, 4, 5, 0.72);
  backdrop-filter: blur(3px);
}

.sheet__body {
  padding: var(--space-m);
}

.sheet h2 {
  font-size: var(--step-2);
}

.sheet__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--text-dim);
}

.sheet__row strong {
  color: var(--text);
  font-weight: 600;
}

.sheet__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-s);
  margin-block: var(--space-s);
}

.sheet__total b {
  font-family: Unbounded, sans-serif;
  font-size: var(--step-2);
  color: var(--accent);
}

.sheet__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.sheet__step[hidden] {
  display: none;
}

/* Footer ------------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-m);
  font-size: var(--step--1);
  color: var(--text-dim);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  flex-wrap: wrap;
}

.footer a {
  color: var(--text-dim);
}

/* Legal pages ------------------------------------------------------------- */

.legal {
  max-width: 46rem;
}

.legal h2 {
  font-size: var(--step-1);
  margin-top: var(--space-l);
}

.legal code {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-size: 0.9em;
}

.legal .ticks {
  margin-bottom: var(--space-s);
}

/* Reveal on scroll -------------------------------------------------------- */

/* Hidden only once the inline snippet in <head> confirms scripting is on. Without
   that guard a failed script would leave half the page invisible forever. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-in,
.reveal-fallback .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cta:hover {
    transform: none;
  }
}

/* Breakpoints ------------------------------------------------------------- */

@media (min-width: 720px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-l);
  }

  .module {
    grid-template-columns: 4.5rem 1fr;
    gap: var(--space-m);
  }
}

@media (min-width: 1000px) {
  /* The headline spans the full width: Ukrainian words are long, and squeezing
     them into half a screen turned it into six stacked lines. Below it the pitch
     sits beside the video, so the call to action still lands above the fold.
     On a phone the natural order applies - headline, pitch, video, facts. */
  .hero__grid {
    grid-template-columns: 1fr 1.15fr;
    grid-template-areas:
      "title title"
      "copy player"
      "facts facts";
    gap: var(--space-m) var(--space-l);
    align-items: start;
  }

  .hero__title {
    grid-area: title;
  }

  .hero__copy {
    grid-area: copy;
    align-self: center;
  }

  .hero__grid .player {
    grid-area: player;
  }

  .hero__facts {
    grid-area: facts;
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .offer__card {
    padding: var(--space-l);
  }
}
