/* Novaris — site styles.
   Near-black and white, Onest type, product mockups on a graphite stage
   lit softly from above. Main actions live in the sticky header. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/onest-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/onest-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #121212;
  --surface: #171717;
  --surface-raised: #1e1e1e;
  --inner: #0d0d0d;
  --line: #ffffff12;
  --line-strong: #ffffff22;
  --text: #f1f1ee;
  --soft: #c9c9c4;
  --muted: #8b8b86;
  --black: #121212;
  --accent: #f1f1ee;
  --accent-ink: #121212;
  --accent-dim: #c9c9c4;
  --ok: #8fd19e;
  --r: 18px;
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' 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 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.04em; }
.brand img { width: 24px; height: 24px; }

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 15px/1 var(--font); cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.button:hover { background: #ffffff; }
.button.outline { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.button.outline:hover { border-color: var(--muted); }
.button.small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.button svg { flex: none; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font-size: 15px; }
.link:hover { color: var(--text); }

.section-label { display: block; color: var(--muted); font-size: 14px; }

/* account / admin header */
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; border-bottom: 1px solid var(--line); }
.nav .brand { font-size: 18px; }
.nav .brand img { width: 20px; height: 20px; }
.nav-actions { display: flex; gap: 8px; }

/* ─── header: main actions always at the top ─────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 20; background: #121212d9; backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; gap: 36px; height: 68px; }
.topbar .brand { font-size: 19px; }
.topbar .brand img { width: 21px; height: 21px; }
.top-links { display: flex; gap: 26px; color: var(--muted); font-size: 15px; }
.top-links a:hover { color: var(--text); }
.top-actions { display: flex; gap: 8px; margin-left: auto; }
.page { min-width: 0; }

/* hero */
.hero { padding-block: 120px 104px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 76px); max-width: 820px; }
.hero .lead { margin-top: 22px; max-width: 560px; color: var(--muted); font-size: 19px; line-height: 1.5; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }
.hero .stage { margin-top: 72px; height: 520px; }

