/* =============================================================================
 * VELΘ landing styles
 * Values mirror the app's design tokens (frontend/src/styles/variables.css):
 * primary #627a9c, text/primary-dark #4c6589, teal #76dde6, peach #fbc088,
 * pink #f795a2, radius md 15px / pill 999px, glow 0 0 20.9px 7px #fff,
 * glass surfaces with white rims, Marmelad type. Flat by design: no drop
 * shadows except the app's glow + soft glass lift.
 * ========================================================================== */

:root {
  /* Colors (from --velo-*) */
  --primary: #627a9c;
  --primary-dark: #4c6589;
  --text: #4c6589;
  /* 0.9 alpha is the minimum clean value clearing WCAG AA 4.5:1 on white
     (measures 4.74:1) -- the same math the app's tokens.rs hit in FE-79. */
  --text-secondary: rgba(76, 101, 137, 0.9);
  --text-muted: rgba(76, 101, 137, 0.9);
  --border: #abbfda; /* --velo-blue-200 */
  --teal: #76dde6;
  --peach: #fbc088;
  --pink: #f795a2;
  --white: #ffffff;
  --ink: #334d6e; /* --velo-tg-header, dark section/footer */
  --glass-blue-15: rgba(98, 122, 156, 0.15);

  /* Glass whites (from the --velo-glass-white-* ramp) */
  --glass-05: rgba(255, 255, 255, 0.05);
  --glass-35: rgba(255, 255, 255, 0.35);
  --glass-55: rgba(255, 255, 255, 0.55);
  --glass-75: rgba(255, 255, 255, 0.75);

  /* Effects */
  --glow: 0 0 20.9px 7px #ffffff;
  --glow-sm: 0 0 13.17px 8.82px #ffffff;
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.08);

  /* Shape */
  --radius: 15px;
  --radius-lg: 30px;
  --pill: 999px;

  /* Motion (from the --velo-ease/dur scale) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-breath: cubic-bezier(0.37, 0, 0.63, 1);
  --dur-fast: 180ms;
  --dur-base: 260ms;
  --dur-page: 360ms;

  --content-w: 1120px;
  --font: 'Marmelad', 'Noto Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* The app's photo backdrop, dissolved under a white veil so long scrolling
   stays calm (the Mini App keeps this photo at full strength). */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('assets/background.png') center / cover no-repeat;
  opacity: 0.5;
}
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.55) 40%,
    rgba(255, 255, 255, 0.72) 100%
  );
}

/* Fine paper grain over the backdrop -- warmth for the wellness aesthetic
   (nom-kb / taste: flat color + texture beats glossy gradients). Static SVG
   noise, pointer-transparent, hidden from AT. */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: 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='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ui-skills: balance heading line breaks; keep paragraphs even and pretty */
.hero__title,
.section__title {
  text-wrap: balance;
}

.hero__lead,
.section__lead,
.card__text,
.pain__text,
.step__text,
.idea__caption {
  text-wrap: pretty;
}

/* Focus rings on every interactive element (ui-skills) */
.nav__link:focus-visible,
.lang:focus-visible,
.footer__nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav__link:focus-visible,
.lang:focus-visible {
  border-radius: var(--pill);
}

::selection {
  background: var(--glass-blue-15);
  color: var(--primary-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------------------------------------------------------------- header */
.header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.header__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--content-w), 100%);
  padding: 10px 12px 10px 20px;
  border-radius: var(--pill);
  background: var(--glass-55);
  border: 1px solid var(--glass-75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
  transition: box-shadow var(--dur-base) var(--ease-out);
}

.header--scrolled .header__inner {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 24px rgba(51, 77, 110, 0.14);
}

.header__word {
  height: 26px;
  width: auto;
}

/* OmHealth has no logo yet: the name set in the brand font (owner brief).
   Placed as a text wordmark in the header and the footer. */
.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-word {
  font-family: var(--font);
  font-size: 22px;
  letter-spacing: 0.4px;
  color: var(--primary-dark);
  white-space: nowrap;
}

