/*
 * LANDING_V3
 * Светлая редакционная система + одна тёмная продуктовая сцена.
 * Подключается после legacy styles.css; старый слой сохранён для отката.
 */

/*
 * Layout contract (media queries stay numeric; tokens document the scale):
 * --bp-sm 560 | --bp-md 720 | --bp-lg 880 | --bp-xl 1050
 * Acceptance widths: 320 / 360 / 390 / 430 / 768 / 1024 / 1440 + landscape 844×390
 * → document.documentElement.scrollWidth === clientWidth
 */
:root,
html[data-theme="light"],
html[data-theme="dark"] {
  color-scheme: light !important;
  --bp-sm: 560px;
  --bp-md: 720px;
  --bp-lg: 880px;
  --bp-xl: 1050px;
  --header-h: 72px;
  --vvh: 1vh;
  --overlay-bottom: 0px;
  --v3-bg: #f5f6f2;
  --v3-paper: #ffffff;
  --v3-ink: #151921;
  --v3-muted: #626a78;
  --v3-line: #dfe3dd;
  --v3-soft: #ebeee8;
  --v3-green: #08a574;
  --v3-green-dark: #067a57;
  --v3-green-soft: #d7f6e9;
  --v3-orange: #ff9f0a;
  --v3-yellow: #ffd13b;
  --v3-blue: #2477f3;
  --v3-violet: #7157e8;
  --v3-red: #e8445a;
  --v3-night: #0a0c10;
  --v3-night-card: #15181e;
  --v3-wrap: min(1220px, calc(100% - 40px));
  --v3-radius: 24px;
  --bg: var(--v3-bg);
  --bg-elevated: var(--v3-soft);
  --surface: var(--v3-paper);
  --surface-strong: #e5e9e3;
  --border: var(--v3-line);
  --text: var(--v3-ink);
  --muted: var(--v3-muted);
  --accent: var(--v3-green);
  --accent-ink: var(--v3-green-dark);
  --panel: var(--v3-paper);
  --panel-border: var(--v3-line);
  --panel-muted: var(--v3-muted);
  --input-bg: #f8faf7;
  --input-border: #d9ddd7;
  --btn-primary-bg: var(--v3-green);
  --btn-primary-fg: #ffffff;
  --btn-primary-hover: var(--v3-green-dark);
  --wrap: var(--v3-wrap);
}

html {
  scroll-padding-top: calc(var(--header-h) + 10px);
  /* Do NOT set overflow-x on html — it breaks position:sticky in iOS/Telegram WebViews */
}

body {
  color: var(--v3-ink) !important;
  background: var(--v3-bg) !important;
  font-family: "Manrope", system-ui, sans-serif !important;
  /*
   * No overflow-x on body either: in WebKit any non-visible overflow on body
   * breaks position:sticky for the header (Telegram/iOS symptom: tools float).
   * Horizontal spill is clipped on sections / hero / stage instead.
   */
  overflow-x: visible;
}

body::before {
  display: none !important;
}

.wrap {
  width: var(--v3-wrap) !important;
  max-width: none !important;
}

.section {
  padding: clamp(88px, 9vw, 136px) 0 !important;
  background: transparent !important;
}

.header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  height: auto;
  background: rgba(245, 246, 242, 0.86) !important;
  border-bottom: 1px solid rgba(21, 25, 33, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.25) !important;
}

.header__inner {
  min-height: var(--header-h);
  height: auto;
  box-sizing: border-box;
  align-items: center;
}

.brand__name,
.header .btn--ghost,
.header .btn--header-link {
  color: var(--v3-ink) !important;
}

.brand__name {
  font-family: "Sora", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}

.header .btn--primary,
.header .btn--header-download,
.header .btn--header-mobile-apk {
  background: var(--v3-ink) !important;
  color: #fff !important;
  border: 1px solid var(--v3-ink) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.header .btn--primary:hover,
.header .btn--header-download:hover {
  background: var(--v3-green) !important;
  border-color: var(--v3-green) !important;
}

.header-contact-ic__disc {
  color: #fff !important;
  background: var(--v3-ink) !important;
  border-color: var(--v3-ink) !important;
}

.header-contact-ic__disc svg {
  color: #fff !important;
  stroke: #fff !important;
}

.btn {
  border-radius: 999px !important;
  min-height: 46px;
  padding-inline: 1.25rem;
  font-weight: 700 !important;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease !important;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary,
html[data-theme="dark"] .btn--primary {
  color: #fff !important;
  background: var(--v3-green) !important;
  border: 1px solid var(--v3-green) !important;
  box-shadow: none !important;
}

.btn--primary:hover,
html[data-theme="dark"] .btn--primary:hover {
  background: var(--v3-green-dark) !important;
  border-color: var(--v3-green-dark) !important;
}

.btn--secondary {
  color: var(--v3-ink) !important;
  background: transparent !important;
  border: 1px solid #b9bfba !important;
}

.btn--secondary:hover {
  background: #fff !important;
  border-color: var(--v3-ink) !important;
}

.btn--light {
  color: var(--v3-ink) !important;
  background: #fff !important;
  border: 1px solid #fff !important;
}

.btn--dark-outline {
  color: #fff !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

.v3-kicker {
  margin: 0 0 18px;
  color: var(--v3-green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.v3-section-head {
  margin-bottom: clamp(42px, 6vw, 76px);
}

.v3-section-head h2 {
  margin: 0;
  color: var(--v3-ink);
  font-family: "Sora", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.v3-section-head h2 span {
  color: #92998f;
}

.v3-section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.55fr);
  gap: 60px;
  align-items: end;
}

.v3-section-head--split > p {
  max-width: 440px;
  margin: 0 0 6px;
  color: var(--v3-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.v3-section-head--center {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 680ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 680ms cubic-bezier(0.2, 0.7, 0.2, 1) !important;
  transition-delay: var(--reveal-delay, 0ms) !important;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.v3-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  min-height: calc((100 * var(--vvh)) - var(--header-h));
  padding: clamp(76px, 9vw, 124px) 0 58px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), transparent 48%),
    var(--v3-bg) !important;
  overflow: hidden;
}

/* Legacy dark bottom blend from styles.css — remove harsh divider on light landing */
.hero.v3-hero::after {
  display: none !important;
  content: none !important;
}

.v3-hero__wash {
  position: absolute;
  z-index: 0;
  width: min(620px, 90vw);
  height: min(620px, 90vw);
  top: -230px;
  right: max(-180px, -20vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 165, 116, 0.2), rgba(8, 165, 116, 0) 68%);
  pointer-events: none;
}

.v3-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}

.v3-hero__copy h1 {
  max-width: 690px;
  margin: 0;
  color: var(--v3-ink) !important;
  font-family: "Sora", sans-serif !important;
  font-size: clamp(3.4rem, 6.5vw, 6.7rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.068em !important;
  line-height: 0.94 !important;
}

.v3-hero__copy h1 span {
  display: block;
  color: #8a9188;
}

.v3-hero__lead {
  max-width: 620px;
  margin: 32px 0 0;
  color: #4f5663 !important;
  font-size: clamp(1.08rem, 1.6vw, 1.32rem) !important;
  line-height: 1.55 !important;
}

.v3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.v3-text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  padding: 8px 2px;
  color: var(--v3-ink);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.v3-text-link span {
  color: var(--v3-green);
}

.v3-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.v3-proof span {
  padding: 7px 12px;
  color: #59616e;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.v3-hero__visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.v3-browser {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9ddd8;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(34, 42, 35, 0.14);
}

.v3-browser__bar {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  color: #7b838e;
  background: #f5f7f5;
  border-bottom: 1px solid #e4e7e3;
  font-size: 0.68rem;
}

.v3-browser__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cdd2cd;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.v3-browser__bar i:nth-child(1) {
  background: #ff5f57;
}

.v3-browser__bar i:nth-child(2) {
  background: #febc2e;
}

.v3-browser__bar i:nth-child(3) {
  background: #28c840;
}

.v3-browser__bar span {
  margin-left: 8px;
}

.v3-browser img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.v3-browser--hero {
  position: absolute;
  width: 100%;
  top: 12px;
  left: 0;
  transform: none;
  z-index: 2;
}

.v3-phone {
  position: relative;
  overflow: visible;
  background: #0b0b0d;
  border: 0;
  border-radius: 36px;
  box-shadow:
    0 28px 70px rgba(15, 20, 16, 0.28),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.v3-phone--iphone17 {
  display: flex;
  flex-direction: column;
  padding: 5px;
  background:
    linear-gradient(160deg, #2a2c31 0%, #0d0e11 42%, #1a1c21 100%);
}

.v3-phone__chrome {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.v3-phone__statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  padding: 12px 18px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #111;
  z-index: 5;
}

.v3-phone__time {
  font-family: "SF Pro Text", "Sora", "Manrope", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
  min-width: 34px;
}

.v3-phone__sys {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 54px;
  justify-content: flex-end;
}

.v3-phone__sys-ic {
  display: block;
  width: 14px;
  height: 10px;
  flex-shrink: 0;
}

.v3-phone__sys-ic--bat {
  width: 20px;
  height: 10px;
}

.v3-phone__island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 72px;
  height: 20px;
  border-radius: 999px;
  background: #050506;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  transform: translateX(-50%);
  z-index: 6;
}

.v3-phone__island::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4660, #10131a 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.v3-phone__side {
  display: none;
}

.v3-phone__side--silent,
.v3-phone__side--vol-up,
.v3-phone__side--vol-down,
.v3-phone__side--power {
  display: none;
}

.v3-phone__screen {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  height: 100%;
  background: #000;
  border-radius: 31px;
}

.v3-phone__screen img,
.v3-phone img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
  background: #000;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  transform: none;
  transform-origin: top center;
}

.v3-phone--bento .v3-phone__screen {
  border-radius: 27px;
}

.v3-phone--bento.v3-phone--iphone17 {
  border-radius: 32px;
}

.v3-phone--hero {
  position: absolute;
  z-index: 3;
  width: min(210px, 42%);
  height: auto;
  aspect-ratio: 210 / 430;
  right: 0;
  bottom: -8px;
  transform: none;
  /* Pivot near bottom-left of the phone so a positive rotate swings the top to the right */
  transform-origin: 20% 92%;
  overflow: hidden;
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.v3-phone--hero .v3-phone__screen {
  overflow: hidden;
}

/* Same flush fit as bento phone screens */
.v3-phone--hero .v3-phone__screen img,
.v3-phone--hero img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: none;
  transform-origin: top center;
}

.v3-fact {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  min-width: 184px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--v3-line);
  border-radius: 15px;
  box-shadow: 0 16px 38px rgba(31, 39, 32, 0.12);
  backdrop-filter: blur(12px);
}

.v3-fact strong {
  font-size: 0.87rem;
}

.v3-fact small {
  color: var(--v3-muted);
  font-size: 0.72rem;
}

.v3-fact__dot {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: var(--v3-green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(8,165,116,0.12);
}

.v3-fact--top {
  top: 6px;
  right: 8px;
}

.v3-fact--bottom {
  left: 0;
  bottom: 40px;
}

.v3-scroll-cue {
  position: absolute;
  z-index: 4;
  left: max(20px, calc((100% - 1220px) / 2));
  bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--v3-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.v3-scroll-cue i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--v3-line);
  border-radius: 50%;
  font-style: normal;
}

/* Contrast */
.v3-contrast {
  background: #fff !important;
}

.v3-contrast__board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--v3-line);
  border-radius: 30px;
  overflow: hidden;
}

