/* useven.uz — company site. Dark, emerald glow: the greens of the app's
   wallet card (#2C9A49 → #1A5E2D) and the admin panel's shell wash. */
:root {
  --bg: #060607;
  --bg-2: #0a0a0b;
  --ink: #f5f5f4;
  --ink-2: #d4d4d8;
  --muted: #9a9aa1;
  --faint: #85858c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  --green: #49d460;
  --green-hi: #8df5a3;
  --grad-text: linear-gradient(100deg, #d3ffdc 0%, #7ee894 34%, #49d460 62%, #2c9a49 100%);
  --grad-brand: linear-gradient(135deg, #2c9a49 0%, #1a5e2d 68%, #123a20 100%);
  --red: #f05865;
  --r: 18px;
  --pad: clamp(20px, 5vw, 40px);
  /* Wix Madefor: Display for headings and big numbers, Text for reading; IBM Plex Mono for levels and codes. */
  --sans: "Wix Madefor Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Wix Madefor Display", "Wix Madefor Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain over everything: keeps the large dark fields from banding. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(73, 212, 96, 0.32); color: #fff; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.03em; margin: 0; font-weight: 600; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 6, 7, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: #fff; }
.brand img { height: 28px; width: auto; filter: drop-shadow(0 0 14px rgba(73, 212, 96, 0.45)); }
/* The wordmark as in the admin panel: Inter 600, a touch tight. */
.brand span { font: 600 20px/1 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: -0.01em; }
.nav { display: flex; gap: 26px; margin-left: 10px; font-size: 14.5px; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="location"] { color: #fff; }
/* Slides under the menu item of the section in view (site.js). */
.nav-bar {
  position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; border-radius: 2px; opacity: 0;
  background: var(--green); pointer-events: none;
  transition: transform 0.5s var(--ease), width 0.5s var(--ease), opacity 0.3s;
}
.top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
/* Language: a dropdown with the app's round flags. */
.lang { position: relative; }
.lang > summary {
  list-style: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 8px;
  border-radius: 12px; cursor: pointer; color: var(--ink-2); font: 500 13.5px/1 var(--sans); letter-spacing: 0.02em;
  transition: background-color 0.2s, color 0.2s;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover, .lang[open] > summary { background: rgba(255, 255, 255, 0.06); color: #fff; }
.lang img { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.lang-caret { width: 12px; height: 12px; color: var(--faint); transition: transform 0.25s var(--ease); }
.lang[open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  /* Exactly as wide as the button above it. */
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 4px; list-style: none;
  background: #111113; border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  transform-origin: top center; animation: menu-in 0.18s var(--ease);
}
.lang-menu a {
  /* flags line up with the button's flag (8 px in) */
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 3px; border-radius: 9px;
  color: var(--ink-2); font: 500 13.5px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(255, 255, 255, 0.06); color: #fff; outline: none; }
.lang-menu a[aria-current="true"] { color: #fff; background: rgba(73, 212, 96, 0.12); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-green {
  background: linear-gradient(180deg, #74e98a 0%, #3cc155 100%); color: #03140a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 1px rgba(141, 245, 163, 0.35), 0 12px 32px -12px rgba(73, 212, 96, 0.7);
}
.btn-green:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 1px rgba(141, 245, 163, 0.5), 0 18px 44px -12px rgba(73, 212, 96, 0.9); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.07); }
.btn-white { background: #fff; color: #0a0a0b; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* App Store / Google Play: not out yet, so plain badges with "coming soon" instead of links. */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 13px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
  color: #fff; cursor: default; user-select: none;
}
.store-icon { flex: none; width: 23px; height: 23px; }
.store-text { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.store-text small { margin-bottom: 2px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }

/* Phone and tablet: the menu opens from a button — a <details>, so it works without JS too. */
.menu { display: none; order: 4; }
.menu > summary {
  list-style: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  cursor: pointer; color: var(--ink-2); transition: background-color 0.2s, color 0.2s;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: rgba(255, 255, 255, 0.06); color: #fff; }
.menu svg { width: 22px; height: 22px; }
.menu .icon-close, .menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--pad);
  background: radial-gradient(700px 420px at 50% 40%, rgba(44, 154, 73, 0.22), transparent 70%), var(--bg); }
.notfound .code { font: 600 clamp(88px, 18vw, 160px)/1 var(--display); letter-spacing: -0.05em; }
.notfound h1 { margin-top: 18px; font-size: clamp(26px, 4vw, 34px); }
.notfound p { margin: 14px auto 0; max-width: 30em; color: var(--muted); }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.notfound .brand { justify-content: center; margin-bottom: 40px; }

/* ---------- section scaffolding ---------- */
/* clip: the glows behind phones may spill past the edge, but never scroll the page sideways. */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow-x: clip; }
.section.alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 14%, var(--bg-2) 86%, var(--bg) 100%); }
.section.glow {
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(44, 154, 73, 0.16), transparent 65%),
    radial-gradient(800px 600px at 0% 100%, rgba(26, 94, 45, 0.22), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.section h2 { font-size: clamp(34px, 4.6vw, 56px); }
.intro { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 40em; }

/* ---------- glass cards ---------- */
.card {
  position: relative; overflow: hidden; padding: 28px;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color 0.35s, transform 0.45s var(--ease);
}
/* A hairline of light along the top edge… */
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 245, 163, 0.45), transparent);
}
/* …and a soft spotlight that follows the pointer (site.js sets --mx / --my). */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(73, 212, 96, 0.12), transparent 45%);
}
.card:hover { border-color: rgba(73, 212, 96, 0.32); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 19px; letter-spacing: -0.02em; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 22px;
  display: grid; place-items: center; color: var(--green-hi);
  background: linear-gradient(145deg, rgba(73, 212, 96, 0.24), rgba(73, 212, 96, 0.05));
  box-shadow: inset 0 0 0 1px rgba(73, 212, 96, 0.28);
}
.icon svg { width: 22px; height: 22px; }
.grid { display: grid; gap: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 10vw, 132px) 0 clamp(88px, 10vw, 140px);
  background:
    radial-gradient(1000px 640px at 80% 8%, rgba(44, 154, 73, 0.30), transparent 62%),
    radial-gradient(900px 520px at -10% 110%, rgba(26, 94, 45, 0.42), transparent 66%),
    linear-gradient(180deg, var(--bg) 0%, #08100b 100%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 20%, transparent 74%);
  mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 20%, transparent 74%);
}
/* The price line that draws itself on load — the app's splash, as a backdrop. */
.hero-chart {
  /* Scaled whole, never cropped: a fixed-height box sliced the line's peak off on wide screens. */
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 1440 / 520; pointer-events: none;
  /* Faint under the text on the left, full strength behind the phone. */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.3) 40%, #000 72%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.3) 40%, #000 72%);
}
.hero-chart .line { fill: none; stroke: url(#hc-stroke); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(73, 212, 96, 0.55)); }
.hero-chart .area { fill: url(#hc-fill); }
html.js .hero-chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js.ready .hero-chart .line { animation: draw 3s var(--ease) 0.3s forwards; }
html.js .hero-chart .area { opacity: 0; }
html.js.ready .hero-chart .area { animation: fade 1.8s ease 1.6s forwards; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 4.7vw, 60px); letter-spacing: -0.035em; line-height: 1.05; }
@media (min-width: 961px) { .hero h1 .grad { white-space: nowrap; } }
.hero .lead { margin-top: 26px; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 33em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .fine { margin-top: 30px; padding-left: 16px; border-left: 1px solid rgba(73, 212, 96, 0.4); font-size: 14px; color: var(--muted); max-width: 36em; }

.hero-visual { position: relative; display: flex; justify-content: center; perspective: 1400px; }
.hero-stage {
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
}
.hero-stage::before {
  content: ""; position: absolute; inset: 6% -30% -6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(73, 212, 96, 0.38), rgba(44, 154, 73, 0.12) 55%, transparent);
  filter: blur(10px); animation: breathe 9s ease-in-out infinite;
}
.hero-stage .phone { --w: 300px; --top: #151517; }
.float { animation: float 7s ease-in-out infinite; will-change: transform; }
.float-b { animation-duration: 8s; animation-delay: -2.5s; }
.float-card { position: absolute; left: -38%; bottom: 7%; width: 272px; z-index: 4; }

.sample {
  padding: 18px; border-radius: 20px; background: #111113;
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sample-head > span:last-child { display: flex; gap: 6px; }
.sample-sym { font-weight: 700; font-size: 17px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip-long { background: rgba(73, 212, 96, 0.14); color: var(--green); }
.chip-live { background: #232326; color: #e4e4e7; }
.sample-rows { margin-top: 12px; display: grid; }
.sample-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sample-row:last-child { border-bottom: 0; }
.sample-row span:first-child { color: var(--muted); }
.sample-note { margin-top: 10px; font-size: 12px; color: var(--faint); }
/* ---------- phones with real app screens (assets/screens/<lang>/*.webp:
   dark theme, 390×797 CSS px under a 47 px status bar = 390×844) ---------- */
.phone {
  --w: 280px;
  --top: #0f0f10;
  position: relative; flex: none; width: var(--w);
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(150deg, #3a3a40 0%, #18181b 36%, #0b0b0c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 30px 90px -40px rgba(73, 212, 96, 0.45);
}
.phone-screen { position: relative; overflow: hidden; aspect-ratio: 390 / 844; border-radius: calc(var(--w) * 0.135); background: var(--top); transform: translateZ(0); }
.phone-screen img { position: absolute; left: 0; top: 5.57%; width: 100%; height: auto; }
.phone-status {
  position: absolute; inset: 0 0 auto; height: 5.57%; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 9% 0 11%; background: var(--top); color: #fff;
}
.phone-status::before { content: "9:41"; font: 600 calc(var(--w) * 0.042) / 1 var(--sans); letter-spacing: -0.01em; }
.phone-status::after {
  content: ""; width: 20%; height: 42%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 14'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='9' width='3' height='4' rx='1'/%3E%3Crect x='5' y='6.5' width='3' height='6.5' rx='1'/%3E%3Crect x='10' y='4' width='3' height='9' rx='1'/%3E%3Crect x='15' y='1.5' width='3' height='11.5' rx='1'/%3E%3Cpath d='M30 3.2a10 10 0 0 1 7 2.9l1.3-1.3a11.8 11.8 0 0 0-16.6 0L23 6.1a10 10 0 0 1 7-2.9zm0 3.6a6.4 6.4 0 0 1 4.5 1.8l1.3-1.3a8.2 8.2 0 0 0-11.6 0l1.3 1.3A6.4 6.4 0 0 1 30 6.8zm0 3.6a2.8 2.8 0 0 1 2 .8L30 13.2l-2-2a2.8 2.8 0 0 1 2-.8z'/%3E%3Crect x='42.5' y='1.5' width='20' height='11' rx='3.2' fill='none' stroke='%23fff' stroke-opacity='.45'/%3E%3Crect x='44.5' y='3.5' width='16' height='7' rx='1.8'/%3E%3Crect x='63.6' y='5' width='1.6' height='4' rx='.8' fill-opacity='.45'/%3E%3C/g%3E%3C/svg%3E") right center / contain no-repeat;
}
.phone-island { position: absolute; z-index: 3; top: 1.25%; left: 50%; width: 30%; height: 3.5%; transform: translateX(-50%); background: #000; border-radius: 999px; }

/* ---------- subscription: cards + the signals screen ---------- */
.sub { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 56px; }
.sub .grid { grid-template-columns: repeat(2, 1fr); }
.sub-phone, .pay-phone { position: relative; isolation: isolate; }
.sub-phone::before, .pay-phone::before {
  content: ""; position: absolute; inset: 10% -22% 0; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(73, 212, 96, 0.28), transparent);
}
.sub-phone .phone, .pay-phone .phone { --w: 270px; }

/* ---------- free tools: RSI, calendar, news ---------- */
.features { display: grid; gap: clamp(96px, 12vw, 160px); margin-top: clamp(64px, 9vw, 110px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.035em; }
.feature-lead { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 15px; color: var(--muted); }
.checks li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2349d460' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.feature-visual { position: relative; display: flex; justify-content: center; align-items: center; isolation: isolate; }
.feature-visual::before {
  content: ""; position: absolute; inset: 0 -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(73, 212, 96, 0.2), transparent);
}
.feature-visual .phone { --w: 260px; }
.drift { transform: translateY(var(--py, 0px)); transition: transform 0.2s linear; }

/* RSI: live table over the chart screen */
.rsi-visual { justify-content: flex-end; padding-right: 4%; }
.rsi-card {
  position: absolute; left: 0; bottom: 6%; z-index: 3; width: min(372px, 100%);
  padding: 18px 18px 14px; border-radius: 20px; background: #111113; border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.rsi-card[hidden] { display: none; }
.rsi-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rsi-title { font-weight: 700; font-size: 16px; color: #fff; }
.rsi-updated { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--mono); color: var(--muted); }
.rsi-table { width: 100%; margin-top: 10px; border-collapse: separate; border-spacing: 0 6px; }
.rsi-table th { font: 500 11px/1 var(--mono); color: var(--faint); text-align: center; padding: 0 2px 2px; }
.rsi-table th:first-child, .rsi-table td:first-child { text-align: left; }
.rsi-table td { text-align: center; padding: 0 2px; }
.rsi-sym { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; }
.rsi-cell {
  display: inline-block; min-width: 46px; padding: 6px 0; border-radius: 8px;
  background: #1d1d20; color: #e4e4e7; font: 500 13px/1.2 var(--mono);
  animation: pop 0.5s var(--ease) both; animation-delay: var(--i, 0s);
}
.rsi-cell.ob { background: rgba(240, 88, 101, 0.18); color: #f7939c; box-shadow: inset 0 0 0 1px rgba(240, 88, 101, 0.3); }
.rsi-cell.os { background: rgba(73, 212, 96, 0.16); color: #7ae98e; box-shadow: inset 0 0 0 1px rgba(73, 212, 96, 0.32); }
.rsi-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.rsi-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--red); }
.rsi-legend span + span::before { background: var(--green); }
.rsi-foot { margin-top: 8px; font-size: 12px; color: var(--faint); }

/* Calendar: the list and the explanation sheet, overlapped */
.duo .phone { --w: 236px; }
.duo .phone:first-child { transform: rotate(-5deg) translate(26px, -18px); opacity: 0.9; }
.duo .phone:last-child { transform: rotate(4deg) translate(-26px, 34px); z-index: 2; }

/* ---------- tariffs: the app's plan cards (gradient set per tariff in the admin panel) ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 56px; }
.plan {
  --from: #7a5af8; --to: #2d1b69; --angle: 135deg;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; padding: 30px;
  border-radius: 24px; color: #fff;
  background: linear-gradient(var(--angle), var(--from), var(--to));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
/* The plan-card plastic: a diagonal sheen and the mark as a watermark. */
.plan::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.10) 50%, transparent 70%);
}
.plan::after {
  content: ""; position: absolute; right: -40px; bottom: -30px; width: 220px; height: 135px; z-index: -1; opacity: 0.08;
  background: url("logo.svg") center / contain no-repeat; filter: brightness(0) invert(1);
}
.plan:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 50px 90px -40px rgba(0, 0, 0, 0.95); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.plan-badge { height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); white-space: nowrap; }
.plan-term { margin-top: 6px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.plan-price { margin-top: 28px; font-family: var(--display); font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-cur { margin-left: 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.plan-sum { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.plan ul { list-style: none; padding: 22px 0 0; margin: 24px 0 0; display: grid; gap: 11px; font-size: 14.5px; border-top: 1px dashed rgba(255, 255, 255, 0.24); }
.plan li { display: flex; gap: 10px; color: rgba(255, 255, 255, 0.92); }
.plan li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan .btn { margin-top: auto; width: 100%; }
.plan ul + .btn { margin-top: 28px; }
.plan-skeleton { height: 440px; border-radius: 24px; background: linear-gradient(90deg, #111113, #19191c, #111113); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.plans-note { margin-top: 26px; font-size: 14px; color: var(--muted); max-width: 52em; }
.plans-error { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--muted); }

/* ---------- payment ---------- */
.pay { display: grid; grid-template-columns: 1fr auto; gap: clamp(36px, 6vw, 96px); align-items: center; margin-top: 56px; }
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { padding: 24px 26px 24px 92px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  top: 26px; left: 26px; right: auto; height: auto; background: none;
  font: 500 15px/1.2 var(--mono); color: var(--green); letter-spacing: 0.04em;
  padding-right: 18px; border-right: 1px solid rgba(73, 212, 96, 0.35);
}
.step p { margin-top: 8px; }
.pay-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.pay-methods .label { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.pm {
  height: 48px; padding: 0 18px; border-radius: 12px; display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
}
.pm img { display: block; width: auto; height: 17px; }
/* Optical sizes: the four marks differ in how much of their box they fill. */
.pm .pm-humo { height: 22px; }
.pm .pm-visa { height: 16px; }
.pm .pm-mc { height: 26px; }
.secure { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 52em; }

/* ---------- refunds note (inside "payment") ---------- */
.refund { margin-top: clamp(64px, 8vw, 96px); }
.refund h3 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.03em; }
.refund p { margin-top: 16px; max-width: 56em; color: var(--ink-2); }
.refund a { color: var(--green); }

/* ---------- documents and requisites: one panel ---------- */
.legal-panel {
  display: grid; grid-template-columns: 1fr 1.25fr; margin-top: 48px;
  border: 1px solid var(--line); border-radius: 24px; background: var(--glass); overflow: hidden;
}
.legal-col, .legal-contacts { padding: clamp(28px, 3.4vw, 44px); }
.legal-col + .legal-col { border-left: 1px solid var(--line); }
.legal-contacts { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.legal-panel h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 22px; }

.doc-list { display: grid; }
.doc-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 0; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 15.5px; text-decoration: none; transition: color 0.2s;
}
.doc-list a:first-child { border-top: 0; padding-top: 0; }
.doc-list a::after { content: "→"; color: var(--faint); transition: transform 0.25s var(--ease), color 0.2s; }
.doc-list a:hover { color: #fff; }
.doc-list a:hover::after { color: var(--green); transform: translateX(3px); }

.seller-name { font-size: 17px; font-weight: 500; color: var(--ink); }
.seller-name span { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 400; color: var(--faint); }
.facts { margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: 13px; color: var(--faint); }
.facts dd { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 28px; }
.contact-list span { display: block; font-size: 13px; color: var(--faint); }
.contact-list a { display: inline-block; margin-top: 4px; font-size: 16px; color: var(--ink); text-decoration: none; transition: color 0.2s; }
.contact-list a:hover { color: var(--green); }

/* the risk note and copyright that used to sit in the footer */
.legal-note { margin-top: 28px; max-width: 62em; font-size: 13.5px; color: var(--faint); }
.legal-note p + p { margin-top: 8px; }

/* ---------- after the documents: the app peeks out; a long scroll pulls it up (site.js sets --p 0…1) ---------- */
.pull { --p: 0; position: relative; height: 145vh; background: var(--bg); }
/* The site header slides away as the app comes up (gone by a third of the pull). */
.top { transform: translateY(calc(min(1, var(--pull, 0) * 3) * -100%)); }
.pull-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* the page around the sheet darkens into the app's own background */
.pull-stage::before { content: ""; position: absolute; inset: 0; background: #0b0d10; opacity: var(--p); }
.pull-hint {
  position: absolute; top: 26px; left: 0; right: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted); opacity: calc(1 - var(--p) * 1.6);
}
.pull-hint svg { width: 22px; height: 22px; color: var(--green); animation: nudge 1.6s ease-in-out infinite; }
.pull-bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.pull-bar i { display: block; width: calc(var(--p) * 100%); height: 100%; background: var(--green); }
/* As wide as app.useven.uz on a desktop (430 px), the full width on a phone. */
.pull-sheet {
  position: absolute; left: 50%; top: 0; z-index: 2; display: block; width: min(430px, 100%); height: 100%;
  overflow: hidden; background: #151517;
  border-radius: calc((1 - var(--p)) * 28px) calc((1 - var(--p)) * 28px) 0 0;
  transform: translateX(-50%) translateY(calc((1 - var(--p)) * 128px)) scale(calc(0.94 + var(--p) * 0.06));
  transform-origin: top center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 -30px 90px -30px rgba(73, 212, 96, 0.4);
}
/* The app as it stands on any screen: Home from the top, the tab bar at the bottom edge. */
.pull-sheet img { position: absolute; left: 0; width: 100%; height: auto; display: block; }
.pull-home { top: 0; }
.pull-tabbar { bottom: 0; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- preloader: the mark assembles, as on the app's splash ---------- */
.preloader { display: none; }
html.js .preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(520px 360px at 50% 52%, rgba(44, 154, 73, 0.24), transparent 70%), var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
html.js.ready .preloader { opacity: 0; visibility: hidden; }
html.js:not(.ready) body { overflow: hidden; }
.preloader-mark { width: 92px; overflow: visible; filter: drop-shadow(0 0 22px rgba(73, 212, 96, 0.45)); transition: transform 0.7s var(--ease); }
html.js.ready .preloader-mark { transform: scale(0.9); }
.preloader-mark path { fill: var(--green); opacity: 0; transform: translateY(18px); transform-box: fill-box; animation: piece 0.7s var(--ease) forwards; }
.preloader-mark .p2 { animation-delay: 0.14s; }
.preloader-mark .p3 { animation-delay: 0.28s; }
@keyframes piece { to { opacity: 1; transform: none; } }

/* ---------- one-time notice: not a broker ---------- */
.notice { width: 100%; max-width: min(500px, calc(100% - 32px)); padding: 0; border: 0; background: transparent; color: var(--ink); }
.notice::backdrop { background: rgba(3, 3, 4, 0.64); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.notice[open] { animation: notice-in 0.55s var(--ease); }
.notice[open]::backdrop { animation: backdrop-in 0.4s ease; }
.notice-card {
  position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 5vw, 36px);
  border-radius: 24px; background: #111113; border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 50px 120px -30px rgba(0, 0, 0, 0.95);
}
/* Focus starts on the card itself (no ring on a button); Tab reaches the buttons. */
.notice-card:focus { outline: none; }
.notice-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px 220px at 18% -10%, rgba(73, 212, 96, 0.2), transparent 70%);
}
.notice-mark { height: 28px; width: auto; filter: drop-shadow(0 0 14px rgba(73, 212, 96, 0.45)); }
.notice h2 { margin-top: 22px; font-size: 28px; }
.notice p { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.notice .notice-fine { font-size: 14px; color: var(--muted); }
/* Two equal buttons side by side; stacked full width where they don't fit. */
.notice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.notice-actions .btn { width: 100%; padding: 0 16px; }
@media (max-width: 480px) { .notice-actions { grid-template-columns: 1fr; } }
@keyframes notice-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .enter { opacity: 0; transform: translateY(22px); }
html.js.ready .enter { animation: enter 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
html.js .hero-visual.enter { transform: translateY(60px) scale(0.96); }
html.js.ready .hero-visual.enter { animation-duration: 1.3s; }

@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes breathe { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .float-card { left: -26%; }
  .nav { gap: 18px; margin-left: 4px; }
}
/* Seven items stop fitting beside the logo and the buttons. */
@media (max-width: 1060px) {
  .menu { display: block; }
  .nav { display: none; }
  .nav-bar { display: none; }
  .menu[open] ~ .nav {
    display: flex; flex-direction: column; gap: 0; margin: 0;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    padding: 8px var(--pad) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    animation: menu-in 0.18s var(--ease);
  }
  .menu[open] ~ .nav a { padding: 15px 0; font-size: 17px; border-top: 1px solid var(--line); }
  .menu[open] ~ .nav a:first-child { border-top: 0; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 16px; }
  .hero-stage .phone { --w: 270px; }
  .float-card { left: -22%; width: 220px; }
  .sub, .pay { grid-template-columns: 1fr; }
  .sub-phone, .pay-phone { justify-self: center; }
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .rsi-visual { flex-direction: column; padding-right: 0; }
  .rsi-card { position: relative; left: auto; bottom: auto; margin-top: -150px; }
  .legal-panel { grid-template-columns: 1fr; }
  .legal-col + .legal-col { border-left: 0; border-top: 1px solid var(--line); }
  .contact-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .top-right .btn { display: none; }
  .hero-stage .phone { --w: 240px; }
  .float-card { left: -14%; bottom: 4%; width: 196px; }
  .float-card .sample { padding: 14px; }
  .float-card .sample-row { font-size: 12.5px; padding: 6px 0; }
  .sample-head .chip-live { display: none; }
  .sub .grid { grid-template-columns: 1fr; }
  .feature-visual .phone { --w: 236px; }
  .duo .phone { --w: 176px; }
  .duo .phone:first-child { transform: rotate(-5deg) translate(18px, -10px); }
  .duo .phone:last-child { transform: rotate(4deg) translate(-18px, 24px); }
  .rsi-card { padding: 14px 12px 12px; }
  .rsi-cell { min-width: 40px; font-size: 12px; }
  .rsi-sym { font-size: 13px; }
  .step { padding-left: 78px; }
  .pay-methods .label { width: 100%; margin-bottom: 4px; }
  .facts { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .hero-stage::before, .plan-skeleton, .rsi-cell, .notice[open], .notice[open]::backdrop, .lang-menu, .pull-hint svg, .menu[open] ~ .nav { animation: none; }
  .preloader-mark path { animation: none; opacity: 1; transform: none; }
  html.js .reveal, html.js .enter { opacity: 1; transform: none; animation: none; transition: none; }
  html.js .hero-chart .line { animation: none; stroke-dashoffset: 0; }
  html.js .hero-chart .area { animation: none; opacity: 1; }
  .hero-stage, .drift, .card { transform: none; }
  .nav-bar { transition: none; }
}
