/*
 * Landing, drawn from the Figma frames 6 → 8 → 12 → 9 → 10.
 *
 * Desktop is the frame itself: every size is a design pixel times --k — the
 * page's width over 1920 or its height over 1080, whichever is smaller, capped
 * at 1 — so the coordinates below are the Figma ones and a frame is a screen. Below 1024 px the sections fall into one column; where a block
 * keeps its drawing (the deck cards, the form) it gets its own --k.
 *
 * Light: canvases filled by light.js. Motion: landing.js (GSAP).
 */

@font-face {
  font-family: 'Martian Grotesk';
  src: url('/fonts/MartianGrotesk-VF.woff2') format('woff2-variations'), url('/fonts/MartianGrotesk-VF.woff2') format('woff2');
  font-weight: 100 1000;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('/fonts/onest-cyrillic.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('/fonts/onest-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
  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;
}
/* SF Pro Text is the design's text face; Apple devices have it, everyone else gets Inter. */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* A frame is one screen: it fits the window's width and its height, whichever is tighter. */
  --k: min(calc(min(var(--vw, 100vw), 1920px) / 1920), calc(100svh / 1080));
  --bg: #070b16;
  --blue: #2f6ff0;
  --pure: #0000ff;
  --display: 'Martian Grotesk', 'Segoe UI', sans-serif;
  --text: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: #fff;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #8fd4ff; outline-offset: 3px; }
::selection { background: rgba(47, 111, 240, 0.45); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: #fff; color: #070b16; font-weight: 600;
}
.skip:focus { top: 12px; }

.line { display: block; }
.display {
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 125%;
  line-height: normal;
}
.frame { position: relative; z-index: 1; width: calc(1920 * var(--k)); height: 100%; margin-inline: auto; }

/* Light (light.js). It comes on when its section is first drawn. */
.light, .cta__glass { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.8s ease; }
.light.is-lit, .cta__glass.is-lit { opacity: 1; }
.rm .light, .rm .cta__glass { transition: none; }

/* Buttons: the frames' pills. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: calc(238 * var(--k)); height: calc(75 * var(--k)); min-height: 40px;
  border-radius: calc(48.5 * var(--k));
  font-family: var(--text); font-weight: 500; font-size: max(14px, calc(18 * var(--k))); line-height: 1.2;
  white-space: nowrap; color: #fff;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, scale .3s var(--ease);
}
.btn:active { scale: 0.97; }
.btn--blue { background: var(--blue); }
.btn--blue:hover { background: #4a83f6; }
.btn--line { box-shadow: inset 0 0 0 1px #fff; }
.btn--line:hover { background: #fff; color: #070b16; }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: #dde6ff; }

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

.hero { position: relative; height: 100svh; overflow: hidden; background: var(--bg); isolation: isolate; }

.top { position: absolute; inset: 0 0 auto; z-index: 2; height: calc(150 * var(--k)); }
.logo {
  position: absolute; left: 0; right: 0; top: calc(38 * var(--k)); width: max-content; margin-inline: auto;
  display: flex; align-items: center; gap: calc(12.4 * var(--k));
}
.logo__mark { width: calc(70 * var(--k)); height: calc(70 * var(--k)); overflow: visible; }
.logo__word { width: calc(182 * var(--k)); height: auto; margin-top: calc(1.2 * var(--k)); }
.top__acts { position: absolute; right: calc(68 * var(--k)); top: calc(49 * var(--k)); display: flex; align-items: center; gap: calc(19 * var(--k)); }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: calc(62 * var(--k)); height: calc(62 * var(--k)); min-width: 40px; min-height: 40px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.2);
  transition: background-color .3s ease, scale .3s var(--ease);
}
.iconbtn:hover { background: rgba(255, 255, 255, 0.14); }
.iconbtn:active { scale: 0.95; }
.iconbtn--login {
  width: auto; min-width: calc(121 * var(--k));
  padding: 0 calc(20 * var(--k)) 0 calc(12 * var(--k));
  gap: calc(10 * var(--k));
  border-radius: calc(40.5 * var(--k));
  font: 600 max(12px, calc(14 * var(--k))) / 1 var(--text);
  white-space: nowrap;
}
.iconbtn--login img { width: calc(32 * var(--k)); min-width: 22px; height: auto; flex: none; }
.iconbtn--join img { width: calc(22 * var(--k)); min-width: 17px; height: auto; }

.hero__stage {
  position: absolute; left: 50%; top: 0; z-index: 1;
  width: calc(1920 * var(--k)); height: 100%; translate: -50% 0;
}
.hero__title {
  position: absolute; left: 0; right: 0; top: calc(178 * var(--k));
  font: 500 calc(65 * var(--k)) / normal var(--display); font-stretch: 125%; text-align: center;
}
.hero__sub {
  position: absolute; left: 0; right: 0; top: calc(374 * var(--k));
  font: 500 max(14px, calc(25 * var(--k))) / normal var(--display); font-stretch: 125%; text-align: center;
}
.hero__ring {
  position: absolute; left: 0; right: 0; bottom: calc(-490 * var(--k)); margin-inline: auto;
  width: calc(861 * var(--k)); height: calc(861 * var(--k));
  border: calc(100 * var(--k)) solid #fff; border-radius: 50%;
}
.hero__mockup {
  position: absolute; left: 0; right: 0; bottom: calc(155 * var(--k)); margin-inline: auto;
  width: calc(917 * var(--k)); height: auto;
}
.hero__cta { position: absolute; left: 0; right: 0; bottom: calc(55 * var(--k)); width: max-content; margin-inline: auto; display: flex; gap: calc(21 * var(--k)); }

/* --------------------------------------------- Payment methods + Why band */

/* Frame 8 and Frame 12 share one continuous surface and connected WebGL light;
   the bottom 97 px rounded edge laps over Frame 9 in pure #000512 (Rectangle 3). */
.band {
  position: relative; z-index: 2;
  margin-bottom: calc(-97 * var(--k));
  background: #000512;
  border-radius: 0 0 calc(92 * var(--k)) calc(92 * var(--k));
  overflow: hidden; isolation: isolate;
}

.methods { position: relative; z-index: 1; height: calc(1080 * var(--k)); background: transparent; overflow: visible; }
.methods__title {
  position: absolute; left: 0; right: 0; top: calc(837 * var(--k));
  font: 500 calc(61 * var(--k)) / normal var(--display); font-stretch: 125%; text-align: center;
}
.methods__sub {
  position: absolute; left: 0; right: 0; top: calc(791 * var(--k));
  font: 500 max(14px, calc(25 * var(--k))) / normal var(--display); font-stretch: 125%; text-align: center;
}
.methods__cta { position: absolute; left: 0; right: 0; top: calc(672 * var(--k)); margin-inline: auto; width: calc(392 * var(--k)); }

.mcard { position: absolute; transition: translate .5s var(--ease); }
.mcard:hover { translate: 0 calc(-6 * var(--k)); }
.mcard > *, .mcard__body > * { position: absolute; }
.mcard--sbp {
  left: calc(110 * var(--k)); top: calc(204 * var(--k)); width: calc(901 * var(--k)); height: calc(424 * var(--k));
  border-radius: calc(81.5 * var(--k));
  background: linear-gradient(126.42deg, #00f 37.115%, #000 98.221%);
}
.mcard--crypto {
  left: calc(1027 * var(--k)); top: calc(204 * var(--k)); width: calc(763 * var(--k)); height: calc(164 * var(--k));
  border-radius: calc(82 * var(--k));
  background: linear-gradient(102.41deg, #00f 31.441%, #000 96.289%);
}
.mcard--card {
  left: calc(1027 * var(--k)); top: calc(400 * var(--k)); width: calc(763 * var(--k)); height: calc(228 * var(--k));
  border-radius: calc(114 * var(--k));
  background: linear-gradient(257.98deg, #00f 47.01%, #000 97.597%);
}
.mcard__qr { left: calc(43 * var(--k)); top: calc(56 * var(--k)); width: calc(314 * var(--k)); height: calc(314 * var(--k)); border-radius: calc(35 * var(--k)); }
.mcard__body { inset: 0; }
.mcard__name { font: 500 calc(29 * var(--k)) / normal 'Onest', var(--text); white-space: nowrap; }
.mcard__fee img { width: 100%; height: auto; }

.pill {
  display: inline-flex; align-items: center; border-radius: calc(21.5 * var(--k));
  box-shadow: inset 0 0 0 1px #fff; font-family: var(--text); font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.pill img { flex: none; }
.pill--lg { height: calc(43 * var(--k)); min-width: calc(103 * var(--k)); padding: 0 calc(17 * var(--k)) 0 calc(11 * var(--k)); gap: calc(13 * var(--k)); font-size: max(12px, calc(18 * var(--k))); }
.pill--lg img { width: calc(25 * var(--k)); height: calc(26 * var(--k)); }
.pill--sm { height: calc(24 * var(--k)); min-width: calc(110 * var(--k)); padding: 0 calc(12 * var(--k)) 0 calc(9 * var(--k)); gap: calc(10 * var(--k)); font-size: max(7px, calc(9 * var(--k))); }
.pill--sm img { width: calc(14 * var(--k)); height: calc(14 * var(--k)); }
.pill--md { height: calc(30 * var(--k)); min-width: calc(112 * var(--k)); padding: 0 calc(20 * var(--k)) 0 calc(17.4 * var(--k)); gap: calc(13.6 * var(--k)); font-size: max(10px, calc(14 * var(--k))); }
.pill--md img { width: calc(16 * var(--k)); height: calc(16 * var(--k)); }

.mcard--sbp .pill { left: calc(390 * var(--k)); top: calc(153 * var(--k)); }
.mcard--sbp .mcard__name { left: calc(390 * var(--k)); top: calc(217 * var(--k)); }
.mcard--sbp .mcard__fee { left: calc(392.24 * var(--k)); top: calc(267.16 * var(--k)); width: calc(215 * var(--k)); }

.mcard--crypto .pill { left: calc(59 * var(--k)); top: calc(41 * var(--k)); }
.mcard--crypto .mcard__name { left: calc(59 * var(--k)); top: calc(69 * var(--k)); font-size: calc(21 * var(--k)); }
.mcard--crypto .mcard__fee { left: calc(59 * var(--k)); top: calc(100.875 * var(--k)); width: calc(96 * var(--k)); }
/* The Gram token stands on the card's bottom edge and is cut by it. */
.mcard__gram { left: calc(458 * var(--k)); top: calc(-80 * var(--k)); width: calc(287 * var(--k)); height: calc(244 * var(--k)); overflow: hidden; }
.mcard__gram img { width: 100%; height: auto; }

.mcard--card .pill { left: calc(382 * var(--k)); top: calc(58 * var(--k)); }
.mcard--card .mcard__name { left: calc(382 * var(--k)); top: calc(95 * var(--k)); font-size: calc(25 * var(--k)); }
.mcard--card .mcard__fee { left: calc(382 * var(--k)); top: calc(138 * var(--k)); width: calc(151 * var(--k)); }
.mcard__bank {
  left: 0; top: calc(-21 * var(--k)); width: calc(561.823 * var(--k)); height: calc(249 * var(--k));
  border-radius: calc(114 * var(--k)); overflow: hidden;
}
.mcard__bank img { position: absolute; left: calc(-119 * var(--k)); top: calc(-22 * var(--k)); width: calc(541 * var(--k)); max-width: none; height: auto; }

/* ------------------------------------------------------------ Why Rivara */

.why {
  position: relative; z-index: 1;
  height: calc(1035 * var(--k));
  background: transparent;
}
.why__title { position: absolute; left: calc(306 * var(--k)); top: calc(96 * var(--k)); font-weight: 400; }
.why__pre { display: block; font: 400 calc(78 * var(--k)) / normal var(--text); }
.why__brand { position: absolute; left: 0; top: calc(86 * var(--k)); width: calc(546 * var(--k)); height: auto; overflow: visible; }

.deck {
  --ck: calc(0.78 * var(--k));
  position: absolute; left: 0; top: calc(338 * var(--k)); width: 100%; height: calc(596 * var(--ck));
}
.card {
  position: absolute; top: 0; width: calc(500 * var(--ck)); height: calc(596 * var(--ck));
  border-radius: calc(115 * var(--ck));
  transform: translate(calc(var(--dx, 0) * var(--ck)), calc(var(--dy, 0) * var(--ck)));
  transition: transform .75s var(--ease);
}
.card > * { position: absolute; }
.card--1 { left: calc(284 * var(--k)); z-index: 4; background: linear-gradient(to right, #03f, #001f99); }
.card--2 { left: calc(284 * var(--k) + 410 * var(--ck)); z-index: 3; background: linear-gradient(to right, #00f, #009); }
.card--3 { left: calc(284 * var(--k) + 834 * var(--ck)); z-index: 2; background: linear-gradient(-90deg, #03f 2.9206%, #001f99 100%); }
.card--4 { left: calc(284 * var(--k) + 1234 * var(--ck)); z-index: 1; background: linear-gradient(to left, #03f, #001f99); }
.card__title { font: 500 calc(68 * var(--ck)) / normal var(--text); white-space: nowrap; }
.card__text { width: calc(400 * var(--ck)); font: 400 max(13px, calc(24 * var(--ck))) / normal var(--text); }
.card__art { overflow: hidden; pointer-events: none; }
.card__art img { position: absolute; left: 0; top: 0; width: 100%; max-width: none; height: auto; }

.card--1 .card__title { left: calc(47 * var(--ck)); top: calc(29 * var(--ck)); }
.card--1 .card__text { left: calc(47 * var(--ck)); top: calc(111 * var(--ck)); }
.card__art--usdt { left: calc(32 * var(--ck)); top: calc(174 * var(--ck)); width: calc(496 * var(--ck)); height: calc(422 * var(--ck)); }

.card--2 .card__title { left: calc(30 * var(--ck)); top: calc(45 * var(--ck)); font-size: calc(62 * var(--ck)); }
.card--2 .card__text { left: calc(37 * var(--ck)); top: calc(121 * var(--ck)); }
.card__art--chibi { left: calc(2 * var(--ck)); top: calc(185 * var(--ck)); width: calc(465 * var(--ck)); height: calc(411 * var(--ck)); transform: scaleX(-1); }
.card__art--chibi img { width: 91.35%; top: -0.14%; }

.card--3 .card__title { left: calc(40 * var(--ck)); top: calc(45 * var(--ck)); }
.card--3 .card__text { left: calc(47 * var(--ck)); top: calc(127 * var(--ck)); }
.card__art--coins { left: calc(-133 * var(--ck)); top: calc(105 * var(--ck)); width: calc(614 * var(--ck)); height: calc(491 * var(--ck)); }
.card__spark { left: calc(-27 * var(--ck)); top: calc(564 * var(--ck)); width: calc(80 * var(--ck)); height: calc(80 * var(--ck)); overflow: hidden; pointer-events: none; }
.card__spark img { position: absolute; left: -165.22%; top: -676.09%; width: 895.65%; height: 896.74%; max-width: none; }

.card--4 .card__title { left: calc(49 * var(--ck)); top: calc(27 * var(--ck)); }
.card--4 .card__text { left: calc(53 * var(--ck)); top: calc(116 * var(--ck)); width: calc(411 * var(--ck)); font-size: max(12px, calc(21 * var(--ck))); }
.card__art--plane { left: calc(-111 * var(--ck)); top: calc(213 * var(--ck)); width: calc(611 * var(--ck)); height: calc(383 * var(--ck)); }

/* ----------------------------------------------------------- Connect now */

/* An ordinary block that scrolls with the page, one frame tall: the sheets
   above and below lap over its edges (their negative margins), as in the frame.
   The veil dims it, words included, as the form's sheet rises (landing.js). */
.cta { position: relative; z-index: 1; height: calc(1080 * var(--k)); overflow: hidden; background: var(--bg); }
.cta__glass { transition-duration: .9s; }
.cta__veil { position: absolute; inset: 0; background: #02040a; opacity: 0; pointer-events: none; }
.cta__in {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: calc(1920 * var(--k)); height: calc(1080 * var(--k));
}
.cta__title {
  position: absolute; left: 0; right: 0; top: calc(302 * var(--k));
  font: 500 calc(108 * var(--k)) / normal var(--display); font-stretch: 125%; text-align: center;
}
.cta__acts { position: absolute; left: 0; right: 0; top: calc(614 * var(--k)); width: max-content; margin-inline: auto; display: flex; gap: calc(25 * var(--k)); }
.cta__sub {
  position: absolute; left: 0; right: 0; top: calc(755 * var(--k));
  font: 500 max(13px, calc(22 * var(--k))) / normal var(--display); font-stretch: 125%; text-align: center;
}

/* ----------------------------------------------------------- Application */

/* Compacted so the entire Frame 10 scene + blue footer (930 + 70 = 1000 * k)
   fits comfortably inside a single 16:9 viewport (1080 * k = 100svh). The top
   106 * k rounded cap overlaps Frame 9 in pure #070B16 (Frame 9 Rectangle 4). */
.apply {
  position: relative; z-index: 2; margin-top: calc(-106 * var(--k));
  background: var(--bg); border-radius: calc(92 * var(--k)) calc(92 * var(--k)) 0 0; overflow: hidden; isolation: isolate;
}
.apply .frame { height: calc(930 * var(--k)); margin-top: 0; }
.apply__title {
  position: absolute; left: calc(230 * var(--k)); top: calc(154 * var(--k));
  font: 500 calc(46 * var(--k)) / normal var(--display); font-stretch: 125%;
}
.apply__disc {
  position: absolute; left: calc(246 * var(--k)); top: calc(641 * var(--k));
  width: calc(588 * var(--k)); height: calc(588 * var(--k)); border-radius: 50%; background: #fff;
}
.apply__noscript { position: absolute; left: calc(1140 * var(--k)); top: calc(40 * var(--k)); max-width: calc(511 * var(--k)); color: #b9c3d6; }
.apply__noscript a { color: #8fd4ff; }

.lead {
  --fk: calc(0.74 * var(--k));
  position: absolute; left: calc(1140 * var(--k)); top: calc(148 * var(--k)); width: calc(691 * var(--fk));
}
.lead__head { display: flex; align-items: center; gap: calc(19 * var(--fk)); height: calc(54 * var(--fk)); font: 400 calc(40 * var(--fk)) / normal var(--text); white-space: nowrap; }
.lead__head img { width: calc(54 * var(--fk)); height: calc(54 * var(--fk)); }
.lead__card {
  position: relative; margin-top: calc(19 * var(--fk)); height: calc(682 * var(--fk));
  border-radius: calc(65 * var(--fk)); background: rgba(27, 27, 27, 0.41);
}
.lead__group { display: contents; }
.lead__legend { position: absolute; left: calc(47 * var(--fk)); font: 500 calc(33 * var(--fk)) / normal var(--text); }
.lead__group--contacts .lead__legend { top: calc(39 * var(--fk)); }
.lead__group--project .lead__legend { top: calc(260 * var(--fk)); }

.field { position: absolute; display: block; }
.field--name { left: calc(37 * var(--fk)); top: calc(102 * var(--fk)); width: calc(292 * var(--fk)); }
.field--tg { left: calc(363 * var(--fk)); top: calc(102 * var(--fk)); width: calc(292 * var(--fk)); }
.field--site { left: calc(37 * var(--fk)); top: calc(317 * var(--fk)); width: calc(618 * var(--fk)); }
.field__label { display: block; padding-left: calc(11 * var(--fk)); font: 500 max(13px, calc(25 * var(--fk))) / normal var(--text); white-space: nowrap; }
.field__box {
  position: relative; display: block; margin-top: calc(12 * var(--fk)); height: calc(91 * var(--fk));
  border-radius: calc(41 * var(--fk)); background: var(--bg);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.field--site .field__box { margin-top: calc(14 * var(--fk)); }
.field__box:hover { background: #0a1020; }
.field__box:focus-within { box-shadow: inset 0 0 0 1.5px rgba(47, 111, 240, 0.85); }
.field__icon { position: absolute; left: calc(28 * var(--fk)); top: 50%; translate: 0 -50%; width: calc(36 * var(--fk)); height: auto; opacity: .25; pointer-events: none; transition: opacity .25s ease; }
.field__icon--web { left: calc(27 * var(--fk)); width: calc(42 * var(--fk)); }
.field__box:focus-within .field__icon { opacity: .6; }
.field input {
  width: 100%; height: 100%; padding: 0 calc(28 * var(--fk)) 0 calc(82 * var(--fk));
  border: 0; border-radius: inherit; background: transparent; outline: none;
  color: #fff; font: 500 max(13px, calc(22 * var(--fk))) / 1 var(--text);
}
.field input::placeholder { color: rgba(255, 255, 255, 0.22); }
.field input[aria-invalid="true"] { color: #ffb4b4; }
.field__box:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1.5px #ff6b6b; }
.field__err { position: absolute; left: calc(14 * var(--fk)); top: calc(100% + 4 * var(--fk)); color: #ff8a8a; font-size: max(11px, calc(15 * var(--fk))); white-space: nowrap; }

/* Monthly turnover: an eight-stop slider (from 50k upward) + "just launched" toggle button. */
.turn { position: absolute; left: calc(37 * var(--fk)); top: calc(468 * var(--fk)); width: calc(618 * var(--fk)); }
.turn__head { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--fk)); }
.turn__label { display: block; padding-left: calc(11 * var(--fk)); font: 500 max(13px, calc(25 * var(--fk))) / normal var(--text); white-space: nowrap; }
.turn__fresh {
  display: inline-flex; align-items: center; gap: calc(11 * var(--fk));
  padding: calc(7 * var(--fk)) calc(15 * var(--fk)) calc(7 * var(--fk)) calc(8 * var(--fk));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  font: 500 max(12px, calc(21 * var(--fk))) / 1.15 var(--text);
  color: rgba(255, 255, 255, 0.78); white-space: nowrap;
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease, scale .2s var(--ease);
}
.turn__fresh:hover { background: rgba(255, 255, 255, 0.11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); color: #fff; }
.turn__fresh:active { scale: 0.97; }
.turn__fresh:disabled { opacity: .55; cursor: default; }
.turn__check {
  display: grid; place-items: center; flex: none;
  width: calc(26 * var(--fk)); height: calc(26 * var(--fk)); border-radius: 50%;
  background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.38);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.turn__check img {
  width: calc(15 * var(--fk)); height: calc(15 * var(--fk));
  opacity: 0; scale: 0.6; transition: opacity .2s ease, scale .25s var(--ease);
}
.turn__fresh[aria-pressed="true"] {
  background: rgba(47, 111, 240, 0.24);
  box-shadow: inset 0 0 0 1.5px var(--blue);
  color: #fff;
}
.turn__fresh[aria-pressed="true"] .turn__check { background: #d9d9d9; box-shadow: none; }
.turn__fresh[aria-pressed="true"] .turn__check img { opacity: 1; scale: 1; }

.turn__track {
  position: relative; margin-top: calc(14 * var(--fk)); height: calc(96 * var(--fk));
  border-radius: calc(48 * var(--fk)); background: #121622;
  touch-action: none; cursor: pointer;
  transition: opacity .3s ease;
  --p: 0;
}
.turn.is-fresh .turn__track { opacity: .36; }
.turn__rail {
  position: absolute; left: calc(50 * var(--fk)); right: calc(50 * var(--fk)); top: 50%; height: 1px;
  background: rgba(255, 255, 255, 0.25);
}
.turn__fill { position: absolute; left: 0; top: -1px; height: 3px; width: calc(var(--p) * 100%); border-radius: 2px; background: var(--pure); }
.turn__tick {
  position: absolute; top: calc(23 * var(--fk)); width: 1px; height: calc(50 * var(--fk));
  background: #fff; opacity: .28; transition: opacity .35s ease;
  left: calc((50 + 74 * var(--i)) * var(--fk));
}
.turn__tick:nth-child(2) { --i: 1; }
.turn__tick:nth-child(3) { --i: 2; }
.turn__tick:nth-child(4) { --i: 3; }
.turn__tick:nth-child(5) { --i: 4; }
.turn__tick:nth-child(6) { --i: 5; }
.turn__tick:nth-child(7) { --i: 6; }
.turn__tick.is-passed { opacity: .85; }
.turn__knob {
  position: absolute; top: calc(11 * var(--fk)); left: calc(13 * var(--fk));
  width: calc(74 * var(--fk)); height: calc(74 * var(--fk)); border-radius: 50%;
  background: #d9d9d9; box-shadow: inset 0 0 0 calc(7 * var(--fk)) var(--pure);
  transform: translateX(calc(var(--p) * 518 * var(--fk)));
  cursor: grab; touch-action: none;
  transition: background-color .2s ease;
}
.turn__knob:hover { background: #ececec; }
.turn.is-dragging .turn__knob { cursor: grabbing; background: #fff; }
.turn__knob:focus-visible { outline-offset: 4px; }

.turn__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: calc(12 * var(--fk));
  margin-top: calc(12 * var(--fk)); padding: 0 calc(11 * var(--fk));
}
.turn__bound { font: 400 max(11px, calc(17 * var(--fk))) / 1.2 var(--text); color: rgba(255, 255, 255, 0.34); white-space: nowrap; }
.turn__current {
  display: inline-block;
  font: 600 max(13px, calc(21 * var(--fk))) / 1.2 var(--text);
  color: #fff; white-space: nowrap;
  transition: color .25s ease;
}
.turn.is-fresh .turn__current { color: #8fd4ff; }

.lead__send { display: flex; align-items: center; gap: calc(26 * var(--fk)); margin-top: calc(26 * var(--fk)); }
.lead__submit {
  flex: none; position: relative;
  width: calc(255 * var(--fk)); height: calc(75 * var(--fk));
  border-radius: calc(48.5 * var(--fk));
  font-size: max(13px, calc(19 * var(--fk)));
}
.lead__submit:disabled { cursor: progress; opacity: .8; }
.lead__consent { max-width: calc(410 * var(--fk)); color: rgba(255, 255, 255, 0.5); font-size: max(11px, calc(15 * var(--fk))); line-height: 1.35; }
.lead__consent a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.lead__consent a:hover { color: #fff; text-decoration-color: #fff; }
.lead__done { display: flex; align-items: center; gap: calc(20 * var(--fk)); margin-top: calc(26 * var(--fk)); min-height: calc(75 * var(--fk)); }
.lead__done-mark { display: grid; place-items: center; flex: none; width: calc(56 * var(--fk)); height: calc(56 * var(--fk)); border-radius: 50%; background: #d9d9d9; box-shadow: inset 0 0 0 calc(5 * var(--fk)) var(--pure); }
.lead__done-mark img { width: calc(26 * var(--fk)); height: auto; }
.lead__done-text { flex: 1; font-size: max(13px, calc(20 * var(--fk))); line-height: 1.35; color: rgba(255, 255, 255, 0.8); }
.lead__done-text b { color: #fff; font-weight: 500; }
.lead__again {
  flex: none; width: calc(200 * var(--fk)); height: calc(75 * var(--fk));
  border-radius: calc(48.5 * var(--fk)); font-size: max(13px, calc(19 * var(--fk)));
}
.lead__status { margin-top: calc(12 * var(--fk)); min-height: 1.4em; font-size: max(12px, calc(16 * var(--fk))); color: rgba(255, 255, 255, 0.7); }
.lead__status[data-tone="error"] { color: #ff9a9a; }
.lead__status a { color: #8fd4ff; text-decoration: underline; }
.lead.is-busy .lead__submit { pointer-events: none; }

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

.ftr { position: relative; z-index: 3; margin-top: calc(-54 * var(--k)); height: calc(124 * var(--k)); }
/* The sheet is a little wider than the page, so its corners start off-screen. */
.ftr::before {
  content: ''; position: absolute; inset: 0 calc(-36 * var(--k));
  background: var(--pure); border-radius: calc(74 * var(--k)) calc(74 * var(--k)) 0 0;
}
.ftr__in { position: relative; width: calc(1920 * var(--k)); height: 100%; margin-inline: auto; }
.ftr__girl {
  position: absolute; left: calc(360 * var(--k)); top: calc(-405 * var(--k));
  width: calc(360 * var(--k)); height: auto; pointer-events: none;
  filter: drop-shadow(0 calc(10 * var(--k)) calc(10 * var(--k)) rgba(0, 0, 0, 0.09)) drop-shadow(0 calc(2 * var(--k)) calc(5 * var(--k)) rgba(0, 0, 0, 0.1));
}
.ftr__brand { position: absolute; left: calc(110 * var(--k)); top: calc(36 * var(--k)); display: flex; align-items: center; gap: calc(22 * var(--k)); }
.ftr__brand img:first-child { width: calc(52 * var(--k)); height: auto; }
.ftr__brand img:last-child { width: calc(136 * var(--k)); height: auto; margin-top: calc(1 * var(--k)); }
.ftr__nav {
  position: absolute; right: calc(269 * var(--k)); top: calc(50 * var(--k));
  display: flex; align-items: center; gap: calc(48 * var(--k));
}
.ftr__nav > * {
  position: relative;
  font: 500 max(13px, calc(19 * var(--k))) / normal var(--text); white-space: nowrap;
}
.ftr__nav > ::after {
  content: ''; position: absolute; left: calc(2 * var(--k)); right: 0; bottom: calc(-6 * var(--k));
  height: max(1px, calc(2 * var(--k))); background: #fff;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease);
}
.ftr__nav > .is-line::after, .ftr__nav > :hover::after, .ftr__nav > :focus-visible::after { transform: scaleX(1); }

/* --------------------------------------------------------------- Managers */

.mgrs {
  width: min(92vw, 440px); padding: 26px 26px 18px; margin: auto;
  border: 0; border-radius: 34px; background: #0c1222; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  opacity: 0; translate: 0 14px; transition: opacity .3s ease, translate .4s var(--ease), overlay .4s allow-discrete, display .4s allow-discrete;
}
.mgrs[open] { opacity: 1; translate: 0 0; }
@starting-style { .mgrs[open] { opacity: 0; translate: 0 14px; } }
.mgrs::backdrop { background: rgba(2, 4, 12, 0); transition: background-color .3s ease, overlay .3s allow-discrete, display .3s allow-discrete; }
.mgrs[open]::backdrop { background: rgba(2, 4, 12, 0.62); }
@starting-style { .mgrs[open]::backdrop { background: rgba(2, 4, 12, 0); } }
.mgrs__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.mgrs__title { font: 500 22px/1.2 var(--text); }
.mgrs__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); transition: background-color .25s ease; }
.mgrs__close:hover { background: rgba(255, 255, 255, 0.14); }
.mgrs__list a {
  display: flex; align-items: center; justify-content: space-between; padding: 13px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 17px; color: #dfe7ff;
  transition: color .2s ease, padding .3s var(--ease);
}
.mgrs__list a::after { content: '→'; color: #6f8bd6; transition: translate .3s var(--ease); }
.mgrs__list a:hover { color: #fff; padding-left: 10px; }
.mgrs__list a:hover::after { translate: 4px 0; }

/* -------------------------------------------------------------- Motion */

/* The first screen waits for landing.js; html.shown (set 3.5 s in) or reduced motion shows it regardless. */
.js:not(.rm):not(.shown) [data-intro] { opacity: 0; }
.shown [data-intro] { opacity: 1 !important; }

/* No WebGL2: the light becomes a still picture of itself. */
.no-gl .hero { background: radial-gradient(60% 70% at 49% -12%, #6fc6ff 0%, #2b5bdc 30%, #121a46 62%, var(--bg) 100%); }
.no-gl .band { background: radial-gradient(54% 28% at 50% 51%, #9ce8ff 0%, #3a60e2 28%, #070b16 62%, #000512 100%); }
.no-gl .apply { background: radial-gradient(38% 45% at 28% 84%, #6fc6ff 0%, #2b4bd0 36%, var(--bg) 74%); }
.no-gl .cta { background: linear-gradient(#000, #00f 90%); }

/* ---------------------------------------------------------------- Phones */

@media (max-width: 1023px) {
  .frame { width: auto; }

  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .top { position: relative; height: 84px; flex: none; }
  .logo { top: 22px; gap: 9px; }
  .logo__mark { width: 40px; height: 40px; }
  .logo__word { width: 104px; }
  .top__acts { right: 14px; top: 20px; gap: 8px; }
  .iconbtn { width: 44px; height: 44px; }
  .iconbtn--login { width: auto; min-width: 0; height: 44px; padding: 0 15px 0 10px; gap: 7px; border-radius: 22px; font-size: 13px; }
  .iconbtn--login img { width: 22px; min-width: 0; }
  .iconbtn--join img { width: 18px; min-width: 0; }
  @media (max-width: 520px) {
    .logo { left: 18px; right: auto; margin: 0; }
  }

  .hero__stage {
    --k: calc(min(100vw, 760px) / 1000);
    position: relative; left: auto; top: auto; translate: none; flex: 1;
    width: 100%; height: auto; min-height: calc(100svh - 84px);
    display: flex; flex-direction: column; align-items: center; padding: 18px 18px 26px; overflow: hidden;
  }
  .hero__title, .hero__sub { position: static; }
  .hero__title { font-size: clamp(31px, 9vw, 52px); padding-inline: 6px; }
  .hero__sub { margin-top: 14px; font-size: clamp(14px, 3.8vw, 19px); padding-inline: 10px; }
  .hero__mockup { position: relative; left: auto; right: auto; bottom: auto; z-index: 1; width: min(124%, 700px); max-width: none; margin-top: auto; padding-top: 24px; }
  .hero__ring { bottom: calc(-660 * var(--k)); width: calc(1140 * var(--k)); height: calc(1140 * var(--k)); border-width: calc(120 * var(--k)); }
  .hero__cta { position: relative; left: auto; right: auto; bottom: auto; z-index: 2; margin-top: 18px; gap: 10px; }
  .hero__cta .btn { width: min(42vw, 200px); height: 52px; border-radius: 26px; font-size: 15px; }

  .band { margin-bottom: -48px; border-radius: 0 0 36px 36px; }
  .methods { height: auto; padding: 64px 16px 56px; }
  .methods .frame { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
  .methods__title, .methods__sub, .methods__cta { position: static; }
  .methods__title { order: 1; font-size: clamp(28px, 7.6vw, 44px); }
  .methods__sub { order: 2; margin: 2px 0 22px; font-size: 15px; }
  .methods__cta { order: 6; align-self: center; width: min(100%, 340px); height: 56px; border-radius: 28px; margin-top: 12px; font-size: 16px; }
  /* The cards keep their shapes and art; their words go into flow. */
  .mcard { --k: 0.62px; position: relative; left: auto; top: auto; width: 100%; height: auto; border-radius: 30px; }
  .mcard > *, .mcard__body > * { position: relative; }
  .mcard .pill, .mcard .mcard__name, .mcard .mcard__fee { left: auto; top: auto; }
  .mcard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
  .mcard__name { white-space: normal; }
  .mcard__fee { width: auto !important; }
  .mcard--sbp { order: 3; display: flex; align-items: center; gap: 18px; padding: 16px; }
  .mcard__qr { flex: none; left: auto; top: auto; width: 40%; max-width: 180px; height: auto; aspect-ratio: 1; border-radius: 18px; }
  .mcard--sbp .mcard__name { font-size: clamp(16px, 4.4vw, 22px); }
  .mcard--sbp .mcard__fee img { width: clamp(96px, 27vw, 150px); }
  .mcard--crypto, .mcard--card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; min-height: 152px; padding: 22px; }
  .mcard--crypto { order: 4; margin-top: 58px; padding-right: 44%; }
  .mcard--card { order: 5; padding-left: 46%; }
  .mcard--crypto .mcard__name, .mcard--card .mcard__name { font-size: clamp(15px, 4.1vw, 20px); }
  .mcard--crypto .mcard__fee img { width: 72px; }
  .mcard--card .mcard__fee img { width: 104px; }
  .pill--sm { font-size: 9px; }
  .mcard__gram { position: absolute !important; left: auto; right: 6%; top: -56px; bottom: 0; width: 42%; max-width: 190px; height: auto; }
  .mcard__bank { position: absolute !important; left: 0; top: -14px; bottom: 0; width: 46%; height: auto; border-radius: 30px; }
  .mcard__bank img { left: -16%; top: -6%; width: 122%; }

  .why { height: auto; padding: 48px 0 118px; }
  .why .frame { width: 100%; }
  .why__title { position: relative; left: auto; top: auto; display: block; padding: 0 22px; }
  .why__pre { font-size: clamp(40px, 12vw, 64px); }
  .why__brand { position: relative; top: auto; margin-top: 6px; width: min(78vw, 420px); }
  .deck {
    --ck: calc(min(74vw, 340px) / 500);
    position: relative; top: auto; height: auto;
    display: flex; gap: 12px; padding: 34px 22px 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .deck::-webkit-scrollbar { display: none; }
  .card { position: relative; left: auto !important; flex: none; transform: none !important; scroll-snap-align: center; overflow: hidden; }
  .card__text { font-size: max(13px, calc(24 * var(--ck))); }

  .cta { height: max(560px, 75svh); }
  .cta__in { --k: calc(100vw / 1000); width: 100%; height: auto; }
  .cta__title, .cta__acts, .cta__sub { position: relative; top: auto; left: auto; right: auto; }
  .cta__in { display: flex; flex-direction: column; align-items: center; padding: 0 18px; }
  .cta__title { font-size: clamp(34px, 10vw, 64px); }
  .cta__acts { margin-top: 30px; gap: 10px; }
  .cta__acts .btn { width: min(40vw, 190px); height: 52px; border-radius: 26px; font-size: 15px; }
  .cta__sub { margin-top: 26px; font-size: 14px; }

  .apply { margin-top: -48px; border-radius: 36px 36px 0 0; }
  .apply .frame { height: auto; margin-top: 0; padding: 64px 16px 150px; display: flex; flex-direction: column; align-items: center; }
  .apply__title { position: static; align-self: stretch; font-size: clamp(27px, 7.4vw, 44px); }
  .apply__disc { display: none; }
  .apply__noscript { position: static; margin-top: 20px; max-width: none; }
  .lead { --fk: calc(min(100vw - 32px, 640px) / 691); position: relative; left: auto; top: auto; margin-top: 34px; }
  .lead__head { font-size: max(19px, calc(40 * var(--fk))); }
  .field__label, .turn__label { font-size: max(13px, calc(25 * var(--fk))); }
  .turn__fresh { font-size: max(12px, calc(20 * var(--fk))); }
  .turn__current { font-size: max(13px, calc(21 * var(--fk))); }
  .lead__send { flex-direction: column; align-items: stretch; gap: 14px; }
  .lead__submit { width: 100%; height: 56px; border-radius: 28px; font-size: 16px; }
  .lead__consent { max-width: none; text-align: center; }
  .lead__done { flex-wrap: wrap; }

  .ftr { margin-top: -40px; height: auto; }
  .ftr::before { inset: 0; border-radius: 36px 36px 0 0; }
  .ftr__in { width: auto; display: flex; flex-direction: column; gap: 22px; padding: 34px 22px 40px; }
  .ftr__girl { left: auto; right: 6px; top: -128px; width: 132px; }
  .ftr__brand { position: static; gap: 14px; }
  .ftr__brand img:first-child { width: 40px; }
  .ftr__brand img:last-child { width: 104px; }
  .ftr__nav { position: static; right: auto; top: auto; display: flex; flex-wrap: wrap; gap: 14px 22px; }
  .ftr__nav > * { font-size: 15px; }
  .ftr__nav > ::after { bottom: -3px; left: 0; height: 1px; }
}