.v3-contrast__side {
  min-height: 520px;
  padding: clamp(28px, 4vw, 52px);
}

.v3-contrast__side--before {
  background:
    linear-gradient(rgba(21,25,33,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,25,33,0.035) 1px, transparent 1px),
    #f0f1ee;
  background-size: 28px 28px;
}

.v3-contrast__side--after {
  background:
    radial-gradient(ellipse 90% 70% at 80% 0%, rgba(84, 180, 130, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 100%, rgba(110, 160, 220, 0.1), transparent 50%),
    linear-gradient(165deg, #f4faf6 0%, #f8fbf8 45%, #f3f7f4 100%);
}

.v3-contrast__caption {
  display: flex;
  flex-direction: column;
  margin-bottom: 36px;
}

.v3-contrast__caption span {
  color: var(--v3-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.v3-contrast__caption strong {
  margin-top: 5px;
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
}

.v3-contrast__side--after .v3-contrast__caption strong {
  color: #1a3d2c;
}

.v3-contrast__relief {
  margin: 10px 0 0;
  max-width: 28ch;
  color: #4d6b5c;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
}

.v3-chat-stack {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
}

.v3-chat-stack__static,
.v3-chat-stack__rain {
  position: absolute;
  inset: 0;
}

.v3-chat-stack__rain {
  display: none;
}

.v3-chat-stack.is-raining .v3-chat-stack__static {
  display: none;
}

.v3-chat-stack.is-raining .v3-chat-stack__rain {
  display: block;
}

.v3-chat-bubble {
  position: absolute;
  max-width: 310px;
  padding: 14px 18px;
  color: #3f4652;
  background: #fff;
  border: 1px solid #d9ddd8;
  border-radius: 18px 18px 18px 5px;
  box-shadow: 0 12px 28px rgba(35,42,36,0.08);
  font-size: 0.95rem;
  pointer-events: none;
}

.v3-chat-bubble--one { top: 10px; left: 0; transform: rotate(-2deg); }
.v3-chat-bubble--two { top: 88px; right: 0; transform: rotate(1.5deg); }
.v3-chat-bubble--three { top: 176px; left: 34px; transform: rotate(1deg); }
.v3-chat-bubble--four { top: 264px; right: 18px; transform: rotate(-1.5deg); }

.v3-chat-bubble--fall {
  top: 0;
  left: var(--chat-x, 8%);
  max-width: min(310px, 78%);
  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(0, -12%, 0) scale(0.96) rotate(var(--chat-rot, 0deg));
  animation: v3-chat-fall var(--chat-dur, 12.5s) linear var(--chat-delay, 0s) infinite;
  animation-play-state: paused;
}

.v3-chat-stack.is-raining.is-active .v3-chat-bubble--fall {
  animation-play-state: running;
}

@keyframes v3-chat-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -8%, 0) scale(0.96) rotate(var(--chat-rot, 0deg));
  }
  3% {
    opacity: 1;
    transform: translate3d(0, 4%, 0) scale(1) rotate(var(--chat-rot, 0deg));
  }
  90% {
    opacity: 1;
    transform: translate3d(0, 310px, 0) scale(1) rotate(var(--chat-rot, 0deg));
  }
  97% {
    opacity: 0.25;
    transform: translate3d(0, 340px, 0) scale(0.98) rotate(calc(var(--chat-rot, 0deg) + var(--chat-twist, 2deg)));
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 360px, 0) scale(0.97) rotate(calc(var(--chat-rot, 0deg) + var(--chat-twist, 2deg)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-chat-stack {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }

  .v3-chat-stack.is-raining .v3-chat-stack__static {
    display: block;
  }

  .v3-chat-stack.is-raining .v3-chat-stack__rain,
  .v3-chat-bubble--fall {
    display: none !important;
    animation: none !important;
  }
}

.v3-contrast__switch {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: var(--v3-ink);
  border: 6px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.v3-fact-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v3-fact-list li,
.v3-fact-list__step {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 720ms cubic-bezier(0.22, 0.7, 0.2, 1),
    transform 720ms cubic-bezier(0.22, 0.7, 0.2, 1);
  transition-delay: var(--step-delay, 0ms);
}

.v3-fact-list__step + .v3-fact-list__step {
  border-top: 1px solid rgba(180, 198, 186, 0.35);
}

.v3-contrast__side--after.is-visible .v3-fact-list__step {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.v3-fact-list i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.v3-fact-list__step--1 i {
  color: #1f7a4d;
  background: #e4f6ec;
  box-shadow: inset 0 0 0 1px rgba(31, 122, 77, 0.12);
}

.v3-fact-list__step--2 i {
  color: #1d6fd0;
  background: #e8f1fc;
  box-shadow: inset 0 0 0 1px rgba(29, 111, 208, 0.12);
}

.v3-fact-list__step--3 i {
  color: #c47a12;
  background: #fbf0dc;
  box-shadow: inset 0 0 0 1px rgba(196, 122, 18, 0.14);
}

.v3-fact-list__step--4 i {
  color: #6b5bd6;
  background: #efecfb;
  box-shadow: inset 0 0 0 1px rgba(107, 91, 214, 0.12);
}

.v3-fact-list span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.v3-fact-list strong {
  font-size: 0.92rem;
  color: #18241d;
  letter-spacing: -0.01em;
}

.v3-fact-list small {
  color: #617066;
  font-size: 0.74rem;
  line-height: 1.35;
}

.v3-fact-list em {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.v3-fact-list__step--1 em {
  color: #1f7a4d;
  background: #e4f6ec;
}

.v3-fact-list__step--2 em {
  color: #1d6fd0;
  background: #e8f1fc;
}

.v3-fact-list__step--3 em {
  color: #a86a10;
  background: #fbf0dc;
}

.v3-fact-list__step--4 em {
  color: #5b4cc4;
  background: #efecfb;
}

/* Product theatre */
.v3-theatre {
  position: relative;
  color: #fff;
  background: var(--v3-night) !important;
  overflow: visible;
}

.v3-theatre__grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.v3-section-head--dark {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.v3-section-head--dark .v3-kicker {
  color: #55e5ad;
}

.v3-section-head--dark h2 {
  color: #fff;
}

.v3-section-head--dark h2 span {
  color: #6c737d;
}

.v3-section-head--dark > p:last-child {
  max-width: 600px;
  margin: 24px 0 0;
  color: #a7adb6;
  font-size: 1.08rem;
}

.v3-stage {
  position: relative;
  z-index: 2;
  min-height: 680px;
  margin-top: 30px;
  /* Phone hangs past the right edge by design; page scroll clipped on html */
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

.v3-browser--stage {
  position: absolute;
  width: 72%;
  top: auto;
  bottom: 0;
  left: 10%;
  background: #111419;
  border-color: #2c3138;
  box-shadow: 0 45px 120px rgba(0,0,0,0.62);
  transform: none;
}

.v3-browser--stage .v3-browser__bar {
  color: #818894;
  background: #15191f;
  border-color: #2b3037;
}

.v3-phone--stage {
  position: absolute;
  z-index: 4;
  width: 232px;
  height: 476px;
  right: -42px;
  top: auto;
  bottom: 0;
  transform: none;
  overflow: hidden;
}

.v3-phone--stage .v3-phone__screen {
  overflow: hidden;
}

/* Same flush fit as bento phone screens */
.v3-phone--stage .v3-phone__screen img,
.v3-phone--stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: none;
  transform-origin: top center;
}

.v3-stage__callout {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 12px 15px;
  background: rgba(20,24,30,0.9);
  border: 1px solid #343a43;
  border-radius: 13px;
  backdrop-filter: blur(10px);
}

.v3-stage__callout span {
  color: #7fe5bd;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v3-stage__callout strong {
  margin-top: 3px;
  font-size: 0.8rem;
}

.v3-stage__callout--cabinet {
  left: 0;
  top: auto;
  bottom: 96px;
  max-width: 156px;
}

.v3-stage__callout--app {
  right: -8px;
  top: auto;
  bottom: calc(476px + 14px);
  max-width: 156px;
}

.v3-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 46px;
}

.v3-metric {
  --metric-accent: #08a574;
  --metric-glow: rgba(8, 165, 116, 0.28);
  --metric-bg: #e8f7f0;
  --metric-bg-hot: #dcf3e8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  padding: 24px 22px 26px;
  background: var(--metric-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--v3-radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.v3-metric--green {
  --metric-accent: #067a57;
  --metric-glow: rgba(85, 229, 173, 0.35);
  --metric-bg: #e8f7f0;
  --metric-bg-hot: #d8f3e6;
}

.v3-metric--amber {
  --metric-accent: #c47a00;
  --metric-glow: rgba(255, 176, 55, 0.4);
  --metric-bg: #fff3d8;
  --metric-bg-hot: #ffe9b8;
}

.v3-metric--blue {
  --metric-accent: #2477f3;
  --metric-glow: rgba(139, 174, 255, 0.4);
  --metric-bg: #eaf1ff;
  --metric-bg-hot: #dce8ff;
}

.v3-metric--violet {
  --metric-accent: #7157e8;
  --metric-glow: rgba(198, 168, 255, 0.4);
  --metric-bg: #f2eefe;
  --metric-bg-hot: #e8e0ff;
}

.v3-metric__icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  background: var(--metric-accent);
  border-radius: 14px;
}

.v3-metric strong {
  display: block;
  color: var(--metric-accent);
  font-family: "Sora", sans-serif;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
  transform-origin: left center;
}

.v3-metric strong.is-count-done {
  animation: v3-count-pulse 420ms ease;
}

@keyframes v3-count-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.v3-metric__label {
  display: block;
  margin-top: 14px;
  color: var(--v3-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.v3-metric__hint {
  display: block;
  margin-top: 8px;
  color: #5d6571;
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Bento */
.v3-killers {
  background: #fff !important;
}

.v3-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.v3-bento__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px 32px;
  align-items: center;
  min-height: 430px;
  min-width: 0;
  overflow: hidden;
  padding: 34px;
  background: #f3f5f1;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, filter 200ms ease;
}

.v3-bento__card--shift { grid-column: span 7; background: #e9f8f1; }
.v3-bento__card--checklists {
  grid-column: span 5;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 18px;
  background: #fff7df;
}
.v3-bento__card--checklists .v3-bento__media {
  min-height: 320px;
  max-height: none;
  justify-content: center;
  overflow: visible;
}
.v3-bento__card--checklists .v3-phone--bento {
  width: 200px;
  height: 410px;
  margin-bottom: 0;
}
.v3-bento__card--cabinet { grid-column: span 6; min-height: 385px; background: #eef3ff; }
.v3-bento__card--roles { grid-column: span 6; min-height: 385px; background: #f3efff; }
.v3-bento__card--mobile {
  grid-column: span 12;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 220px;
  background: var(--v3-ink);
  color: #fff;
}

.v3-bento__copy {
  position: relative;
  z-index: 3;
  max-width: none;
}

.v3-bento__media {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-width: 0;
  max-width: 100%;
  min-height: 320px;
  overflow: hidden;
  pointer-events: none;
}

.v3-bento__card--shift .v3-bento__media,
.v3-bento__card--checklists .v3-bento__media {
  align-items: center;
  min-height: 340px;
  max-height: none;
  overflow: visible;
}

.v3-bento__number {
  display: block;
  margin-bottom: 30px;
  color: var(--v3-muted);
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.v3-bento__copy h3 {
  margin: 0;
  color: inherit;
  font-family: "Sora", sans-serif !important;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.1;
}

.v3-bento__copy p {
  max-width: 410px;
  margin: 14px 0 0;
  color: #5f6875;
  line-height: 1.55;
}

.v3-bento__copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.v3-bento__copy li {
  padding: 7px 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(21,25,33,0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.v3-phone--bento {
  position: relative;
  width: 200px;
  height: 410px;
  margin-bottom: 0;
  transform: none;
  overflow: hidden;
}

/* Fit screenshot flush to phone screen — no aggressive zoom */
.v3-phone--bento .v3-phone__screen {
  overflow: hidden;
  border-radius: 27px;
}

.v3-phone--bento .v3-phone__screen img,
.v3-phone--bento img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: none;
  transform-origin: top center;
}

.v3-phone--flat {
  display: none;
}

.v3-browser--card {
  position: relative;
  width: 100%;
  max-width: min(420px, 100%);
  margin: 0;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(30,40,70,0.12);
}

.v3-bento__card--cabinet .v3-bento__copy,
.v3-bento__card--roles .v3-bento__copy {
  max-width: none;
}

.v3-bento__mobile-mark {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  background: #2a3038;
  border: 1px solid #3a424d;
  border-radius: 28px;
}

.v3-bento__mobile-mark img {
  width: 54px;
  height: 54px;
}

.v3-bento__card--mobile .v3-bento__number {
  margin-bottom: 12px;
  color: #7e8793;
}

.v3-bento__card--mobile .v3-bento__copy p {
  color: #abb2bb;
}

.v3-bento__card--mobile .v3-text-link {
  margin-top: 12px;
  color: #fff;
}

.v3-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.v3-platforms span {
  padding: 9px 13px;
  color: #d7dce2;
  border: 1px solid #424952;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
}

/* Audiences */
.v3-audiences {
  background: var(--v3-bg) !important;
}

.v3-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.v3-audience {
  position: relative;
  min-height: 350px;
  padding: 28px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, filter 200ms ease;
}

.v3-audience--retail { background: #e8f7f0; }
.v3-audience--pvz { background: #fff3d8; }
.v3-audience--factory { background: #eaf1ff; }
.v3-audience--food { background: #f2eefe; }

.v3-audience__index {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #79818c;
  font-size: 0.7rem;
  font-weight: 800;
}

.v3-audience__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-top: 42px;
  place-items: center;
  color: #fff;
  background: var(--v3-ink);
  border-radius: 20px;
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
}

.v3-audience h3 {
  margin: 34px 0 10px;
  font-family: "Sora", sans-serif !important;
  font-size: 1.4rem;
}

.v3-audience p {
  margin: 0;
  color: #5d6571;
  line-height: 1.55;
}

/* How */
.v3-how {
  background: #fff !important;
}

.v3-how .v3-section-head--split {
  align-items: start;
}

.v3-how .v3-section-head--split > .btn {
  align-self: center;
}

.v3-how__lead {
  margin: 14px 0 0 !important;
  max-width: 38rem;
  color: #4a5560 !important;
  font-size: 1.02rem !important;
  line-height: 1.55 !important;
}

.v3-how__lead strong {
  color: #1a3d2c;
  font-weight: 700;
}

.v3-how__badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: #4d6b5c;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.v3-how__badge span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: #1f7a4d;
  background: #e4f6ec;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.v3-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  counter-reset: none;
  list-style: none;
  border-top: 1px solid var(--v3-line);
}

.v3-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  min-height: 200px;
  padding: 32px 30px;
  border-right: 1px solid var(--v3-line);
}

.v3-steps li:last-child {
  border-right: 0;
}

.v3-steps li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--v3-ink);
  border-radius: 50%;
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.v3-steps strong {
  display: block;
  margin-top: 7px;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
}

.v3-steps p {
  margin: 10px 0 0;
  color: var(--v3-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* FAQ */
.v3-faq {
  background: var(--v3-bg) !important;
}

.v3-faq .v3-section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.v3-faq .v3-section-head > p:not(.v3-kicker) {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--v3-muted);
  line-height: 1.65;
}

.v3-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(20px, 3vw, 28px);
  align-items: stretch;
}

.v3-faq__panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  min-height: 100%;
  padding: 8px 10px;
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
  border-radius: calc(var(--v3-radius) + 4px);
  box-shadow: 0 12px 36px rgba(35, 42, 36, 0.06);
  overflow: hidden;
}

.v3-faq .faq-item {
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #e6eae3 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.v3-faq .faq-item:last-child {
  border-bottom: 0 !important;
}

.v3-faq .faq-item[open] {
  background: #f3faf6 !important;
  box-shadow: inset 0 0 0 1px rgba(8, 165, 116, 0.12);
}

.v3-faq .faq-item summary {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 14px;
  min-height: 78px;
  padding: 18px 48px 18px 14px !important;
  color: var(--v3-ink) !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  list-style: none;
}

.v3-faq .faq-item summary:hover {
  color: var(--v3-ink) !important;
}

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

.v3-faq .faq-item__icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #7a8492;
  background: #eef1ec;
  border-radius: 12px;
  transition: color 200ms ease, background 200ms ease;
}

.v3-faq .faq-item[open] .faq-item__icon {
  color: #fff;
  background: var(--v3-green);
}

.v3-faq .faq-item__q {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.v3-faq .faq-item summary::after {
  position: absolute !important;
  top: 50%;
  right: 18px !important;
  margin-top: 0 !important;
  color: var(--v3-green-dark) !important;
  border-color: var(--v3-green-dark) !important;
  transform: translateY(-60%) rotate(45deg);
}

.v3-faq .faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.v3-faq .faq-item__body {
  padding: 0 48px 22px 68px !important;
}

.v3-faq .faq-item__body p {
  color: var(--v3-muted) !important;
  line-height: 1.6;
}

.v3-faq__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  align-self: stretch;
  isolation: isolate;
}

.v3-faq__cta {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
  overflow: visible;
  padding: 26px 24px;
  background: var(--v3-paper);
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  box-shadow: 0 10px 28px rgba(35, 42, 36, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.v3-faq__cta--support {
  background: #f7f8f4;
}

.v3-faq__cta--start {
  background: #eef8f3;
  border-color: #d3ebe0;
}

.v3-faq__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: #1f7a4d;
  background: #dff5e9;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.v3-faq__pill i {
  width: 7px;
  height: 7px;
  background: #1f9a5a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31, 154, 90, 0.18);
}

.v3-faq__cta h3 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.v3-faq__cta p {
  margin: 0 0 18px;
  color: var(--v3-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.v3-faq__cta .btn {
  width: 100%;
  margin-top: auto;
}

.v3-faq__cta .v3-text-link {
  margin-top: auto;
  color: var(--v3-green-dark);
  font-weight: 700;
}

/* Final CTA */
.v3-final {
  position: relative;
  padding: clamp(90px, 10vw, 150px) 0;
  color: #fff;
  background: var(--v3-green);
  overflow: hidden;
}

.v3-final__orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
}

.v3-final__orb--one {
  width: min(540px, 80vw);
  height: min(540px, 80vw);
  right: max(-80px, -18vw);
  top: -240px;
}

.v3-final__orb--two {
  width: 330px;
  height: 330px;
  right: 20px;
  bottom: -210px;
}

.v3-final__inner {
  position: relative;
  z-index: 2;
}

.v3-final .v3-kicker {
  color: #d7fff0;
}

.v3-final h2 {
  max-width: 920px;
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.v3-final__inner > p:not(.v3-kicker) {
  max-width: 600px;
  margin: 28px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  line-height: 1.6;
}

.v3-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 36px;
}

.v3-final__link {
  padding: 10px 14px;
  color: #fff;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Footer and preserved modals */
.footer {
  color: #707884 !important;
  background: #f0f2ee !important;
  border-color: #d9ddd7 !important;
}

.footer__brand,
.footer h4 {
  color: var(--v3-ink) !important;
}

.footer a,
.footer__modal-btn {
  color: #626a78 !important;
}

.footer a:hover,
.footer__modal-btn:hover {
  color: var(--v3-green-dark) !important;
}

.modal__backdrop,
html[data-theme="dark"] .modal__backdrop {
  background: rgba(14, 18, 16, 0.55) !important;
}

.modal__panel,
.modal__panel--wide,
.modal__panel--sheet {
  color: var(--v3-ink) !important;
  background: #fff !important;
  border-color: #dfe3dd !important;
  box-shadow: 0 28px 90px rgba(16, 22, 18, 0.24) !important;
}

.modal__title,
.download-platform__name {
  color: var(--v3-ink) !important;
}

.modal__lead,
.download-platform__hint,
.download-platforms__footer,
.contact-form__label,
.contact-form__hint,
.contact-form__consent {
  color: var(--v3-muted) !important;
}

.download-platform,
.download-platform--android {
  background: #f7f9f6 !important;
  border-color: #e0e4df !important;
}

.download-platform:hover {
  background: #eef2ed !important;
}

.download-platform__icon--apple {
  background: #2c2c2e !important;
  color: #f5f5f7 !important;
}

.contact-form__input,
.contact-form__textarea {
  color: var(--v3-ink) !important;
  background: #f7f9f6 !important;
  border-color: #dfe3dd !important;
}

/* Compact contact modal: fit viewport without scrolling */
#modal-contact .modal__panel--contact {
  width: min(100%, 34rem) !important;
  max-height: min(96dvh, 96vh, calc(100 * var(--vvh))) !important;
  overflow: hidden !important;
}

#modal-contact .modal__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 1.05rem 0.9rem !important;
  overflow: hidden !important;
}

#modal-contact .modal__title {
  margin: 0 0 0.25rem !important;
  font-size: 1.18rem !important;
  line-height: 1.2 !important;
}

#modal-contact .modal__lead {
  margin: 0 0 0.65rem !important;
  font-size: 0.84rem !important;
  line-height: 1.35 !important;
}

#modal-contact .contact-form__status {
  min-height: 0;
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
}

#modal-contact .contact-form__status:empty {
  display: none;
  margin: 0;
}

#modal-contact .contact-form--compact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}

#modal-contact .contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

#modal-contact .contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

#modal-contact .contact-form__field {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#modal-contact .contact-form__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.3rem !important;
  font-size: 0.78rem !important;
  font-weight: 600;
  line-height: 1.25 !important;
  color: var(--v3-ink) !important;
}

#modal-contact .contact-form__req {
  color: #c04545 !important;
}

#modal-contact .contact-form__opt {
  color: var(--v3-muted) !important;
  font-weight: 500;
}

#modal-contact .contact-form__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 7px;
  flex-shrink: 0;
}

#modal-contact .contact-form__ic svg {
  display: block;
}

#modal-contact .contact-form__ic--name {
  color: #1f7a4d;
  background: #e5f6ec;
}

#modal-contact .contact-form__ic--email {
  color: #1d6fd0;
  background: #e8f1fc;
}

#modal-contact .contact-form__ic--phone {
  color: #c47a12;
  background: #fbf0dc;
}

#modal-contact .contact-form__ic--msg {
  color: #6b5bd6;
  background: #efecfb;
}

