/*
 * Attaom landing page.
 *
 * Hand-written and dependency-free on purpose: the Laravel app has no Vite
 * build (public/build does not exist and the deploy runbook never builds it),
 * so the marketing page must ship as plain CSS that nginx can serve directly.
 *
 * Palette comes from branding/attaom-logo.svg — the #FF8A3D → #E8401C gradient
 * and the #1F2430 ink. The phone mockups deliberately reuse the mini app's own
 * Telegram-blue UI so they read as screenshots rather than decoration.
 */

/* ---------------------------------------------------------------- fonts -- */

@font-face {
  font-family: 'Inter Landing';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('./fonts/inter-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Landing';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('./fonts/inter-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Landing';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('./fonts/inter-cyrillic.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* --------------------------------------------------------------- tokens -- */

:root {
  --brand-1: #ff8a3d;
  --brand-2: #e8401c;
  --brand-grad: linear-gradient(135deg, #ff8a3d 0%, #e8401c 100%);
  --brand-soft: #fff1e8;
  --brand-ink: #c8340f;

  --ink: #1f2430;
  --ink-2: #5b6273;
  --ink-3: #8b91a1;

  --bg: #ffffff;
  --bg-warm: #fffaf6;
  --surface: #ffffff;
  --surface-2: #fdf5f0;
  --line: rgba(31, 36, 48, 0.09);
  --line-2: rgba(31, 36, 48, 0.16);

  --ok: #16a34a;
  --ok-soft: #e9f8ef;

  --shadow-s: 0 1px 2px rgba(31, 36, 48, 0.05), 0 2px 8px rgba(31, 36, 48, 0.04);
  --shadow-m: 0 2px 6px rgba(31, 36, 48, 0.05), 0 12px 32px rgba(31, 36, 48, 0.08);
  --shadow-l: 0 8px 24px rgba(31, 36, 48, 0.09), 0 32px 64px rgba(31, 36, 48, 0.12);
  --shadow-brand: 0 6px 16px rgba(232, 64, 28, 0.24), 0 18px 40px rgba(232, 64, 28, 0.18);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --pill: 999px;

  --pad: clamp(1rem, 4vw, 1.5rem);
  --sec: clamp(4rem, 9vw, 7rem);
  --max: 1160px;

  /* Mini app surface, mirroring web/src/style.css so mockups stay honest. */
  --tg-bg: #ffffff;
  --tg-sec: #f2f2f7;
  --tg-card: #ffffff;
  --tg-text: #0f0f0f;
  --tg-hint: #8a8a8e;
  --tg-btn: #2a83ec;
  --tg-line: rgba(138, 138, 142, 0.24);

  color-scheme: light;
}

:root[data-theme='dark'] {
  --brand-soft: rgba(255, 138, 61, 0.12);
  --brand-ink: #ffa96a;

  --ink: #edeff4;
  --ink-2: #a4abbb;
  --ink-3: #7a8194;

  --bg: #0f1116;
  --bg-warm: #13151c;
  --surface: #171a22;
  --surface-2: #1d212b;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.12);

  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-m: 0 2px 6px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-l: 0 8px 24px rgba(0, 0, 0, 0.45), 0 32px 64px rgba(0, 0, 0, 0.55);
  --shadow-brand: 0 6px 16px rgba(232, 64, 28, 0.3), 0 18px 40px rgba(0, 0, 0, 0.5);

  --tg-bg: #000000;
  --tg-sec: #1c1c1e;
  --tg-card: #1c1c1e;
  --tg-text: #ffffff;
  --tg-hint: #98989e;
  --tg-btn: #3390ec;
  --tg-line: rgba(152, 152, 158, 0.24);

  color-scheme: dark;
}

/* ----------------------------------------------------------------- base -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Landing', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: 'cv05' 1, 'ss03' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

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

h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 50%;
  top: -100px;
  z-index: 200;
  translate: -50% 0;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--r-m) var(--r-m);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s;
}
.skip:focus-visible {
  top: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------ typography -- */

.h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-grad);
}

/* --------------------------------------------------------------- layout -- */

.section {
  padding-block: var(--sec);
}

.section--warm {
  background: var(--bg-warm);
  border-block: 1px solid var(--line);
}

.sec-head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--pill);
  font-weight: 650;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.18s,
    background-color 0.18s, border-color 0.18s;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn--ghost {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-s);
}
.btn--ghost:hover {
  border-color: var(--brand-1);
  color: var(--brand-ink);
}

.btn--light {
  background: #fff;
  color: var(--brand-ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--lg {
  padding: 0.95rem 1.7rem;
  font-size: 1.03rem;
}

/* --------------------------------------------------------------- navbar -- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.nav[data-stuck='1'] {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  box-shadow: 0 3px 10px rgba(232, 64, 28, 0.28);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__links a {
  padding: 0.45rem 0.7rem;
  border-radius: var(--pill);
  font-size: 0.93rem;
  font-weight: 550;
  color: var(--ink-2);
  transition: color 0.16s, background-color 0.16s;
}
.nav__links a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav__tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--surface);
  transition: color 0.16s, border-color 0.16s, background-color 0.16s;
}
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-2);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}

/* Theme toggle shows the mode it switches TO: moon while light, sun while dark. */
.theme-i {
  display: none;
  line-height: 0;
}
.theme-i--moon,
[data-theme='dark'] .theme-i--sun {
  display: block;
}
[data-theme='dark'] .theme-i--moon {
  display: none;
}

.lang {
  position: relative;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 36px;
  padding-inline: 0.7rem;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.lang__btn:hover {
  color: var(--ink);
  border-color: var(--line-2);
}
.lang__btn svg {
  width: 13px;
  height: 13px;
  transition: rotate 0.2s;
}
.lang[data-open='1'] .lang__btn svg {
  rotate: 180deg;
}
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 148px;
  padding: 0.35rem;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-m);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  transition: opacity 0.16s, translate 0.16s, visibility 0.16s;
}
.lang[data-open='1'] .lang__menu {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-s);
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink-2);
}
.lang__menu a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.lang__menu a[aria-current='true'] {
  color: var(--brand-ink);
  font-weight: 700;
}
.lang__menu a span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.nav__cta {
  display: none;
}