.brand-mark {
  height: 32px;
  width: auto;
}

.footer__mark {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: 14px;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.nav__link:hover {
  background: var(--glass-blue-15);
  color: var(--primary-dark);
}

/* Language switcher (RU <-> EN pages) */
.lang {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--glass-75);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.lang:hover {
  background: var(--glass-blue-15);
  color: var(--primary-dark);
}

/* Push nav links to the left of the switcher; without a switcher the nav
   keeps its own margin-left: auto. */
.nav + .lang {
  margin-left: 0;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: var(--pill);
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--glass-35);
  border: 1px solid var(--glass-75);
  color: var(--primary-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: var(--glass-55);
  transform: translateY(-1px);
}

.btn--light {
  background: var(--white);
  color: var(--primary-dark);
}

.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Arrow micro-interaction on CTA buttons (quiet feedback, ui-skills) */
.btn__arrow {
  margin-left: 10px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Editorial section kicker: number + hairline rule (nom-kb taste:
   sharp typography + flat color, no icon tiles) */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.kicker::after {
  content: '';
  width: 36px;
  height: 1px;
  background: rgba(98, 122, 156, 0.45);
}

.section--dark .kicker {
  color: rgba(255, 255, 255, 0.75);
}

.section--dark .kicker::after {
  background: rgba(255, 255, 255, 0.35);
}

/* Manifesto pull-quote -- the page's one "dealt moment" (taste-skill) */
.quote {
  max-width: 720px;
  margin-top: 20px;
  padding-left: 26px;
  border-left: 3px solid var(--teal);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.2px;
  color: var(--primary-dark);
  text-wrap: balance;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 168px 24px 96px;
  overflow: clip;
}

.hero__mandala {
  position: absolute;
  top: -180px;
  right: -220px;
  width: 760px;
  height: auto;
  opacity: 0.16;
  pointer-events: none;
  animation: breath 14s var(--ease-breath) infinite alternate;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  max-width: var(--content-w);
  margin: 0 auto;
}

.chip {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--pill);
  background: var(--glass-blue-15);
  border: 1px solid rgba(171, 191, 218, 0.35);
  color: var(--primary-dark);
  font-size: 14px;
  letter-spacing: 0.4px;
}

.chip--onDark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
}

.hero__copy .chip {
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.4px;
  color: var(--primary-dark);
}

.hero__lead {
  margin-top: 24px;
  max-width: 520px;
  font-size: 18px;
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Phone mockups (screens exported at 2x from Figma: 402×874) */
.phone {
  width: 296px;
  padding: 10px;
  border-radius: 48px;
  background: var(--white);
  border: 1px solid var(--glass-75);
  box-shadow: var(--glow);
}

/* ---------------------------------------------------------------- app screens
 * HTML mock-ups of the mini app screens (replacing the Russian PNG exports).
 * Drawn at the app's real 402×874 with the app's own tokens, then scaled into
 * the phone frame via --k (276/402 in the hero, 232/402 in the screens grid).
 * The whole screen is decorative: role="img" + one aria-label outside. */
.appscale {
  width: 100%;
  aspect-ratio: 402 / 874;
  border-radius: 39px;
  overflow: hidden;
  position: relative;
}

.appscreen {
  width: 402px;
  height: 874px;
  transform: scale(var(--k, 0.6866));
  transform-origin: 0 0;
  position: relative;
  font-family: var(--font);
  color: #4c6589;
  background: #e8eef5;
  /* The screens grid centers its figcaptions; the mock-up UI stays left-aligned
     like the real app regardless of the figure's text-align. */
  text-align: left;
}

.appscreen__bg {
  position: absolute;
  inset: 0;
  background: url('assets/background.png') center / cover no-repeat;
}

.appscreen__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.28) 100%
  );
}

.appscreen__content {
  position: relative;
  height: 100%;
  padding: 20px 24px 100px;
  display: flex;
  flex-direction: column;
}