#modal-contact .contact-form__input,
#modal-contact .contact-form__textarea {
  width: 100%;
  min-height: 2.35rem !important;
  padding: 0.45rem 0.7rem !important;
  font-size: 0.92rem !important;
  line-height: 1.3 !important;
  border-radius: 10px !important;
  border: 1px solid #d8ddd6 !important;
  background: #fff !important;
  box-shadow: none !important;
}

#modal-contact .contact-form__input:focus,
#modal-contact .contact-form__textarea:focus {
  outline: none;
  border-color: #7eb892 !important;
  box-shadow: 0 0 0 3px rgba(47, 158, 110, 0.15) !important;
}

#modal-contact .contact-form__textarea {
  min-height: 3.2rem !important;
  max-height: 5rem !important;
  resize: vertical !important;
}

#modal-contact .contact-form__hint {
  margin: 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.3 !important;
}

#modal-contact .contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.05rem 0 0.15rem !important;
  font-size: 0.74rem !important;
  line-height: 1.3 !important;
}

#modal-contact .contact-form__consent input {
  margin-top: 0.12rem;
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

#modal-contact .contact-form__submit {
  margin-top: 0.15rem !important;
  min-height: 2.45rem !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.95rem !important;
}

@media (max-width: 560px) {
  #modal-contact .contact-form__row {
    grid-template-columns: 1fr;
  }

  #modal-contact .modal__body {
    padding: 0.85rem 0.8rem 0.75rem !important;
  }
}

