/* TREVIO LLC — site styles (monodoc visual language). */

:root {
  --text: #111;
  --muted: #6b6b75;
  --line: #ececf1;
  --gray: #f4f4f7;
  --white: #fff;

  --violet: #6D5BFF;
  --blue: #3E7BFA;
  --green: #22C55E;

  --hero-grad: radial-gradient(120% 90% at 15% 0%, #4F7BFF 0%, transparent 55%),
               radial-gradient(90% 80% at 100% 10%, #9B6BFF 0%, transparent 60%),
               linear-gradient(180deg, #4A5CF0 0%, #6E58F5 55%, #8E6CF8 100%);
  --card-grad: radial-gradient(120% 100% at 0% 0%, #4F7BFF 0%, transparent 55%),
               radial-gradient(90% 90% at 100% 0%, #A86BFF 0%, transparent 60%),
               linear-gradient(135deg, #4A5CF0 0%, #6E58F5 55%, #9A6CF8 100%);

  --radius-xl: 48px;
  --radius-lg: 40px;
  --radius: 28px;
  --shadow: 0 20px 60px rgba(40, 30, 120, .12);
  --header-h: 76px;
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: clip; line-height: 1.5; font-size: 17px;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
ul { list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(109, 91, 255, .5); outline-offset: 3px; border-radius: 10px; }

/* Language switching: both languages are in the HTML, CSS shows one. */
html[data-lang="en"] body [lang="uk"],
html[data-lang="uk"] body [lang="en"] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 30px; border-radius: 90px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--font); white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn--black { background: #000; color: #fff; }
.btn--black:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { box-shadow: 0 10px 30px rgba(20, 10, 80, .3); }
.btn--lg { height: 64px; padding: 0 36px; font-size: 17px; }

/* ============ HEADER ============ */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s ease, box-shadow .3s ease; }
.header.is-scrolled, .header--solid { background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; height: var(--header-h); gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; color: #fff; transition: color .3s; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: #fff; color: #6E58F5; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 16px rgba(20, 10, 80, .2); transition: background .3s, color .3s;
}
.logo__word { font-weight: 800; font-size: 22px; letter-spacing: 1.5px; }
.header.is-scrolled .logo, .header--solid .logo, .footer .logo { color: #000; }
.header.is-scrolled .logo__mark, .header--solid .logo__mark { background: var(--card-grad); color: #fff; }
.footer .logo { color: #fff; }

.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav__link { padding: 10px 16px; border-radius: 90px; font-size: 15px; font-weight: 500; color: #fff; transition: background .2s, color .3s; }
.nav__link:hover { background: rgba(255, 255, 255, .18); }
.header.is-scrolled .nav__link { color: #000; }
.header.is-scrolled .nav__link:hover { background: var(--gray); }

.lang-switch {
  margin-left: auto; display: inline-flex; padding: 4px; border-radius: 90px;
  background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .3s, box-shadow .3s;
}
.lang-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 600 13px/1 var(--font); letter-spacing: .3px; color: rgba(255, 255, 255, .8);
  padding: 9px 14px; border-radius: 90px; transition: background .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: #000; }
.header.is-scrolled .lang-switch, .header--solid .lang-switch { background: var(--gray); box-shadow: none; }
.header.is-scrolled .lang-switch button, .header--solid .lang-switch button { color: var(--muted); }
.header.is-scrolled .lang-switch button[aria-pressed="true"], .header--solid .lang-switch button[aria-pressed="true"] { background: #000; color: #fff; }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden; background: var(--hero-grad); color: #fff;
  padding: 120px 0 90px; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero__glow--1 { width: 500px; height: 500px; background: #5EE7FF; opacity: .25; left: -150px; bottom: -200px; }
.hero__glow--2 { width: 420px; height: 420px; background: #FF8AD8; opacity: .22; right: -120px; top: 80px; }
.hero__inner { position: relative; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #000;
  padding: 10px 18px 10px 10px; border-radius: 16px; transform: rotate(-3deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15); margin-bottom: 32px;
}
.badge__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--card-grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.badge__name { font-weight: 800; font-size: 22px; letter-spacing: 1.2px; }
.badge__by { font-size: 11px; font-weight: 500; color: var(--muted); align-self: flex-end; }
.hero__title { font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; line-height: 1.04; letter-spacing: -2px; max-width: 1050px; margin: 0 auto; }
.hero__subtitle { font-size: clamp(17px, 1.6vw, 20px); opacity: .92; max-width: 720px; margin: 24px auto 38px; }

/* ============ SECTIONS ============ */
section { scroll-margin-top: var(--header-h); }
.section { padding: 120px 0; }
.section--gray { background: var(--gray); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 90px; background: var(--gray); margin-bottom: 20px; }
.section--gray .eyebrow { background: #fff; }
.h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -1.4px; }
.sec-head { max-width: 760px; }
.sec-head--center { margin: 0 auto; text-align: center; }
.lead { font-size: 19px; color: var(--muted); margin-top: 16px; }

/* What we do (round glowing icons) */
.when__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; margin-top: 72px; }
.when__ico {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 14px 30px -6px var(--glow), inset 0 -4px 10px rgba(0, 0, 0, .12), inset 0 4px 10px rgba(255, 255, 255, .25);
}
.when__ico svg { width: 30px; height: 30px; }
.when__ico--blue { background: linear-gradient(160deg, #4F7BFF, #2346D8); --glow: rgba(35, 70, 216, .45); }
.when__ico--violet { background: linear-gradient(160deg, #B36BFF, #6E58F5); --glow: rgba(110, 88, 245, .45); }
.when__ico--green { background: linear-gradient(160deg, #2BD47C, #0E9A55); --glow: rgba(14, 154, 85, .45); }
.when__ico--orange { background: linear-gradient(160deg, #FF9F45, #F2556B); --glow: rgba(242, 85, 107, .45); }
.when__ico--cyan { background: linear-gradient(160deg, #3FD0E6, #1196B8); --glow: rgba(17, 150, 184, .45); }
.when__item h3 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin-top: 32px; }
.when__item p { font-size: 16px; color: var(--muted); margin-top: 10px; line-height: 1.55; max-width: 320px; }

/* Product (big pastel card) */
.bcard {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 72px 0 0 72px;
  background: linear-gradient(160deg, #F4ECFE 0%, #E8DAFB 100%);
}
.bcard__body { padding-bottom: 72px; align-self: center; }
.bcard__ico {
  width: 76px; height: 76px; border-radius: 22px; background: linear-gradient(160deg, #2a2a2e 0%, #000 70%);
  color: #fff; display: grid; place-items: center; margin-bottom: 36px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.bcard__ico svg { width: 36px; height: 36px; }
.bcard__title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.08; }
.bcard__text { font-size: 18px; line-height: 1.55; color: #1c1c22; margin-top: 18px; max-width: 500px; font-weight: 500; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0 36px; max-width: 520px; }
.checks li {
  display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .7);
  border-radius: 18px; padding: 14px 16px; font-weight: 600; font-size: 15px;
}
.check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; }
.check svg { width: 14px; height: 14px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px;
  border-radius: 18px; background: #000; color: #fff; cursor: default; user-select: none;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 10px; line-height: 1.2; opacity: .65; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.store strong { display: block; font-size: 17px; line-height: 1.2; font-weight: 600; }

/* Phone mockup (decorative) */
.phone-wrap { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.phone {
  position: relative; width: 300px; height: 560px; border-radius: 48px 48px 0 0;
  background: #1c1c22; padding: 12px 12px 0; box-shadow: 0 30px 80px rgba(20, 10, 80, .3);
}
.phone-screen {
  height: 100%; border-radius: 38px 38px 0 0; background: #fff; overflow: hidden;
  padding: 50px 18px 18px; display: flex; flex-direction: column; gap: 12px; position: relative;
}
.phone-screen::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: #1c1c22;
}
.ph-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ph-head b { font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
.ph-head i { width: 30px; height: 30px; border-radius: 50%; background: var(--gray); }
.ph-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; border: 1px solid var(--line); }
.ph-ico { width: 34px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; flex: none; }
.ph-ico--pdf { background: #FF5C5C; } .ph-ico--doc { background: var(--violet); } .ph-ico--xml { background: var(--blue); }
.ph-lines { flex: 1; display: grid; gap: 6px; }
.ph-bar { height: 8px; border-radius: 6px; background: #e6e6ee; }
.ph-chip { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.ph-chip--ok { background: #E3F8EC; color: #0E9A55; }
.ph-chip--wait { background: #FFF1DF; color: #C46A00; }
.ph-chip--new { background: #EEEAFF; color: #5A47F0; }
.ph-sign { margin-top: 4px; border-radius: 18px; padding: 16px; background: var(--card-grad); color: #fff; }
.ph-sign small { font-size: 11px; opacity: .85; }
.ph-sign svg { width: 150px; height: 44px; margin-top: 6px; }
.ph-btn { margin-top: auto; height: 46px; border-radius: 90px; background: #000; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.step { position: relative; background: var(--gray); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; min-height: 300px; overflow: hidden; }
.step__num {
  width: 84px; height: 84px; border-radius: 50%; background: #000; color: #fff;
  font-size: 36px; font-weight: 800; display: grid; place-items: center; margin-bottom: 40px; letter-spacing: -1px;
}
.step:nth-child(2) .step__num { background: var(--violet); }
.step:nth-child(3) .step__num { background: var(--green); }
.step__title { font-size: 24px; font-weight: 700; letter-spacing: -.5px; margin-top: auto; line-height: 1.2; }
.step__big {
  position: absolute; right: -10px; bottom: -40px; font-size: 200px; font-weight: 800; line-height: 1;
  letter-spacing: -8px; color: rgba(0, 0, 0, .04); pointer-events: none;
}

/* About */
.about-lead { font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -1px; max-width: 900px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.fact { border-radius: var(--radius-lg); padding: 36px 32px; min-height: 230px; display: flex; flex-direction: column; }
.fact--mint { background: linear-gradient(160deg, #EAFBEF 0%, #D2F8E6 100%); }
.fact--sky { background: linear-gradient(160deg, #D9F1FF 0%, #A9D9F7 100%); }
.fact--peach { background: linear-gradient(160deg, #FFF6EA 0%, #FFE6CC 100%); }
.fact__ico {
  width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(160deg, #2a2a2e 0%, #000 70%);
  color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.fact__ico svg { width: 28px; height: 28px; }
.fact small { display: block; margin-top: auto; padding-top: 32px; font-size: 15px; color: #45454f; font-weight: 500; }
.fact strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.6px; line-height: 1.15; margin-top: 4px; }

/* Contacts */
.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 56px; }
.contact-card { background: var(--gray); border-radius: var(--radius-lg); padding: 48px; }
.contact-list { display: grid; gap: 26px; }
.contact-list dt { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.contact-list dd { font-size: 18px; font-weight: 600; letter-spacing: -.2px; overflow-wrap: anywhere; }
.contact-list dd + dd { margin-top: 4px; }
.contact-list a { border-bottom: 1px solid rgba(0, 0, 0, .2); transition: border-color .2s; }
.contact-list a:hover { border-color: #000; }
.contact-cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 48px;
  background: var(--card-grad); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.contact-cta .hero__glow--2 { width: 260px; height: 260px; right: -80px; top: auto; bottom: -100px; }
.contact-cta h3 { position: relative; font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.contact-cta p { position: relative; font-size: 18px; opacity: .9; margin-top: 14px; }
.contact-cta .btn { position: relative; align-self: flex-start; }

/* Footer */
.footer { background: #000; color: #fff; padding: 72px 0 36px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: 120px; scroll-margin-top: var(--header-h); }
.footer__top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.footer__lead { font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.3px; max-width: 400px; }
.footer__info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.footer__item { min-width: 0; }
.footer__item--wide { grid-column: 1 / -1; }
.footer__info dt { font-size: 13px; color: #8a8a94; font-weight: 500; margin-bottom: 6px; }
.footer__info dd { font-size: 16px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.footer__info dd + dd { margin-top: 4px; }
.footer__info a { border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s; }
.footer__info a:hover { border-color: #fff; }
.footer__about { color: #8a8a94; margin-top: 16px; max-width: 360px; font-size: 14px; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { font-size: 15px; transition: opacity .2s; }
.footer__links a:hover { opacity: .6; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid #222; font-size: 13px; color: #8a8a94; }

/* ============ LEGAL PAGES ============ */
.legal-hero {
  position: relative; overflow: hidden; background: var(--hero-grad); color: #fff;
  padding: calc(var(--header-h) + 56px) 0 72px; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.legal-hero .container, .legal .container { max-width: 860px; position: relative; }
.back {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 90px;
  background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  font-size: 14px; font-weight: 600; margin-bottom: 32px; transition: background .2s;
}
.back:hover { background: rgba(255, 255, 255, .28); }
.back svg { width: 16px; height: 16px; }
.legal-hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; letter-spacing: -1.8px; line-height: 1.05; }
.legal-hero .updated { margin-top: 14px; opacity: .85; font-size: 15px; }
.legal { padding: 64px 0 0; }
.legal h2 { font-size: 26px; font-weight: 700; letter-spacing: -.6px; margin: 52px 0 14px; line-height: 1.2; }
.legal h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.legal p, .legal li { color: #33333b; line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.legal a { color: #2346D8; border-bottom: 1px solid rgba(35, 70, 216, .25); }
.legal .intro { font-size: 19px; color: var(--text); font-weight: 500; }
.legal-box { margin-top: 28px; padding: 24px 28px; border-radius: var(--radius); background: var(--gray); }
.legal-box p { color: var(--text); }

.review {
  margin: 18px 0; padding: 16px 20px; border-radius: 20px;
  background: #FFF6C7; box-shadow: inset 0 0 0 1px #F5DC6B;
  color: #5c4500; font-size: 15px; line-height: 1.55;
}
.review strong { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 6px; color: #8a6400; }
.review strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F5B700; }

/* ============ REVEAL (only when JS is on) ============ */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .bcard { grid-template-columns: 1fr; padding: 56px 40px 0; gap: 8px; }
  .bcard__body { padding-bottom: 32px; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 820px) {
  .section { padding: 84px 0; }
  .when__grid { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .when__item h3 { margin-top: 22px; }
  .steps, .facts { grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
  .step { min-height: 0; }
  .step__num { margin-bottom: 28px; }
  .fact { min-height: 0; }
  .footer { margin-top: 84px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header__inner { height: 64px; }
  :root { --header-h: 64px; }
  .logo__word { font-size: 19px; }
  .hero { padding: 100px 0 64px; }
  .hero__title { letter-spacing: -1.2px; }
  .btn--lg { width: 100%; max-width: 340px; }
  .bcard { padding: 36px 22px 0; border-radius: 32px; }
  .bcard__ico { width: 64px; height: 64px; margin-bottom: 26px; }
  .checks { grid-template-columns: 1fr; }
  .store { flex: 1 1 150px; }
  .phone { width: 270px; height: 470px; }
  .step, .fact { padding: 28px 24px; border-radius: 26px; }
  .step__num { width: 68px; height: 68px; font-size: 30px; }
  .contact-card, .contact-cta { padding: 28px 22px; border-radius: 28px; }
  .contact-cta .btn { align-self: stretch; }
  .footer { border-radius: 28px 28px 0 0; padding-top: 48px; }
  .footer__info { grid-template-columns: 1fr; gap: 22px; }
  .footer__brand .btn { align-self: stretch; }
  .legal-hero { padding-bottom: 56px; border-radius: 0 0 28px 28px; }
  .legal { padding-top: 44px; }
  .legal h2 { font-size: 22px; margin-top: 42px; }
}