.burger {
  display: none;
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 780px;
  height: 780px;
  top: -430px;
  right: -180px;
  background: radial-gradient(
    circle,
    rgba(255, 138, 61, 0.22),
    rgba(255, 138, 61, 0) 68%
  );
}
.hero::after {
  width: 620px;
  height: 620px;
  bottom: -360px;
  left: -220px;
  background: radial-gradient(
    circle,
    rgba(232, 64, 28, 0.14),
    rgba(232, 64, 28, 0) 68%
  );
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
  max-width: 34rem;
}

.hero__title {
  text-wrap: balance;
}
.hero__title span {
  display: block;
}

.hero__lead {
  max-width: 32rem;
}
.hero__lead b {
  color: var(--ink);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.hero__note {
  font-size: 0.9rem;
  color: var(--ink-3);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem 0.32rem 0.6rem;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--ink-2);
  box-shadow: var(--shadow-s);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-grad);
}

/* --------------------------------------------------------- hero visual -- */

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.hero__glow {
  position: absolute;
  inset: 12% 6%;
  border-radius: 50%;
  background: var(--brand-grad);
  filter: blur(72px);
  opacity: 0.24;
  pointer-events: none;
}

.float {
  position: absolute;
  z-index: 3;
  width: 200px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-l);
  animation: bob 7s ease-in-out infinite;
}
.float__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: none;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.float__icon svg {
  width: 17px;
  height: 17px;
}
.float__icon--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.float b {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.float span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-3);
  line-height: 1.3;
}

.float--1 {
  top: 4%;
  right: calc(50% + 128px);
  animation-delay: -1.5s;
}
.float--2 {
  bottom: 5%;
  left: calc(50% + 128px);
  animation-delay: -4s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-11px);
  }
}

/* ---------------------------------------------------------------- phone -- */

.phone {
  position: relative;
  z-index: 2;
  width: 300px;
  max-width: 100%;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #3a4152 0%, #1f2430 42%, #14171f 100%);
  box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.phone::after {
  content: '';
  position: absolute;
  z-index: 4;
  top: 19px;
  left: 50%;
  translate: -50% 0;
  width: 78px;
  height: 22px;
  border-radius: var(--pill);
  background: #14171f;
}

.phone__screen {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  background: var(--tg-bg);
  color: var(--tg-text);
  aspect-ratio: 282 / 580;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.4;
}

.phone--sm {
  width: 250px;
  padding: 8px;
  border-radius: 40px;
}
.phone--sm .phone__screen {
  border-radius: 33px;
  font-size: 12px;
}
.phone--sm::after {
  width: 64px;
  height: 18px;
  top: 16px;
}

/* ---- mini app chrome ---- */

.mini {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 46px 12px 12px;
  gap: 10px;
  overflow: hidden;
}

.mini__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini__head h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.mini__ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tg-sec);
  color: var(--tg-hint);
  font-size: 10px;
  font-weight: 700;
  flex: none;
}
.mini__ico svg {
  width: 13px;
  height: 13px;
}