@media (max-height: 720px) {
  #modal-contact .modal__lead {
    margin-bottom: 0.45rem !important;
  }

  #modal-contact .contact-form--compact,
  #modal-contact .contact-form__fields {
    gap: 0.4rem;
  }

  #modal-contact .contact-form__textarea {
    min-height: 2.6rem !important;
  }
}

.modal__close {
  color: var(--v3-ink) !important;
  background: #f3f5f2 !important;
  border-color: #dfe3dd !important;
}

.modal__block {
  background: #f7f9f6 !important;
  border-color: #dfe3dd !important;
}

.modal__block p,
.modal__note {
  color: var(--v3-muted) !important;
}

.cookie-banner__inner,
.landing-toast {
  color: var(--v3-ink) !important;
  background: #fff !important;
  border-color: #dfe3dd !important;
  box-shadow: 0 18px 50px rgba(19,25,20,0.16) !important;
}

/* Cookie banner polish: compact, no heavy shade, text fits */
.cookie-banner {
  background: #fff !important;
  border-top: 1px solid #dfe3dd !important;
  box-shadow: 0 -10px 28px rgba(19, 25, 20, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0.7rem 0 !important;
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom, 0px)) !important;
}

.cookie-banner__backdrop {
  display: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.cookie-banner__inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.9rem 1.1rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cookie-banner__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  color: #5d6571 !important;
}

