/* Service Tech Ultra — tokens mirror the Figma "Color" / "Radius" variables and text styles */
:root {
  --primary: #2E5BFF;
  --primary-hover: #1F45E0;
  --primary-soft: #EBF0FF;
  --accent: #12C29B;        /* money / success — icons and fills only, never text on white */
  --accent-soft: #E2F8F2;
  --ink: #0A1633;
  --ink-600: #4A5675;
  --ink-400: #8B94AD;
  --white: #FFFFFF;
  --muted: #F4F7FC;
  --dark: #0A1633;
  --line: #E1E6F0;
  --star: #FFB547;

  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px;
  --container: 1200px;
  --gutter: 20px;
  --section-y: 112px;
  --header-h: 81px;
  --shadow-float: 0 12px 32px rgba(10, 22, 51, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 24px;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; }
section[id] { scroll-margin-top: var(--header-h); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display { font-size: 64px; line-height: 72px; font-weight: 800; letter-spacing: -.02em; }
.h1 { font-size: 48px; line-height: 56px; font-weight: 800; letter-spacing: -.015em; }
.h2 { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -.01em; }
.h3 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.005em; }
.h4 { font-size: 20px; line-height: 28px; font-weight: 700; }
.body-l { font-size: 18px; line-height: 28px; }
.strong { font-weight: 600; }
.caption { font-size: 14px; line-height: 20px; font-weight: 500; }
.overline { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.overline--accent { color: var(--accent); }
.overline--muted { color: var(--ink-400); }
.overline--white { color: var(--white); }
.overline--soft { color: rgba(255, 255, 255, .75); }
.muted { color: var(--ink-600); }
.on-dark-muted { color: var(--ink-400); }
.soft { color: rgba(255, 255, 255, .85); }

/* ---------- Icons ---------- */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--primary { color: var(--primary); }
.ic--accent { color: var(--accent); stroke-width: 3; width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--r-md); cursor: pointer; font-weight: 700; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--l { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--m { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn__ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--outline { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink-400); }
.btn--light { background: var(--white); color: var(--primary); }
.btn--light:hover { background: var(--primary-soft); }
:focus-visible { outline: 3px solid rgba(46, 91, 255, .45); outline-offset: 2px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 40px; height: 40px; --mark-bg: var(--primary); --mark-fg: var(--white); } /* custom props inherit into <use>; class selectors don't */
.logo__word { font-size: 20px; line-height: 28px; font-weight: 800; white-space: nowrap; }
.logo__word b { font-weight: 800; color: var(--primary); }
.logo--dark .logo__mark { --mark-bg: var(--white); --mark-fg: var(--primary); }
.logo--dark .logo__word { color: var(--white); }
.logo--dark .logo__word b { color: rgba(255, 255, 255, .72); }

/* ---------- Language switcher ---------- */
.lang { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.lang button { border: 0; background: none; cursor: pointer; padding: 6px 12px; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink-600); }
.lang button[aria-pressed="true"] { background: var(--primary); color: var(--white); }
.lang--dark { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.lang--dark button { color: var(--ink-400); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.nav { display: flex; gap: 32px; }
.nav a { font-weight: 600; color: var(--ink-600); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-md); background: var(--muted); cursor: pointer; align-items: center; justify-content: center; }
.burger .ic { stroke-width: 2; }

.menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--white); padding: 24px var(--gutter) 32px; display: flex; flex-direction: column; gap: 32px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__links a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 20px; line-height: 28px; font-weight: 700; }
.menu__lang { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.menu__actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 112px; overflow: hidden; }
.hero__row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero__content { max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.hero__content .display { margin-bottom: -12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 14px; line-height: 20px; font-weight: 500; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.taglines { display: flex; gap: 24px; font-weight: 600; }
.taglines li { display: flex; align-items: center; gap: 8px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; gap: 40px; padding-top: 28px; border-top: 1px solid var(--line); align-self: stretch; }
.stats dt { font-size: 24px; line-height: 32px; font-weight: 700; }
.stats dd { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-600); }

/* Phone mockup — drawn at its Figma size (540×640) and scaled down with zoom on small screens */
.hero__visual { flex: none; }
.visual { position: relative; width: 540px; height: 640px; }
.visual__blob { position: absolute; left: 130px; top: 70px; width: 500px; height: 500px; border-radius: 50%; background: var(--primary-soft); }
.phone { position: absolute; left: 220px; top: 10px; width: 310px; padding: 10px; border-radius: 48px; background: var(--ink); box-shadow: 0 30px 60px -10px rgba(10, 22, 51, .25); }
.phone__screen { height: 600px; border-radius: 38px; background: var(--muted); padding: 28px 18px 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-bell { width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.app-bell .ic { width: 18px; height: 18px; }
.app-card { background: var(--white); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.app-row { display: flex; justify-content: space-between; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-600); }
.app-row b { font-weight: 500; color: var(--ink); }
.app-total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; }
.app-tips { display: flex; gap: 6px; margin-top: -4px; }
.app-tips span { flex: 1; text-align: center; padding: 8px 0; border-radius: var(--r-md); background: var(--white); font-size: 14px; line-height: 20px; font-weight: 700; }
.app-tips .is-on { background: var(--primary); color: var(--white); }
.app-rate { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--r-lg); background: var(--white); }
.stars { color: var(--star); letter-spacing: 2px; font-size: 15px; }
.app-pay { margin-top: auto; height: 56px; border-radius: var(--r-md); background: var(--primary); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-float); }
.float--toast { left: 0; top: 110px; }
.float--qr { left: 0; top: 450px; }
.float__ic { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; }
.float__ic .ic { width: 22px; height: 22px; }
.float__ic--accent { background: var(--accent); color: var(--white); }
.float__ic--accent .ic { stroke-width: 3; width: 20px; height: 20px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--tight { padding-top: 0; }
.section--muted { background: var(--muted); }
.section--dark { background: var(--dark); color: var(--white); }
.heading { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.heading--center { align-items: center; text-align: center; margin: 0 auto 56px; max-width: 760px; }
.heading--wide { max-width: 960px; }

.tile { width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.tile--l { width: 56px; height: 56px; }
.tile--l .ic { width: 28px; height: 28px; }
.tile--white { background: var(--white); }

/* About */
.about { display: flex; align-items: center; gap: 80px; }
.about .heading { flex: 0 0 500px; }
.points { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.point { display: flex; gap: 20px; padding: 24px; border-radius: var(--r-xl); background: var(--white); }
.point h3 { margin-bottom: 4px; }

/* Features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fcard { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.fcard:hover { border-color: transparent; box-shadow: 0 16px 40px rgba(10, 22, 51, .08); }
.fcard h3 { margin-bottom: -12px; }

/* How it works */
.how__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.how__top .heading { max-width: 640px; }
.step { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.step__top { display: flex; align-items: center; justify-content: space-between; }
.step__num { font-size: 48px; line-height: 56px; font-weight: 800; color: var(--primary); }
.step h3 { margin-bottom: -16px; }

/* Benefits */
.bcard { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: 48px; border-radius: var(--r-xl); background: var(--muted); }
.bcard--primary { background: var(--primary); color: var(--white); }
.pill { padding: 8px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 14px; line-height: 20px; font-weight: 700; }
.pill--glass { background: rgba(255, 255, 255, .16); color: var(--white); }
.checks { align-self: stretch; display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 18px; line-height: 28px; }
.bcard--primary .checks { border-top-color: rgba(255, 255, 255, .2); }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.check { width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.check .ic { width: 14px; height: 14px; stroke-width: 3; }
.bcard--primary .check { background: rgba(255, 255, 255, .18); color: var(--white); }

/* Clients — two rows of partner chips scrolling in opposite directions.
   main.js clones each row once (aria-hidden), so translateX(-50%) lands exactly
   on the copy and the loop is seamless. Spacing is margin, not gap, for the
   same reason: a gap would make the two halves unequal. */
#clients .heading { margin-bottom: 40px; }
.partners { display: flex; flex-direction: column; gap: 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { display: flex; align-items: center; gap: 12px; margin-right: 16px; padding: 8px 20px 8px 8px; border-radius: 999px; background: var(--muted); font-weight: 600; white-space: nowrap; }
.partner img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
/* Without JS there is no clone to loop onto: show every partner once, wrapped */
html:not(.js) .marquee { -webkit-mask-image: none; mask-image: none; }
html:not(.js) .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 12px; }

/* Connect */
.connect { display: flex; align-items: center; gap: 64px; padding: 64px; border-radius: var(--r-xl); background: var(--primary); color: var(--white); }
.connect__text { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.contacts { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; font-weight: 600; }
.contacts li { display: flex; align-items: center; gap: 12px; }
.contacts__ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.contacts__ic .ic { width: 20px; height: 20px; }
.contacts a:hover { text-decoration: underline; }
.form { flex: 0 0 500px; display: flex; flex-direction: column; gap: 20px; padding: 40px; border-radius: var(--r-xl); background: var(--white); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-600); }
.field input { height: 52px; padding: 0 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--white); outline: none; transition: border-color .15s; }
.field input::placeholder { color: var(--ink-400); }
.field input:focus { border-color: var(--primary); }
.field input.is-invalid { border-color: #E5484D; }
.form__msg { padding: 12px 16px; border-radius: var(--r-md); background: var(--accent-soft); font-weight: 600; }
.form__msg.is-error { background: #FDECEC; }

/* Footer */
.footer { background: var(--dark); color: var(--ink-400); padding: 72px 0 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.footer__brand { max-width: 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__cols { display: flex; gap: 80px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 14px; }
.footer__cols a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; line-height: 20px; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .about { gap: 48px; }
  .about .heading { flex-basis: 420px; }
  .connect { flex-direction: column; align-items: stretch; }
  .form { flex-basis: auto; }
}

@media (max-width: 960px) {
  :root { --section-y: 56px; --header-h: 73px; }
  .header__row { height: 72px; }
  .header__actions { display: none; }
  .burger { display: inline-flex; }

  .display { font-size: 40px; line-height: 48px; letter-spacing: -.015em; }
  .h1 { font-size: 32px; line-height: 40px; }
  .h2 { font-size: 28px; line-height: 36px; }
  .body-l { font-size: 16px; line-height: 24px; }

  .hero { padding: 32px 0 48px; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 32px; }
  .hero__content { max-width: none; gap: 24px; }
  .hero__content .display { margin-bottom: -8px; }
  .hero__ctas { flex-direction: column; align-self: stretch; }
  .hero__visual { align-self: center; }
  .stats { gap: 16px; padding-top: 24px; }
  .stats > div { flex: 1; }
  .stats dt { font-size: 20px; line-height: 28px; }

  .about { flex-direction: column; align-items: stretch; gap: 32px; }
  .about .heading { flex: none; }
  .point { padding: 20px; gap: 16px; border-radius: var(--r-lg); }

  .heading { gap: 12px; }
  .heading--center { align-items: flex-start; text-align: left; margin-bottom: 32px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .fcard, .step { padding: 24px; gap: 16px; }
  .fcard h3 { margin-bottom: -8px; }
  .step h3 { margin-bottom: -8px; }
  .how__top { flex-direction: column; align-items: stretch; gap: 32px; margin-bottom: 32px; }
  .how__top .btn { order: 2; }
  #how .grid-3 { margin-bottom: 0; }

  .grid-2 { gap: 16px; }
  .bcard { padding: 28px 24px; gap: 20px; }
  .checks { padding-top: 20px; gap: 14px; font-size: 16px; line-height: 24px; }
  .checks li { gap: 12px; }
  .check { margin-top: 0; }

  #clients .heading { margin-bottom: 24px; }
  .partners { gap: 12px; }
  .partner { gap: 10px; margin-right: 12px; padding: 6px 16px 6px 6px; font-size: 14px; }
  .partner img { width: 40px; height: 40px; }

  #connect { padding: 0; }
  #connect .container { padding: 0; }
  .connect { border-radius: 0; padding: 56px var(--gutter); gap: 28px; }
  .form { padding: 24px 20px; gap: 16px; }

  .footer { padding: 48px 0 32px; }
  .footer__top { flex-direction: column; gap: 32px; margin-bottom: 32px; }
  .footer__cols { flex-wrap: wrap; gap: 32px 24px; }
  .footer__cols > div { flex: 1 1 140px; }
  .footer__bottom { flex-direction: column; gap: 4px; padding-top: 20px; }
}

/* How it works button sits under the steps on mobile */
@media (max-width: 960px) {
  #how .container { display: flex; flex-direction: column; }
  #how .how__top { display: contents; }
  #how .heading { order: 1; margin-bottom: 32px; }
  #how .grid-3 { order: 2; }
  #how .how__top .btn { order: 3; margin-top: 32px; width: 100%; }
}

/* Scale the fixed-size phone mockup to the viewport */
@media (max-width: 600px) { .visual { zoom: .7; } }
@media (max-width: 440px) { .visual { zoom: .62; } }
@media (max-width: 360px) { .visual { zoom: .55; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  /* No scrolling: show every partner once, wrapped */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .marquee__track [aria-hidden="true"] { display: none; }
}