.mini__cutoff {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--tg-sec);
  color: var(--tg-hint);
  font-size: 11px;
}
.mini__cutoff svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.mini__cutoff b {
  color: var(--tg-text);
}

.mini__chips {
  display: flex;
  gap: 6px;
}
.mini__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--pill);
  border: 1px solid var(--tg-line);
  font-size: 11px;
  font-weight: 600;
  color: var(--tg-btn);
  white-space: nowrap;
}
.mini__chip svg {
  width: 12px;
  height: 12px;
}

.mini__dishes {
  display: grid;
  gap: 8px;
}

.dish {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 14px;
  background: var(--tg-card);
  border: 1px solid var(--tg-line);
}
.dish--on {
  border-color: var(--tg-btn);
  box-shadow: 0 0 0 1px var(--tg-btn);
}
.dish__img {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  background: var(--tg-sec);
  color: var(--tg-hint);
}
.dish__img svg {
  width: 19px;
  height: 19px;
}
.dish__body {
  min-width: 0;
  flex: 1;
}
.dish__body b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dish__body span {
  font-size: 11px;
  color: var(--tg-hint);
}
.dish__add {
  padding: 5px 11px;
  border-radius: var(--pill);
  background: var(--tg-sec);
  color: var(--tg-btn);
  font-size: 11px;
  font-weight: 650;
  flex: none;
}
.dish__step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
  border-radius: var(--pill);
  background: var(--tg-sec);
  flex: none;
  font-size: 12px;
  font-weight: 700;
}
.dish__step i {
  color: var(--tg-btn);
  font-style: normal;
  font-size: 14px;
  line-height: 1;
}

.mini__foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.mini__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--tg-hint);
}
.mini__total b {
  font-size: 15px;
  font-weight: 700;
  color: var(--tg-text);
  letter-spacing: -0.02em;
}
.mini__cta {
  padding: 11px;
  border-radius: 12px;
  background: var(--tg-btn);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}

/* The 250px showcase phones have ~40px less room than the hero device, so the
   densest rows (price + add button, the two quick-action chips) get trimmed
   rather than wrapped — a wrapped price reads as a layout bug, not a screenshot. */
.mini__chips {
  overflow: hidden;
}
.dish__body span {
  white-space: nowrap;
}

.phone--sm .mini {
  padding: 42px 10px 10px;
  gap: 8px;
}
.phone--sm .mini__head h4 {
  font-size: 15px;
}
.phone--sm .mini__chip {
  padding: 4px 8px;
  font-size: 10px;
}
.phone--sm .mini__cutoff {
  font-size: 10px;
  padding: 6px 8px;
}
.phone--sm .dish {
  padding: 7px;
  gap: 7px;
}
.phone--sm .dish__img {
  width: 32px;
  height: 32px;
}
.phone--sm .dish__body b {
  font-size: 12px;
}
.phone--sm .dish__body span {
  font-size: 10px;
}
.phone--sm .dish__add {
  padding: 4px 8px;
  font-size: 10px;
}
.phone--sm .steps__i {
  width: 40px;
}
.phone--sm .steps__i span {
  font-size: 8px;
}

/* ---- payment screen ---- */

.mini__amount {
  padding: 14px;
  border-radius: 14px;
  background: var(--tg-sec);
  text-align: center;
}
.mini__amount span {
  display: block;
  font-size: 11px;
  color: var(--tg-hint);
}
.mini__amount b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 2px;
}

.mini__label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tg-hint);
}

.pay {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 13px;
  border: 1px solid var(--tg-line);
  background: var(--tg-card);
}
.pay--on {
  border-color: var(--tg-btn);
  box-shadow: 0 0 0 1px var(--tg-btn);
}
.pay__ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: none;
  background: var(--tg-sec);
  color: var(--tg-btn);
}
.pay__ico svg {
  width: 16px;
  height: 16px;
}
.pay__body {
  flex: 1;
  min-width: 0;
}
.pay__body b {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.pay__body span {
  font-size: 11px;
  color: var(--tg-hint);
}
.pay__check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
  background: var(--tg-btn);
  color: #fff;
}
.pay__check svg {
  width: 11px;
  height: 11px;
}