.cookie-banner__text strong {
  color: var(--v3-ink) !important;
}

.cookie-banner__accept {
  flex: 0 0 auto;
  align-self: center;
}

body:has(.cookie-banner:not([hidden])) {
  padding-bottom: max(4.75rem, calc(var(--overlay-bottom) + 0.5rem)) !important;
}

body:has(.cookie-banner:not([hidden])) .landing-toast {
  bottom: max(5.25rem, calc(var(--overlay-bottom) + env(safe-area-inset-bottom, 0px) + 1rem)) !important;
}

body:has(.cookie-banner:not([hidden])) .back-to-top {
  bottom: max(5.5rem, calc(var(--overlay-bottom) + env(safe-area-inset-bottom, 0px) + 1.25rem)) !important;
}

@media (max-width: 719px) {
  .cookie-banner {
    inset: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.85rem, env(safe-area-inset-right, 0px))
      max(0.85rem, env(safe-area-inset-bottom, 0px)) max(0.85rem, env(safe-area-inset-left, 0px)) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .cookie-banner__backdrop {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: rgba(15, 20, 16, 0.28) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none !important;
  }

  .cookie-banner__shell {
    width: 100% !important;
    max-width: min(24rem, calc(100vw - 1.7rem)) !important;
    margin: 0 auto !important;
  }

  .cookie-banner__inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    padding: 1rem 1.05rem !important;
    background: #fff !important;
    border: 1px solid #dfe3dd !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 36px rgba(19, 25, 20, 0.14) !important;
  }

  .cookie-banner__text {
    font-size: 0.86rem !important;
  }

  .cookie-banner__accept {
    width: 100%;
  }

  body:has(.cookie-banner:not([hidden])) {
    padding-bottom: 0 !important;
  }
}

.back-to-top {
  color: #fff !important;
  background: var(--v3-ink) !important;
  border-color: var(--v3-ink) !important;
  bottom: max(
    1.25rem,
    calc(env(safe-area-inset-bottom, 0px) + var(--overlay-bottom) + 0.5rem)
  ) !important;
}

.landing-toast {
  bottom: max(
    1.25rem,
    calc(env(safe-area-inset-bottom, 0px) + var(--overlay-bottom) + 0.75rem)
  ) !important;
}

@media (hover: hover) {
  [data-tilt] {
    transition: transform 260ms ease;
  }

  [data-tilt]:hover {
    transform: translateY(-4px);
  }

  /* Desktop: let the phone swing out without being clipped by the visual box */
  @media (min-width: 880px) {
    .v3-hero,
    .v3-hero__visual {
      overflow: visible;
    }

    /* Hover admin → phone hinges right so dashboard stays readable */
    .v3-browser--hero:hover ~ .v3-phone--hero {
      transform: translate(48px, 4px) rotate(36deg);
    }
  }

  .v3-metric:hover {
    transform: translateY(-6px);
    background: var(--metric-bg-hot);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 16px 36px var(--metric-glow);
  }

  .v3-metric:hover .v3-metric__icon {
    filter: brightness(1.08);
  }

  .v3-bento__card--shift:hover {
    transform: translateY(-6px);
    background: #dff5eb;
    box-shadow: 0 22px 48px rgba(8, 165, 116, 0.18);
  }

  .v3-bento__card--checklists:hover {
    transform: translateY(-6px);
    background: #fff1c9;
    box-shadow: 0 22px 48px rgba(255, 159, 10, 0.18);
  }

  .v3-bento__card--cabinet:hover {
    transform: translateY(-6px);
    background: #e4ecff;
    box-shadow: 0 22px 48px rgba(36, 119, 243, 0.16);
  }

  .v3-bento__card--roles:hover {
    transform: translateY(-6px);
    background: #ebe4ff;
    box-shadow: 0 22px 48px rgba(113, 87, 232, 0.16);
  }

  .v3-bento__card--mobile:hover {
    transform: translateY(-6px);
    filter: brightness(1.04);
    box-shadow: 0 22px 48px rgba(8, 165, 116, 0.2);
  }

  .v3-audience--retail:hover {
    transform: translateY(-6px);
    background: #dcf3e8;
    box-shadow: 0 22px 48px rgba(8, 165, 116, 0.16);
  }

  .v3-audience--pvz:hover {
    transform: translateY(-6px);
    background: #ffe9b8;
    box-shadow: 0 22px 48px rgba(255, 159, 10, 0.18);
  }

  .v3-audience--factory:hover {
    transform: translateY(-6px);
    background: #dce8ff;
    box-shadow: 0 22px 48px rgba(36, 119, 243, 0.16);
  }

  .v3-audience--food:hover {
    transform: translateY(-6px);
    background: #e8e0ff;
    box-shadow: 0 22px 48px rgba(113, 87, 232, 0.16);
  }

  .v3-faq .faq-item:hover {
    background: #f7faf6 !important;
    box-shadow: 0 10px 24px rgba(35, 42, 36, 0.06);
  }

  .v3-faq .faq-item:hover .faq-item__icon {
    color: var(--v3-green-dark);
    background: var(--v3-green-soft);
  }

  .v3-faq .faq-item[open]:hover {
    background: #eef8f3 !important;
  }

  .v3-faq__cta:hover {
    z-index: 2;
    transform: none;
    box-shadow: 0 16px 36px rgba(35, 42, 36, 0.12);
  }

  .v3-faq__cta--support:hover {
    background: #f1f4ec;
  }

  .v3-faq__cta--start:hover {
    background: #e4f5ec;
  }
}