/* Header: title Marmelad 18 primary; bell = 36px primary circle, white 17px
   icon, pink-300 presence dot 10px with white ring (exact Figma tree) */
.asc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.asc-head--sub {
  justify-content: flex-start;
  gap: 14px;
}

.asc-head__title {
  font-size: 18px;
  color: #627a9c;
}

.asc-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.asc-back img {
  width: 18px;
  transform: rotate(180deg);
}

.asc-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #627a9c;
}

.asc-bell img {
  width: 17px;
  filter: brightness(0) invert(1);
}

.asc-bell__dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f795a2;
  border: 1px solid #ffffff;
}

/* Section labels are Inter SemiBold 18 in the app -- not Marmelad.
   Vertical rhythm measured off the Figma frame: ~30px of air before a
   section label, ~20px after, content running down to y≈726 above the tab
   bar (no dead band at the bottom). */
.asc-label {
  margin: 28px 0 20px;
  font-family: 'Inter', var(--font);
  font-weight: 600;
  font-size: 18px;
  color: #4c6589;
}

.appscreen__content > .asc-label:first-of-type {
  margin-top: 14px;
}

/* Practice card: vertical stack, radius 15, pad 13/15, 8px gaps (Figma) */
.asc-card {
  position: relative;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid #ffffff;
  padding: 13px 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.asc-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 51px;
}

/* IconYoga is 46px and carries its own 44px ring -- no extra circle bg */
.asc-card__icon {
  width: 46px;
  height: 46px;
  flex: none;
}

.asc-card__icon img {
  width: 46px;
}

.asc-card__title {
  font-size: 18px;
}

.asc-card__master {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  font-size: 14px;
  color: rgba(76, 101, 137, 0.7);
}

.asc-ava {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(98, 122, 156, 0.15);
  color: #627a9c;
  font-size: 8px;
}

/* Date row: fixed 58px date column (like the app), then dot, clock, minutes,
   and the hairline track filling the rest */
.asc-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 17px;
  margin-top: 8px;
  font-size: 14px;
}

.asc-card__date {
  width: 58px;
  flex: none;
  text-align: center;
  color: rgba(76, 101, 137, 0.7);
}

.asc-dot {
  color: rgba(76, 101, 137, 0.5);
}

.asc-clock {
  width: 14px;
  opacity: 0.55;
}

.asc-min {
  color: rgba(76, 101, 137, 0.5);
}

.asc-track {
  flex: 1;
  height: 1px;
  background: rgba(98, 122, 156, 0.18);
}

/* Status badge: blue-100 fill, radius 5, pad 11/4, primary text.
   Fixed: kept inside the card padding (the Figma original overhangs 1px). */
.asc-chip {
  position: absolute;
  right: 15px;
  top: 66px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 5px;
  background: #e2f0fd;
  font-size: 14px;
  color: #627a9c;
}

.asc-chip img {
  width: 12px;
}

/* Action pills under a card: the app stacks card+pills with an 8px gap */
.asc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
}

.asc-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  border-radius: 999px;
  font-size: 16px;
}

.asc-pill img {
  width: 16px;
}