/* stage behind mockups: graphite with a soft light from above */
.stage {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(70% 55% at 50% 0%, #3a3f4a 0%, #23262c 40%, transparent 75%),
    linear-gradient(180deg, #1b1c1f, #141415);
  box-shadow: inset 0 1px 0 #ffffff14;
}
.stage::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #ffffff40, transparent); }
.stage > * { position: relative; z-index: 1; }

/* app panel floating in the stage */
.panel { width: min(86%, 560px); max-height: 86%; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: #0f0f10f2; padding: 24px 26px; box-shadow: 0 30px 70px -25px #000; }
.panel h4 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.panel .sub { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* phone inside a stage */
.phone { width: 290px; height: 88%; margin-top: 12%; align-self: end; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 40px 40px 0 0; background: #0d0d0e; padding: 16px 20px 0; font-size: 13px; overflow: hidden; box-shadow: 0 0 0 6px #0a0a0a, 0 40px 80px -20px #000; }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 14px; font-size: 12px; font-weight: 600; }
.phone-top i { display: inline-block; width: 16px; height: 8px; margin-left: 3px; border-radius: 2px; background: var(--text); }
.phone-top i:first-child { width: 12px; }

/* mini app content */
.ma-head { display: flex; justify-content: space-between; align-items: center; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.ma-head .brand { font-size: 15px; gap: 7px; }
.ma-head .brand img { width: 15px; height: 15px; }
.ma-head span { color: var(--muted); font-size: 12px; }
.ma-head span b { color: var(--text); font-weight: 500; }
.ma-status { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ma-status small { display: flex; align-items: center; gap: 6px; color: var(--accent-dim); font-size: 12px; }
.ma-status small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.ma-status strong { display: block; margin: 8px 0 4px; font-size: 34px; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.ma-status p { color: var(--muted); font-size: 12px; }
.ma-btn { display: block; margin-top: 14px; padding: 10px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-align: center; }
.ma-tiles { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.ma-tiles div { padding: 12px 0; }
.ma-tiles div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.ma-tiles small { color: var(--muted); font-size: 11px; }
.ma-tiles b { display: block; margin: 3px 0 8px; font-size: 15px; font-weight: 500; }
.bar { height: 3px; border-radius: 2px; background: var(--line-strong); }
.bar i { display: block; height: 100%; border-radius: 2px; background: var(--text); }
.pips { display: flex; gap: 3px; }
.pips i { flex: 1; height: 3px; border-radius: 2px; background: var(--line-strong); }
.pips i.on { background: var(--text); }
.ma-list div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ma-list em { color: var(--muted); font-style: normal; }

/* chat with the bot (monochrome) */
.chat-mock { display: grid; gap: 14px; font-size: 14px; line-height: 1.5; }
.chat-mock .me { justify-self: end; max-width: 80%; padding: 8px 13px; border-radius: 10px; background: #dcdcd6; color: #121212; }
.chat-mock .bot { max-width: 92%; color: var(--soft); }
.chat-mock .bot b { color: var(--text); font-weight: 500; }
.chat-mock code { font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); }
.chat-mock .card { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff06; font-size: 13px; color: var(--soft); }
.chat-mock .card em { color: var(--accent-dim); font-style: normal; }
.chat-mock .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-mock .btns span { padding: 6px 12px; border-radius: 8px; background: #ffffff0f; color: var(--soft); font-size: 13px; }

/* device grid (like an integrations list) */
.dev-list { display: grid; gap: 6px; margin-top: 18px; }
.dev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #ffffff08; font-size: 14px; }
.dev .ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #e9e9e4; color: #121212; }
.dev span { flex: 1; min-width: 0; }
.dev small { display: block; color: var(--muted); font-size: 12px; }
.dev .mark { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line-strong); }
.dev.empty { justify-content: center; background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 13px; }

/* support thread */
.tk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tk-head .pill { padding: 3px 10px; border-radius: 999px; background: #8fd19e1f; color: var(--ok); font-size: 12px; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 104px; }
.feature.flip > .stage { order: -1; }
.feature h2 { font-size: clamp(32px, 3.4vw, 46px); }
.feature p { margin-top: 18px; max-width: 460px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.feature .stage { height: 460px; }

/* pricing */
.block { padding-block: 104px; }
.block-head { margin-bottom: 44px; }
.block-head h2 { font-size: clamp(36px, 4.4vw, 60px); }
.block-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.plan h3 { display: flex; justify-content: space-between; align-items: center; color: var(--soft); font-size: 16px; letter-spacing: -.01em; }
.plan .price { margin-top: 26px; font-size: 38px; font-weight: 500; letter-spacing: -.045em; }
.plan .per { color: var(--muted); font-size: 14px; }
.plan .tag { padding: 2px 9px; border-radius: 999px; background: #ffffff14; color: var(--soft); font-size: 12px; }
.pricing-note { margin-top: 22px; color: var(--muted); font-size: 15px; }
.pricing-note a { color: var(--text); }

/* downloads */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dl { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.dl h3 { font-size: 20px; letter-spacing: -.02em; }
.dl p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.dl .btns { display: grid; justify-items: end; gap: 8px; }
.dl .btns a.alt { color: var(--muted); font-size: 14px; }
.dl .btns a.alt:hover { color: var(--text); }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 16px; }

/* footer */
.foot { margin-top: 40px; padding: 32px 0 48px; border-top: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.foot-links .sp { flex: 1; }
.foot-legal { margin-top: 14px; color: #6f6f6b; font-size: 13px; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ─── documents ─────────────────────────────────────────────────────────── */
.legal { max-width: 760px; padding: 56px 0 96px; }
.legal h1 { margin: 10px 0 24px; font-size: clamp(34px, 4.4vw, 48px); }
.legal h2 { margin-top: 40px; margin-bottom: 10px; font-size: 22px; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--soft); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.legal a.back { border: 0; color: var(--muted); }
.back:hover, .legal a.back:hover { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal .doc-nav a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 14px; }
.legal .doc-nav a:hover { color: var(--text); border-color: var(--line-strong); }
.price-table { width: 100%; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 15px; }
.price-table th, .price-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { color: var(--muted); font-size: 13px; font-weight: 500; background: var(--surface); }
.price-table td { color: var(--soft); }
.price-table td strong { color: var(--text); font-weight: 600; }
.price-table tr:last-child td { border-bottom: 0; }

/* ─── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .top-links { display: none; }
}
@media (max-width: 900px) {
  .hero { padding-block: 64px 72px; }
  .hero .stage { height: 460px; margin-top: 48px; }
  .feature { grid-template-columns: 1fr; gap: 36px; padding-block: 72px; }
  .feature.flip > .stage { order: 0; }
  .feature .stage { height: 420px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .downloads, .faq { grid-template-columns: 1fr; }
  .block { padding-block: 72px; }
  .panel { padding: 20px; }
  }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .top-actions .outline { display: none; }
  .hero h1 { font-size: 42px; }
  .hero .lead { font-size: 17px; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero .actions .link { justify-content: center; }
  .feature p { font-size: 16px; }
  .plans { grid-template-columns: 1fr; }
  .dl { flex-direction: column; align-items: flex-start; }
  .dl .btns { justify-items: start; }
    .panel { width: 90%; }
  .phone { width: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
.chat-mock .card code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev .mark { flex: none; }

/* INCY screen (mirrors the real app layout, in site colours) */
.phone.incy { display: flex; flex-direction: column; gap: 8px; }
.incy-title { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.incy-label { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.incy-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 18px; background: #151516; }
.incy-row { display: flex; justify-content: space-between; align-items: baseline; }
.incy-row b { font-size: 16px; font-weight: 600; }
.incy-row span { color: var(--muted); font-size: 12px; }
.incy-traffic { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; color: var(--soft); font: 12px ui-monospace, "SF Mono", Menlo, monospace; }
.incy-btns { display: flex; gap: 6px; }
.incy-btns span { padding: 5px 10px; border-radius: 8px; background: #ffffff0d; color: var(--soft); font-size: 12px; }
.incy-server { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: #1c1c1e; }
.incy-server b { display: block; font-size: 15px; font-weight: 600; }
.incy-server small { color: var(--muted); font-size: 11px; }
.incy-server em { display: flex; align-items: center; gap: 6px; color: var(--soft); font: 12px ui-monospace, Menlo, monospace; font-style: normal; }
.incy-server em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.incy-dock { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 18px; background: #151516; }
.incy-dock b { display: block; font-size: 15px; font-weight: 600; }
.incy-dock small { color: var(--muted); font: 11px ui-monospace, Menlo, monospace; }
.incy-toggle { flex: none; display: flex; justify-content: flex-end; align-items: center; width: 54px; height: 32px; padding: 3px; border-radius: 999px; background: #2a2a2d; }
.incy-toggle i { width: 26px; height: 26px; border-radius: 50%; background: var(--text); }

/* ─── v5: denser landing ─────────────────────────────────────────────────── */
/* hero */
.hero2 { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; min-height: calc(100vh - 68px); padding-block: 48px 40px; }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--soft); font-size: 13px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 #8fd19e88; animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px #8fd19e00; } 100% { box-shadow: 0 0 0 0 #8fd19e00; } }
.hero2 h1 { font-size: clamp(46px, 5.6vw, 82px); letter-spacing: -.045em; line-height: 1; }
.hero2 .lead { margin-top: 22px; max-width: 520px; color: var(--muted); font-size: 19px; line-height: 1.5; }
.hero2 .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero2 .button { min-height: 50px; padding: 0 24px; font-size: 16px; }
.fine { margin-top: 18px; color: var(--muted); font-size: 14px; }

.hero2-shot { position: relative; height: 640px; }
.hero2-shot .glow { position: absolute; inset: 6% 4% 0; border-radius: 40px; background: radial-gradient(60% 50% at 55% 30%, #4a5262 0%, #2a2e36 40%, transparent 75%); filter: blur(10px); }
.hero2-shot .phone.incy { position: absolute; left: 50%; top: 30px; height: 610px; width: 300px; margin: 0; transform: translateX(-36%); border-bottom: 1px solid var(--line-strong); border-radius: 44px; }
.float-chat { position: absolute; left: 0; top: 150px; width: 300px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 18px; background: #18181af2; backdrop-filter: blur(10px); box-shadow: 0 30px 60px -20px #000; animation: bob 7s ease-in-out infinite; }
.fc-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.fc-head img { width: 16px; height: 16px; }
.fc-head small { color: var(--muted); }
.float-chat .chat-mock { gap: 10px; font-size: 13px; }
.float-chip { position: absolute; right: 0; bottom: 70px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: #18181af2; backdrop-filter: blur(10px); box-shadow: 0 30px 60px -20px #000; font-size: 13px; animation: bob 8s ease-in-out -3s infinite; }
.float-chip b { display: block; font-size: 14px; font-weight: 500; }
.float-chip small { color: var(--muted); }
.chip-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #8fd19e1f; color: var(--ok); font-weight: 600; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* chat appears message by message */
.seq > * { opacity: 0; transform: translateY(6px); animation: pop .5s cubic-bezier(.16, 1, .3, 1) forwards; }
.seq > :nth-child(1) { animation-delay: .5s; }
.seq > :nth-child(2) { animation-delay: 1.4s; }
.seq > :nth-child(3) { animation-delay: 2.2s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.bar i.grow { width: 0; animation: grow 1.6s cubic-bezier(.16, 1, .3, 1) .6s forwards; }
@keyframes grow { to { width: var(--w); } }
.incy-toggle.on { background: var(--text); }
.incy-toggle.on i { background: var(--black); }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stats > div { padding: 30px 24px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(36px, 4vw, 54px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.stats b span { display: inline; margin: 0; color: inherit; font-size: inherit; }

/* how-to row */
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.howto li { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.howto .n { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.howto h3 { margin-top: 26px; font-size: 22px; letter-spacing: -.03em; }
.howto p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.mini { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 28px; }
.pill-btn { padding: 9px 14px; border-radius: 10px; background: var(--text); color: var(--black); font-size: 13px; font-weight: 500; }
.pill-btn.ghost { background: #ffffff12; color: var(--text); }
.app-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(145deg, #34343a, #1b1b1e); font-size: 10px; font-weight: 700; }
.mini-ok { color: var(--ok); font-size: 14px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 12px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.tile h3 { font-size: 22px; letter-spacing: -.03em; }
.tile p { margin-top: 8px; max-width: 360px; color: var(--muted); font-size: 15px; }
.t-app { grid-column: span 3; grid-row: span 2; background: radial-gradient(80% 60% at 50% 100%, #2f343e 0%, transparent 70%), var(--surface); }
.t-app .ma-phone { position: relative; width: 290px; height: auto; margin: 30px auto -40px; padding: 14px 18px 30px; border-radius: 38px 38px 0 0; align-self: center; }
.t-ping { grid-column: span 3; }
.t-dev { grid-column: span 3; }
.t-pay { grid-column: span 2; }
.t-help { grid-column: span 4; }
.ping { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 20px; }
.ping b { font-size: 64px; font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.ping span { color: var(--muted); font-size: 18px; }
.spark { position: absolute; right: 26px; bottom: 30px; display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.spark i { width: 5px; border-radius: 2px; background: #ffffff2e; animation: spark 1.8s ease-in-out infinite; }
.spark i:nth-child(odd) { animation-delay: -.6s; }
.spark i:nth-child(3n) { animation-delay: -1.1s; }
.spark i:nth-child(1) { height: 30%; } .spark i:nth-child(2) { height: 55%; } .spark i:nth-child(3) { height: 40%; } .spark i:nth-child(4) { height: 70%; }
.spark i:nth-child(5) { height: 45%; } .spark i:nth-child(6) { height: 60%; } .spark i:nth-child(7) { height: 35%; } .spark i:nth-child(8) { height: 80%; }
.spark i:nth-child(9) { height: 50%; } .spark i:nth-child(10) { height: 65%; } .spark i:nth-child(11) { height: 38%; } .spark i:nth-child(12) { height: 72%; }
.spark i:nth-child(13) { height: 48%; } .spark i:nth-child(14) { height: 58%; } .spark i:nth-child(15) { height: 42%; } .spark i:nth-child(16) { height: 90%; background: var(--text); }
@keyframes spark { 50% { transform: scaleY(.6); } }
.spark i { transform-origin: bottom; }
.t-dev .dev-list { margin-top: auto; padding-top: 18px; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.pay span { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14px; }
.t-help .chat-mock { margin-top: auto; padding-top: 20px; font-size: 14px; }

/* final call */
.final { display: grid; justify-items: center; gap: 12px; margin-top: 24px; padding: 72px 24px; border-radius: 28px; text-align: center; background: radial-gradient(60% 80% at 50% 0%, #3a3f4a 0%, #23262c 45%, transparent 80%), linear-gradient(180deg, #1b1c1f, #141415); border: 1px solid var(--line); }
.final h2 { font-size: clamp(38px, 5vw, 64px); }
.final p { color: var(--muted); font-size: 18px; }
.final .button { margin-top: 14px; min-height: 50px; padding: 0 26px; font-size: 16px; }

/* tighter rhythm */
.block { padding-block: 88px; }
.block-head { margin-bottom: 36px; }

@media (max-width: 1000px) {
  .hero2 { grid-template-columns: 1fr; min-height: 0; padding-block: 48px 24px; }
  .hero2-shot { height: 600px; max-width: 520px; width: 100%; margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .howto { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-app { grid-column: span 2; grid-row: auto; }
  .t-ping, .t-dev, .t-pay, .t-help { grid-column: span 2; }
}
@media (max-width: 600px) {
  .hero2 h1 { font-size: 44px; }
  .hero2 .actions { display: grid; }
  .hero2-shot { height: 560px; }
  .hero2-shot .phone.incy { width: 260px; height: 540px; transform: translateX(-30%); }
  .float-chat { width: 240px; top: 110px; }
  .float-chip { bottom: 30px; }
  .stats > div { padding: 22px 16px; }
  .tile { padding: 22px; }
  .t-app .ma-phone { width: 260px; }
  .ping b { font-size: 52px; }
  .block { padding-block: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .seq > *, .bar i.grow { animation: none; opacity: 1; transform: none; width: var(--w); }
  .float-chat, .float-chip, .spark i, .live-dot { animation: none; }
}

/* v6: interactive dot field */
.bg-field { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* v7: giant footer wordmark, fades into the bottom edge */
.foot { overflow: hidden; }
.wordmark { margin: 48px 0 0; font-weight: 700; letter-spacing: -0.06em; line-height: .78; font-size: clamp(88px, 21vw, 330px); text-align: center; white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, #f1f1ee 0%, #9a9ca2 45%, #121212 100%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: -0.12em; }

/* v8: opening wordmark — letters rise, gradient sweeps, curtain lifts */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 10px; background: #121212;
  animation: intro-out .8s cubic-bezier(.7, 0, .2, 1) 1.9s forwards; }
.intro-word { display: flex; overflow: hidden; padding: 0 .04em .06em; font-weight: 700; letter-spacing: -0.06em; line-height: .9; font-size: clamp(72px, 19vw, 300px); }
.intro-word span { display: inline-block; transform: translateY(105%); animation: intro-up .9s cubic-bezier(.16, 1, .3, 1) calc(.15s + var(--i) * .06s) forwards;
  background: linear-gradient(180deg, #f1f1ee 10%, #8d9096 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-sub { font-size: 13px; letter-spacing: .5em; padding-left: .5em; color: var(--muted, #8a8a8a); opacity: 0; animation: intro-fade .6s ease 1s forwards; }
.intro.gone { display: none; }
@keyframes intro-up { to { transform: none; } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }


/* v9: Gloock wordmark — intro, top of page, footer; intro shortened */
@font-face { font-family: "Gloock"; src: url("/fonts/gloock-lat.woff2") format("woff2"); font-weight: 400; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
.intro-word, .wordmark, .hero-mark { font-family: "Gloock", Georgia, serif; font-weight: 400; letter-spacing: -0.02em; }
.hero-mark { text-align: center; white-space: nowrap; line-height: .95; font-size: clamp(64px, 15.5vw, 240px); margin: 28px 0 -8px; user-select: none;
  background: linear-gradient(180deg, #f1f1ee 15%, #8d9096 70%, #2a2b2e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: mark-in 1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes mark-in { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }
.intro { animation-duration: .6s; animation-delay: 1.05s; }
.intro-word span { animation-duration: .7s; animation-delay: calc(.05s + var(--i) * .04s); }
.intro-sub { animation-delay: .5s; animation-duration: .4s; }
body:has(.intro:not(.gone)) .hero-mark { animation-delay: 1.1s; }
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; } }

/* v10: phone sizing for the wordmarks; reduced motion keeps a plain fade */
@media (max-width: 600px) {
  .hero-mark { font-size: 25vw; margin: 18px 0 6px; line-height: 1; }
  .intro-word { font-size: 26vw; }
  .wordmark { font-size: 27vw; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-word span { transform: none; animation: none; }
  .intro { animation: intro-fadeout .4s ease .8s forwards; }
}
@keyframes intro-fadeout { to { opacity: 0; visibility: hidden; } }

/* v11: body type — Wix Madefor Display (Cyrillic) */
@font-face { font-family: "Madefor"; font-weight: 400; font-display: swap; src: url(/fonts/madefor-400-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Madefor"; font-weight: 400; font-display: swap; src: url(/fonts/madefor-400-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212; }
@font-face { font-family: "Madefor"; font-weight: 500; font-display: swap; src: url(/fonts/madefor-500-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Madefor"; font-weight: 500; font-display: swap; src: url(/fonts/madefor-500-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212; }
@font-face { font-family: "Madefor"; font-weight: 600; font-display: swap; src: url(/fonts/madefor-600-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Madefor"; font-weight: 600; font-display: swap; src: url(/fonts/madefor-600-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212; }
@font-face { font-family: "Madefor"; font-weight: 700; font-display: swap; src: url(/fonts/madefor-700-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Madefor"; font-weight: 700; font-display: swap; src: url(/fonts/madefor-700-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212; }
:root { --font: "Madefor", "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
body { font-family: var(--font); }

/* v12: serif display type echoing the Gloock wordmark (Playfair Display has Cyrillic) */
@font-face { font-family: "Playfair"; font-weight: 400; font-display: swap; src: url(/fonts/playfair-400-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-weight: 400; font-display: swap; src: url(/fonts/playfair-400-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212; }
@font-face { font-family: "Playfair"; font-weight: 500; font-display: swap; src: url(/fonts/playfair-500-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-weight: 500; font-display: swap; src: url(/fonts/playfair-500-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212; }
:root { --serif: "Playfair", "Gloock", Georgia, serif; }
h1, h2, .stats b, .ping b, .plan .price, .ma-status strong, .final h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.hero2 h1 { letter-spacing: -0.025em; line-height: 1.02; }
.hero2 h1 em, h2 em { font-style: italic; }

/* v12: everything important fits the first screen */
.hero-mark { font-size: clamp(56px, 10.5vw, 168px); margin: 14px 0 0; line-height: .92; }
.hero2 { min-height: 0; padding-block: 6px 36px; gap: 32px; }
.hero2 h1 { font-size: clamp(40px, 4.6vw, 68px); }
.hero2 .lead { margin-top: 16px; font-size: 17px; }
.hero2 .actions { margin-top: 24px; }
.hero2-shot { height: 520px; }
.hero2-shot .phone.incy { height: 500px; top: 10px; }
.float-chat { top: 110px; }
.lang { font-size: 13px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 10px; text-decoration: none; }
.lang:hover { color: var(--text); }
@media (max-width: 1000px) { .hero2-shot { height: 480px; } .hero2-shot .phone.incy { height: 460px; } }
@media (max-width: 600px) { .hero-mark { font-size: 25vw; } .lang { padding: 5px 8px; } }

/* v13: brand name in the wordmark face */
.brand span { font-family: "Gloock", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; font-size: 22px; }

/* v13: left contents rail, like a document outline */
.toc { position: fixed; left: 28px; top: 50%; transform: translateY(-50%); z-index: 5; display: none; flex-direction: column; gap: 2px; width: 150px; }
.toc p { margin: 0 0 8px 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: .7; }
.toc a { position: relative; padding: 6px 0 6px 12px; font-size: 13px; color: var(--muted); text-decoration: none; border-left: 1px solid var(--line); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--text); }
@media (min-width: 1420px) { .toc { display: flex; } }
html { scroll-padding-top: 76px; }