.mini__card {
  padding: 11px;
  border-radius: 13px;
  background: var(--tg-sec);
  display: grid;
  gap: 6px;
}
.mini__card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--tg-hint);
}
.mini__card-top em {
  font-style: normal;
  font-weight: 650;
  color: var(--tg-btn);
}
.mini__card b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* ---- order status screen ---- */

.steps {
  display: flex;
  align-items: flex-start;
  padding-block: 4px;
}
.steps__i {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 46px;
  flex: none;
  text-align: center;
}
.steps__d {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tg-sec);
  color: var(--tg-hint);
  border: 1.5px solid var(--tg-line);
}
.steps__d svg {
  width: 11px;
  height: 11px;
}
.steps__i--done .steps__d {
  background: var(--tg-btn);
  border-color: var(--tg-btn);
  color: #fff;
}
.steps__i--now .steps__d {
  border-color: var(--tg-btn);
  color: var(--tg-btn);
}
.steps__i span {
  font-size: 9px;
  line-height: 1.25;
  color: var(--tg-hint);
}
.steps__i--done span,
.steps__i--now span {
  color: var(--tg-text);
  font-weight: 600;
}
.steps__l {
  flex: 1;
  height: 1.5px;
  margin-top: 9px;
  background: var(--tg-line);
  border-radius: 2px;
}
.steps__l--on {
  background: var(--tg-btn);
}

.mini__status {
  padding: 12px;
  border-radius: 13px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.mini__rate {
  padding: 12px;
  border-radius: 13px;
  background: var(--tg-sec);
  display: grid;
  gap: 8px;
  justify-items: center;
}
.mini__rate p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}
.mini__stars {
  display: flex;
  gap: 5px;
  color: #f5a524;
}
.mini__stars svg {
  width: 19px;
  height: 19px;
}
.mini__stars svg:nth-child(n + 5) {
  color: var(--tg-line);
}

/* Personal stats strip, as the mini app shows it under the rating card. */
.mini__stats {
  display: grid;
  gap: 5px;
}
.mini__stats li {
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--tg-sec);
  font-size: 11px;
  font-weight: 550;
}

.mini__hist {
  display: grid;
  gap: 7px;
}
.mini__hist-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--tg-card);
  border: 1px solid var(--tg-line);
  font-size: 11px;
}
.mini__hist-i b {
  font-size: 12px;
  font-weight: 650;
}
.mini__hist-i span {
  color: var(--tg-hint);
}
.tag {
  padding: 2px 7px;
  border-radius: var(--pill);
  font-size: 10px;
  font-weight: 650;
  background: var(--ok-soft);
  color: var(--ok);
  white-space: nowrap;
}

/* -------------------------------------------------------------- compare -- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

.panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  height: 100%;
}
.panel--after {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand-grad) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-m);
}

.panel__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--ink-3);
}
.panel--after .panel__label {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.panel ul {
  display: grid;
  gap: 0.85rem;
}
.panel li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.panel--after li {
  color: var(--ink);
}
.panel li svg {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
}
.panel--before li svg {
  color: var(--ink-3);
}
.panel--after li svg {
  color: var(--brand-2);
}

/* ------------------------------------------------------------- features -- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: clamp(1.3rem, 2.4vw, 1.7rem);
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.24s,
    border-color 0.24s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand-grad);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.34s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
  border-color: var(--line-2);
}
.card:hover::before {
  scale: 1 1;
}
.card p {
  font-size: 0.93rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.card__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.card__ico svg {
  width: 22px;
  height: 22px;
}

/* ------------------------------------------------------------------ how -- */

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.4vw, 1.75rem);
  counter-reset: step;
}

.step-card {
  position: relative;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding-top: 3.6rem;
}
.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-brand);
}
.step-card::after {
  content: '';
  position: absolute;
  top: 23px;
  left: 58px;
  right: -12px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-2) 0 6px,
    transparent 6px 12px
  );
}
.step-card:last-child::after {
  display: none;
}
.step-card p {
  font-size: 0.93rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------------------------------------------------------------- roles -- */

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.role {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}
.role__top {
  display: grid;
  gap: 0.3rem;
}
.role__where {
  display: inline-flex;
  align-self: start;
  justify-self: start;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--pill);
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-3);
}
.role > p {
  font-size: 0.92rem;
  color: var(--ink-2);
}
.role ul {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}
.role li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.6rem;
  align-items: start;
  padding-top: 0.35rem;
  font-size: 0.92rem;
}
.role li svg {
  width: 16px;
  height: 16px;
  margin-top: 0.28rem;
  color: var(--brand-2);
}