.asc-pill--ghost {
  background: rgba(98, 122, 156, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.asc-pill--solid {
  background: #627a9c;
  color: #ffffff;
}

.asc-pill--solid img {
  filter: brightness(0) invert(1);
}

/* Quick command: glass-peach-40 + peach-500 border 1.5 + blur 14 (Figma) */
.asc-quick {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 0 16px;
  height: 50px;
  border-radius: 999px;
  background: rgba(251, 192, 136, 0.4);
  border: 1.5px solid #d4863c;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #d4863c;
  font-size: 18px;
}

.asc-quick > img {
  width: 22px;
}

.asc-quick .asc-spacer {
  flex: 1;
}

.asc-chevron {
  width: 9px;
  height: 14px;
  flex: none;
}

/* Progress stat cards */
.asc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.asc-stat {
  padding: 14px 12px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid #ffffff;
  text-align: center;
}

.asc-stat__num {
  font-size: 32px;
}

.asc-stat__label {
  font-size: 12px;
  color: rgba(76, 101, 137, 0.5);
}

/* Segments: three 113x37 pills, count badge inside (Figma VSegment) */
.asc-segments {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.asc-segments + .asc-list {
  margin-top: 25px;
}

.asc-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 113px;
  height: 37px;
  border-radius: 100px;
  background: rgba(98, 122, 156, 0.15);
  font-size: 16px;
  color: rgba(76, 101, 137, 0.5);
  white-space: nowrap;
}

.asc-seg--on {
  background: #627a9c;
  color: #ffffff;
}

.asc-seg__count {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.asc-list {
  display: grid;
  gap: 8px;
}

/* Floating tab bar: gradient glass, 8px padding, wide 96px active pill */
.asc-tabbar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 33px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 8px;
  border-radius: 999px;
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.05) 45%,
      rgba(255, 255, 255, 0.18) 100%
    ),
    rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.asc-tab {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}

.asc-tab img {
  width: 27px;
}

.asc-tab--on {
  width: 96px;
  height: 48px;
  border-radius: 999px;
  background: rgba(98, 122, 156, 0.6);
}

.asc-tab--on img {
  filter: brightness(0) invert(1);
}

.phone--hero {
  margin-inline: auto;
  transform: rotate(-2deg);
}

/* Scale factors: hero inner 276px, screens-grid inner 232px (of 402) */
.phone--hero .appscreen {
  --k: 0.6866;
}

.screens__item .appscreen {
  --k: 0.5771;
}

.hero__device {
  position: relative;
}

.floatcard {
  position: absolute;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--glass-75);
  box-shadow: var(--glass-shadow);
  font-size: 14px;
  letter-spacing: 0.28px;
  color: var(--primary-dark);
  animation: float 7s var(--ease-breath) infinite alternate;
}

.floatcard--a {
  left: 4%;
  top: 22%;
}

.floatcard--b {
  right: 2%;
  bottom: 18%;
  animation-delay: -3.5s;
}

@keyframes float {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(8px);
  }
}

@keyframes breath {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1.04) rotate(4deg);
  }
}

/* ---------------------------------------------------------------- sections */
.section {
  padding: 88px 24px;
}

.section__inner {
  max-width: var(--content-w);
  margin: 0 auto;
}

.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section__title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--primary-dark);
}

.section__lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------- idea */
.idea {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--glass-35);
  border: 1px solid var(--glass-75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
}

.idea__points {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  list-style: none;
}

.idea__points li {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--glass-75);
  font-size: 16px;
  color: var(--text-secondary);
}

.idea__points strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 400;
  letter-spacing: 0.36px;
  color: var(--primary-dark);
}

.idea__label {
  font-size: 20px;
  letter-spacing: 0.36px;
  color: var(--primary-dark);
}

/* The three hybrid categories (pitch slide «О проекте») */
.hybrid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  list-style: none;
}

.hybrid li {
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--glass-75);
  font-size: 15px;
  color: var(--text-secondary);
}

.hybrid strong {
  display: block;
  font-weight: 400;
  letter-spacing: 0.36px;
  color: var(--primary-dark);
}

.idea__note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.idea__art img {
  width: min(100%, 340px);
  margin: 0 auto;
}

.idea__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.28px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- audience */
.section--tight {
  padding-top: 48px;
}

.pains {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.pain {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--glass-75);
  box-shadow: var(--glass-shadow);
}

.pain__title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.36px;
  color: var(--primary-dark);
}

.pain__text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------- features */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 30px 28px 34px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--glass-75);
  box-shadow: var(--glass-shadow);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(171, 191, 218, 0.9);
}

.card__illo {
  width: 96px;
  height: auto;
  margin-bottom: 20px;
  transition: transform var(--dur-base) var(--ease-out);
}