@media (max-width: 1050px) {
  .v3-hero__grid {
    grid-template-columns: 1fr;
  }

  .v3-hero__copy {
    max-width: 820px;
  }

  .v3-hero__visual {
    min-height: 0;
    aspect-ratio: 16 / 11;
    max-height: min(560px, 68svh);
    overflow: hidden;
  }

  .v3-browser--hero {
    width: 100%;
  }

  .v3-phone--hero {
    right: 0;
  }

  .v3-bento__card--shift,
  .v3-bento__card--checklists,
  .v3-bento__card--cabinet,
  .v3-bento__card--roles {
    grid-column: span 6;
  }

  .v3-browser--card {
    width: 100%;
    max-width: 380px;
    opacity: 1;
  }
}

@media (max-width: 879px) {
  :root,
  html[data-theme="light"],
  html[data-theme="dark"] {
    --v3-wrap: min(100% - 28px, 720px);
    --header-h: 64px;
  }

  html {
    scroll-padding-top: calc(var(--header-h) + 4px);
  }

  .header,
  .header__inner {
    min-height: var(--header-h);
    height: auto;
  }

  /*
   * All phones (incl. Telegram when UA class missed): sticky detaches header tools
   * over bento cards. Keep header in normal flow on narrow viewports.
   */
  .header,
  .header--scrolled {
    position: relative !important;
    top: auto !important;
    background: #f5f6f2 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible;
    transform: none !important;
  }

  .header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.55rem 0;
  }

  .header__mobile-tools {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
    gap: 0.4rem;
    max-width: none;
    position: static !important;
    transform: none !important;
  }

  .header .btn,
  .header-contact-ic {
    position: static !important;
    transform: none !important;
  }

  .header--scrolled {
    background: #f5f6f2 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .section {
    padding: 76px 0 !important;
  }

  .v3-section-head--split {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .v3-hero {
    min-height: auto;
    padding: 72px 0 86px !important;
    overflow: hidden;
  }

  .v3-hero__grid {
    gap: 48px;
  }

  .v3-hero__copy h1 {
    font-size: clamp(2.75rem, 11vw, 5.2rem) !important;
  }

  .v3-hero__visual {
    min-height: 0;
    aspect-ratio: 16 / 12;
    max-height: min(520px, 70svh);
  }

  .v3-browser--hero {
    width: 96%;
    top: 18px;
    transform: none;
  }

  .v3-phone--hero {
    width: min(152px, 38%);
    height: auto;
    aspect-ratio: 152 / 328;
    right: 0;
    bottom: 0;
    transform: none;
  }

  .v3-fact--top {
    top: 0;
    right: 2%;
  }

  .v3-fact--bottom {
    left: 0;
    bottom: 12px;
  }

  .v3-scroll-cue {
    display: none;
  }

  .v3-contrast__board {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .v3-contrast__side {
    min-height: 0;
  }

  .v3-contrast__side--before {
    border-radius: 30px 30px 0 0;
  }

  .v3-contrast__side--after {
    border-radius: 0 0 30px 30px;
  }

  .v3-contrast__switch {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin: -18px auto;
    border-width: 5px;
    transform: rotate(90deg);
  }

  .v3-stage {
    min-height: 480px;
    aspect-ratio: auto;
    max-height: none;
    overflow: visible;
  }

  .v3-browser--stage {
    width: 80%;
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
  }

  .v3-phone--stage {
    width: 176px;
    height: 360px;
    right: -24px;
    top: auto;
    bottom: 0;
    transform: none;
  }

  .v3-stage__callout--cabinet {
    bottom: 72px;
    max-width: 156px;
  }

  .v3-stage__callout--app {
    bottom: calc(360px + 12px);
    top: auto;
    right: -8px;
    max-width: 156px;
  }

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

  .v3-metric {
    min-height: 0;
  }

  .v3-metric strong {
    font-size: clamp(2.8rem, 8vw, 3.8rem);
  }

  .v3-bento__card--shift,
  .v3-bento__card--checklists,
  .v3-bento__card--cabinet,
  .v3-bento__card--roles {
    grid-column: span 12;
    grid-template-columns: 1fr;
  }

  .v3-bento__card--mobile {
    grid-template-columns: auto 1fr;
  }

  .v3-platforms {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

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

  .v3-steps li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--v3-line);
  }

  .v3-faq__grid {
    grid-template-columns: 1fr;
  }

  .v3-faq__panel,
  .v3-faq__aside {
    height: auto;
    min-height: 0;
  }

  .v3-faq__aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .v3-faq__cta {
    flex: none;
  }
}