/* -------------------------------------------------------------- screens -- */

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  justify-items: center;
}
.screen-i {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  text-align: center;
  max-width: 20rem;
}
.screen-i__cap {
  display: grid;
  gap: 0.25rem;
}
.screen-i__cap p {
  font-size: 0.9rem;
  color: var(--ink-2);
}
.screens .screen-i:nth-child(2) {
  translate: 0 -22px;
}

/* ------------------------------------------------------------------ faq -- */

.faq {
  max-width: 46rem;
  margin-inline: auto;
  display: grid;
  gap: 0.6rem;
}

.qa {
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.qa[open] {
  border-color: var(--line-2);
  box-shadow: var(--shadow-s);
}
.qa summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.015em;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: '';
  width: 11px;
  height: 11px;
  margin-left: auto;
  flex: none;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 0.24s, border-color 0.2s;
}
.qa[open] summary::after {
  rotate: -135deg;
  translate: 0 2px;
  border-color: var(--brand-2);
}
.qa p {
  padding: 0 3.1rem 1.2rem 1.25rem;
  margin-top: -0.25rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ------------------------------------------------------------- cta band -- */

.band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--brand-grad);
  color: #fff;
  text-align: center;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 18% 12%,
      rgba(255, 255, 255, 0.22),
      transparent 44%
    ),
    radial-gradient(circle at 84% 88%, rgba(0, 0, 0, 0.16), transparent 46%);
  pointer-events: none;
}
.band__in {
  position: relative;
  display: grid;
  gap: 1.3rem;
  justify-items: center;
  max-width: 40rem;
  margin-inline: auto;
}
.band .lead {
  color: rgba(255, 255, 255, 0.9);
}
.band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* Reassurance under the closing call to action: free trial, no card. */
.band__note {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 0.92rem;
  opacity: 0.78;
  text-align: center;
}

/* --------------------------------------------------------------- footer -- */

.foot {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.foot__about {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  max-width: 22rem;
}
.foot__about p {
  font-size: 0.9rem;
  color: var(--ink-2);
}
.foot__col h4 {
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot__col ul {
  display: grid;
  gap: 0.55rem;
}
.foot__col a {
  font-size: 0.93rem;
  color: var(--ink-2);
  transition: color 0.16s;
}
.foot__col a:hover {
  color: var(--brand-ink);
}
.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- motion -- */

/* Scoped to .js: with scripting off the page must still show all its content,
   and [data-reveal] would otherwise leave most sections at opacity 0. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.3, 1),
    translate 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.js [data-reveal].in {
  opacity: 1;
  translate: 0 0;
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1020px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.25rem;
  }
  .step-card:nth-child(2n)::after {
    display: none;
  }
  .screens {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .screens .screen-i:nth-child(2) {
    translate: 0 0;
  }
  .hero__visual {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 76px;
  }
  .nav__links {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem var(--pad) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
    opacity: 0;
    visibility: hidden;
    translate: 0 -10px;
    transition: opacity 0.2s, translate 0.2s, visibility 0.2s;
  }
  .nav[data-open='1'] .nav__links {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }
  .nav__links a {
    padding: 0.7rem 0.6rem;
    font-size: 1rem;
    border-radius: var(--r-s);
  }
  .burger {
    display: grid;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__copy {
    justify-items: center;
    text-align: center;
    max-width: 36rem;
    margin-inline: auto;
  }
  .hero__actions,
  .badges {
    justify-content: center;
  }

  .compare,
  .roles,
  .foot__grid {
    grid-template-columns: 1fr;
  }
  .foot__about {
    max-width: none;
  }
}

@media (max-width: 479px) {
  .nav__tools > .btn--primary {
    display: none;
  }
  .nav__links .nav__cta {
    display: block;
    margin-top: 0.5rem;
    padding: 0.8rem;
    border-radius: var(--pill);
    background: var(--brand-grad);
    color: #fff;
    font-weight: 650;
    text-align: center;
    box-shadow: var(--shadow-brand);
  }
  .nav__links .nav__cta:hover {
    color: #fff;
  }
}

@media (max-width: 620px) {
  .cards,
  .steps-list {
    grid-template-columns: 1fr;
  }
  .step-card::after {
    display: none;
  }
  .btn {
    width: 100%;
  }
  .hero__actions {
    width: 100%;
  }
}

@media (max-width: 1279px) {
  .float {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    translate: none;
  }
}

@media print {
  .nav,
  .band,
  .float {
    display: none;
  }
}