.card:hover .card__illo {
  transform: translateY(-2px) scale(1.04) rotate(-1.5deg);
}

.card__title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.36px;
  color: var(--primary-dark);
}

.card__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------- screens */
.section--screens {
  padding-top: 48px;
}

.screens {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 88px);
}

.screens__item {
  text-align: center;
}

.screens__item .phone {
  width: 252px;
  margin: 0 auto;
}

.screens__item figcaption {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 0.28px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- dark / white label */
.section--dark {
  position: relative;
  background: linear-gradient(160deg, #4c6589 0%, var(--ink) 100%);
  color: rgba(255, 255, 255, 0.85);
  overflow: clip;
}

.dark__mandala {
  position: absolute;
  top: -140px;
  right: -160px;
  width: 620px;
  height: auto;
  opacity: 0.1;
  pointer-events: none;
  animation: breath 18s var(--ease-breath) infinite alternate;
}

.whitelabel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
}

.section__title--onDark {
  color: var(--white);
}

.section__lead--onDark {
  color: rgba(255, 255, 255, 0.85);
}

.wl-list {
  display: grid;
  gap: 14px;
  margin: 32px 0 40px;
  list-style: none;
}

.wl-list li {
  position: relative;
  padding: 16px 22px 16px 52px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 16px;
}

.wl-list li::before {
  content: '✓';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--ink);
  font-size: 13px;
}

.whitelabel__brand {
  display: grid;
  place-items: center;
}

.brandcard {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(100%, 340px);
  padding: 56px 36px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  text-align: center;
}

.brandcard__logo {
  height: 132px;
  width: auto;
  opacity: 0.95;
  filter: grayscale(1) brightness(2.2);
}

.brandcard__hint {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------------------------- institute */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 28px 34px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--glass-75);
  box-shadow: var(--glass-shadow);
}

.step__num {
  display: inline-grid;
  place-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: var(--glass-blue-15);
  color: var(--primary-dark);
  font-size: 13px;
  letter-spacing: 0.64px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}

.step__title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.36px;
  color: var(--primary-dark);
}

/* Roadmap stage feature list (pitch slide «Дорожная карта») */
.stage {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.stage li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.stage li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.step__text {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------- CTA */
.section--cta {
  padding-bottom: 120px;
}

.ctacard {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--glass-55);
  border: 1px solid var(--glass-75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
  text-align: center;
}

.ctacard__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* ---------------------------------------------------------------- footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 24px;
}

.footer__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.footer__omword {
  font-family: var(--font);
  font-size: 36px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.95);
}

.footer__tag {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 14px;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------------------------------------------------------------- reveal */
/* Hidden state applies only when JS is available (html.js added inline in
   <head>), so a no-JS visitor still sees the whole page. */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-page) var(--ease-out),
    transform var(--dur-page) var(--ease-out);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- anchors */
#idea,
#audience,
#features,
#screens,
#whitelabel,
#roadmap,
#contact {
  scroll-margin-top: 96px;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .hero__inner,
  .idea,
  .whitelabel {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .cards,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pains {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .whitelabel__copy {
    text-align: center;
  }

  .wl-list {
    text-align: left;
  }
}

/* Nav crowds the header on tablet portrait; below 900px only logo + lang + CTA */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  /* With the nav hidden the switcher anchors the right side of the header */
  .lang,
  .nav + .lang {
    margin-left: auto;
  }
}

@media (max-width: 720px) {

  .hero {
    padding-top: 132px;
  }

  .br-wide {
    display: none;
  }

  .hero__mandala {
    width: 520px;
    top: -160px;
    right: -180px;
  }

  .floatcard {
    display: none;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .pains {
    grid-template-columns: 1fr;
  }

  .screens {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 64px 16px;
  }
}

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

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

  .floatcard,
  .hero__mandala,
  .dark__mandala {
    animation: none;
  }

  .btn,
  .card,
  .nav__link {
    transition: none;
  }
}