@media (max-width: 560px) {
  .v3-section-head h2 {
    font-size: clamp(2.05rem, 9.5vw, 3.4rem);
  }

  .v3-hero__copy h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.85rem) !important;
  }

  .v3-hero__lead {
    margin-top: 24px;
  }

  .v3-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .v3-hero__actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .v3-hero__visual {
    min-height: 0;
    aspect-ratio: 5 / 4;
    max-height: min(420px, 62svh);
  }

  .v3-browser--hero {
    top: 0;
    width: 100%;
    transform: none;
  }

  .v3-phone--hero {
    width: min(126px, 34%);
    height: auto;
    aspect-ratio: 126 / 270;
    right: 0;
    bottom: 0;
    border-radius: 26px;
    padding: 4px;
    transform: none;
  }

  .v3-phone--hero .v3-phone__screen {
    border-radius: 22px;
  }

  .v3-phone--hero .v3-phone__island {
    top: 8px;
    width: 52px;
    height: 14px;
  }

  .v3-phone--hero .v3-phone__island::after {
    top: 3px;
    right: 8px;
    width: 5px;
    height: 5px;
  }

  .v3-fact {
    min-width: 0;
    padding: 10px 12px;
  }

  .v3-fact--top {
    top: -18px;
    right: 0;
  }

  .v3-fact--bottom {
    max-width: 160px;
    left: 0;
    bottom: 10px;
  }

  .v3-contrast__side {
    min-height: 0;
    padding: 26px 20px;
  }

  .v3-contrast__switch {
    margin: -14px auto;
  }

  .v3-chat-stack {
    min-height: 300px;
  }

  .v3-chat-bubble {
    max-width: 250px;
    font-size: 0.82rem;
  }

  @keyframes v3-chat-fall {
    0% {
      opacity: 0;
      transform: translate3d(0, -8%, 0) scale(0.96) rotate(var(--chat-rot, 0deg));
    }
    3% {
      opacity: 1;
      transform: translate3d(0, 4%, 0) scale(1) rotate(var(--chat-rot, 0deg));
    }
    90% {
      opacity: 1;
      transform: translate3d(0, 260px, 0) scale(1) rotate(var(--chat-rot, 0deg));
    }
    97% {
      opacity: 0.25;
      transform: translate3d(0, 285px, 0) scale(0.98) rotate(calc(var(--chat-rot, 0deg) + var(--chat-twist, 2deg)));
    }
    100% {
      opacity: 0;
      transform: translate3d(0, 310px, 0) scale(0.97) rotate(calc(var(--chat-rot, 0deg) + var(--chat-twist, 2deg)));
    }
  }

  .v3-fact-list li,
  .v3-fact-list__step {
    grid-template-columns: 34px 1fr;
  }

  .v3-fact-list em {
    grid-column: 2;
    justify-self: start;
  }

  .v3-stage {
    min-height: 430px;
    aspect-ratio: auto;
    max-height: none;
    overflow: visible;
  }

  .v3-browser--stage {
    top: auto;
    bottom: 0;
    width: 88%;
  }

  .v3-phone--stage {
    width: 140px;
    height: 286px;
    right: -14px;
    top: auto;
    bottom: 0;
    border-radius: 24px;
    padding: 4px;
    transform: none;
  }

  .v3-phone--stage .v3-phone__screen {
    border-radius: 20px;
  }

  .v3-phone--stage .v3-phone__island {
    top: 8px;
    width: 48px;
    height: 13px;
  }

  .v3-phone--stage .v3-phone__island::after {
    top: 3px;
    right: 7px;
    width: 5px;
    height: 5px;
  }

  .v3-stage__callout--cabinet {
    left: 0;
    top: auto;
    bottom: 16px;
    max-width: none;
  }

  .v3-stage__callout--app {
    right: 0;
    bottom: calc(286px + 10px);
    left: auto;
    top: auto;
  }

  .v3-metric {
    min-height: 0;
    padding: 20px 18px 22px;
  }

  .v3-metrics {
    grid-template-columns: 1fr;
  }

  .v3-metric strong {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }

  .v3-faq__aside {
    grid-template-columns: 1fr;
  }

  .v3-faq .faq-item__body {
    padding: 0 42px 20px 14px !important;
  }

  .v3-bento__card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px 22px 0;
  }

  .v3-bento__media {
    min-height: 280px;
    justify-content: center;
  }

  .v3-bento__card--shift .v3-bento__media,
  .v3-bento__card--checklists .v3-bento__media {
    min-height: 300px;
    max-height: none;
    overflow: visible;
  }

  .v3-phone--bento {
    width: 168px;
    height: 344px;
    margin-bottom: 18px;
    right: auto;
    bottom: auto;
    transform: none;
  }

  .v3-bento__card--checklists .v3-phone--bento {
    width: 168px;
    height: 344px;
  }

  .v3-browser--card {
    width: 100%;
    max-width: 100%;
    right: auto;
    opacity: 1;
    margin-bottom: 18px;
  }

  .v3-bento__card--mobile {
    grid-template-columns: 1fr;
    min-height: 390px;
  }

  .v3-bento__mobile-mark {
    width: 76px;
    height: 76px;
    border-radius: 22px;
  }

  .v3-audience-grid {
    grid-template-columns: 1fr;
  }

  .v3-audience h3 {
    font-size: 1.2rem;
  }

  .v3-audience {
    min-height: 290px;
  }

  .v3-final h2 {
    font-size: clamp(2.35rem, 11vw, 3.9rem);
  }

  .v3-final__actions {
    display: grid;
  }

  .v3-final__actions .btn {
    width: 100%;
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .v3-fact-list li,
  .v3-fact-list__step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn,
  .v3-audience,
  .v3-metric,
  .v3-bento__card,
  .v3-faq__cta,
  [data-tilt],
  .v3-phone--hero {
    transition: none !important;
  }

  .v3-metric strong.is-count-done {
    animation: none !important;
  }

  .v3-browser--hero:hover ~ .v3-phone--hero {
    transform: none !important;
  }

  .v3-demo__video {
    display: none !important;
  }

  .v3-demo__fallback {
    display: block !important;
  }
}

/* —— Demo (modal only) —— */
#modal-demo .modal__panel--demo {
  position: relative;
  width: min(1280px, calc(100vw - 12px)) !important;
  max-width: min(1280px, calc(100vw - 12px)) !important;
  max-height: min(96dvh, 96vh, calc(100 * var(--vvh)), 920px);
  height: min(96dvh, 96vh, calc(100 * var(--vvh)), 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Close sits in the top-right corner with equal inset; X centered in the disc */
#modal-demo .modal__close {
  top: 1.15rem;
  right: 1.15rem;
  z-index: 8;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--v3-ink) !important;
  background: #fff !important;
  border: 1px solid #dfe3dd !important;
  box-shadow: 0 8px 22px rgba(19, 25, 20, 0.12);
}

#modal-demo .modal__close svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

#modal-demo .modal__body.v3-demo-modal {
  padding: 1rem 1.15rem 0.95rem;
  overflow: hidden;
  overscroll-behavior: none;
}

/* Keep media content clear of the floating close control */
#modal-demo .v3-demo__media {
  padding-top: clamp(2.85rem, 4.5vw, 3.25rem);
  padding-right: clamp(2.85rem, 4.5vw, 3.25rem);
}

#modal-demo .v3-demo-modal {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  gap: 0.45rem;
}

.v3-demo-modal--split {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1.35fr);
  gap: clamp(0.85rem, 2vw, 1.5rem);
  align-items: stretch;
}

.v3-demo__rail {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  min-height: 0;
  justify-content: center;
}

.v3-demo__intro {
  flex: 0 0 auto;
}

.v3-demo-modal .modal__title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.12;
}

.v3-demo-modal .modal__lead {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.v3-demo__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.v3-demo__tab {
  appearance: none;
  border: 1px solid var(--v3-line);
  background: var(--v3-paper);
  color: var(--v3-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.v3-demo__tab:hover {
  color: var(--v3-ink);
  border-color: #c9cfc8;
}

.v3-demo__tab.is-active {
  background: var(--v3-ink);
  border-color: var(--v3-ink);
  color: #fff;
}

.v3-demo__copies {
  flex: 0 1 auto;
  min-height: 0;
}

.v3-demo__copy {
  display: none;
  gap: 0.35rem;
}

.v3-demo__copy.is-active {
  display: grid;
}

.v3-demo__copy h3 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  letter-spacing: -0.03em;
}

.v3-demo__copy p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--v3-muted);
}

.v3-demo__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0;
  margin-top: auto;
  padding-top: 0.35rem;
}

.v3-demo__cta .btn {
  white-space: normal;
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.v3-demo__media {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--v3-soft);
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  padding: clamp(0.55rem, 1.4vw, 0.9rem);
  overflow: hidden;
}

.v3-demo__panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.v3-demo__panel {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
}

.v3-demo__panel.is-active {
  display: flex;
  flex-direction: column;
}

.v3-demo__frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.v3-demo__frame--browser,
.v3-demo__frame--duo {
  align-items: stretch;
}

.v3-demo__frame--duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(0.75rem, 1.8vw, 1.15rem);
  align-items: stretch;
  justify-content: stretch;
}

.v3-browser--demo-wide,
.v3-browser--demo-duo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.v3-browser__screen--wide,
.v3-browser__screen--duo {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  height: 100%;
}

.v3-phone--demo.v3-phone--iphone17 {
  margin-inline: auto;
  aspect-ratio: 390 / 844;
  flex-shrink: 0;
}

.v3-phone--demo-lg {
  height: 100%;
  width: auto;
  max-width: min(100%, 360px);
  max-height: 100%;
}

.v3-phone--demo-duo {
  height: 100%;
  width: auto;
  max-width: 220px;
  max-height: 100%;
  margin-inline: 0;
}

.v3-phone--demo .v3-phone__screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  background: #000;
}

/* Keep app UI below Dynamic Island / status bar in the demo mock */
.v3-phone--demo .v3-phone__screen > img,
.v3-phone--demo .v3-phone__screen > video {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  bottom: 0;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 0 0 31px 31px;
}

/* Native recording: iPhone 15-like bezel (not hairline) */
.v3-phone--demo.v3-phone--native-screen.v3-phone--iphone17 {
  padding: 11px;
  border-radius: 44px;
  aspect-ratio: 540 / 1200;
  background:
    linear-gradient(155deg, #3a3c40 0%, #1c1e22 38%, #0c0d10 72%, #2a2c30 100%);
  box-shadow:
    0 28px 70px rgba(15, 20, 16, 0.28),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.18),
    inset 0 0 0 3px rgba(0, 0, 0, 0.35);
}

.v3-phone--native-screen .v3-phone__chrome {
  display: none;
}

.v3-phone--native-screen .v3-phone__screen {
  background: #000;
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.v3-phone--native-screen .v3-phone__screen > img,
.v3-phone--native-screen .v3-phone__screen > video {
  top: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: top center;
  border-radius: inherit;
  background: #000;
}

.v3-browser--demo {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--v3-line);
  background: #0f1218;
  box-shadow: 0 18px 40px rgba(15, 18, 24, 0.12);
}

.v3-browser__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}

.v3-browser__screen img,
.v3-browser__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.v3-demo__fallback {
  position: relative;
  z-index: 0;
}

.v3-demo__video {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background: #111;
}

.v3-demo__video.is-ready {
  opacity: 1;
}

.btn--header-mobile-demo {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.85rem !important;
}

@media (max-width: 879px) {
  #modal-demo .modal__panel--demo {
    height: auto;
    max-height: min(96dvh, 920px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  #modal-demo .modal__close {
    top: 0.85rem;
    right: 0.85rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  #modal-demo .modal__body.v3-demo-modal {
    padding: 0.85rem 0.85rem 0.75rem;
  }

  #modal-demo .v3-demo__media {
    padding-top: clamp(0.55rem, 1.4vw, 0.9rem);
    padding-right: clamp(0.55rem, 1.4vw, 0.9rem);
  }

  .v3-demo-modal--split {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(240px, 1fr);
    gap: 0.65rem;
    height: auto;
    min-height: 0;
  }

  .v3-demo__rail {
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .v3-demo-modal .modal__title {
    font-size: clamp(1.15rem, 5vw, 1.4rem);
  }

  .v3-demo-modal .modal__lead {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .v3-demo__copy p {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .v3-demo__cta {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 0;
    padding-top: 0;
  }

  .v3-demo__cta .btn {
    flex: 1 1 auto;
    padding: 0.6rem 0.75rem;
    font-size: 0.84rem;
  }

  .v3-demo__media {
    min-height: min(52dvh, 480px);
    height: min(58dvh, 520px);
    padding: 0.45rem;
  }

  .v3-demo__frame--duo {
    grid-template-columns: 1fr;
    justify-items: center;
    height: auto;
    min-height: 0;
    max-height: none;
    gap: 0.85rem;
    overflow: hidden;
  }

  .v3-browser--demo-duo {
    width: 100%;
    height: min(28vh, 200px);
  }

  /* Fit phone inside media box — do not force 50vh (clips bottom) */
  .v3-phone--demo-lg {
    height: 100%;
    width: auto;
    max-height: 100%;
    max-width: min(100%, 300px);
    aspect-ratio: 390 / 844;
  }

  .v3-phone--demo.v3-phone--native-screen.v3-phone--iphone17 {
    padding: 9px;
    border-radius: 36px;
  }

  .v3-phone--native-screen .v3-phone__screen {
    border-radius: 28px;
  }

  .v3-phone--demo-duo {
    height: min(42vh, 360px);
    width: calc(min(42vh, 360px) * 390 / 844);
    max-width: min(100%, 240px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-demo__video {
    display: none !important;
  }
}

/* ——— Adaptive + in-app WebView hardening (Telegram / VK / IG) ——— */

html.is-inapp,
html.is-inapp body {
  overscroll-behavior-y: contain;
}

html.is-inapp body {
  overflow-x: visible;
}

/*
 * Telegram/iOS WebView: sticky headers frequently detach children (tools float
 * over page content). Keep header in normal document flow inside in-app browsers.
 */
html.is-inapp .header,
html.is-inapp .header--scrolled {
  position: relative !important;
  top: auto !important;
  background: #f5f6f2 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  transform: none !important;
  z-index: 20;
}

html.is-inapp .header__inner {
  min-height: 56px;
  height: auto;
  flex-wrap: nowrap !important;
  align-items: center;
  overflow: visible;
}

html.is-inapp .header__mobile-tools {
  position: static !important;
  transform: none !important;
  flex-shrink: 0;
}

html.is-inapp .header .btn,
html.is-inapp .header-contact-ic {
  position: static !important;
  transform: none !important;
}

html.is-inapp .v3-stage__callout,
html.is-inapp .v3-fact {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.is-inapp .modal__backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.is-inapp [data-tilt],
html.is-inapp .v3-browser--hero:hover ~ .v3-phone--hero {
  transform: none !important;
  transition: none !important;
}

html.is-inapp .v3-chat-stack__rain {
  display: none !important;
}

html.is-inapp .v3-chat-stack {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Mobile/in-app: never let bento phones paint outside their cards */
@media (max-width: 879px) {
  .v3-bento__card,
  .v3-bento__media,
  .v3-bento__card--shift .v3-bento__media,
  .v3-bento__card--checklists .v3-bento__media {
    overflow: hidden !important;
  }

  .v3-phone--bento {
    margin-bottom: 0 !important;
  }
}

html.is-inapp .v3-bento__card,
html.is-inapp .v3-bento__media {
  overflow: hidden !important;
}

html.is-inapp .back-to-top {
  /* Avoid fixed-layer glitches overlapping header tools in Telegram */
  z-index: 40;
}

/* Ultra-narrow phones */
@media (max-width: 379px) {
  :root,
  html[data-theme="light"],
  html[data-theme="dark"] {
    --v3-wrap: min(100% - 20px, 720px);
    --header-h: 58px;
  }

  .header__inner {
    gap: 0.35rem;
    padding-inline: 0;
  }

  .brand__name {
    font-size: 0.82rem !important;
  }

  .header__mobile-tools {
    gap: 0.3rem;
  }

  .btn--header-mobile-demo {
    padding: 0.4rem 0.55rem !important;
    font-size: 0.78rem !important;
    min-height: 40px;
  }

  .header-contact-ic {
    width: 40px;
    height: 40px;
  }

  .header-contact-ic__disc {
    width: 36px;
    height: 36px;
  }

  .v3-hero__copy h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem) !important;
  }

  .v3-metrics {
    grid-template-columns: 1fr;
  }

  .modal .btn,
  .v3-demo__cta .btn,
  .cookie-banner__accept {
    min-height: 44px;
  }
}

/* Landscape phones / short viewports */
@media (max-height: 560px) and (orientation: landscape) {
  :root,
  html[data-theme="light"],
  html[data-theme="dark"] {
    --header-h: 52px;
  }

  .v3-hero {
    min-height: auto;
    padding: 48px 0 40px !important;
  }

  .v3-hero__visual,
  .v3-stage {
    max-height: min(280px, 70svh);
    aspect-ratio: 16 / 9;
  }

  .v3-phone--hero,
  .v3-phone--stage {
    display: none;
  }

  .section {
    padding: 48px 0 !important;
  }

  #modal-demo .modal__panel--demo {
    height: auto !important;
    max-height: min(96dvh, calc(100 * var(--vvh))) !important;
    overflow-y: auto;
  }

  .v3-demo-modal--split {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    height: auto !important;
  }

  .v3-demo__media {
    min-height: min(42svh, 240px) !important;
    height: min(48svh, 280px) !important;
  }

  #modal-contact .modal__panel--contact {
    max-height: min(94dvh, calc(100 * var(--vvh))) !important;
  }

  #modal-contact .modal__body {
    overflow-y: auto !important;
  }
}

@media (max-width: 560px) {
  .modal .btn,
  .download-platforms .btn,
  .v3-demo__cta .btn {
    min-height: 44px;
  }

  .v3-demo__cta {
    flex-direction: column !important;
  }

  .v3-demo__cta .btn {
    width: 100%;
  }

  #modal-contact .contact-form__submit,
  #modal-contact .btn {
    width: 100%;
    min-height: 44px;
  }
}

/* Tablet band: keep 2×2 bento without forcing single column early */
@media (min-width: 880px) and (max-width: 1050px) {
  .v3-bento__card--shift,
  .v3-bento__card--checklists,
  .v3-bento__card--cabinet,
  .v3-bento__card--roles {
    grid-column: span 6;
  }

  .v3-bento__card--shift,
  .v3-bento__card--cabinet,
  .v3-bento__card--roles {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .v3-hero__visual {
    overflow: hidden;
  }

  .v3-phone--hero {
    right: 0;
  }
}

/* Prefer clip over hidden where supported — sticky friendlier */
@supports (overflow: clip) {
  .section:not(.v3-theatre),
  .v3-hero,
  .v3-killers,
  .v3-final {
    overflow-x: clip;
  }
}

/* Zoom / large text: allow header tools to shrink instead of overflowing */
@media (max-width: 879px) {
  .header__inner {
    min-width: 0;
  }

  .header__mobile-tools {
    min-width: 0;
    flex-shrink: 1;
  }

  .btn--header-mobile-apk {
    max-width: min(42vw, 9.5rem);
  }
}

